confluence-to-markdown

confluence-to-markdown is a skill for Claude Code from iurykrieger/claude-bedrock. It costs 71 tokens per session (2,832 once invoked), scanned A, a copy of confluence-to-markdown, MIT.

An internal tool for fetching pages from Confluence, a workplace wiki and documentation system, and converting them to Markdown, a plain-text document format. It is designed to support other workflows rather than direct use.

In plain words
What is it for?
Use it behind workflows that learn from or synchronize Confluence pages. It can retrieve pages through an Atlassian connection, an API, or a browser-based fallback.
Why use it?
It gives connected tools a consistent way to retrieve Confluence content when one access method is unavailable. It is not intended as a standalone user feature.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions Claude Code.

Part of the claude-bedrock plugin — 10 skills, 1 hook shipped together

Good fit Use it behind workflows that learn from or synchronize Confluence pages. It can retrieve pages through an Atlassian connection, an API, or a browser-based fallback.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/iurykrieger/claude-bedrock/confluence-to-markdown
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add iurykrieger/claude-bedrock --skill confluence-to-markdown
Clone the repo
git clone --depth 1 https://github.com/iurykrieger/claude-bedrock

Made for: Claude Code.

Or install claude-bedrock, the plugin that ships this one along with the rest of its 10 skills, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for confluence-to-markdown

README.md
[![agentmods](https://agentmods.dev/badge/skills/iurykrieger/claude-bedrock/confluence-to-markdown/github.svg)](https://agentmods.dev/skills/iurykrieger/claude-bedrock/confluence-to-markdown)
Your own site
<a href="https://agentmods.dev/skills/iurykrieger/claude-bedrock/confluence-to-markdown"><img src="https://agentmods.dev/badge/skills/iurykrieger/claude-bedrock/confluence-to-markdown/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for confluence-to-markdown

Your own site · 80×15
<a href="https://agentmods.dev/skills/iurykrieger/claude-bedrock/confluence-to-markdown"><img src="https://agentmods.dev/badge/skills/iurykrieger/claude-bedrock/confluence-to-markdown.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,832 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 97% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00071 $0.02832
Opus 5 $0.00036 $0.01416
Sonnet 5 $0.00014 $0.00566
Haiku 4.5 $0.00007 $0.00283

Measured 12d ago against content hash c398dad7b958, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

confluence-to-markdown scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/extract.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

If WebFetch cannot send the Authorization header, fall back to `curl` via Bash:
Origin

This is a copy

97% identical to confluence-to-markdown — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

skills/confluence-to-markdown/SKILL.md · 304 lines

How it starts

The opening of the file, as written. The whole thing — 304 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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>

Extract:

  • Base URL: https://<domain>.atlassian.net (everything before /wiki/...)
  • Page ID: the numeric ID from the URL path (segment after /pages/) or pageId query parameter
  • Full URL: the original URL as provided (needed for browser fallback)

Step 2 — Layer 1: MCP (Atlassian)

The preferred layer. Uses the plugin:atlassian:atlassian MCP server if installed and authenticated.

2.1 Check MCP availability

Use ToolSearch to check if Atlassian MCP tools are available:

ToolSearch(query: "atlassian confluence page", max_results: 5)

Evaluate the result:

  • 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).

Read the full file on GitHub · 304 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 304 lines · 71 tokens per session scan A c398dad7b958

Subscribe to this mod's changes

confluence-to-markdown is a skill published in the GitHub repository iurykrieger/claude-bedrock (100 stars, last pushed 4mo ago), licensed MIT. It adds 71 tokens to every session and 2,832 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). It is 97% identical to confluence-to-markdown, differing in 6 lines, and is treated as a copy.