confluence-automation
Scannednpx machina-cli add skill davepoon/buildwithclaude/confluence-automation --openclawConfluence Automation via Rube MCP
Automate Confluence operations including page creation and updates, content search with CQL, space management, label tagging, and page hierarchy navigation through Composio's Confluence toolkit.
Toolkit docs: composio.dev/toolkits/confluence
Prerequisites
- Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
- Active Confluence connection via
RUBE_MANAGE_CONNECTIONSwith toolkitconfluence - Always call
RUBE_SEARCH_TOOLSfirst to get current tool schemas
Setup
Get Rube MCP: Add https://rube.app/mcp as an MCP server in your client configuration. No API keys needed — just add the endpoint and it works.
- Verify Rube MCP is available by confirming
RUBE_SEARCH_TOOLSresponds - Call
RUBE_MANAGE_CONNECTIONSwith toolkitconfluence - If connection is not ACTIVE, follow the returned auth link to complete Confluence OAuth
- Confirm connection status shows ACTIVE before running any workflows
Core Workflows
1. Create and Update Pages
When to use: User wants to create new documentation or update existing Confluence pages
Tool sequence:
CONFLUENCE_GET_SPACES- List spaces to find the target space ID [Prerequisite]CONFLUENCE_SEARCH_CONTENT- Find existing page to avoid duplicates or locate parent [Optional]CONFLUENCE_GET_PAGE_BY_ID- Get current page content and version number before updating [Prerequisite for updates]CONFLUENCE_CREATE_PAGE- Create a new page in a space [Required for creation]CONFLUENCE_UPDATE_PAGE- Update an existing page with new content and incremented version [Required for updates]CONFLUENCE_ADD_CONTENT_LABEL- Tag the page with labels after creation [Optional]
Key parameters:
spaceId: Space ID or key (e.g.,"DOCS","12345678") -- space keys are auto-converted to IDstitle: Page title (must be unique within a space)parentId: Parent page ID for creating child pages; omit to place under space homepagebody.storage.value: HTML/XHTML content in Confluence storage formatbody.storage.representation: Must be"storage"for create operationsversion.number: For updates, must be current version + 1version.message: Optional change description
Pitfalls:
- Confluence enforces unique page titles per space; creating a page with a duplicate title will fail
UPDATE_PAGErequiresversion.numberset to current version + 1; always fetch current version first withGET_PAGE_BY_ID- Content must be in Confluence storage format (XHTML), not plain text or Markdown
CREATE_PAGEusesbody.storage.valuewhileUPDATE_PAGEusesbody.valuewithbody.representationGET_PAGE_BY_IDrequires a numeric long ID, not a UUID or string
2. Search Content
When to use: User wants to find pages, blog posts, or content across Confluence
Tool sequence:
CONFLUENCE_SEARCH_CONTENT- Keyword search with intelligent relevance ranking [Required]CONFLUENCE_CQL_SEARCH- Advanced search using Confluence Query Language [Alternative]CONFLUENCE_GET_PAGE_BY_ID- Hydrate full content for selected search results [Optional]CONFLUENCE_GET_PAGES- Browse pages sorted by date when search relevance is weak [Fallback]
Key parameters for SEARCH_CONTENT:
query: Search text matched against page titles with intelligent rankingspaceKey: Limit search to a specific spacelimit: Max results (default 25, max 250)start: Pagination offset (0-based)
Key parameters for CQL_SEARCH:
cql: CQL query string (e.g.,text ~ "API docs" AND space = DOCS AND type = page)expand: Comma-separated properties (e.g.,content.space,content.body.storage)excerpt:highlight,indexed, ornonelimit: Max results (max 250; reduced to 25-50 when using body expansions)
CQL operators and fields:
- Fields:
text,title,label,space,type,creator,lastModified,created,ancestor - Operators:
=,!=,~(contains),!~,>,<,>=,<=,IN,NOT IN - Functions:
currentUser(),now("-7d"),now("-30d") - Example:
title ~ "meeting" AND lastModified > now("-7d") ORDER BY lastModified DESC
Pitfalls:
CONFLUENCE_SEARCH_CONTENTfetches up to 300 pages and applies client-side filtering -- not a true full-text searchCONFLUENCE_CQL_SEARCHis the real full-text search; usetext ~ "term"for content body search- HTTP 429 rate limits can occur; throttle to ~2 requests/second with backoff
- Using body expansions in CQL_SEARCH may reduce max results to 25-50
- Search indexing is not immediate; recently created pages may not appear
3. Manage Spaces
When to use: User wants to list, create, or inspect Confluence spaces
Tool sequence:
CONFLUENCE_GET_SPACES- List all spaces with optional filtering [Required]CONFLUENCE_GET_SPACE_BY_ID- Get detailed metadata for a specific space [Optional]CONFLUENCE_CREATE_SPACE- Create a new space with key and name [Optional]CONFLUENCE_GET_SPACE_PROPERTIES- Retrieve custom metadata stored as space properties [Optional]CONFLUENCE_GET_SPACE_CONTENTS- List pages, blog posts, or attachments in a space [Optional]CONFLUENCE_GET_LABELS_FOR_SPACE- List labels on a space [Optional]
Key parameters:
key: Space key -- alphanumeric only, no underscores or hyphens (e.g.,DOCS,PROJECT1)name: Human-readable space nametype:globalorpersonalstatus:current(active) orarchivedspaceKey: For GET_SPACE_CONTENTS, filters by space keyid: Numeric space ID for GET_SPACE_BY_ID (NOT the space key)
Pitfalls:
- Space keys must be alphanumeric only (no underscores, hyphens, or special characters)
GET_SPACE_BY_IDrequires numeric space ID, not the space key; useGET_SPACESto find numeric IDs- Clickable space URLs may need assembly: join
_links.webui(relative) with_links.base - Default pagination is 25; set
limitexplicitly (max 200 for spaces)
4. Navigate Page Hierarchy and Labels
When to use: User wants to explore page trees, child pages, ancestors, or manage labels
Tool sequence:
CONFLUENCE_SEARCH_CONTENT- Find the target page ID [Prerequisite]CONFLUENCE_GET_CHILD_PAGES- List direct children of a parent page [Required]CONFLUENCE_GET_PAGE_ANCESTORS- Get the full ancestor chain for a page [Optional]CONFLUENCE_GET_LABELS_FOR_PAGE- List labels on a specific page [Optional]CONFLUENCE_ADD_CONTENT_LABEL- Add labels to a page [Optional]CONFLUENCE_GET_LABELS_FOR_SPACE_CONTENT- List labels across all content in a space [Optional]CONFLUENCE_GET_PAGE_VERSIONS- Audit edit history for a page [Optional]
Key parameters:
id: Page ID for child pages, ancestors, labels, and versionscursor: Opaque pagination cursor for GET_CHILD_PAGES (from_links.next)limit: Items per page (max 250 for child pages)sort: Child page sort options:id,-id,created-date,-created-date,modified-date,-modified-date,child-position,-child-position
Pitfalls:
GET_CHILD_PAGESonly returns direct children, not nested descendants; recurse for full tree- Pagination for GET_CHILD_PAGES uses cursor-based pagination (not start/limit)
- Verify the correct page ID from search before using as parent; search can return similar titles
GET_PAGE_VERSIONSrequires the page ID, not a version number
Common Patterns
ID Resolution
Always resolve human-readable names to IDs before operations:
- Space key -> Space ID:
CONFLUENCE_GET_SPACESwithspaceKeyfilter, orCREATE_PAGEaccepts space keys directly - Page title -> Page ID:
CONFLUENCE_SEARCH_CONTENTwithqueryparam, then extract page ID - Space ID from URL: Extract numeric ID from Confluence URLs or use GET_SPACES
Pagination
Confluence uses two pagination styles:
- Offset-based (most endpoints):
start(0-based offset) +limit(page size). Incrementstartbylimituntil fewer results thanlimitare returned. - Cursor-based (GET_CHILD_PAGES, GET_PAGES): Use the
cursorfrom_links.nextin the response. Continue until nonextlink is present.
Content Formatting
- Pages use Confluence storage format (XHTML), not Markdown
- Basic elements:
<p>,<h1>-<h6>,<strong>,<em>,<code>,<ul>,<ol>,<li> - Tables:
<table><tbody><tr><th>/<td>structure - Macros:
<ac:structured-macro ac:name="code">for code blocks, etc. - Always wrap content in proper XHTML tags
Known Pitfalls
ID Formats
- Space IDs are numeric (e.g.,
557060); space keys are short strings (e.g.,DOCS) - Page IDs are numeric long values for GET_PAGE_BY_ID; some tools accept UUID format
GET_SPACE_BY_IDrequires numeric ID, not the space keyGET_PAGE_BY_IDtakes an integer, not a string
Rate Limits
- HTTP 429 can occur on search endpoints; honor Retry-After header
- Throttle to ~2 requests/second with exponential backoff and jitter
- Body expansion in CQL_SEARCH reduces result limits to 25-50
Content Format
- Content must be Confluence storage format (XHTML), not Markdown or plain text
- Invalid XHTML will cause page creation/update to fail
CREATE_PAGEnests body underbody.storage.value;UPDATE_PAGEusesbody.value+body.representation
Version Conflicts
- Updates require exact next version number (current + 1)
- Concurrent edits can cause version conflicts; always fetch current version immediately before updating
- Title changes during update must still be unique within the space
Quick Reference
| Task | Tool Slug | Key Params |
|---|---|---|
| List spaces | CONFLUENCE_GET_SPACES | type, status, limit |
| Get space by ID | CONFLUENCE_GET_SPACE_BY_ID | id |
| Create space | CONFLUENCE_CREATE_SPACE | key, name, type |
| Space contents | CONFLUENCE_GET_SPACE_CONTENTS | spaceKey, type, status |
| Space properties | CONFLUENCE_GET_SPACE_PROPERTIES | id, key |
| Search content | CONFLUENCE_SEARCH_CONTENT | query, spaceKey, limit |
| CQL search | CONFLUENCE_CQL_SEARCH | cql, expand, limit |
| List pages | CONFLUENCE_GET_PAGES | spaceId, sort, limit |
| Get page by ID | CONFLUENCE_GET_PAGE_BY_ID | id (integer) |
| Create page | CONFLUENCE_CREATE_PAGE | title, spaceId, body |
| Update page | CONFLUENCE_UPDATE_PAGE | id, title, body, version |
| Delete page | CONFLUENCE_DELETE_PAGE | id |
| Child pages | CONFLUENCE_GET_CHILD_PAGES | id, limit, sort |
| Page ancestors | CONFLUENCE_GET_PAGE_ANCESTORS | id |
| Page labels | CONFLUENCE_GET_LABELS_FOR_PAGE | id |
| Add label | CONFLUENCE_ADD_CONTENT_LABEL | content ID, label |
| Page versions | CONFLUENCE_GET_PAGE_VERSIONS | id |
| Space labels | CONFLUENCE_GET_LABELS_FOR_SPACE | space ID |
Powered by Composio
Source
git clone https://github.com/davepoon/buildwithclaude/blob/main/plugins/all-skills/skills/confluence-automation/SKILL.mdView on GitHub Overview
Automate Confluence operations such as page creation, updates, content search, space management, labels, and hierarchy navigation using Composio’s Confluence toolkit through Rube MCP. Always call RUBE_SEARCH_TOOLS first to fetch current schemas.
How This Skill Works
The skill orchestrates Confluence tasks by first validating the Rube MCP connection and available tool schemas, then executing a sequence of toolkit calls. Core workflows use actions like CONFLUENCE_GET_SPACES, CONFLUENCE_SEARCH_CONTENT, CONFLUENCE_GET_PAGE_BY_ID, CONFLUENCE_CREATE_PAGE, CONFLUENCE_UPDATE_PAGE, and CONFLUENCE_ADD_CONTENT_LABEL, with optional CONFLUENCE_CQL_SEARCH for advanced queries. Content must be provided in Confluence storage format and version numbers must be managed accurately for updates.
When to Use It
- Create a new documentation page in a specific space without duplicating titles
- Update an existing page by locating it first and then applying changes with an incremented version
- Search for pages by keyword or CQL and hydrate full content for display or edits
- Add labels to pages after creation to improve discovery and categorization
- Navigate and organize content within spaces by identifying space IDs and parent pages for hierarchical pages
Quick Start
- Step 1: Configure MCP by adding https://rube.app/mcp as an MCP server and connect Confluence with RUBE_MANAGE_CONNECTIONS
- Step 2: Run RUBE_SEARCH_TOOLS to verify schemas and tool availability, then locate target spaces and pages
- Step 3: Use the Create/Update workflow sequence (GET_SPACES, SEARCH_CONTENT/GET_PAGE_BY_ID, CREATE_PAGE/UPDATE_PAGE, ADD_CONTENT_LABEL) to manage pages
Best Practices
- Always fetch current page versions with GET_PAGE_BY_ID before updating
- Ensure page titles are unique within a space to avoid creation failures
- Provide content in Confluence storage format (XHTML) for body.storage.value
- Call RUBE_SEARCH_TOOLS first to retrieve current tool schemas and capabilities
- Verify the Confluence connection is ACTIVE before running workflows and use parentId to create hierarchical pages
Example Use Cases
- Create a new API docs page under DOCS space with parent 1234 and initial HTML content
- Update the release notes page by retrieving its current version and bumping version.number
- Search for pages containing 'OAuth' across a space, then hydrate full content for review
- Add labels 'docs' and 'security' to a newly created Confluence page for better discovery
- Find a child page under a known parent and update its content to reflect latest changes
Frequently Asked Questions
Related Skills
airtable-automation
davepoon/buildwithclaude
Automate Airtable tasks via Rube MCP (Composio): records, bases, tables, fields, views. Always search tools first for current schemas.
box-automation
davepoon/buildwithclaude
Automate Box cloud storage operations including file upload/download, search, folder management, sharing, collaborations, and metadata queries via Rube MCP (Composio). Always search tools first for current schemas.
dropbox-automation
davepoon/buildwithclaude
Automate Dropbox file management, sharing, search, uploads, downloads, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.
google-drive-automation
davepoon/buildwithclaude
Automate Google Drive file operations (upload, download, search, share, organize) via Rube MCP (Composio). Upload/download files, manage folders, share with permissions, and search across drives programmatically.
notion-automation
davepoon/buildwithclaude
Automate Notion tasks via Rube MCP (Composio): pages, databases, blocks, comments, users. Always search tools first for current schemas.
one-drive-automation
davepoon/buildwithclaude
Automate OneDrive file management, search, uploads, downloads, sharing, permissions, and folder operations via Rube MCP (Composio). Always search tools first for current schemas.