confluence-publish

confluence-publish is a command for Claude Code from TheLobbi/claude. It costs 0 tokens per session (1,787 once invoked), scanned A, original, MIT.

A command that publishes documentation or other content as a page in Confluence, Atlassian’s shared documentation and collaboration service.

In plain words
What is it for?
Use it to create a new Confluence documentation page through the Confluence API.
Why use it?
It provides a documented sequence for authenticating with Confluence, finding the destination space and parent page, and creating a page.

Command for Claude Code

Written for Claude Code: installed under .claude/.

Part of the claude-orchestration plugin — 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins shipped together

Good fit Use it to create a new Confluence documentation page through the Confluence API.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/thelobbi/claude/confluence-publish
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/TheLobbi/claude

Made for: Claude Code.

Or install claude-orchestration, the plugin that ships this one along with the rest of its 6 skills, 133 commands, 9 agents, 8 hooks, 6 plugins.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for confluence-publish

README.md
[![agentmods](https://agentmods.dev/badge/commands/thelobbi/claude/confluence-publish/github.svg)](https://agentmods.dev/commands/thelobbi/claude/confluence-publish)
Your own site
<a href="https://agentmods.dev/commands/thelobbi/claude/confluence-publish"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/confluence-publish/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for confluence-publish

Your own site · 80×15
<a href="https://agentmods.dev/commands/thelobbi/claude/confluence-publish"><img src="https://agentmods.dev/badge/commands/thelobbi/claude/confluence-publish.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,787 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00000 $0.01787
Opus 5 $0.00000 $0.00894
Sonnet 5 $0.00000 $0.00357
Haiku 4.5 $0.00000 $0.00179

Measured 8d ago against content hash fe3c378bf563, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

confluence-publish scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -X GET "$CONFLUENCE_URL/wiki/api/v2/spaces?limit=25" \
.claude/commands/confluence-publish.md · 201 lines

How it starts

The opening of the file, as written. The whole thing — 201 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Publish to Confluence

Publish documentation and content to Confluence.

Instructions

Execute the following workflow to publish content:

1. Setup Authentication

```bash export CONFLUENCE_URL="${CONFLUENCE_URL:-https://your-domain.atlassian.net}" export CONFLUENCE_AUTH=$(echo -n "$CONFLUENCE_EMAIL:$CONFLUENCE_API_TOKEN" | base64) ```

2. Get Space and Parent Page

```bash

List spaces

curl -X GET "$CONFLUENCE_URL/wiki/api/v2/spaces?limit=25"
-H "Authorization: Basic $CONFLUENCE_AUTH" | jq '.results[] | {id, key, name}'

Get space ID

SPACE_ID=$(curl -s -X GET "$CONFLUENCE_URL/wiki/api/v2/spaces?keys=GA"
-H "Authorization: Basic $CONFLUENCE_AUTH" | jq -r '.results[0].id')

Get parent page ID

PARENT_ID=$(curl -s -X GET "$CONFLUENCE_URL/wiki/rest/api/content?spaceKey=GA&title=Documentation"
-H "Authorization: Basic $CONFLUENCE_AUTH" | jq -r '.results[0].id') ```

3. Create New Page

```bash

Create page with storage format

curl -X POST "$CONFLUENCE_URL/wiki/api/v2/pages"
-H "Authorization: Basic $CONFLUENCE_AUTH"
-H "Content-Type: application/json"
-d "{ "spaceId": "$SPACE_ID", "status": "current", "title": "New Documentation Page", "parentId": "$PARENT_ID", "body": { "representation": "storage", "value": "OverviewDocumentation content here.DetailsMore information..." } }" ```

4. Convert Markdown to Confluence

```bash

Simple markdown to HTML conversion

cat docs/README.md | pandoc -f markdown -t html > /tmp/content.html

Read and escape for JSON

CONTENT=$(cat /tmp/content.html | jq -Rs .)

Create page with converted content

curl -X POST "$CONFLUENCE_URL/wiki/api/v2/pages"
-H "Authorization: Basic $CONFLUENCE_AUTH"
-H "Content-Type: application/json"
-d "{ "spaceId": "$SPACE_ID", "status": "current", "title": "Imported Documentation", "parentId": "$PARENT_ID", "body": { "representation": "storage", "value": $CONTENT } }" ```

Read the full file on GitHub · 201 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 201 lines · 0 tokens per session scan A fe3c378bf563

Subscribe to this mod's changes

confluence-publish is a command published in the GitHub repository TheLobbi/claude (21 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,787 tokens. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.