confluence
БесплатноБез исполняемых скриптовНе проверенManage documentation and knowledge bases in Confluence Cloud through its REST APIs. Use when a user asks to create Confluence spaces or pages, build a page…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
Confluence
Overview
Automate Confluence Cloud (Atlassian's wiki) over HTTP. Page and space work goes through REST API v2 (/wiki/api/v2, cursor-paginated). A subset of v1 (/wiki/rest/api) is still needed for CQL search, labels (add/remove), attachment upload, templates, page restrictions and some page moves. Atlassian has been removing v1 endpoints: v1 POST /content (create page) and PUT /content/{id} are no longer in its published API reference, so always create and update pages with v2. Checked against the v1 and v2 OpenAPI documents on 2026-10-24; nothing here was run against a live site.
Instructions
Step 1: Authentication
Basic auth with the account email and an API token (create it at https://id.atlassian.com/manage-profile/security/api-tokens). Keep both in environment variables.
const BASE = process.env.CONFLUENCE_BASE_URL!; // https://acme-eng.atlassian.net
const AUTH = Buffer.from(
`${process.env.ATLASSIAN_EMAIL}:${process.env.ATLASSIAN_API_TOKEN}`,
).toString("base64");
async function api(prefix: "/wiki/api/v2" | "/wiki/rest/api", method: string, path: string, body?: unknown) {
const res = await fetch(`${BASE}${prefix}${path}`, {
method,
headers: { Authorization: `Basic ${AUTH}`, "Content-Type": "application/json", Accept: "application/json" },
body: body === undefined ? undefined : JSON.stringify(body),
});
if (!res.ok) throw new Error(`Confluence ${method} ${path}: ${res.status} ${await res.text()}`);
return res.status === 204 ? null : res.json();
}
const v2 = (m: string, p: string, b?: unknown) => api("/wiki/api/v2", m, p, b);
const v1 = (m: string, p: string, b?: unknown) => api("/wiki/rest/api", m, p, b);
OAuth 2.0 (3LO) is the alternative for apps acting for other users; v2 scopes look like read:page:confluence and write:page:confluence.
Step 2: Spaces
v2 identifies a space by numeric id, not by key. Look the id up with keys=.
// Create: name is required, plus either key (uppercase) or alias. description is optional and plain text only.
const space = await v2("POST", "/spaces", {
name: "Engineering", key: "ENG",
description: { representation: "plain", value: "Engineering docs" },
});
const found = await v2("GET", "/spaces?keys=ENG&description-format=plain");
const spaceId: string = found.results[0].id;
const pages = await v2("GET", `/spaces/${spaceId}/pages?limit=50`);
v2 has no endpoint to update or delete a space; use the Confluence UI or v1 for that. Responses are cursor-paginated: follow _links.next until it is absent.
Step 3: Pages and hierarchy
Bodies use representation: storage (Confluence XHTML), atlas_doc_format (ADF as a JSON string) or wiki.
const page = await v2("POST", "/pages", {
spaceId, status: "current", title: "API Design Guidelines",
body: { representation: "storage",
value: "<h2>REST conventions</h2><ul><li>Use plural nouns: <code>/users</code></li></ul>" },
});
// Child page: set parentId
const child = await v2("POST", "/pages", {
spaceId, parentId: page.id, title: "Authentication Standards",
body: { representation: "storage", value: "<p>All APIs use OAuth 2.0.</p>" },
});
// Update: send the full page and version.number = current + 1
const cur = await v2("GET", `/pages/${page.id}?body-format=storage`);
await v2("PUT", `/pages/${page.id}`, {
id: page.id, status: "current", title: "API Design Guidelines v2",
body: { representation: "storage", value: "<p>Updated content</p>" },
version: { number: cur.version.number + 1, message: "Added error handling section" },
});
// Direct children (GET /pages/{id}/children is deprecated), all descendants, ancestors
const kids = await v2("GET", `/pages/${page.id}/direct-children`);
const tree = await v2("GET", `/pages/${page.id}/descendants`);
// Delete moves to trash; purge=true on a page already in the trash removes it permanently
await v2("DELETE", `/pages/${child.id}`);
To move a page under a different parent in the same space, send parentId in the v2 PUT /pages/{id} body. For other moves use v1: PUT /wiki/rest/api/content/{pageId}/move/append/{targetId}.
Step 4: CQL search (v1)
const cql = 'type = page AND space = "ENG" AND text ~ "authentication" ORDER BY lastModified DESC';
const hits = await v1("GET", `/content/search?cql=${encodeURIComponent(cql)}&limit=20`);
// Other useful clauses: lastModified >= now("-7d"), label = "runbook", ancestor = 12345
GET /wiki/rest/api/search?cql= returns results with excerpts across content, spaces and users.
Step 5: Labels
await v1("POST", `/content/${page.id}/label`, [
{ prefix: "global", name: "runbook" },
{ prefix: "global", name: "production" },
]);
const labels = await v2("GET", `/pages/${page.id}/labels`); // v2 can read labels
await v1("DELETE", `/content/${page.id}/label/runbook`);
Step 6: Templates
v1 can create and read templates (`POST /wiki/rest/a
Установить confluence в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл confluence?
Manage documentation and knowledge bases in Confluence Cloud through its REST APIs. Use when a user asks to create Confluence spaces or pages, build a page tree, update a page, search with CQL, add labels, upload attachments, restrict who can view or edit a page, embed Jira issues, or automate documentation from scripts. Covers REST API v2, the remaining v1 endpoints and storage-format page bodies.
Как установить скилл confluence?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл confluence запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic