atlassian/twg-confluence
> Use with root `twg` for Confluence content, spaces, hierarchy, authoring, editing, comments, versions, permissions, exports, and CQL. Applies Confluence semantics and safe write rules.
npx skills add https://github.com/atlassian/twg-cli --skill twg-confluence
Use with the root twg skill whenever Confluence is the source of truth or a
Confluence mutation is required. This skill owns content-type, hierarchy,
format, and concurrency semantics; exact command grammar comes from live help.
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg
(macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe (PowerShell), then
tell user to add that directory to PATH. Do not treat auth or command errors as
PATH failures.
primary anchor.
organize Confluence content.
permissions, or space metadata.
Do not load this skill merely because a Confluence page is one supporting link
inside a broader workflow.
| Intent | Route |
| --- | --- |
| Known content ID or URL | confluence content get |
| Exact Confluence filtering | Confluence search with CQL |
| Fuzzy page/topic discovery | Cross-product search, then native get |
| Create or update content | Unified confluence content surface |
| Space metadata/lifecycle | confluence space |
| Hierarchy | confluence tree |
| Export | Word returns a download directly; PDF requires export-status polling |
Use twg help describe "<exact path>" before an unfamiliar or consequential
mutation.
whiteboards, databases, folders, comments, versions, history, permissions,
tasks, labels, and attachments when advertised.
restriction-state and Specific access rows as direct permissions:
Open / Can edit -> OPEN, Open / Can view -> EDIT_RESTRICTED,
Restricted -> VIEW_RESTRICTED; Specific Can edit -> update, and
Specific Can view -> read.
confluence space for spaces and confluence tree for hierarchy.accepted ID, URL, site, and content-type forms.
summarizing or editing it.
the first body heading.
with confluence space instructions get --key <spaceKey> (or with
confluence space instructions get --id <spaceId>) and apply them while
authoring; see references/spaces.md. Absent or empty ⇒ author with defaults.
notes artifact, prefer a live doc.
classic-page spaces, page-only operations, or explicit page requests.
file, then update with the snapshot token.
matter.
--dry-run only for explicit preview or validation requests, or forunusually risky edits where direct execution was not requested.
twg-context-discovery for related Jira work, projects, goals, ordependencies; load twg-responsibility-routing for people, ownership,
authority, or escalation.
twg-status-rollups when pages contribute to a broader status report.twg-operational-health for runbooks, incidents, PIRs, or reliabilityevidence.
references/content.md - content types, reads, writes, and exportsreferences/editing.md - concurrency-safe body editingreferences/spaces.md - space lifecycle and hierarchyreferences/querying.md - CQL and fuzzy discoveryreferences/body-formats.md - HTML, markdown, mentions, and special formatsTake atlassian/twg-confluence from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.