{"slug":"plan-a-feature-to-confluence","title":"plan-a-feature-to-confluence","summary":"Builds a feature specification from scratch with plan-a-feature and publishes it to a user-specified Confluence location, posting the spec as a parent page and each companion artifact (decision log, team findings, technical notes) as a child page beneath it. Use when the user wan","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-15T13:12:01.824867Z","repo":{"url":"https://github.com/testdouble/han","stars":303,"forks":24,"license":"MIT","updatedAt":"2026-10-14T20:22:28Z"},"bodyHtml":"<hr>\n<h2>name: plan-a-feature-to-confluence\ndescription: &gt;\nBuilds a feature specification from scratch with plan-a-feature and publishes it to a user-specified Confluence\nlocation, posting the spec as a parent page and each companion artifact (decision log, team findings, technical notes)\nas a child page beneath it. Use when the user wants a new feature planned, designed, scoped, or specified AND posted\nto a Confluence space or page. Requires a configured Atlassian MCP server. Does not plan to local files only — use\nplan-a-feature. Does not publish an arbitrary existing markdown file — use markdown-to-confluence. Does not refine or\nstress-test an existing plan — use iterative-plan-review. Does not document already-built features to Confluence — use\nproject-documentation-to-confluence.\narguments: size\nargument-hint:\n\"[size: small | medium | large] [feature description] [confluence location: page URL or space + parent] [--mode\ndraft|live (default draft)]\"\nallowed-tools:\nRead, Write, Edit, Glob, Grep, Skill, Bash(find *), mcp__claude_ai_Atlassian__getAccessibleAtlassianResources,\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>Plan a Feature to Confluence</h1>\n<p>This skill builds a feature specification with the core <code>han-planning:plan-a-feature</code> skill, lets the user review the\nresult, and then publishes it to a Confluence location that <strong>the user must specify</strong>. It is a thin orchestrator: the\nplanning work belongs to <code>han-planning:plan-a-feature</code>, and the publishing work belongs to\n<code>han-atlassian:markdown-to-confluence</code>. This skill only validates its inputs, runs the planning skill to a temporary\nfolder, gets the user's review and publish choice, and hands each file to the publisher.</p>\n<p><code>han-planning:plan-a-feature</code> produces a small <strong>set</strong> of files — the primary <code>feature-specification.md</code> plus companion\nartifacts under <code>artifacts/</code> (the decision log, the team findings, and a lazily-created technical-notes file). This\nskill publishes the <strong>spec as a parent page</strong> and each companion artifact as a <strong>child page</strong> beneath it, so the whole\nplan lands in Confluence as one small page tree. The files cross-reference each other with relative links that do not\nresolve once each file is its own Confluence page. Because this skill decides every page's title up front, it rewrites\nthose cross-file links into Confluence <strong>title-based page-link macros</strong> (the\n<code>&lt;ac:link&gt;&lt;ri:page ri:content-title=\"...\"/&gt;…&lt;/ac:link&gt;</code> form; Step 5 gives the exact macro to emit, link body and all)\nbefore creating any page — these resolve by title at view time, so no page URL or ID has to exist first. That collapses\npublishing to a <strong>single create pass</strong>: there is no separate relink-and-update pass, and each page is created exactly\nonce.</p>\n<p>The six steps below are the whole skill. It does not resolve Confluence pages or call the Confluence MCP create/update\ntools itself; <code>han-atlassian:markdown-to-confluence</code> owns all of that.</p>\n<h2>Step 1: Validate Inputs</h2>\n<p>Confirm the skill has everything it needs before spending effort producing a plan:</p>\n<ol>\n<li><strong>Atlassian MCP reachable (hard requirement).</strong> Call <code>mcp__claude_ai_Atlassian__getAccessibleAtlassianResources</code> to\nconfirm the server is connected and retrieve the cloud ID(s). If the tool is not available, the call errors, or it\nreturns no accessible resources (typically an authentication or configuration problem), <strong>stop immediately</strong>. Tell\nthe user this skill requires the Atlassian MCP server to be installed, configured, and authenticated, and that they\ncan re-run it once it is connected. Do not fall back to a local-only run; for local-only planning, point them at\n<code>han-planning:plan-a-feature</code>. This preflight runs first so a missing server fails before any planning work begins.</li>\n<li><strong>A feature to plan.</strong> Confirm the request names a feature, capability, or system behavior to specify. This —\ntogether with the <code>size</code> argument and any relevant conversation context — is forwarded to\n<code>han-planning:plan-a-feature</code> verbatim in Step 2. If the request is too thin to start, let\n<code>han-planning:plan-a-feature</code> run its own interview; do not pre-empt it here.</li>\n<li><strong>A Confluence destination.</strong> Confirm the request provides a target location: a <strong>Confluence page URL</strong> (to update\nthat page, or create the spec as a child under it), or a <strong>space</strong> (key or name) plus an optional <strong>parent page</strong>. If\nnone was provided, ask for one with <code>AskUserQuestion</code>, explaining plainly that the skill needs an exact destination\nbecause it does not search Confluence. Do not resolve the page tree here — only confirm a location was given. Carry\nit through to Step 5; <code>han-atlassian:markdown-to-confluence</code> resolves it.</li>\n</ol>\n<h2>Step 2: Produce the Plan to a Temporary Folder</h2>\n<p>Invoke the <code>han-planning:plan-a-feature</code> skill with the <strong>Skill</strong> tool, <strong>forwarding all provided context</strong> verbatim:\nthe <code>size</code> argument (if the user passed <code>small</code>, <code>medium</code>, or <code>large</code>), the feature description, any known constraints\nor entry points, and the relevant conversation context. Do not summarize, trim, or reinterpret the user's context; pass\nit through so <code>han-planning:plan-a-feature</code> runs exactly as it would on its own — interview, review team, finding\nresolution, and plan-synthesizer synthesis included — <strong>except</strong> add one explicit instruction: it must write its output\nfolder under <code>/tmp/</code> (for example <code>/tmp/&lt;feature-slug&gt;/</code>) rather than into the repo's docs directory, and it should not\nprompt the user to choose or confirm an output location, because this skill owns that decision. This keeps the working\nplan out of the repo until the user decides to publish it, and because the path is explicit input it outranks any\n<code>output-directory</code> the project or personal <code>.han/config.md</code> supplies (see\n<a href=\"../../references/config-rule.md\">../../references/config-rule.md</a>).</p>\n<p>Let <code>han-planning:plan-a-feature</code> complete its full process. <strong>Capture the exact <code>/tmp/</code> paths of every file it wrote:</strong></p>\n<ul>\n<li><code>/tmp/&lt;feature-slug&gt;/feature-specification.md</code> — the primary spec (always written).</li>\n<li><code>/tmp/&lt;feature-slug&gt;/artifacts/decision-log.md</code> — the decision history (always written).</li>\n<li><code>/tmp/&lt;feature-slug&gt;/artifacts/team-findings.md</code> — the review-team findings (always written).</li>\n<li><code>/tmp/&lt;feature-slug&gt;/artifacts/feature-technical-notes.md</code> — load-bearing mechanics. <strong>Lazily created — only present\nif at least one technical note qualified.</strong> Confirm whether it exists before relying on it.</li>\n</ul>\n<p>Proceed to Step 3 once it finishes.</p>\n<h2>Step 3: Show the Files for Review</h2>\n<p>Tell the user the exact <code>/tmp/</code> paths of every generated file — the spec and each companion artifact that was actually\nwritten (the technical-notes file only if it exists) — so they can open and review them before deciding whether to\npublish. State plainly that nothing has been published anywhere yet.</p>\n<h2>Step 4: Confirm the Publish Choice</h2>\n<p>Publishing to Confluence puts the content where other people can see it, so require an explicit choice before posting.\nAsk with <code>AskUserQuestion</code>, restating the <strong><code>/tmp/</code> file paths</strong> and the <strong>Confluence destination</strong> the user provided,\nand making clear that publishing creates <strong>one parent page (the spec) plus one child page per companion artifact</strong>, and\nthat the cross-page links between them resolve <strong>by page title</strong> — so the published pages should not be renamed in\nConfluence afterward, or the inbound cross-links break. Offer three options, listing the draft option first as the\nrecommended default:</p>\n<ul>\n<li><strong>\"Yes, save them as drafts to edit later (recommended)\"</strong> — every page is published as an unpublished Confluence\ndraft for the user to review, edit, and publish themselves. This is the default. (Publish mode: <strong>draft</strong>.)</li>\n<li><strong>\"Yes, publish them live now\"</strong> — the pages go live immediately. (Publish mode: <strong>live</strong>.)</li>\n<li><strong>\"No, keep them local only\"</strong> — nothing is published.</li>\n</ul>\n<p>If the user keeps it local only, <strong>stop</strong>. Report the <code>/tmp/</code> folder path and state clearly that nothing was published\nto Confluence. Otherwise, record the chosen publish mode (draft or live) for Step 5. The chosen mode applies to every\npage in the tree.</p>\n<h2>Step 5: Rewrite Cross-Links to Title Macros, Then Publish the Tree</h2>\n<p>Publishing is a <strong>single create pass</strong>: rewrite the cross-file links into title-based page-link macros first, then\ncreate each page once with its final body. No second update pass is needed, because the macros resolve by title and do\nnot depend on any page URL or ID.</p>\n<p><strong>Decide every page's final title up front.</strong> The title is used in two places — as the page's create-title, and as the\n<code>ri:content-title</code> in every macro that links to that page — so pick each title once and reuse it in both, so they can\nnever drift apart:</p>\n<ul>\n<li><strong>Spec (the parent page):</strong> the feature name.</li>\n<li><strong>Decision log:</strong> <code>&lt;Feature Name&gt; — Decision Log</code>.</li>\n<li><strong>Team findings:</strong> <code>&lt;Feature Name&gt; — Team Findings</code>.</li>\n<li><strong>Technical notes</strong> (only if the file exists): <code>&lt;Feature Name&gt; — Technical Notes</code>.</li>\n</ul>\n<p>These titles must be <strong>distinct within the target space</strong> for the macros to resolve unambiguously. A <code>ri:content-title</code>\nmacro resolves against the <strong>whole space</strong>, not just this tree, so a title that collides with a page that already exists\nin the destination space is a real hazard: the link can resolve to the wrong page, and the create call may fail or be\nrejected for a duplicate title. The feature-name prefix keeps the four titles distinct from each other; pick a spec\ntitle specific enough that it is unlikely to already exist in the space, and if you have any signal that one does (for\nexample the user pointed at a page that already carries the feature name), choose a more specific title before\npublishing.</p>\n<ol>\n<li><p><strong>Rewrite cross-file links to title macros, leaving the <code>/tmp/</code> originals intact.</strong> Write the rewritten copies to a\ndedicated subfolder (for example <code>/tmp/&lt;feature-slug&gt;/.confluence-publish/</code>) so the originals the user reviewed in\nStep 3 keep their working local markdown links. For each file, read it once and rewrite <strong>only</strong> the cross-file\nlinks:</p>\n<ul>\n<li><p>Resolve each relative markdown link target against the directory of the file being rewritten. If it resolves to\n<strong>another file in the published set</strong>, replace the whole markdown link <code>[text](target#fragment)</code> with a Confluence\ntitle-based page-link macro pointing at that file's pre-decided title:</p>\n<pre><code>&lt;ac:link&gt;&lt;ri:page ri:content-title=\"TARGET PAGE TITLE\"/&gt;&lt;ac:plain-text-link-body&gt;&lt;![CDATA[text]]&gt;&lt;/ac:plain-text-link-body&gt;&lt;/ac:link&gt;\n</code></pre>\n<p>Omit <code>ri:space-key</code> — the whole tree lands in one space, so a same-space title reference resolves without it. Keep\nthe original link text inside the link body. If that text contains the sequence <code>]]&gt;</code>, it would close the <code>CDATA</code>\nsection early and produce malformed storage XML, so split it across two <code>CDATA</code> sections (<code>]]</code> in the first, <code>&gt;</code> in\nthe next) or drop the <code>CDATA</code> wrapper and XML-escape the text instead. Plain markdown emphasis in the link text\n(<code>**bold**</code>) is not rendered inside a plain-text link body; it posts as literal characters.</p>\n</li>\n<li><p><strong>Drop the <code>#fragment</code></strong> (the <code>#d4-...</code>, <code>#t3-...</code>, or section anchor). Confluence Cloud generates its own heading\nanchors with a scheme that does not match these slugs, so the link lands the reader at the <strong>top of the correct\npage</strong>, not the exact heading. (The macro form leaves the door open to add an explicit <code>ri:anchor</code> later if a\nspace's heading-anchor scheme is pinned down; do not emit anchors now.)</p>\n</li>\n<li><p>Leave every other link, and all other content, exactly as written. Do not touch links that point outside the\npublished set (external URLs, code references).</p>\n</li>\n</ul>\n</li>\n<li><p><strong>Publish the tree in one create pass.</strong> Use the <strong>Skill</strong> tool for every call, and apply the publish mode the user\nchose in Step 4 to all of them — state it explicitly so <code>han-atlassian:markdown-to-confluence</code> does not re-ask.</p>\n<ul>\n<li><strong>Publish the spec (the parent page) first</strong>, from its rewritten copy. Invoke\n<code>han-atlassian:markdown-to-confluence</code>, forwarding the rewritten spec copy's path, the <strong>Confluence destination</strong>\nthe user provided in Step 1 (passed through verbatim), the <strong>publish mode</strong> from Step 4, and the <strong>spec title</strong>\ndecided above. <strong>Capture the resulting spec page's URL and page ID</strong> — the parent for the artifact pages, and\nneeded for the final report.</li>\n<li><strong>Publish each existing artifact as a child of the spec page</strong>, from its rewritten copy. For each artifact file\nthat exists (<code>decision-log.md</code>, <code>team-findings.md</code>, and <code>feature-technical-notes.md</code> only if it was created),\ninvoke <code>han-atlassian:markdown-to-confluence</code> again, forwarding the rewritten artifact copy's path, the <strong>spec\npage's URL</strong> as the destination with the intent to <strong>create a new child page under it</strong> (state this explicitly so\nthe publisher does not ask whether to update the spec page), the same <strong>publish mode</strong>, and the artifact's\n<strong>pre-decided title</strong>. Publish the artifacts one at a time so each create resolves against the same parent.</li>\n</ul>\n<p><code>han-atlassian:markdown-to-confluence</code> owns location resolution, the create call, and Mermaid handling for each file.\nBecause every body already carries its final title-macro links, each page is created exactly once — there is no\nupdate pass.</p>\n</li>\n</ol>\n<p><strong>Mermaid still posts as source.</strong> As <code>han-atlassian:markdown-to-confluence</code> reports, Mermaid diagrams publish as fenced\ncode blocks, not rendered diagrams, unless the space has a Mermaid macro. This is not something to silently fix.</p>\n<p>Relay the result to the user: the spec parent page's URL, every artifact child page's URL, whether the tree went live or\nwas saved as drafts, and the caveats: cross-page links resolve <strong>by page title</strong> and land at the <strong>top</strong> of the target\npage (heading-level anchors are not preserved); because they resolve by title, <strong>renaming</strong> a published page in\nConfluence may break inbound cross-page links; and the Mermaid note. If any create fails partway through the tree,\nreport which file failed and its error, and note which pages were already created. Warn the user that those\nalready-created pages carry title-macro links pointing at the pages that did not get created, so those links dangle\nuntil the missing pages exist under their intended titles — and that simply re-running the whole skill would re-create\nthe pages that already succeeded, producing duplicate-title pages that break title resolution for the tree. Recommend\nthey create the missing page(s) by hand under the intended titles, or delete the partial tree and re-publish from clean.\nConfirm the <code>/tmp/</code> originals are unchanged and intact either way.</p>\n<h2>Step 6: Verification</h2>\n<ol>\n<li><strong>Inputs validated:</strong> the Atlassian server was reachable, a feature to plan was present, and a Confluence location\nwas provided — or the skill stopped before doing any work.</li>\n<li><strong>Plan produced to /tmp:</strong> <code>han-planning:plan-a-feature</code> ran with the full forwarded context and wrote its files\nunder a <code>/tmp/</code> folder whose paths were captured, including whether the lazily-created technical-notes file exists.</li>\n<li><strong>User reviewed:</strong> the <code>/tmp/</code> paths were shown to the user before any publish.</li>\n<li><strong>Explicit choice obtained:</strong> the user chose draft, live, or local-only.</li>\n<li><strong>Tree published in a single pass:</strong> when the user chose to publish, titles were decided up front, cross-file links\nwere rewritten into title-based page-link macros in copies under <code>.confluence-publish/</code> (fragments dropped, <code>/tmp/</code>\noriginals untouched), the spec was posted as the parent page and each existing companion artifact as a child page in\nthe chosen mode, and each page was created exactly once with its URL captured.</li>\n<li><strong>Reported:</strong> every page URL was relayed with the publish mode, the resolve-by-title and land-at-page-top caveat, the\nrename caveat, and the Mermaid note; when the user declined, only the <code>/tmp/</code> files exist.</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":16690,"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.884154Z","sha256":"3ABB7A2D0457564E0E998F3D45B4B32FE441AF569255E16073620FE7F070FB35","sizeBytes":6415},"review":null,"source":{"repositoryUrl":"https://github.com/testdouble/han","path":"han-atlassian/skills/plan-a-feature-to-confluence","license":"MIT","commit":"abba73a773528905a8f3d15956029394746e5c7f","subtreeSha":"C255690A3397B290AC09EFBCA172AC4EEDEC5639C793BCD032A734A9D75F9A26","lastSyncedAt":"2026-10-15T13:11:53.672149Z"},"reviewedAt":"2026-10-15T13:14:41.133152Z","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/plan-a-feature-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"}]}