About confluence-page-viewer
confluence-page-viewer is a skill for retrieving and formatting Confluence page content with confluence-cli. It is intended for workflows that need a page saved as a Markdown file.
Key features
- 01Read pages by URL or page ID
- 02Resolve encoded short links
- 03Format fetched page content
- 04Save output as scroll.md
Use cases
- 01Retrieve a Confluence page for review
- 02Save page content in a project output directory
Install
Copy the command and run it in a terminal.
$
npx skills add https:/ / github.com/ delexw/ claude-code-misc --skill confluence-page-viewerAfter installing, type/confluence-page-viewerin Claude Code to confirm it loaded.
Bundled filesreferences/output-format.mdreferences/rules.md
Details
From the project READMEConfluence Page Viewer
Fetch and display Confluence page content using confluence-cli.
Inputs
Raw arguments: $ARGUMENTS
Infer from the arguments:
- PAGE_URL: the Confluence page URL
- OUT_DIR: output directory, or
.implement-assets/confluenceif not provided
System Requirements
confluence-cliinstalled and available in PATH (https://github.com/pchuri/confluence-cli)
Execution
- Pre-flight check: Run
which confluence-clito verify the CLI is available. If not found, follow error handling in references/rules.md. Do NOT continue until the CLI is available. - Validate PAGE_URL against references/rules.md
- Resolve short links: If PAGE_URL matches
/wiki/x/ENCODED, decode it to a numeric page ID (see references/rules.md for decoding steps), then use that ID instead. - Run
confluence-cli read PAGE_URL_OR_IDvia Bash - Format the output per references/output-format.md
- Save output: Run
mkdir -p OUT_DIRvia Bash, then save the full formatted output toOUT_DIR/scroll.mdusing the Write tool.
Comments
Markdown supported