confluence-datacenter

confluence-datacenter is a command for Claude Code, Gemini CLI from mfmezger/ai_agent_dotfiles. It costs 45 tokens per session (1,916 once invoked), scanned A, original, MIT.

A command interface for Confluence Data Center and Server, self-hosted versions of Atlassian’s team wiki and documentation platform. It uses the Confluence REST API to read, search, create, update, delete, export, and manage pages and attachments.

In plain words
What is it for?
Use it to retrieve or search wiki pages, create or update documentation, list child pages and spaces, manage attachments, delete content, or export pages.
Why use it?
It lets scripts or coding agents work with company documentation without manually navigating the Confluence website. It supports token or username-and-password authentication through environment settings.

Command for Claude CodeGemini CLI

Written for Gemini CLI and Claude Code: installed under .gemini/, but also a Claude Code command (commands/*.md). Also seen: reads .claude/ paths.

Good fit Use it to retrieve or search wiki pages, create or update documentation, list child pages and spaces, manage attachments, delete content, or export pages.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/mfmezger/ai_agent_dotfiles/confluence-datacenter
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/mfmezger/ai_agent_dotfiles

Made for: Claude Code, Gemini CLI.

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-datacenter

README.md
[![agentmods](https://agentmods.dev/badge/commands/mfmezger/ai_agent_dotfiles/confluence-datacenter/github.svg)](https://agentmods.dev/commands/mfmezger/ai_agent_dotfiles/confluence-datacenter)
Your own site
<a href="https://agentmods.dev/commands/mfmezger/ai_agent_dotfiles/confluence-datacenter"><img src="https://agentmods.dev/badge/commands/mfmezger/ai_agent_dotfiles/confluence-datacenter/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-datacenter

Your own site · 80×15
<a href="https://agentmods.dev/commands/mfmezger/ai_agent_dotfiles/confluence-datacenter"><img src="https://agentmods.dev/badge/commands/mfmezger/ai_agent_dotfiles/confluence-datacenter.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 45 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,916 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. 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.00045 $0.01916
Opus 5.5 $0.00018 $0.00766
Sonnet 5.5 $0.00009 $0.00383
Haiku 4.5 $0.00005 $0.00192

Measured 3mo ago against content hash 222f565d040b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

confluence-datacenter scanned grade A with 0 findings 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 3mo 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

gemini/.gemini/commands/confluence-datacenter.md · 252 lines

How it starts

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

Confluence Data Center

Interact with Confluence Data Center/Server instances via REST API.

Features

Command Description
get Get page content by ID or title
search Search content using CQL
create Create a new page
update Update page content
delete Delete a page
children List child pages
spaces List available spaces
attachments List or upload attachments
export Export page to different formats

Prerequisites

Environment variables (can be in .env file):

  • CONFLUENCE_BASE_URL - Your Confluence instance URL (e.g., https://confluence.company.com)
  • CONFLUENCE_PAT - Personal Access Token (preferred)

OR for basic auth:

  • CONFLUENCE_BASE_URL - Your Confluence instance URL
  • CONFLUENCE_USERNAME - Your username
  • CONFLUENCE_PASSWORD - Your password

Creating a Personal Access Token

  1. Go to your Confluence profile (click avatar → Settings)
  2. Navigate to Personal Access Tokens
  3. Click "Create token"
  4. Give it a name and set expiry
  5. Copy the token to CONFLUENCE_PAT

Usage

uvx --with requests --with python-dotenv --with typer --with rich --with markitdown \
  python ~/.claude/skills/confluence-datacenter/scripts/confluence.py COMMAND [OPTIONS]

Commands

Get Page

# By page ID
uvx --with requests --with python-dotenv --with typer --with rich --with markitdown \
  python ~/.claude/skills/confluence-datacenter/scripts/confluence.py get 12345

# By title and space
uvx --with requests --with python-dotenv --with typer --with rich --with markitdown \
  python ~/.claude/skills/confluence-datacenter/scripts/confluence.py get --space DEV --title "Getting Started"

Options:

  • --format html|storage|markdown - Output format (default: markdown)
  • --json - Output full JSON response

Read the full file on GitHub · 252 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. 3mo ago First seen · 252 lines · 45 tokens per session scan A 222f565d040b

Subscribe to this mod's changes

confluence-datacenter is a command published in the GitHub repository mfmezger/ai_agent_dotfiles (7 stars, last pushed 4mo ago), licensed MIT. It adds 45 tokens to every session and 1,916 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

confluence-datacenter compared with commands from other repositories

confluence-datacenter next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
confluence-datacentermfmezger/ai_agent_dotfilesCommand74mo agoMITA45Claude Code, Gemini CLI
dejavshulcz/deja-vuCommand1.7ktodayMITA17Claude Code
fd-resumeDVNghiem/FlowDeckCommand4415d agoMITA30Claude Code
startstriderZA/OpenCodeGameStudiosCommand13117d agoMITA8Claude Code
display-feedbackdisplay-dev/skillCommand126d agoMITA25Claude Code, Cursor
advanceakougkas/wtf-pCommand205d agoMITA15Claude Code
wtfp:advanceakougkas/wtf-pCommand205d agoMITA20Claude Code