{"slug":"investigate-to-confluence","title":"investigate-to-confluence","summary":"Runs an evidence-based investigation of a bug, failure, or unexpected behavior with investigate and publishes the resulting investigation report to a user-specified Confluence location. Use when the user wants something debugged, diagnosed, or root-caused AND the findings posted ","platform":"Claude","tags":[],"authorName":"LLM Mart","authorSlug":"llm-mart","score":0,"source":"github","price":null,"verified":false,"createdAt":"2026-10-15T13:12:01.418324Z","repo":{"url":"https://github.com/testdouble/han","stars":303,"forks":24,"license":"MIT","updatedAt":"2026-10-14T20:22:28Z"},"bodyHtml":"<hr>\n<h2>name: investigate-to-confluence\ndescription: &gt;\nRuns an evidence-based investigation of a bug, failure, or unexpected behavior with investigate and publishes the\nresulting investigation report to a user-specified Confluence location. Use when the user wants something debugged,\ndiagnosed, or root-caused AND the findings posted to a Confluence space or page. Requires a configured Atlassian MCP\nserver. Does not investigate to a local file only — use investigate. Does not publish an arbitrary existing markdown\nfile — use markdown-to-confluence. Does not document an already-understood feature to Confluence — use\nproject-documentation-to-confluence. Does not plan or specify a new feature to Confluence — use\nplan-a-feature-to-confluence. Does not publish to Jira — use work-items-to-jira.\nargument-hint:\n\"[symptom or question to investigate] [confluence location: page URL or space + parent] [--mode draft|live (default\ndraft)]\"\nallowed-tools:\nRead, Glob, Grep, Skill, Agent, 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>Investigate to Confluence</h1>\n<p>This skill runs an evidence-based investigation with the core <code>han-coding:investigate</code> skill, lets the user review the\nresulting report, and then publishes it to a Confluence location that <strong>the user must specify</strong>. It is a thin\norchestrator: the investigation work belongs to <code>han-coding:investigate</code>, and the publishing work belongs to\n<code>han-atlassian:markdown-to-confluence</code>. This skill only validates its inputs, runs the investigation to a temporary\nfile, gets the user's review and publish choice, and hands the file to the publisher.</p>\n<p><code>han-coding:investigate</code> produces a <strong>single</strong> report file (the investigation plan: problem statement, evidence summary,\nroot cause analysis, planned fix, validation results, and summary). It does not produce companion artifacts, so this\nskill publishes that one file as a single Confluence page — the single-page sibling of\n<code>han-atlassian:project-documentation-to-confluence</code>, not the parent-plus-children tree of\n<code>han-atlassian:plan-a-feature-to-confluence</code>.</p>\n<p>The five 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 on an investigation:</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 a local-only investigation, point them\nat <code>han-coding:investigate</code>. This preflight runs first so a missing server fails before any investigation work\nbegins.</li>\n<li><strong>A symptom or question to investigate.</strong> Confirm the request names a bug, failure, error, integration, or unexpected\nbehavior to investigate. This — together with any relevant conversation context — is forwarded to\n<code>han-coding:investigate</code> verbatim in Step 2. If the request is too thin to start, let <code>han-coding:investigate</code> run\nits own investigation rather than pre-empting 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 a child under it), or a <strong>space</strong> (key or name) plus an optional <strong>parent page</strong>. If none was\nprovided, ask for one with <code>AskUserQuestion</code>, explaining plainly that the skill needs an exact destination because it\ndoes not search Confluence. Do not resolve the page tree here — only confirm a location was given. Carry it through\nto Step 5; <code>han-atlassian:markdown-to-confluence</code> resolves it.</li>\n</ol>\n<h2>Step 2: Produce the Investigation Report to a Temporary File</h2>\n<p>Invoke the <code>han-coding:investigate</code> skill with the <strong>Skill</strong> tool, <strong>forwarding all provided context</strong> verbatim: the\nsymptom or question, any known reproduction steps or error messages, any suspected entry points, and the relevant\nconversation context. Do not summarize, trim, or reinterpret the user's context; pass it through so\n<code>han-coding:investigate</code> runs exactly as it would on its own (parallel investigators, conditional specialist analysts,\nadversarial validation, and the final report) — <strong>except</strong> add two explicit instructions:</p>\n<ul>\n<li>It must write the resulting investigation report to a file under <code>/tmp/</code> (for example <code>/tmp/&lt;symptom-slug&gt;.md</code>) rather\nthan into the project's docs or plans directory. This keeps the working report out of the repo until the user decides\nto publish it, and because the path is explicit input it outranks any <code>output-directory</code> the project or personal\n<code>.han/config.md</code> supplies (see <a href=\"../../references/config-rule.md\">../../references/config-rule.md</a>).</li>\n<li>It must <strong>stop after producing the report</strong>. <code>han-coding:investigate</code> normally ends by presenting the plan for\napproval and can trigger the fix's implementation on approval; this skill wants the report only, so instruct it not to\nimplement the fix or change any code — this skill publishes findings, it does not ship them.</li>\n</ul>\n<p>Let <code>han-coding:investigate</code> complete its full investigation process. <strong>Capture the exact <code>/tmp/</code> file path it wrote.</strong>\nThat markdown file is the source content for Confluence. Proceed to Step 3 once it finishes.</p>\n<h2>Step 3: Show the File for Review</h2>\n<p>Tell the user the exact <code>/tmp/</code> path of the generated investigation report so they can open and review it before\ndeciding whether to publish. State plainly that the content has not been published anywhere yet, and that no code was\nchanged.</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 path</strong> and the <strong>Confluence destination</strong> the user provided.\nOffer three options, listing the draft option first as the recommended default:</p>\n<ul>\n<li><strong>\"Yes, save it as a draft to edit later (recommended)\"</strong> — published as an unpublished Confluence draft for the user\nto review, edit, and publish themselves. This is the default. (Publish mode: <strong>draft</strong>.)</li>\n<li><strong>\"Yes, publish it live now\"</strong> — the page goes live immediately. (Publish mode: <strong>live</strong>.)</li>\n<li><strong>\"No, keep it 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> report path and state clearly that nothing was published\nto Confluence. Otherwise, record the chosen publish mode (draft or live) for Step 5.</p>\n<h2>Step 5: Publish with markdown-to-confluence</h2>\n<p>Invoke the <code>han-atlassian:markdown-to-confluence</code> skill with the <strong>Skill</strong> tool, forwarding:</p>\n<ul>\n<li>the <strong><code>/tmp/</code> markdown file path</strong> captured in Step 2,</li>\n<li>the <strong>Confluence destination</strong> the user provided in Step 1 (the page URL, or the space plus optional parent page),\npassed through verbatim, and</li>\n<li>the <strong>publish mode</strong> the user chose in Step 4 (<code>draft</code> or <code>live</code>), stated explicitly so\n<code>han-atlassian:markdown-to-confluence</code> does not re-ask.</li>\n</ul>\n<p><code>han-atlassian:markdown-to-confluence</code> resolves the location, reads the file, creates or updates the page in the chosen\nmode, handles Mermaid diagrams, and reports the resulting page URL. Relay its result to the user: the created or updated\npage's URL and whether it went live or was saved as a draft. If publishing fails, report the error and confirm the\n<code>/tmp/</code> markdown file is unchanged and intact.</p>\n<h2>Verification</h2>\n<ol>\n<li><strong>Inputs validated:</strong> the Atlassian server was reachable, a symptom or question to investigate was present, and a\nConfluence location was provided — or the skill stopped before doing any work.</li>\n<li><strong>Report produced to /tmp:</strong> <code>han-coding:investigate</code> ran with the full forwarded context, wrote the investigation\nreport to a <code>/tmp/</code> file whose path was captured, and did not implement the fix or change any code.</li>\n<li><strong>User reviewed:</strong> the <code>/tmp/</code> path was 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>Publish delegated and reported:</strong> when the user chose to publish, <code>han-atlassian:markdown-to-confluence</code> created or\nupdated the page in the chosen mode and its URL was relayed; when the user declined, only the <code>/tmp/</code> report exists.</li>\n</ol>\n","files":[{"path":"SKILL.md","sizeBytes":9386,"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:51.886807Z","sha256":"481FECC34090D3FE981A436A481FA237B590DA2D96A99959D9E80D9AB6C9FC77","sizeBytes":3731},"review":null,"source":{"repositoryUrl":"https://github.com/testdouble/han","path":"han-atlassian/skills/investigate-to-confluence","license":"MIT","commit":"abba73a773528905a8f3d15956029394746e5c7f","subtreeSha":"AD8302714B14FDB6FCA32ADE784E9C7702A29D488189D042913DC8F4C74938F5","lastSyncedAt":"2026-10-15T13:11:53.672149Z"},"reviewedAt":"2026-10-15T13:14:40.888036Z","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/investigate-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"}]}