ask
Adaptive vault reader skill. Receives a natural language question, uses graph.json as the primary index (Phase 2.0) before any glob/grep, then self-assesses…
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
$ npx -y skills add iurykrieger/claude-bedrock --skill confluence-to-markdown --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/confluence-to-markdownContext 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
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__*
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).
---
Parse the Confluence URL. Accept these formats:
Extract:
---
The preferred layer. Uses the `plugin:atlassian:atlassian` MCP server if installed and authenticated.
Use ToolSearch to check if Atlassian MCP tools are available:
ToolSearch(query: "atlassian confluence page", max_results: 5)
Evaluate the result:
> **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).
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.
> **MCP fetch failed:** {error message}. > Falling back to API (Layer 2).
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)?"
---
Uses the Confluence REST API with Basic Auth (API token + email).
echo "CONFLUENCE_API_TOKEN: ${CONFLUENCE_API_TOKEN:+set}" && echo "CONFLUENCE_USER_EMAIL: ${CONFLUENCE_USER_EMAIL:+set}"> **API not available:** `CONFLUENCE_API_TOKEN` or `CONFLUENCE_USER_EMAIL` environment variable is not set. > Generate an API token at https://id.atlassian.com/manage-profile/security/api-tokens and export both variables: > `export CONFLUENCE_API_TOKEN="your-token"` and `export CONFLUENCE_USER_EMAIL="your-email"`. > Falling back to Browser extraction (Layer 3).
echo -n "${CONFLUENCE_USER_EMAIL}:${CONFLUENCE_API_TOKEN}" | base64Use `WebFetch`:
WebFetch(
url: "{baseUrl}/wiki/api/v2/pages/{pageId}?body-format=storage",
headers: {
"Authorization": "Basic {base64_value}",
"Accept": "application/json"
}
)If WebFetch cannot send the Authorization header, fall back to `curl` via Bash:
curl -sL -H "Authorization: Basic {base64_value}" -H "Accept: application/json" \
"{baseUrl}/wiki/api/v2/pages/{pageId}?body-format=storage"The API returns JSON with:
Convert the storage format XHTML to Markdown using these rules:
| XHTML element | Markdown output | |---|---| | `<h1>` through `<h6>` | `#` through `######` | | `<p>` | Paragraph with blank line separation | | `<strong>`, `<b>` | `**text**` | | `<em>`, `<i>` | `*text*` | | `<s>`, `<del>` | `~~text~~` | | `<a href="...">` | `[text](url)` | | `<ul>` / `<ol>` / `<li>` | Markdown lists (respect nesting) | | `<table>` | Markdown table with `\|` separators and header row | | `<ac:structured-macro ac:name="code">` | Fenced code block with language from `<ac:parameter ac:name="language">` | | `<pre>` | Fenced code block | | `<code>` (inline) | `` `code` `` | | `<blockquote>` | `> text` | | `<hr>` | `---` | | Confluence macros (`<ac:*>`) with text | Extract text content | | Confluence macros with no text (images, drawio, attachments) |
Second Brain automation for Obsidian vaults — entity management, ingestion, compression, and sync via Claude Code skills
Adaptive vault reader skill. Receives a natural language question, uses graph.json as the primary index (Phase 2.0) before any glob/grep, then self-assesses…
Vault alignment engine. Detects and fixes 5 types of structural misalignments: broken backlinks, concept fragmentation, entity miscategorization, duplicated…
Internal fetcher module for Google Docs and Sheets. Fetches content via MCP (preferred, when available), Google API with bearer token or public URL export…
Read-only vault health diagnostic. Generates a report without modifying any files. Checks: graphify-out integrity, setup verification, orphan entities,…
Ingests an external data source into the Second Brain. Fetches content from Confluence, Google Docs, GitHub repositories, remote URLs, or any local file format…
Single write point for the vault. Centralizes entity detection, textual matching, entity creation/update, and bidirectional linking. Accepts structured input…