confluence-cli
Skill109 starsChanged 4 months agoMITView on GitHub
Interact with Atlassian Confluence from the terminal: list spaces, browse pages, view page content, search with CQL, and create pages. Use when the user mentions Confluence, a space key (e.g. DEV), or asks about documentation, wiki pages, space content, or knowledge base articles. Do not use this skill for unrelated requests; route to the nearest named specialist.
In this repository180 other files it gives its agents.
- agent-production-operations/AGENTS.mdAGENTS.md
- AGENTS.mdAGENTS.md
- forward-deployed-engineering/AGENTS.mdAGENTS.md
- production-excellence/AGENTS.mdAGENTS.md
- product-lifecycle/AGENTS.mdAGENTS.md
- tailscale/AGENTS.mdAGENTS.md
- workflow-architect/AGENTS.mdAGENTS.md
- llms.txtllms.txt
- actuarial-risk-modelingSkill
- adr-authoringSkill
- agent-councilSkill
- agent-evals-and-observabilitySkill
- agent-production-operationsSkill
- agent-skillsSkill
- ai-governanceSkill
- ai-operating-economicsSkill
- analog-occultismSkill
- anydocSkill
- api-design-and-evolutionSkill
- artifact-pyramidsSkill
- ascii-city-engineSkill
- autogenSkill
- backend-engineeringSkill
- binary-analysisSkill
- bmadSkill
- brand-designerSkill
- c4-diagrammingSkill
- capacity-and-cost-engineeringSkill
- chief-of-staff-methodologySkill
- cli-builderSkill
- cncf-landscapeSkill
- color-managementSkill
- community-guidesSkill
- conditional-customer-successSkill
- constrained-optimizationSkill
- crewaiSkill
- crmSkill
- crowdsecSkill
- cryptpadSkill
- cyberpunkSkill
- daily-life-discoverySkill
- data-architectSkill
- data-cleaningSkill
- data-engineeringSkill
- data-scientistSkill
- de-spinSkill
- digital-twinSkill
- docker-composeSkill
- documentsSkill
- dsm5Skill
- dspySkill
- electronicsSkill
- emailSkill
- enterprise-architectureSkill
- epubSkill
- esp32-developmentSkill
- ffmpegSkill
- financial-modelingSkill
- firefliesSkill
- flaresolverr-cliSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 102
All flags work in any position:
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
confluence-cli — Confluence Wiki from the Terminal
Interact with Atlassian Confluence Cloud via the REST API. List spaces, browse pages, view page content with body, search with CQL, and create pages.
Setup
- Generate an API token at id.atlassian.com/manage/api-tokens
- Set environment variables:
export CONFLUENCE_EMAIL="your-email@example.com"
export CONFLUENCE_API_TOKEN="your-api-token"
export CONFLUENCE_SERVER="https://your-domain.atlassian.net"--help and --dry-run work without credentials.
Essential Commands
me — Current user profile
confluence-cli me # your account info
confluence-cli me --json # machine-readablespaces — List spaces
confluence-cli spaces # all accessible spaces
confluence-cli spaces --limit 50 # more results
confluence-cli spaces --json # machine-readablepages — List pages
confluence-cli pages # recent pages across all spaces
confluence-cli pages --space DEV # pages in a specific space
confluence-cli pages --space DEV --limit 10 # top 10
confluence-cli pages --space DEV --json # machine-readableFilters by space key. Resolves the key to an internal ID automatically.
view — View a page by ID
confluence-cli view 123456 # full page with body
confluence-cli view 123456 --json # machine-readableShows title, status, version, author, timestamps, and HTML body (stripped to plain text for display). The full HTML body is available in --json output up to 5000 chars.
search — Search with CQL
confluence-cli search --cql 'text~"deploy"' # full-text search
confluence-cli search --cql 'space=DEV AND type=page' # by space and type
confluence-cli search --cql 'creator=currentuser()' # my content
confluence-cli search --cql 'text~"api"' --limit 5 # top 5 resultsCQL (Confluence Query Language) is Confluence's search syntax. Common patterns:
text~"keyword"— full-text searchspace=KEY— filter by spacetype=page— filter by content typecreator=currentuser()— your contentlabel="name"— by label- Combine with
AND:space=DEV AND text~"deploy"
create — Create a page
confluence-cli create --space DEV --title "My Page" # basic
confluence-cli create --space DEV --title "API Docs" --body "<p>Content</p>" # with HTML body
confluence-cli create --space DEV --title "Test" --parent 123456 # as child page
confluence-cli create --space DEV --title "Test" --dry-run # previewCreates pages in Confluence Cloud (v2 API). The body is HTML using Confluence's storage format. For simple pages, basic HTML tags work (<p>, <ul>, <h2>, etc.).
Global Flags
All flags work in any position:
confluence-cli --json pages --space DEV # flag before subcommand
confluence-cli pages --space DEV --json # flag after subcommand
confluence-cli --dry-run create --space DEV --title "Test"
confluence-cli --quiet pages # suppress non-essential outputKnown Gotchas
- Authentication uses HTTP Basic Auth with email + API token. Same credentials as Jira, but stored under different env var names.
- Two API versions — The CLI uses v2 API for most operations (spaces, pages, create) and the legacy rest API for
meandsearch(CQL). This is transparent to the user. - Space keys must be resolved to IDs — The v2 API requires numeric space IDs for filtering. The CLI resolves keys automatically, which costs one extra API call on
pages --spaceandcreate --space. - Page body is HTML — The Confluence storage format uses HTML. The CLI strips HTML tags for display and returns raw HTML in
--jsonoutput (up to 5000 chars). Creating pages with rich formatting requires valid HTML. - CQL search quirks — CQL is case-insensitive for most operators. The
text~operator searches the full text body. Enclose multi-word phrases in escaped quotes. - Rate limits — Confluence Cloud has rate limits. The CLI does not auto-retry.
References
- scripts/confluence-cli — The CLI binary. Built following the cli-builder patterns: non-interactive,
--json,--dry-run,--quiet,--verbose, dual-output viaemit(), lazy auth, structured logging. - Confluence REST API v2 docs — Official API reference.
- CQL (Confluence Query Language) — Search syntax reference.
- API Token Management — Generate and revoke tokens.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

