confluence
Manage knowledge bases and documentation with Confluence Cloud. Use when a user asks to create or manage Confluence spaces, pages, and blogs, build documentation systems, automate page creation from templates, use Confluence REST API v2, manage page trees and hierarchies, set up permissions, integrate Confluence with Jira or other tools, generate reports from Confluence data, build macros or Forge apps, or migrate content between spaces. Covers content management, API automation, templates, and Atlassian ecosystem integration.
What this skill does
# Confluence ## Overview Automate and extend Confluence Cloud — Atlassian's wiki and knowledge management platform. This skill covers space and page management, the REST API v2, content creation with Atlassian Document Format (ADF), page trees, templates, labels, permissions, Jira integration, and building Forge apps. ## Instructions ### Step 1: Authentication ```typescript // Basic auth with API token (same token works for Jira and Confluence). // Generate at: https://id.atlassian.com/manage-profile/security/api-tokens const CONFLUENCE_BASE = "https://your-domain.atlassian.net"; const AUTH = Buffer.from(`[email protected]:${process.env.ATLASSIAN_API_TOKEN}`).toString("base64"); // REST API v2 (preferred) async function confluence(method: string, path: string, body?: any) { const res = await fetch(`${CONFLUENCE_BASE}/wiki/api/v2${path}`, { method, headers: { Authorization: `Basic ${AUTH}`, "Content-Type": "application/json" }, body: body ? JSON.stringify(body) : undefined, }); if (!res.ok) throw new Error(`Confluence ${method} ${path}: ${res.status}`); return res.status === 204 ? null : res.json(); } // V1 API (still needed for templates, macros, CQL search) async function confluenceV1(method: string, path: string, body?: any) { const res = await fetch(`${CONFLUENCE_BASE}/wiki/rest/api${path}`, { method, headers: { Authorization: `Basic ${AUTH}`, "Content-Type": "application/json" }, body: body ? JSON.stringify(body) : undefined, }); if (!res.ok) throw new Error(`Confluence V1 ${method} ${path}: ${res.status}`); return res.json(); } ``` ### Step 2: Spaces ```typescript // Create a space (key: uppercase, 2-10 chars; type: "global" or "personal") const space = await confluence("POST", "/spaces", { key: "ENG", name: "Engineering", description: { plain: { value: "Engineering team docs and runbooks", representation: "plain" } }, type: "global", }); // List, get, update const spaces = await confluence("GET", "/spaces?limit=25&sort=name"); const engSpace = await confluence("GET", "/spaces/ENG?include-homepage=true"); await confluence("PUT", `/spaces/${space.id}`, { name: "Engineering Docs", description: { plain: { value: "Updated description", representation: "plain" } }, }); ``` ### Step 3: Pages — CRUD & Hierarchy ```typescript // Create a page (body uses "storage" format = Confluence XHTML, or ADF) const page = await confluence("POST", "/pages", { spaceId: space.id, status: "current", // "current" (published) or "draft" title: "API Design Guidelines", body: { representation: "storage", value: `<h2>REST API Conventions</h2><p>All APIs must follow these conventions:</p> <ul><li>Use plural nouns: <code>/users</code></li><li>Version via URL prefix</li></ul>`, }, }); // Create a child page (nested under a parent) const childPage = await confluence("POST", "/pages", { spaceId: space.id, parentId: page.id, title: "Authentication Standards", body: { representation: "storage", value: "<p>All APIs use OAuth 2.0 with JWT.</p>" }, }); // Update — MUST increment version number const currentPage = await confluence("GET", `/pages/${page.id}?body-format=storage`); await confluence("PUT", `/pages/${page.id}`, { id: page.id, status: "current", title: "API Design Guidelines v2", body: { representation: "storage", value: "<p>Updated content...</p>" }, version: { number: currentPage.version.number + 1, message: "Added error handling section" }, }); // Children, reparent, delete (moves to trash, recoverable for 30 days) const descendants = await confluence("GET", `/pages/${page.id}/children?limit=50&sort=title`); await confluence("DELETE", `/pages/${page.id}`); ``` ### Step 4: CQL — Confluence Query Language ```typescript // CQL uses V1 API (not available in V2 yet). Similar to JQL but for content. const results = await confluenceV1("GET", `/content/search?cql=${encodeURIComponent('type = page AND space = "ENG" AND text ~ "authentication" ORDER BY lastModified DESC')}&limit=20` ); // Recent pages, labeled pages, pages by user const recent = await confluenceV1("GET", `/content/search?cql=${encodeURIComponent('type = page AND space = "ENG" AND lastModified >= now("-7d") ORDER BY lastModified DESC')}&limit=50` ); const labeled = await confluenceV1("GET", `/content/search?cql=${encodeURIComponent('type = page AND label = "runbook" AND space = "ENG"')}&limit=50` ); ``` ### Step 5: Labels & Organization ```typescript // Add, get, remove labels await confluenceV1("POST", `/content/${page.id}/label`, [ { prefix: "global", name: "runbook" }, { prefix: "global", name: "production" }, ]); const labels = await confluenceV1("GET", `/content/${page.id}/label`); await confluenceV1("DELETE", `/content/${page.id}/label/runbook`); ``` ### Step 6: Templates ```typescript // Create a reusable page template with variable placeholders const template = await confluenceV1("POST", "/template", { name: "Incident Postmortem", templateType: "page", description: "Standard incident postmortem template", space: { key: "ENG" }, body: { storage: { value: `<h2>Incident Summary</h2> <p><strong>Severity:</strong> <at:var at:name="severity">P1/P2/P3</at:var></p> <p><strong>Duration:</strong> <at:var at:name="duration">X hours</at:var></p> <h2>Timeline</h2><p>Chronological events...</p> <h2>Root Cause</h2><p>What caused this...</p> <h2>Action Items</h2> <ac:structured-macro ac:name="tasklist"><ac:rich-text-body> <ac:task><ac:task-body>Action item 1</ac:task-body></ac:task> </ac:rich-text-body></ac:structured-macro>`, representation: "storage", }, }, }); // Create a page from a template (replace variables with real values) const fromTemplate = await confluenceV1("POST", "/content", { type: "page", title: "Postmortem: Auth Service Outage 2026-02-18", space: { key: "ENG" }, ancestors: [{ id: postmortemsParentPageId }], body: { storage: { value: template.body.storage.value.replace("P1/P2/P3", "P1").replace("X hours", "2h 15m"), representation: "storage", }, }, }); ``` ### Step 7: Attachments ```typescript // Upload attachment (PUT creates or updates; POST always creates new) const form = new FormData(); form.append("file", fs.createReadStream("architecture-diagram.png")); const attachment = await fetch(`${CONFLUENCE_BASE}/wiki/rest/api/content/${page.id}/child/attachment`, { method: "PUT", headers: { Authorization: `Basic ${AUTH}`, "X-Atlassian-Token": "nocheck", ...form.getHeaders() }, body: form, }).then(r => r.json()); // List attachments const attachments = await confluenceV1("GET", `/content/${page.id}/child/attachment?limit=50`); ``` ### Step 8: Permissions ```typescript // Get and set page restrictions const restrictions = await confluenceV1("GET", `/content/${page.id}/restriction`); await confluenceV1("PUT", `/content/${page.id}/restriction`, [{ operation: "update", restrictions: { user: [{ type: "known", accountId: "5f1234abc..." }], group: [{ type: "group", name: "engineering-leads" }], }, }]); // Space-level permissions await confluence("POST", `/spaces/${space.id}/permissions`, { subject: { type: "group", identifier: "engineering" }, operation: { key: "read", target: "space" }, }); ``` ### Step 9: Webhooks ```typescript // Register a webhook for content events const webhook = await fetch(`${CONFLUENCE_BASE}/wiki/rest/api/webhooks`, { method: "POST", headers: { Authorization: `Basic ${AUTH}`, "Content-Type": "application/json" }, body: JSON.stringify({ name: "Page update notifier", url: "https://your-app.com/webhook/confluence", events: ["page_created", "page_updated", "page_removed", "comment_created"], active: true, }), }).then(r => r.json()); // Webhook payload: { eventType: "page_created", page: { id, title, space, version } } ``` ### Step 10: Jira Integration ```typescript // Embed a live Jira i
Related in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.