confluence-page-viewer

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Confluence Page Viewer

Confluence页面查看器

Fetch and display Confluence page content using
npx confluence-cli
.
使用
npx confluence-cli
获取并显示Confluence页面内容。

Arguments

参数

  • $ARGUMENTS[0]
    — Confluence page URL
  • $ARGUMENTS[1]
    — (optional) Output directory for persisting the page content. Defaults to
    .implement-assets/confluence
When invoked by the orchestrator (e.g.
implement
),
$ARGUMENTS[1]
is provided. When used standalone, it defaults to
.implement-assets/confluence
.
  • $ARGUMENTS[0]
    — Confluence页面URL
  • $ARGUMENTS[1]
    —(可选)用于保存页面内容的输出目录。默认值为
    .implement-assets/confluence
当由编排器(如
implement
)调用时,会提供
$ARGUMENTS[1]
。独立使用时,默认值为
.implement-assets/confluence

System Requirements

系统要求

Execution

执行步骤

  1. Pre-flight check: Run
    npx confluence-cli --help
    to verify the CLI works — if it fails, follow error handling in references/rules.md. Do NOT continue until the CLI is available. Auth errors are caught when the actual command runs.
  2. Validate
    $ARGUMENTS[0]
    against references/rules.md
  3. Run
    npx confluence-cli read $ARGUMENTS[0]
    via Bash
  4. Format the output per references/output-format.md
  5. Save output: Run
    mkdir -p $ARGUMENTS[1]
    via Bash, then save the full formatted output to
    $ARGUMENTS[1]/output.md
    using the Write tool. This ensures the complete output is persisted for the orchestrator to read.
<tags> <mode>think</mode> <custom>yes</custom> </tags>
  1. 飞行前检查:运行
    npx confluence-cli --help
    验证CLI是否可用——如果失败,请遵循references/rules.md中的错误处理流程。在CLI可用前请勿继续。认证错误会在实际命令运行时捕获。
  2. 根据references/rules.md验证
    $ARGUMENTS[0]
  3. 通过Bash运行
    npx confluence-cli read $ARGUMENTS[0]
  4. 根据references/output-format.md格式化输出
  5. 保存输出:通过Bash运行
    mkdir -p $ARGUMENTS[1]
    ,然后使用写入工具将完整的格式化输出保存到
    $ARGUMENTS[1]/output.md
    。这可确保完整输出被持久化,以供编排器读取。
<tags> <mode>think</mode> <custom>yes</custom> </tags>