OverviewHistoryStatsSecurity
npx skills add ...
Documentation
SKILL.md
npx skills add atlassian/twg-cli --skill 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 atlassian/twg-cli --skill twg-confluence
Use with root twg when Confluence is the primary source or mutation target.
This skill owns content-type, hierarchy, format, and concurrency semantics;
live help owns exact command grammar.
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.
| Intent | Route |
|---|---|
| Known content ID or URL | confluence content get |
| Several known pages | One docs get <id-or-url…> for the whole set |
| Exact Confluence filtering | Confluence search with CQL |
| Date-filtered page/blogpost list | confluence search query --cql with lastmodified; content list has no date filter |
| 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.
confluence space for spaces and confluence tree for hierarchy.confluence content get and content versions list --id are single-page.
For a page set, take metadata from one confluence search query --cql (title,
space, lastmodified, author), then hydrate bodies only for the pages whose
content changes the answer - batched through docs get <id-or-url…>, which
takes many IDs at once, with --agent-fields @compact. Never loop a
single-page route over a page list, and never re-run the CQL query per page.--content-id only for ownership/embedding, not page
reading. Read source first; include values, labels, narrative, and
visualization instructions in the prompt. "This page" is not enough.--yes is an execution preflight, not evidence the
user authorized the mutation. Use --yes only after the user named the
mutation and the exact target or a previously displayed bounded target set.trash
does not authorize a permanent purge.references/spaces.md. Empty instructions mean defaults.live_doc for collaborative internal content where supported. Bare
"page" or "doc" creation also defaults to live docs.page for explicit classic/non-live intent, knowledge bases, customer
help, established classic-page spaces, or page-only operations. Preserve an
existing target's type; a classic parent does not set a child's type.--dry-run only for explicit preview requests or unusually risky edits
where direct execution was not requested.twg-context-discovery for related Jira work, projects, goals, or
dependencies; 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, or PIRs.twg-space-creation to create or clone a whole space.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 formats