Internal fetcher module for Confluence pages. Fetches content via Atlassian MCP (preferred), REST API with Basic Auth (fallback), or browser DOM extraction via Claude in Chrome (last resort) and returns Markdown. Used by /bedrock:learn and /bedrock:sync โ not intended for direct
Installs just this skill. Get the whole plugin for auto-invocation.
โก How it fires
How this skill gets triggered: by you, by Claude, or both.
Fires itselfClaude auto-loads it when your prompt matches the work.
You can call itInvoke it directly when you want it.
Slash command/confluence-to-markdown
๐๏ธ Context preview
The summary Claude sees to decide when to auto-load this skill.
Internal fetcher module for Confluence pages. Fetches content via Atlassian MCP (preferred), REST API with Basic Auth (fallback), or browser DOM extraction via Claude in Chrome (last resort) and returns Markdown. Used by /bedrock:learn and /bedrock:sync โ not intended for direct
๐ Stats
Stars83
Forks8
LanguageHTML
LicenseMIT
๐ฆ Ships with bedrock
</> SKILL.md
confluence-to-markdown.SKILL.md
---name: confluence-to-markdown
description: >
Internal fetcher module for Confluence pages. Fetches content via Atlassian MCP (preferred),
REST API with Basic Auth (fallback), or browser DOM extraction via Claude in Chrome (last resort)
and returns Markdown. Used by /bedrock:learn and /bedrock:sync โ not intended for direct user invocation.
user_invocable: false
allowed-tools: Bash, Read, Write, WebFetch, ToolSearch, mcp__plugin_atlassian_atlassian__*, mcp__claude-in-chrome__*
---# Confluence Fetcher
Internal module โ invoked by `/bedrock:learn` Phase 1 and `/bedrock:sync` Phase 2, not user-invocable.
Fetches a Confluence page and returns its content as Markdown. Three layers in fallback order:
**MCP (preferred) โ REST API โ Browser DOM extraction.**
**Dependency:** Browser fallback (Layer 3) requires `scripts/extract.js` (relative to this skill directory).
---## Step 1 โ Parse URL
Parse the Confluence URL. Accept these formats:
- `https://<domain>.atlassian.net/wiki/spaces/<spaceKey>/pages/<pageId>/<title>`
- `https://<domain>.atlassian.net/wiki/spaces/<spaceKey>/pages/<pageId>`
- `https://<domain>.atlassian.net/wiki/x/<shortlink>`
- `https://<domain>.atlassian.net/wiki/pages/viewpage.action?pageId=<pageId>`
- **MCP tools found and functional** (tools other than `authenticate` and `complete_authentication` are available) โ proceed to **2.2 Fetch via MCP**
- **Only `authenticate` / `complete_authentication` tools found** (MCP installed but not authenticated) โ proceed to **2.3 Guide authentication**
- **No Atlassian MCP tools found** โ log and fall through:
> **MCP not available:** No Atlassian MCP server installed.
> Install the Atlassian MCP plugin for Claude Code to enable direct Confluence access.
> Falling back to API (Layer 2).
### 2.2 Fetch via MCP
Use the Atlassian MCP tools to fetch the page content. The specific tool depends on what the MCP exposes after authentication (typically a page read or content retrieval tool).
Call the MCP tool passing the page ID or URL. The MCP returns the page content directly.
- **Success** โ convert content to Markdown if not already, proceed to **Output Contract**
- **Error** โ log the error and fall through to Layer 2:
> **MCP fetch failed:** {error message}.
> Falling back to API (Layer 2).
### 2.3 Guide authentication
If the MCP is installed but not authenticated, guide the user:
> **MCP not authenticated:** The Atlassian MCP server is installed but requires authentication.
> Run `mcp__plugin_atlassian_atlassian__authenticate` to start the OAuth flow, then complete it in your browser.
> After authentication, Confluence pages can be fetched directly via MCP.
Ask the user: "Would you like to authenticate the Atlassian MCP now, or skip to API fallback (Layer 2)?"
- **User wants to authenticate** โ invoke `mcp__plugin_atlassian_atlassian__authenticate`, wait for the user to complete the OAuth flow, then retry **2.2 Fetch via MCP**
- **User declines** โ log "User declined MCP authentication, falling to Layer 2" โ continue to Step 3
---
## Step 3 โ Layer 2: API (REST)
Uses the Confluence REST API with Basic Auth (API token + email).