[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-4b71729e-f74e-4595-a08a-e4906d8c0942":3,"$fpod5oGqkPctn-1_appq4inuhyy_Ie-74jlbihh5bbAs":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"4b71729e-f74e-4595-a08a-e4906d8c0942","confluence-automation","自动化Confluence页面创建、内容搜索、空间管理、标签和层次结构导航通过Rube MCP（Composio）。始终首先搜索当前架构的工具。","cat_prod_automation","mod_productivity","sickn33,productivity","---\nname: confluence-automation\ndescription: \"Automate Confluence page creation, content search, space management, labels, and hierarchy navigation via Rube MCP (Composio). Always search tools first for current schemas.\"\nrisk: critical\nsource: community\ndate_added: \"2026-02-27\"\n---\n\n# Confluence Automation via Rube MCP\n\nAutomate Confluence operations including page creation and updates, content search with CQL, space management, label tagging, and page hierarchy navigation through Composio's Confluence toolkit.\n\n## Prerequisites\n\n- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)\n- Active Confluence connection via `RUBE_MANAGE_CONNECTIONS` with toolkit `confluence`\n- Always call `RUBE_SEARCH_TOOLS` first to get current tool schemas\n\n## Setup\n\n**Get Rube MCP**: Add `https:\u002F\u002Frube.app\u002Fmcp` as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.\n\n1. Verify Rube MCP is available by confirming `RUBE_SEARCH_TOOLS` responds\n2. Call `RUBE_MANAGE_CONNECTIONS` with toolkit `confluence`\n3. If connection is not ACTIVE, follow the returned auth link to complete Confluence OAuth\n4. Confirm connection status shows ACTIVE before running any workflows\n\n## Core Workflows\n\n### 1. Create and Update Pages\n\n**When to use**: User wants to create new documentation or update existing Confluence pages\n\n**Tool sequence**:\n1. `CONFLUENCE_GET_SPACES` - List spaces to find the target space ID [Prerequisite]\n2. `CONFLUENCE_SEARCH_CONTENT` - Find existing page to avoid duplicates or locate parent [Optional]\n3. `CONFLUENCE_GET_PAGE_BY_ID` - Get current page content and version number before updating [Prerequisite for updates]\n4. `CONFLUENCE_CREATE_PAGE` - Create a new page in a space [Required for creation]\n5. `CONFLUENCE_UPDATE_PAGE` - Update an existing page with new content and incremented version [Required for updates]\n6. `CONFLUENCE_ADD_CONTENT_LABEL` - Tag the page with labels after creation [Optional]\n\n**Key parameters**:\n- `spaceId`: Space ID or key (e.g., `\"DOCS\"`, `\"12345678\"`) -- space keys are auto-converted to IDs\n- `title`: Page title (must be unique within a space)\n- `parentId`: Parent page ID for creating child pages; omit to place under space homepage\n- `body.storage.value`: HTML\u002FXHTML content in Confluence storage format\n- `body.storage.representation`: Must be `\"storage\"` for create operations\n- `version.number`: For updates, must be current version + 1\n- `version.message`: Optional change description\n\n**Pitfalls**:\n- Confluence enforces unique page titles per space; creating a page with a duplicate title will fail\n- `UPDATE_PAGE` requires `version.number` set to current version + 1; always fetch current version first with `GET_PAGE_BY_ID`\n- Content must be in Confluence storage format (XHTML), not plain text or Markdown\n- `CREATE_PAGE` uses `body.storage.value` while `UPDATE_PAGE` uses `body.value` with `body.representation`\n- `GET_PAGE_BY_ID` requires a numeric long ID, not a UUID or string\n\n### 2. Search Content\n\n**When to use**: User wants to find pages, blog posts, or content across Confluence\n\n**Tool sequence**:\n1. `CONFLUENCE_SEARCH_CONTENT` - Keyword search with intelligent relevance ranking [Required]\n2. `CONFLUENCE_CQL_SEARCH` - Advanced search using Confluence Query Language [Alternative]\n3. `CONFLUENCE_GET_PAGE_BY_ID` - Hydrate full content for selected search results [Optional]\n4. `CONFLUENCE_GET_PAGES` - Browse pages sorted by date when search relevance is weak [Fallback]\n\n**Key parameters for SEARCH_CONTENT**:\n- `query`: Search text matched against page titles with intelligent ranking\n- `spaceKey`: Limit search to a specific space\n- `limit`: Max results (default 25, max 250)\n- `start`: Pagination offset (0-based)\n\n**Key parameters for CQL_SEARCH**:\n- `cql`: CQL query string (e.g., `text ~ \"API docs\" AND space = DOCS AND type = page`)\n- `expand`: Comma-separated properties (e.g., `content.space`, `content.body.storage`)\n- `excerpt`: `highlight`, `indexed`, or `none`\n- `limit`: Max results (max 250; reduced to 25-50 when using body expansions)\n\n**CQL operators and fields**:\n- Fields: `text`, `title`, `label`, `space`, `type`, `creator`, `lastModified`, `created`, `ancestor`\n- Operators: `=`, `!=`, `~` (contains), `!~`, `>`, `\u003C`, `>=`, `\u003C=`, `IN`, `NOT IN`\n- Functions: `currentUser()`, `now(\"-7d\")`, `now(\"-30d\")`\n- Example: `title ~ \"meeting\" AND lastModified > now(\"-7d\") ORDER BY lastModified DESC`\n\n**Pitfalls**:\n- `CONFLUENCE_SEARCH_CONTENT` fetches up to 300 pages and applies client-side filtering -- not a true full-text search\n- `CONFLUENCE_CQL_SEARCH` is the real full-text search; use `text ~ \"term\"` for content body search\n- HTTP 429 rate limits can occur; throttle to ~2 requests\u002Fsecond with backoff\n- Using body expansions in CQL_SEARCH may reduce max results to 25-50\n- Search indexing is not immediate; recently created pages may not appear\n\n### 3. Manage Spaces\n\n**When to use**: User wants to list, create, or inspect Confluence spaces\n\n**Tool sequence**:\n1. `CONFLUENCE_GET_SPACES` - List all spaces with optional filtering [Required]\n2. `CONFLUENCE_GET_SPACE_BY_ID` - Get detailed metadata for a specific space [Optional]\n3. `CONFLUENCE_CREATE_SPACE` - Create a new space with key and name [Optional]\n4. `CONFLUENCE_GET_SPACE_PROPERTIES` - Retrieve custom metadata stored as space properties [Optional]\n5. `CONFLUENCE_GET_SPACE_CONTENTS` - List pages, blog posts, or attachments in a space [Optional]\n6. `CONFLUENCE_GET_LABELS_FOR_SPACE` - List labels on a space [Optional]\n\n**Key parameters**:\n- `key`: Space key -- alphanumeric only, no underscores or hyphens (e.g., `DOCS`, `PROJECT1`)\n- `name`: Human-readable space name\n- `type`: `global` or `personal`\n- `status`: `current` (active) or `archived`\n- `spaceKey`: For GET_SPACE_CONTENTS, filters by space key\n- `id`: Numeric space ID for GET_SPACE_BY_ID (NOT the space key)\n\n**Pitfalls**:\n- Space keys must be alphanumeric only (no underscores, hyphens, or special characters)\n- `GET_SPACE_BY_ID` requires numeric space ID, not the space key; use `GET_SPACES` to find numeric IDs\n- Clickable space URLs may need assembly: join `_links.webui` (relative) with `_links.base`\n- Default pagination is 25; set `limit` explicitly (max 200 for spaces)\n\n### 4. Navigate Page Hierarchy and Labels\n\n**When to use**: User wants to explore page trees, child pages, ancestors, or manage labels\n\n**Tool sequence**:\n1. `CONFLUENCE_SEARCH_CONTENT` - Find the target page ID [Prerequisite]\n2. `CONFLUENCE_GET_CHILD_PAGES` - List direct children of a parent page [Required]\n3. `CONFLUENCE_GET_PAGE_ANCESTORS` - Get the full ancestor chain for a page [Optional]\n4. `CONFLUENCE_GET_LABELS_FOR_PAGE` - List labels on a specific page [Optional]\n5. `CONFLUENCE_ADD_CONTENT_LABEL` - Add labels to a page [Optional]\n6. `CONFLUENCE_GET_LABELS_FOR_SPACE_CONTENT` - List labels across all content in a space [Optional]\n7. `CONFLUENCE_GET_PAGE_VERSIONS` - Audit edit history for a page [Optional]\n\n**Key parameters**:\n- `id`: Page ID for child pages, ancestors, labels, and versions\n- `cursor`: Opaque pagination cursor for GET_CHILD_PAGES (from `_links.next`)\n- `limit`: Items per page (max 250 for child pages)\n- `sort`: Child page sort options: `id`, `-id`, `created-date`, `-created-date`, `modified-date`, `-modified-date`, `child-position`, `-child-position`\n\n**Pitfalls**:\n- `GET_CHILD_PAGES` only returns direct children, not nested descendants; recurse for full tree\n- Pagination for GET_CHILD_PAGES uses cursor-based pagination (not start\u002Flimit)\n- Verify the correct page ID from search before using as parent; search can return similar titles\n- `GET_PAGE_VERSIONS` requires the page ID, not a version number\n\n## Common Patterns\n\n### ID Resolution\nAlways resolve human-readable names to IDs before operations:\n- **Space key -> Space ID**: `CONFLUENCE_GET_SPACES` with `spaceKey` filter, or `CREATE_PAGE` accepts space keys directly\n- **Page title -> Page ID**: `CONFLUENCE_SEARCH_CONTENT` with `query` param, then extract page ID\n- **Space ID from URL**: Extract numeric ID from Confluence URLs or use GET_SPACES\n\n### Pagination\nConfluence uses two pagination styles:\n- **Offset-based** (most endpoints): `start` (0-based offset) + `limit` (page size). Increment `start` by `limit` until fewer results than `limit` are returned.\n- **Cursor-based** (GET_CHILD_PAGES, GET_PAGES): Use the `cursor` from `_links.next` in the response. Continue until no `next` link is present.\n\n### Content Formatting\n- Pages use Confluence storage format (XHTML), not Markdown\n- Basic elements: `\u003Cp>`, `\u003Ch1>`-`\u003Ch6>`, `\u003Cstrong>`, `\u003Cem>`, `\u003Ccode>`, `\u003Cul>`, `\u003Col>`, `\u003Cli>`\n- Tables: `\u003Ctable>\u003Ctbody>\u003Ctr>\u003Cth>` \u002F `\u003Ctd>` structure\n- Macros: `\u003Cac:structured-macro ac:name=\"code\">` for code blocks, etc.\n- Always wrap content in proper XHTML tags\n\n## Known Pitfalls\n\n### ID Formats\n- Space IDs are numeric (e.g., `557060`); space keys are short strings (e.g., `DOCS`)\n- Page IDs are numeric long values for GET_PAGE_BY_ID; some tools accept UUID format\n- `GET_SPACE_BY_ID` requires numeric ID, not the space key\n- `GET_PAGE_BY_ID` takes an integer, not a string\n\n### Rate Limits\n- HTTP 429 can occur on search endpoints; honor Retry-After header\n- Throttle to ~2 requests\u002Fsecond with exponential backoff and jitter\n- Body expansion in CQL_SEARCH reduces result limits to 25-50\n\n### Content Format\n- Content must be Confluence storage format (XHTML), not Markdown or plain text\n- Invalid XHTML will cause page creation\u002Fupdate to fail\n- `CREATE_PAGE` nests body under `body.storage.value`; `UPDATE_PAGE` uses `body.value` + `body.representation`\n\n### Version Conflicts\n- Updates require exact next version number (current + 1)\n- Concurrent edits can cause version conflicts; always fetch current version immediately before updating\n- Title changes during update must still be unique within the space\n\n## Quick Reference\n\n| Task | Tool Slug | Key Params |\n|------|-----------|------------|\n| List spaces | `CONFLUENCE_GET_SPACES` | `type`, `status`, `limit` |\n| Get space by ID | `CONFLUENCE_GET_SPACE_BY_ID` | `id` |\n| Create space | `CONFLUENCE_CREATE_SPACE` | `key`, `name`, `type` |\n| Space contents | `CONFLUENCE_GET_SPACE_CONTENTS` | `spaceKey`, `type`, `status` |\n| Space properties | `CONFLUENCE_GET_SPACE_PROPERTIES` | `id`, `key` |\n| Search content | `CONFLUENCE_SEARCH_CONTENT` | `query`, `spaceKey`, `limit` |\n| CQL search | `CONFLUENCE_CQL_SEARCH` | `cql`, `expand`, `limit` |\n| List pages | `CONFLUENCE_GET_PAGES` | `spaceId`, `sort`, `limit` |\n| Get page by ID | `CONFLUENCE_GET_PAGE_BY_ID` | `id` (integer) |\n| Create page | `CONFLUENCE_CREATE_PAGE` | `title`, `spaceId`, `body` |\n| Update page | `CONFLUENCE_UPDATE_PAGE` | `id`, `title`, `body`, `version` |\n| Delete page | `CONFLUENCE_DELETE_PAGE` | `id` |\n| Child pages | `CONFLUENCE_GET_CHILD_PAGES` | `id`, `limit`, `sort` |\n| Page ancestors | `CONFLUENCE_GET_PAGE_ANCESTORS` | `id` |\n| Page labels | `CONFLUENCE_GET_LABELS_FOR_PAGE` | `id` |\n| Add label | `CONFLUENCE_ADD_CONTENT_LABEL` | content ID, label |\n| Page versions | `CONFLUENCE_GET_PAGE_VERSIONS` | `id` |\n| Space labels | `CONFLUENCE_GET_LABELS_FOR_SPACE` | space ID |\n\n## When to Use\nThis skill is applicable to execute the workflow or actions described in the overview.\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,117,2074,"2026-05-16 13:12:44",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"自动化","automation","mdi-robot-outline","工作流自动化、批处理",3,101,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"f8543d19-5de6-41d8-8719-d119dc96a897","1.0.0","confluence-automation.zip",4412,"uploads\u002Fskills\u002F4b71729e-f74e-4595-a08a-e4906d8c0942\u002Fconfluence-automation.zip","f915b89cb27a3755d6983ea847fa9bf6d4635b0c74f148ac0f439417c2597db2","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":11581}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]