confluence-datacenter

confluence-datacenter is a command for 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 Gemini CLI

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.

agentmods
npx agentmods add commands/mfmezger/ai_agent_dotfiles/confluence-datacenter
Clone the repo
git clone --depth 1 https://github.com/mfmezger/ai_agent_dotfiles

Made for: 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.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.svg" alt="Measured on agentmods" 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. Scan, not verified.
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 $0.00023 $0.00958
Sonnet 5 $0.00009 $0.00383
Haiku 4.5 $0.00005 $0.00192

Measured 5d ago against content hash 222f565d040b, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, 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 5d 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. 5d 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 (5 stars, last pushed 1mo ago), licensed MIT. It adds 45 tokens to every session and 1,916 once invoked, about $0.0002 per session on Opus 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

Other commands, from other repositories

deja

Search this machine's past AI coding sessions (deja-vu).

vshulcz/deja-vu · 17 tokens

fd-resume

Restore from checkpoint.json (falling back to STATE.md) — brief the user, PAUSE for confirmation, then continue from the recorded command and stage.

DVNghiem/FlowDeck · 30 tokens

seo-fix

Automated SEO agent. Runs the complete audit, prioritizes issues by impact, and automatically fixes everything it can — meta tags, alt text, headings, schema and more. Shows a diff before each change. TRIGGER when the user enters /seo-fix or asks to fix, correct or apply SEO improvements automatically.

bestdeejay-design/agent-skills · 68 tokens

seo-report

Generates a complete SEO report in markdown — combines technical audit, content and schema in one document with an overall score and prioritized action plan. TRIGGER when the user enters /seo-report or asks for a full SEO report, SEO summary or SEO audit report.

bestdeejay-design/agent-skills · 55 tokens

seo-content

Analyzes content quality — length, readability, thin content, internal duplicate content and topic expansion opportunities. TRIGGER when the user enters /seo-content or asks to analyze content quality, thin content, readability or topic coverage.

bestdeejay-design/agent-skills · 47 tokens

seo-images

Reviews all images — missing or generic alt text, unoptimized size, modern format (WebP/AVIF), lazy loading and descriptive file names. TRIGGER when the user enters /seo-images or asks to review images, alt text, image optimization or image SEO.

bestdeejay-design/agent-skills · 57 tokens