twg-confluence
Skill7 starsChanged 2 months agoMITView on GitHub
Use with root `twg` for Confluence content, spaces, hierarchy, authoring, editing, comments, versions, permissions, exports, and CQL. Applies Confluence semantics and safe write rules.
In this repository29 other files it gives its agents.
- AGENTS.mdAGENTS.md
- address-pr-commentsSkill
- build-and-scan-container-imageSkill
- execute-database-migrationSkill
- generate-adrSkill
- generate-service-documentationSkill
- get-pr-commentsSkill
- incident-triageSkill
- install-dev-toolsSkill
- prepare-releaseSkill
- remediate-dependency-vulnerabilitiesSkill
- review-configurationSkill
- twg-agentic-searchSkill
- twg-artifactsSkill
- twg-code-reviewSkill
- twg-context-discoverySkill
- twg-engineering-workSkill
- twg-jira-resolve-merged-workSkill
- twg-jiraSkill
- twg-operational-healthSkill
- twg-responsibility-routingSkill
- twgSkill
- twg-space-creationSkill
- twg-status-rollupsSkill
- validate-and-deploy-iacSkill
- validate-and-deploy-kubernetesSkill
- validate-documentationSkill
- validate-github-actionsSkill
- verify-service-healthSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
15 rules. About 0 are common, 3 are distinctive, and 12 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 11
Use with root twg for Confluence-focused work, not a supporting link in a broader workflow.
- Very specific: line 16
Run twg <command>. On shell command not found, use $HOME/.local/bin/twg (macOS/Linux) / $env:LOCALAPPDATA\Programs\twg\bin\twg.exe …
- Very specific: line 35
Use twg help describe "<exact path>" before an unfamiliar or consequential mutation.
- Distinctive: line 42
Search snippets are discovery candidates.
- Very specific: line 45
Use CQL for list metadata.
- Very specific: line 47
Read data.body for text and conversion warnings.
- Very specific: line 53
Do not use docs get to read page bodies.
- Very specific: line 65
Treat user authorization and CLI confirmation as separate checks for archive, trash, and purge.
- Very specific: line 73
If the mutation or targets were inferred, resolve the proposed targets, present the exact action and bounded target list, and wait for the …
- Very specific: line 77
Before authoring, apply the target space's instructions once per space per session.
- Very specific: line 79
Prefer live_doc for collaborative internal content where supported.
- Very specific: line 81
Use page for explicit classic/non-live intent, knowledge bases, customer help, established classic-page spaces, or page-only operations.
- Distinctive: line 86
Use the lossless HTML round trip when macros or exact storage matter.
- Very specific: line 87
Use --dry-run only for explicit preview requests or unusually risky edits where direct execution was not requested.
- Distinctive: line 89
Read back the content or space after mutation and report its URL.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 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
twg-confluence
Use with root twg for Confluence-focused work, not a supporting link in a
broader workflow. Live help owns command grammar.
CLI launcher fallback
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.
First Route
| Intent | Route |
| Known content ID/URL | confluence content get; route embeds |
| Several known pages | Read each with confluence content get |
| 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 Semantics
Pagination.
- Search snippets are discovery candidates. Read the selected content before summarizing or editing it.
confluence content getandcontent versions list --idare single-page. Use CQL for list metadata. For reading or summarizing known pages, fetch each once withconfluence content get <id-or-url> --detail full --format md -o json. Readdata.bodyfor text and conversion warnings; useoutput_files.stdoutwhen compact output omits the text. Reuse it for summaries and saved files.- Markdown can drop status markers, macros, and table details. If
data.body.lossyConversionis true, read that page once in--format htmlbefore drawing conclusions from missing content. Use HTML first for editing or known rich content. Never infer a missing status from surrounding prose. - Do not use
docs getto read page bodies. It only looks within a user's document activity window and may miss pages the user can access. - Page titles are supplied separately from bodies. Do not repeat the title as the first body heading.
- Remix create returns an asset, not a page embed. Embed via the loaded HTML guide and read back the page; an ID/URL is not proof.
- Maui create uses
--content-idonly for ownership/embedding, not page reading. Read source first; include values, labels, narrative, and visualization instructions in the prompt. "This page" is not enough.
Safe Authoring And Editing
- Treat user authorization and CLI confirmation as separate checks for archive,
trash, and purge. Passing
--yesis an execution preflight, not evidence the user authorized the mutation. Use--yesonly after the user named the mutation and the exact target or a previously displayed bounded target set. - Explicit instructions such as "archive page XYZ" or "archive those 15 pages" after a concrete list authorize execution without another confirmation. Vague language such as "clean up", "organize", or "take care of" does not authorize archive, trash, or purge.
- If the mutation or targets were inferred, resolve the proposed targets,
present the exact action and bounded target list, and wait for the user to
affirm it. Do not generalize approval from a similar prior action;
trashdoes not authorize a permanent purge. - Before authoring, apply the target space's instructions once per space per
session; see
references/spaces.md. Empty instructions mean defaults. - Prefer
live_docfor collaborative internal content where supported. Bare "page" or "doc" creation also defaults to live docs. - Use
pagefor 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. - For non-trivial edits, read current content, save the body locally, edit the file, then update with the snapshot token.
- Use the lossless HTML round trip when macros or exact storage matter.
- Use
--dry-runonly for explicit preview requests or unusually risky edits where direct execution was not requested. - Read back the content or space after mutation and report its URL.
Handoffs
- Load
twg-context-discoveryfor related Jira work, projects, goals, or dependencies;twg-responsibility-routingfor people, ownership, authority, or escalation. - Load
twg-status-rollupswhen pages contribute to a broader status report. - Load
twg-operational-healthfor runbooks, incidents, or PIRs. - Load
twg-space-creationto create or clone a whole space.
References
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
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.

