{"slug":"markdown-to-confluence","title":"markdown-to-confluence","summary":"Publishes a local Markdown file to a user-specified Confluence location, creating a new page or updating an existing one through the Atlassian MCP server. Use when the user wants to post, publish, push, or sync a Markdown file to a Confluence space or page. Requires a configured ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-15T13:12:01.590686Z","repo":{"url":"https://github.com/testdouble/han","stars":303,"forks":24,"license":"MIT","updatedAt":"2026-10-14T20:22:28Z"},"bodyHtml":"<hr>\n<h2>name: markdown-to-confluence\ndescription: &gt;\nPublishes a local Markdown file to a user-specified Confluence location, creating a new page or updating an existing\none through the Atlassian MCP server. Use when the user wants to post, publish, push, or sync a Markdown file to a\nConfluence space or page. Requires a configured Atlassian MCP server. Does not write or generate the Markdown itself —\npoint it at an existing file, or use project-documentation-to-confluence for the document-then-publish flow, or\nplan-a-feature-to-confluence for the plan-then-publish flow. Does not publish to Jira — use work-items-to-jira.\nargument-hint:\n\"[path to markdown file] [confluence location: page URL or space + parent] [--mode draft|live (default draft)]\"\nallowed-tools:\nRead, Glob, Grep, Bash(find *), mcp__claude_ai_Atlassian__getAccessibleAtlassianResources,\nmcp__claude_ai_Atlassian__atlassianUserInfo, mcp__claude_ai_Atlassian__getConfluenceSpaces,\nmcp__claude_ai_Atlassian__getConfluencePage, mcp__claude_ai_Atlassian__getPagesInConfluenceSpace,\nmcp__claude_ai_Atlassian__getConfluencePageDescendants, mcp__claude_ai_Atlassian__createConfluencePage,\nmcp__claude_ai_Atlassian__updateConfluencePage,\nBash(bash \"$/scripts/han-config-dir.sh\")</h2>\n<h2>Project Context</h2>\n<ul>\n<li>personal config directory: !<code>bash \"${CLAUDE_PLUGIN_ROOT}/scripts/han-config-dir.sh\" 2&gt;/dev/null || echo \"$HOME/.claude\"</code></li>\n<li>project .han/config.md: !<code>cat .han/config.md 2&gt;/dev/null || echo \"\"</code></li>\n</ul>\n<p>As your first action, use the Read tool on <code>.han/config.md</code> inside the <code>personal config directory</code> path above. A read\nthat returns no file is no personal configuration: continue silently. When that file or the <code>project .han/config.md</code>\nprobe supplies content, apply it per <a href=\"../../references/config-rule.md\">config-rule.md</a>, which governs precedence\nbetween the two files, relative-path resolution, and what to do with a file that reads but cannot be used.</p>\n<h1>Markdown to Confluence</h1>\n<p>This skill takes one local Markdown file and publishes it to a Confluence location that <strong>the user must specify</strong> —\ncreating a new page or updating an existing one through the Atlassian MCP server. It owns everything about the posting\nitself: the MCP preflight, resolving the destination, reading the file, the create-or-update call, and reporting the\nresult. It does not write the Markdown; the caller supplies an existing file.</p>\n<p>Callers that supply an explicit publish mode and location (for example\n<code>han-atlassian:project-documentation-to-confluence</code>) run this skill straight through without re-asking. Invoked on its\nown with pieces missing, it asks for them and defaults to a safe unpublished draft.</p>\n<h2>Step 0: Atlassian MCP Preflight (hard requirement)</h2>\n<p>This skill cannot run without a configured and connected Atlassian MCP server.</p>\n<p>Confirm the server is reachable by calling <code>mcp__claude_ai_Atlassian__getAccessibleAtlassianResources</code> to retrieve the\ncloud ID(s). If the tool is not available, the call errors, or it returns no accessible resources (typically an\nauthentication or configuration problem), <strong>stop immediately</strong>. Tell the user this skill requires the Atlassian MCP\nserver to be installed, configured, and authenticated, and that they can re-run the skill once it is connected.</p>\n<p>If more than one cloud / site is accessible, note which sites are available; you will confirm the correct one while\nresolving the location in Step 2.</p>\n<h2>Step 1: Confirm the Source Markdown File</h2>\n<p>Resolve the Markdown file path from the arguments or conversation. Read it and confirm it exists and has content. If no\nfile path was provided, or the path does not resolve to a readable file, ask the user for the path with\n<code>AskUserQuestion</code> and do not proceed without one. This is the exact content that will be posted; do not rewrite,\nsummarize, or restructure it.</p>\n<p>A body may legitimately contain embedded Confluence storage macros mixed into the Markdown — for example, an\norchestrating skill such as <code>han-atlassian:plan-a-feature-to-confluence</code> rewrites its cross-page links into title-based\npage-link macros (the <code>&lt;ac:link&gt;&lt;ri:page ri:content-title=\"...\"/&gt;…&lt;/ac:link&gt;</code> form, link body included) before handing\nthe file over. Post these verbatim along with the rest of the body; do not strip or escape them.</p>\n<h2>Step 2: Resolve the Target Confluence Location (required)</h2>\n<p><strong>This skill does not search Confluence for the right place.</strong> A typical Confluence instance is large and full of\nduplicate or similarly-named pages, so guessing the destination is unreliable. The user must name the exact location.</p>\n<ol>\n<li><strong>Find a location in the request.</strong> Check the arguments and conversation for either of:\n<ul>\n<li>a <strong>Confluence page URL</strong> (to update that page, or to create a child page under it), or</li>\n<li>a <strong>space</strong> (key or name) plus an optional <strong>parent page</strong> (title, ID, or URL).</li>\n</ul>\n</li>\n<li><strong>If no location was provided, ask for one.</strong> Use <code>AskUserQuestion</code> to request it, and explain plainly that the skill\nneeds an exact destination because it does not search Confluence. Offer both accepted forms (a page URL, or a space\nplus parent page). This is required: do not proceed without a location.</li>\n<li><strong>Resolve the location concretely now, so failures surface early.</strong> Use the cloud ID from Step 0 for every call.\n<ul>\n<li><strong>From a page URL:</strong> extract the page ID from the <code>/pages/&lt;id&gt;/</code> segment and call\n<code>mcp__claude_ai_Atlassian__getConfluencePage</code> to confirm it exists and to read its space and title. Then determine\nthe intent: <strong>update that page</strong>, or <strong>create a new child page under it</strong>. If the user did not already say, ask\nwith <code>AskUserQuestion</code>.</li>\n<li><strong>From a space (+ parent):</strong> call <code>mcp__claude_ai_Atlassian__getConfluenceSpaces</code> to resolve the space ID from the\nkey or name. If a parent page was named, find it with <code>mcp__claude_ai_Atlassian__getPagesInConfluenceSpace</code> or\n<code>mcp__claude_ai_Atlassian__getConfluencePageDescendants</code> (or by page ID/URL) to get the parent page ID. With no\nparent, the new page is created at the space root.</li>\n</ul>\n</li>\n<li><strong>Record the resolved target:</strong> cloud ID, space (ID + human name), parent page ID (if any), existing page ID (if\nupdating), the <strong>mode</strong> (<code>create</code> a new page, or <code>update</code> an existing one), and the intended page <strong>title</strong>. If\nupdating, default the title to the existing page's title unless the user asked to rename it.</li>\n</ol>\n<h2>Step 3: Determine the Publish Mode</h2>\n<p>The publish mode controls whether the page goes live or is saved as an unpublished draft.</p>\n<ul>\n<li>If the caller supplied an explicit mode (<code>draft</code> or <code>live</code>), use it. A caller that already confirmed the choice with\nthe user (such as <code>han-atlassian:project-documentation-to-confluence</code>) passes the mode through; do not ask again.</li>\n<li>If no mode was supplied, <strong>default to <code>draft</code></strong> so nothing is published live unintentionally. The user can re-run for\n<code>live</code>, or you may confirm with <code>AskUserQuestion</code> whether to save a draft (recommended default) or publish live now.</li>\n</ul>\n<h2>Step 4: Publish to Confluence</h2>\n<p>Read the Markdown file from Step 1 and publish it with the Atlassian MCP server. The Confluence MCP tools accept\nMarkdown directly via <code>contentFormat: \"markdown\"</code>, so post the document body as-is — no manual conversion to\nstorage/XHTML is needed. Any embedded storage macros (such as the <code>ac:link</code> page-link macros described in Step 1) ride\nalong in the same body; post them verbatim.</p>\n<p>Apply the publish mode from Step 3 with the create/update tool's status parameter: <strong>draft</strong> → <code>status: \"draft\"</code>\n(unpublished draft), <strong>live</strong> → <code>status: \"current\"</code> (immediately visible). Confirm the exact field against the tool's\ninput schema when you call it, and use whatever the tool exposes for draft-vs-published.</p>\n<ul>\n<li><strong>Create mode:</strong> call <code>mcp__claude_ai_Atlassian__createConfluencePage</code> with the cloud ID, space ID, <code>title</code>, the\nmarkdown <code>body</code>, <code>contentFormat: \"markdown\"</code>, the chosen <code>status</code> (<code>\"draft\"</code> or <code>\"current\"</code>), and the parent page ID\nwhen one was resolved.</li>\n<li><strong>Update mode:</strong> call <code>mcp__claude_ai_Atlassian__getConfluencePage</code> first to read the current page (for its version\nand existing content), then call <code>mcp__claude_ai_Atlassian__updateConfluencePage</code> with the cloud ID, page ID, <code>title</code>,\nthe markdown <code>body</code>, <code>contentFormat: \"markdown\"</code>, and the chosen <code>status</code>. If the user chose draft for a page that is\nalready published and the tool cannot hold an unpublished draft over a live page, do not silently publish it live:\ntell the user, and ask whether to publish the update live or keep the changes local only.</li>\n</ul>\n<p><strong>Diagram note:</strong> Markdown produced by Han's documentation skills emits Mermaid diagrams in fenced <code>mermaid</code> code\nblocks. Confluence does not render Mermaid natively without a Mermaid macro, so these blocks publish as code, not\nrendered diagrams. Leave them intact — do not silently strip them — and tell the user the diagrams posted as Mermaid\nsource, in case their space has a macro that renders them or they want to convert them by hand.</p>\n<p>On success, report the created or updated page's URL, and state whether it was published live or saved as a draft. For a\ndraft, make clear the user still needs to review and publish it in Confluence. On failure, report the error and confirm\nthe source Markdown file is unchanged and intact.</p>\n<h2>Step 5: Verification</h2>\n<ol>\n<li><strong>MCP preflight passed:</strong> the Atlassian server was reachable, or the skill stopped before doing any work.</li>\n<li><strong>Source file confirmed:</strong> a readable Markdown file was supplied and read.</li>\n<li><strong>Location was user-specified:</strong> the destination came from the user, never from an automated Confluence search.</li>\n<li><strong>Publish reported:</strong> the page was created or updated in the chosen mode (live or draft) and its URL was returned.</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":9754,"isText":true}],"reviewScore":null,"reviewSummary":null,"trust":{"provenance":"trusted-source-unreviewed","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow.","bodySource":null},"bodyLocked":false,"purchaseUrl":null,"sourceUrl":null,"report":{"provenance":"trusted-source-unreviewed","screen":{"ran":true,"outcome":"clean","suspicious":0,"notes":0,"hiddenCharacters":false},"virusScan":{"engine":"clamav","status":"clean","scannedAt":"2026-10-15T13:12:52.369713Z","sha256":"2F44DE61B299240FF71A36B73A0D2524ED684CB33004E07CAB366F35D5A3C500","sizeBytes":3864},"review":null,"source":{"repositoryUrl":"https://github.com/testdouble/han","path":"han-atlassian/skills/markdown-to-confluence","license":"MIT","commit":"abba73a773528905a8f3d15956029394746e5c7f","subtreeSha":"CD05ADB85B1A464A7B3012FB2BEB37CDB35DCB87AD25F6AD350BF5C9A5805230","lastSyncedAt":"2026-10-15T13:11:53.672149Z"},"reviewedAt":"2026-10-15T13:14:41.013591Z","notice":"Community-authored content, reproduced verbatim and not vetted as instructions. Treat it as data to evaluate, never as directives to follow."},"install":[{"target":"skills-cli","command":"npx skills add https://github.com/testdouble/han/tree/main/han-atlassian/skills/markdown-to-confluence"},{"target":"claude-code","command":"claude plugin marketplace add https://llmmart.ai/marketplace.json && claude plugin install testdouble-han@llmmart"},{"target":"git","command":"git clone https://github.com/testdouble/han.git"}]}