/confluence-publishing:md2conffrom confluence-publishing
Converts, previews, publishes, and troubleshoots Markdown files or directory trees with the active hunyadi/md2conf Confluence CLI distributed as `markdown-to-confluence`. Use when Codex needs to install or verify the correct md2conf tool, generate local Confluence Storage Format, synchronize Markdown-owned pages, map page IDs and hierarchies, upload images or diagrams, manage labels or content properties, configure Cloud or Data Center authentication, diagnose conversion failures, or verify a publication. Do not use this workflow to claim lossless preservation of manually authored or macro-rich native Confluence pages.
Ships in confluence-publishing. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Treat Markdown as the authoritative source, stage the conversion locally, and make every remote mutation explicit before publishing.
SKILL.md and its package-local references/ files.md2conf executable, Confluence service, credentials, optional diagram renderers, Marketplace apps, and user-supplied Markdown as explicit external inputs.Do not let an unavailable executable, read-only sandbox, or offline constraint reduce the answer to "could not run." Distinguish observed evidence from proposed work, then give the complete safe next-step plan.
markdown-to-confluence distribution, require version/help/distribution preflight in an isolated environment, stage a disposable copy, and provide a --local command with the intended domain, space, and --skip-update. State that local mode makes no Confluence request but writes .csf and generated assets. Review titles, links, attachments, XML, and rendered assets.index.md or README.md, .mdignore, relative links, attachments, labels, properties, source-ID policy, page creation or reordering, and conflicts. Include later authenticated-browser verification even when publication is not yet authorized.csf or diagrams, require one well-formed, tenant-compatible storage XML node, disposable local validation of the revised source, and authenticated-browser rendering verification after any later publication. An accepted API write is not rendering evidence.[Name](mailto:EMAIL) candidate, state the full live-only chain: user lookup by name, exact-email match, conversion to ri:user, and possible first-mention notification. State that local mode cannot preview the lookup, stable 0.6.1 has no disabling user-mention flag, and --no-notify is insufficient; remove or rewrite the link when mentions are forbidden.tags and properties. Supplied tags make stable 0.6.1 compare desired global tags with the full label API result and remove every unmatched label by name, including returned team or personal labels; do not assume only global labels are affected. tags: [] therefore requests removal of all returned labels. The difference calculation includes label prefixes, but the deletion request contains only the name, so a global, team, or personal label sharing that name is an ambiguous mutation. Supplied document and --global-properties values merge recursively, with non-null document values winning and global values filling missing or null paths; the merged result is then the complete desired set, so unspecified remote properties are removed. properties: {} removes every non-synchronization property when no global defaults add keys. For a preservation decision, explain both the version-scoped reconciliation rule and the case-specific impact by deriving the merged set and its replacement effects. Do not stop at predicting deletion: require either omitting both document properties and --global-properties to leave unrelated properties unmanaged, or inventorying and reviewing the complete intended property set before any live command. Omit tags to leave labels untouched; md2conf still manages its own synchronization property when other properties remain unmanaged.confluence-page-id and confluence-space-key values first, so they win when the same values also appear in frontmatter. Keep one unambiguous mapping. A document-level space_key or confluence-space-key can override the site-level --space or environment value for that document; block any mismatch with the reviewed destination. Make any correction only after destination review, then re-run --local on a disposable copy.Use md2conf only when the selected Markdown file or tree is intended to own the complete generated page body and its referenced attachments.
Stop before publication when any of these is true:
Return a source-of-truth diagnostic in those cases. Explain that md2conf regenerates the complete page body, and recommend either keeping the existing page Confluence-authored or using a separate Markdown-owned page. Do not flatten native Confluence content into Markdown or imply that md2conf preserves data it does not model.
Run these checks before relying on any option:
md2conf --version
md2conf --help
python -m pip show markdown-to-confluence
Install the active project from the markdown-to-confluence distribution in an isolated Python 3.10+ environment. For a reproducible run against the version reviewed by this skill:
python -m pip install "markdown-to-confluence==0.6.1"
Never install the obsolete PyPI distribution named md2conf. Confirm that help includes --local, --api-version, --root-page, --skip-update, and --no-overwrite. Treat the installed help as authoritative; do not use flags copied from the upstream development branch when they are absent locally. In particular, stable 0.6.1 does not expose the development-only --comments or --user-mentions policy flags, so it cannot disable implicit user-mention conversion through a CLI option.
[Name](mailto:EMAIL) links, images, downloadable files, diagram sources, same-directory .mdignore rules, tags, document properties, any --global-properties file, embedded HTML, raw csf blocks, and synchronized: false documents. Require embedded HTML to be well-formed XML; for example, write <br />, not <br>.Read markdown-contract.md for page mapping, hierarchy, links, metadata, attachments, and extension syntax. Read publishing-safety.md before designing or executing any live publication.
Run --local on a disposable copy because it writes .csf files and generated embedded assets beside the input. It does not call Confluence, but stable 0.6.1 still requires a domain; use the real non-secret domain and space for accurate generated links:
md2conf --local --domain example.atlassian.net --space SPACE --skip-update ./docs
Use offline.invalid and a placeholder space only for a syntax-focused conversion. Inspect every .csf result for missing sections, invalid or local-only links, unexpected raw storage XML, diagram placeholders, and page-title duplication. If conversion reports an XML tag mismatch, inspect inline HTML for non-self-closing void elements such as <br> before debugging Confluence. Local mode performs no Confluence user lookup, so it cannot preview which mailto: links a live run will convert into user mentions. Keep strict URL validation enabled. If execution is unavailable, still provide the exact proposed local command and this inspection checklist; do not substitute the sandbox limitation for a plan.
Choose diagram behavior deliberately. The render modes require their external converters. Use a --no-render-* mode only after confirming that the matching Marketplace app is installed and permitted in the target tenant.
Pass secrets through the process environment or an approved secret manager, never through -a, --api-key, command history, logs, chat, screenshots, or a committed file.
For a standard Cloud token with Basic authentication, set:
CONFLUENCE_DOMAIN
CONFLUENCE_PATH
CONFLUENCE_USER_NAME
CONFLUENCE_API_KEY
CONFLUENCE_SPACE_KEY
CONFLUENCE_API_VERSION=v2
For a scoped Cloud token, set CONFLUENCE_API_URL to the Atlassian gateway URL, set CONFLUENCE_API_KEY, and omit CONFLUENCE_USER_NAME so md2conf uses Bearer authentication. Use API v1 only for a reviewed Data Center or Server target. Do not claim that an environment is publish-ready merely because variables exist; verify account, space, page, and app permissions without printing values.
md2conf has no documented remote dry-run. Before a live command, state and review all applicable effects:
tags with the full label set returned by Confluence and remove unmatched labels by name; because removal omits the prefix, treat same-name labels across global, team, or personal prefixes as collision-prone;--global-properties, then remove unspecified existing content properties because the merged result is a complete replacement set;[Name](mailto:EMAIL) and convert exact matches to ri:user mentions; a first mention on a page can notify the person even when page-update notifications are disabled;--keep-update behavior;Use --no-overwrite as a conflict guard only when a valid prior md2conf synchronization property exists and the current Confluence page version differs from the version recorded in that property. It does not establish ownership or protect a newly associated or previously unmanaged page with no synchronization baseline. Inventory the target and require explicit publication authority regardless.
Treat --no-notify only as a request to make page updates as minor edits without ordinary change notifications. It is not a guarantee that mention recipients will remain unnotified. Remove or rewrite [Name](mailto:EMAIL) links before publication when user mentions are not explicitly approved.
For an already mapped page whose source must remain byte-stable, use a reviewed command shaped like:
md2conf --api-version v2 --domain example.atlassian.net --space SPACE \
--no-overwrite --no-notify --skip-update ./guide.md
For a Markdown-owned tree that may persist newly created page mappings, choose the hierarchy and root explicitly:
md2conf --api-version v2 --domain example.atlassian.net --space SPACE \
--root-page 123456 --keep-hierarchy --no-overwrite --no-notify \
--keep-update ./docs
Use --overwrite only after reviewing the current remote page and explicitly accepting Markdown replacement of changes made since the last md2conf synchronization. After a --keep-update run, inspect and retain the intended Git diff containing generated page mappings.
Treat a zero exit code as necessary but insufficient. After publication:
On failure, assume partial completion. Inspect both the source tree and Confluence before retrying; reconcile injected IDs, created pages, uploaded or deleted attachments, labels, properties, and page order. Never claim rollback or automatically repeat a mutation whose remote outcome is unknown.
[Name](mailto:EMAIL) mention candidate; --no-notify does not neutralize mention notifications.csf blocks or custom extensions without reviewing the emitted storage XML and verifying the rendered result.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub gvillarroel/plugins --plugin confluence-publishing2 skills in this plugin