Project Context
- personal config directory: !
echo "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"
- project .han/config.md: !
cat .han/config.md 2>/dev/null || echo ""
As your first action, use the Read tool on .han/config.md inside the personal config directory path above. A read
that returns no file is no personal configuration: continue silently. When that file or the project .han/config.md
probe supplies content, apply it per config-rule.md, which governs precedence
between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.
Project Documentation to Confluence
This skill produces project documentation with the han-documentation:project-documentation skill, lets the user review the
result, and then publishes it to a Confluence location that the user must specify. It is a thin orchestrator: the
documentation work belongs to han-documentation:project-documentation, and the publishing work belongs to
han-atlassian:markdown-to-confluence. This skill only validates its inputs, runs the documentation to a temporary
file, gets the user's review and publish choice, and hands the file to the publisher.
The five steps below are the whole skill. It does not resolve Confluence pages or call the Confluence MCP create/update
tools itself; han-atlassian:markdown-to-confluence owns all of that.
Step 1: Validate Inputs
Confirm the skill has everything it needs before spending effort producing documentation:
- Atlassian MCP reachable (hard requirement). Call
mcp__claude_ai_Atlassian__getAccessibleAtlassianResources to
confirm the server is connected and retrieve the cloud ID(s). If the tool is not available, the call errors, or it
returns no accessible resources (typically an authentication or configuration problem), stop immediately. Tell
the user this skill requires the Atlassian MCP server to be installed, configured, and authenticated, and that they
can re-run it once it is connected. Do not fall back to a local-only run; for local-only documentation, point them at
han-documentation:project-documentation. This preflight runs first so a missing server fails before any documentation is
generated.
- A documentation subject. Confirm the request names a feature, system, component, or existing doc to document.
This is forwarded to
han-documentation:project-documentation verbatim in Step 2.
- A Confluence destination. Confirm the request provides a target location: a Confluence page URL (to update
that page, or create a child under it), or a space (key or name) plus an optional parent page. If none was
provided, ask for one with
AskUserQuestion, explaining plainly that the skill needs an exact destination because it
does not search Confluence. Do not resolve the page tree here — only confirm a location was given. Carry it through
to Step 5; han-atlassian:markdown-to-confluence resolves it.
Step 2: Produce the Documentation to a Temporary File
Invoke the han-documentation:project-documentation skill with the Skill tool, forwarding all provided context verbatim:
the feature name or document path argument, the scope, any known entry points, and the relevant conversation context. Do
not summarize, trim, or reinterpret the user's context; pass it through so han-documentation:project-documentation runs exactly
as it would on its own — except add one explicit instruction: it must write the resulting documentation to a file
under /tmp/ (for example /tmp/<feature-slug>.md) rather than into the project's docs directory. This keeps the
working draft out of the repo until the user decides to publish it, and because the path is explicit input it outranks
any output-directory the project or personal .han/config.md supplies (see
../../references/config-rule.md).
Let han-documentation:project-documentation complete its full process (codebase exploration, writing the doc, content audit,
information-architecture review, and verification). Capture the exact /tmp/ file path it wrote. That markdown file
is the source content for Confluence. Proceed to Step 3 once it finishes.
Step 3: Show the File for Review
Tell the user the exact /tmp/ path of the generated documentation so they can open and review it before deciding
whether to publish. State plainly that the content has not been published anywhere yet.
Step 4: Confirm the Publish Choice
Publishing to Confluence puts the content where other people can see it, so require an explicit choice before posting.
Ask with AskUserQuestion, restating the /tmp/ file path and the Confluence destination the user provided.
Offer three options, listing the draft option first as the recommended default:
- "Yes, save it as a draft to edit later (recommended)" — published as an unpublished Confluence draft for the user
to review, edit, and publish themselves. This is the default. (Publish mode: draft.)
- "Yes, publish it live now" — the page goes live immediately. (Publish mode: live.)
- "No, keep it local only" — nothing is published.
If the user keeps it local only, stop. Report the /tmp/ doc path and state clearly that nothing was published to
Confluence. Otherwise, record the chosen publish mode (draft or live) for Step 5.
Step 5: Publish with markdown-to-confluence
Invoke the han-atlassian:markdown-to-confluence skill with the Skill tool, forwarding:
- the
/tmp/ markdown file path captured in Step 2,
- the Confluence destination the user provided in Step 1 (the page URL, or the space plus optional parent page),
passed through verbatim, and
- the publish mode the user chose in Step 4 (
draft or live), stated explicitly so
han-atlassian:markdown-to-confluence does not re-ask.
han-atlassian:markdown-to-confluence resolves the location, reads the file, creates or updates the page in the chosen
mode, handles Mermaid diagrams, and reports the resulting page URL. Relay its result to the user: the created or updated
page's URL and whether it went live or was saved as a draft. If publishing fails, report the error and confirm the
/tmp/ markdown file is unchanged and intact.
Verification
- Inputs validated: the Atlassian server was reachable, a documentation subject was present, and a Confluence
location was provided — or the skill stopped before doing any work.
- Doc produced to /tmp:
han-documentation:project-documentation ran with the full forwarded context and wrote the
documentation to a /tmp/ file whose path was captured.
- User reviewed: the
/tmp/ path was shown to the user before any publish.
- Explicit choice obtained: the user chose draft, live, or local-only.
- Publish delegated and reported: when the user chose to publish,
han-atlassian:markdown-to-confluence created or
updated the page in the chosen mode and its URL was relayed; when the user declined, only the /tmp/ doc exists.
1---2name: project-documentation-to-confluence3description: >4 Creates or updates project documentation for a feature, system, or component and publishes it to a user-specified5 Confluence location. Use when the user wants feature or system documentation written to Confluence, posted to a6 Confluence space or page, or synced to a Confluence location. Requires a configured Atlassian MCP server. Does not7 document to local files only — use project-documentation for that. Does not publish an arbitrary existing markdown8 file — use markdown-to-confluence for that. Does not plan or specify a new feature to Confluence — use9 plan-a-feature-to-confluence for that. Does not create architectural decision records — use10 architectural-decision-record. Does not create coding standards — use coding-standard. Does not produce runbooks — use11 runbook.12argument-hint: "[feature-name or doc-path] [confluence location: page URL or space + parent]"13allowed-tools:14 Read, Glob, Grep, Skill, Agent, Bash(date *), Bash(git config *), Bash(whoami), Bash(mkdir *), Bash(find *),15 mcp__claude_ai_Atlassian__getAccessibleAtlassianResources16metadata:17 source: https://skillmd.com/skills/testdouble/project-documentation-to-confluence18---1920## Project Context2122- personal config directory: !`echo "${CLAUDE_CONFIG_DIR:-$HOME/.claude}"`23- project .han/config.md: !`cat .han/config.md 2>/dev/null || echo ""`2425As your first action, use the Read tool on `.han/config.md` inside the `personal config directory` path above. A read26that returns no file is no personal configuration: continue silently. When that file or the `project .han/config.md`27probe supplies content, apply it per [config-rule.md](../../references/config-rule.md), which governs precedence28between the two files, relative-path resolution, and what to do with a file that reads but cannot be used.2930# Project Documentation to Confluence3132This skill produces project documentation with the `han-documentation:project-documentation` skill, lets the user review the33result, and then publishes it to a Confluence location that **the user must specify**. It is a thin orchestrator: the34documentation work belongs to `han-documentation:project-documentation`, and the publishing work belongs to35`han-atlassian:markdown-to-confluence`. This skill only validates its inputs, runs the documentation to a temporary36file, gets the user's review and publish choice, and hands the file to the publisher.3738The five steps below are the whole skill. It does not resolve Confluence pages or call the Confluence MCP create/update39tools itself; `han-atlassian:markdown-to-confluence` owns all of that.4041## Step 1: Validate Inputs4243Confirm the skill has everything it needs before spending effort producing documentation:44451. **Atlassian MCP reachable (hard requirement).** Call `mcp__claude_ai_Atlassian__getAccessibleAtlassianResources` to46 confirm the server is connected and retrieve the cloud ID(s). If the tool is not available, the call errors, or it47 returns no accessible resources (typically an authentication or configuration problem), **stop immediately**. Tell48 the user this skill requires the Atlassian MCP server to be installed, configured, and authenticated, and that they49 can re-run it once it is connected. Do not fall back to a local-only run; for local-only documentation, point them at50 `han-documentation:project-documentation`. This preflight runs first so a missing server fails before any documentation is51 generated.522. **A documentation subject.** Confirm the request names a feature, system, component, or existing doc to document.53 This is forwarded to `han-documentation:project-documentation` verbatim in Step 2.543. **A Confluence destination.** Confirm the request provides a target location: a **Confluence page URL** (to update55 that page, or create a child under it), or a **space** (key or name) plus an optional **parent page**. If none was56 provided, ask for one with `AskUserQuestion`, explaining plainly that the skill needs an exact destination because it57 does not search Confluence. Do not resolve the page tree here — only confirm a location was given. Carry it through58 to Step 5; `han-atlassian:markdown-to-confluence` resolves it.5960## Step 2: Produce the Documentation to a Temporary File6162Invoke the `han-documentation:project-documentation` skill with the **Skill** tool, **forwarding all provided context** verbatim:63the feature name or document path argument, the scope, any known entry points, and the relevant conversation context. Do64not summarize, trim, or reinterpret the user's context; pass it through so `han-documentation:project-documentation` runs exactly65as it would on its own — **except** add one explicit instruction: it must write the resulting documentation to a file66under `/tmp/` (for example `/tmp/<feature-slug>.md`) rather than into the project's docs directory. This keeps the67working draft out of the repo until the user decides to publish it, and because the path is explicit input it outranks68any `output-directory` the project or personal `.han/config.md` supplies (see69[../../references/config-rule.md](../../references/config-rule.md)).7071Let `han-documentation:project-documentation` complete its full process (codebase exploration, writing the doc, content audit,72information-architecture review, and verification). **Capture the exact `/tmp/` file path it wrote.** That markdown file73is the source content for Confluence. Proceed to Step 3 once it finishes.7475## Step 3: Show the File for Review7677Tell the user the exact `/tmp/` path of the generated documentation so they can open and review it before deciding78whether to publish. State plainly that the content has not been published anywhere yet.7980## Step 4: Confirm the Publish Choice8182Publishing to Confluence puts the content where other people can see it, so require an explicit choice before posting.83Ask with `AskUserQuestion`, restating the **`/tmp/` file path** and the **Confluence destination** the user provided.84Offer three options, listing the draft option first as the recommended default:8586- **"Yes, save it as a draft to edit later (recommended)"** — published as an unpublished Confluence draft for the user87 to review, edit, and publish themselves. This is the default. (Publish mode: **draft**.)88- **"Yes, publish it live now"** — the page goes live immediately. (Publish mode: **live**.)89- **"No, keep it local only"** — nothing is published.9091If the user keeps it local only, **stop**. Report the `/tmp/` doc path and state clearly that nothing was published to92Confluence. Otherwise, record the chosen publish mode (draft or live) for Step 5.9394## Step 5: Publish with markdown-to-confluence9596Invoke the `han-atlassian:markdown-to-confluence` skill with the **Skill** tool, forwarding:9798- the **`/tmp/` markdown file path** captured in Step 2,99- the **Confluence destination** the user provided in Step 1 (the page URL, or the space plus optional parent page),100 passed through verbatim, and101- the **publish mode** the user chose in Step 4 (`draft` or `live`), stated explicitly so102 `han-atlassian:markdown-to-confluence` does not re-ask.103104`han-atlassian:markdown-to-confluence` resolves the location, reads the file, creates or updates the page in the chosen105mode, handles Mermaid diagrams, and reports the resulting page URL. Relay its result to the user: the created or updated106page's URL and whether it went live or was saved as a draft. If publishing fails, report the error and confirm the107`/tmp/` markdown file is unchanged and intact.108109## Verification1101111. **Inputs validated:** the Atlassian server was reachable, a documentation subject was present, and a Confluence112 location was provided — or the skill stopped before doing any work.1132. **Doc produced to /tmp:** `han-documentation:project-documentation` ran with the full forwarded context and wrote the114 documentation to a `/tmp/` file whose path was captured.1153. **User reviewed:** the `/tmp/` path was shown to the user before any publish.1164. **Explicit choice obtained:** the user chose draft, live, or local-only.1175. **Publish delegated and reported:** when the user chose to publish, `han-atlassian:markdown-to-confluence` created or118 updated the page in the chosen mode and its URL was relayed; when the user declined, only the `/tmp/` doc exists.