/enterprise-collaboration-skills:confluence-page-authoring-and-governancefrom enterprise-collaboration-skills
Guides authoring well-structured Confluence pages with clear heading hierarchy, templates for runbooks/design docs/postmortems, space organization, version discipline, and programmatic page creation via REST API.
Ships in enterprise-collaboration-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Confluence pages that lack structure, ownership, or a place in the space's hierarchy don't stay useful — they go stale because no one is responsible for updating them, they go undiscoverable because nothing links to them, and they get duplicated because the next person couldn't find the original and wrote a new one instead. This skill covers how to structure a page so it's actually readable (hierarchy, table of contents, purpose-built templates for runbooks/design docs/postmortems), how to organize a space so pages have a findable home, the version/ history discipline that keeps concurrent edits and audit trails sane, and how to do page creation/update programmatically via the Confluence REST API. It assumes the underlying work is already tracked in Jira — see jira-ticket-best-practices-and-workflow and jira-comments-and-tracking-automation for that half of the workflow, and link back to the originating ticket from any page this skill produces.
${CONFLUENCE_API_TOKEN}) tied to an Atlassian account, used against
${CONFLUENCE_BASE_URL}/wiki/rest/api/.... For Confluence Data
Center/Server, a Personal Access Token against
${CONFLUENCE_BASE_URL}/rest/api/... (no /wiki prefix) — confirm
which edition you're targeting before assuming the base path.content body uses storage format — an
XHTML-like markup (not raw Markdown, not ADF) — for the page body.
Simple content maps closely to HTML (<h2>, <p>, <table>, <ul>),
but macros (Table of Contents, Jira issue macro, status macro) use
Confluence-specific <ac:structured-macro> XML elements. Exact
supported macros vary by edition/version and installed apps — verify
a macro exists on the target instance before relying on it.409 Conflict) an update whose
version.number doesn't match current + 1, by design, to prevent
silently clobbering a concurrent edit.Decide where the page lives before writing it. Pick the space and the parent page first — a page with no deliberate parent tends to end up either at the space root (invisible in any topical hierarchy) or nowhere anyone browses to. If a natural parent doesn't exist yet (e.g. no "Runbooks" index page in this space), create that index page first, or use the space's existing top-level structure.
Search before creating. Check the space (and likely-adjacent spaces) for an existing page on the same topic before writing a new one — a duplicate "Deployment Runbook" in two spaces is worse than no runbook, because neither is known to be authoritative.
Use a purpose-built template outline, not a blank page:
Structure headings so the Table of Contents macro is actually
useful. Use H2/H3 consistently for section structure (not H1
repeated per section), keep heading text scannable, and place a
Table of Contents macro near the top of any page longer than ~4
sections so a reader can jump to the relevant part instead of
scrolling a runbook during an incident.
Label for discoverability, using a controlled vocabulary. Reuse
existing labels (service name, runbook/postmortem/design-doc,
owning team) rather than inventing near-duplicates (run-book vs.
runbook) — check the space's existing label list first. Labels
drive both search filtering and label-based index pages/macros.
Link the page from an index/parent page at creation time, not as a follow-up — an unlinked page only reachable by direct search is effectively orphaned for anyone browsing the space. Also link back to the originating Jira ticket (and vice versa, via a comment or the Jira issue macro) so the two systems stay connected.
Assign an explicit owner and review cadence for anything
operational (runbooks especially). A page with no named owner is a
page nobody notices has gone stale. Track review-due dates with a
label (review-2026-q4) or a "Last reviewed" line at the top of the
page, and audit periodically for pages past due.
Create a page via the REST API:
POST /wiki/rest/api/content
Host: ${CONFLUENCE_BASE_URL}
Authorization: Basic base64(${CONFLUENCE_USER_EMAIL}:${CONFLUENCE_API_TOKEN})
Content-Type: application/json
{
"type": "page",
"title": "Auth Service Runbook",
"space": { "key": "ENG" },
"ancestors": [{ "id": "123456" }],
"body": {
"storage": {
"value": "<h2>Owner</h2><p>Team: Auth Platform. Last reviewed: 2026-07-28.</p><ac:structured-macro ac:name=\"toc\"/><h2>Overview</h2><p>Handles SSO and session token issuance.</p>",
"representation": "storage"
}
}
}
ancestors[0].id sets the parent page — omit it and the page lands
at the space root, which is the "orphaned by default" failure mode
from step 1. A successful response is 200 OK/201 Created with the
new page's id, title, and a _links.webui URL.
Update an existing page — always fetch the current version first:
GET /wiki/rest/api/content/789012?expand=version,body.storage
Read version.number from the response (e.g. 4), then submit the
update with version.number incremented by exactly one:
PUT /wiki/rest/api/content/789012
Content-Type: application/json
{
"id": "789012",
"type": "page",
"title": "Auth Service Runbook",
"space": { "key": "ENG" },
"body": {
"storage": {
"value": "<h2>Owner</h2><p>Team: Auth Platform. Last reviewed: 2026-07-28.</p>...",
"representation": "storage"
}
},
"version": { "number": 5, "message": "Update alert thresholds after AUTH-2231 incident" }
}
Populating version.message gives page history a meaningful audit
trail — "Update alert thresholds after AUTH-2231 incident" is far
more useful than the default blank entry when someone is scanning
history for what changed and why.
Add labels via the labels endpoint (or inline in the create/ update payload if the integration supports it):
POST /wiki/rest/api/content/789012/label
Content-Type: application/json
[{ "prefix": "global", "name": "runbook" }, { "prefix": "global", "name": "auth-service" }]
v2 page just splits the audit trail.Symptom: A runbook was accurate when written but has no named owner; eighteen months later an on-call engineer follows steps that no longer match the deployed system, making an incident worse instead of better. Fix: Every operational page gets an explicit owner and a review-due label/date at creation (see the runbook template); audit for pages past their review date on a recurring cadence, not reactively during the next incident.
Symptom: A new page is created and never linked from any parent/ index page — it only surfaces if someone happens to search the exact right term, so most of the team doesn't know it exists and eventually someone writes a near-duplicate. Fix: Link every new page from its logical parent/index page at creation time (step 6), not as a follow-up task that's easy to skip.
Symptom: Two people update the same page around the same time;
the second PUT overwrites the first person's edit because it was
built from a stale version.number, and the change silently
disappears with no error visible to the user who made it.
Fix: Always GET the current version.number immediately before
PUT-ing an update (step 9); if the API returns 409 Conflict,
re-fetch and re-apply the intended change rather than retrying with
the same stale version.
Symptom: A team has two "Deployment Process" pages in different spaces (one from the original space, one someone wrote later because they couldn't find the first) with subtly different, partially contradictory steps — and neither is marked as canonical. Fix: Search the space (and adjacent spaces) before creating a new page on a topic (step 2); when a duplicate is found after the fact, merge content into one canonical page and mark the other superseded with a link, don't just delete it silently.
Symptom: A postmortem page sits in "Draft" status indefinitely with action items that were never turned into tracked tickets, so none of the follow-up work happens and the same incident recurs. Fix: Require every postmortem action item to link a real Jira ticket at write time (see the postmortem template and jira-ticket-best-practices-and-workflow), and treat "Draft" as a short-lived state with a target date to reach "Final."
Scenario: After resolving AUTH-2231 (the EU SSO invalid_grant
incident from the Jira ticket skill's worked example), the team needs to
(a) update the existing Auth Service runbook with a new troubleshooting
entry, and (b) publish a postmortem, both properly linked and labeled.
Step 1 — fetch current runbook version before editing:
GET /wiki/rest/api/content/789012?expand=version,body.storage
Response shows "version": { "number": 4 }.
Step 2 — update the runbook's Troubleshooting section, bump version:
PUT /wiki/rest/api/content/789012
{
"id": "789012",
"type": "page",
"title": "Auth Service Runbook",
"space": { "key": "ENG" },
"body": {
"storage": {
"value": "...<h3>Symptom: invalid_grant errors scoped to one region</h3><p>Check IdP/auth-service clock skew first — see AUTH-2231 postmortem.</p>...",
"representation": "storage"
}
},
"version": { "number": 5, "message": "Add clock-skew troubleshooting entry from AUTH-2231" }
}
Step 3 — create the postmortem page as a child of the space's
"Postmortems" index page (id 654321), using the template outline from
references/postmortem-template.md:
POST /wiki/rest/api/content
{
"type": "page",
"title": "Postmortem: EU SSO invalid_grant Incident (2026-07-28)",
"space": { "key": "ENG" },
"ancestors": [{ "id": "654321" }],
"body": {
"storage": {
"value": "<h2>Summary</h2><p>SSO logins failed for ~120 EU users for 40 minutes due to clock skew between the IdP and auth-service.</p><h2>Timeline</h2><table>...</table><h2>Action Items</h2><p>Add config validation to CI — AUTH-2240</p>",
"representation": "storage"
}
}
}
Step 4 — label both pages and link them to the Jira ticket:
POST /wiki/rest/api/content/789012/label
[{ "prefix": "global", "name": "runbook" }, { "prefix": "global", "name": "auth-service" }]
The postmortem page links back to AUTH-2231, and — per
jira-comments-and-tracking-automation —
a comment is posted on AUTH-2231 pointing to the new postmortem page,
so the two systems reference each other instead of the resolution living
only in one place.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
confluence, page-authoring, governance, runbook, design-doc, postmortem
npx claudepluginhub selvarajmurugesan90/ops-engineering-skills --plugin enterprise-collaboration-skills3 skills in this plugin
/jira-comments-and-tracking-automationGuides writing Jira comments that actually help the next reader (context, decision rationale, links to PRs/commits/deploys), deciding when to comment versus when to update a ticket field, and automating status/comment updates from CI/CD (e.g. posting a deploy notification comment on release) without producing comment spam — including the Jira REST API shape for posting comments programmatically (`POST /rest/api/3/issue/{issueIdOrKey}/comment`). Use when the user asks to "add a Jira comment", "post a deploy notification to the ticket", "document a decision on this issue", "automate ticket updates from the pipeline", or "why is this ticket full of noise".
/jira-ticket-best-practices-and-workflowGuides writing well-formed Jira issues (clear title, reproduction steps or acceptance criteria, correct issue type/priority/labels/components), disciplined status-workflow movement (To Do → In Progress → In Review → Done, avoiding stale or prematurely closed tickets), and linking related issues/epics — plus the underlying Jira REST API shape (`POST /rest/api/3/issue`, transitions, issue links) for doing this programmatically. Use when the user asks to "write a Jira ticket", "file a bug report", "create a user story", "update ticket status", "move a ticket to In Progress/Done", "link this to the epic", or "review whether this ticket is ready to work on".
Other plugins' skills for the same job