Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问许可证需确认审计通过

confluence-automation汇流自动化

Agent Skill

confluence-automation 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

612

周安装

25

GitHub Stars

52

下载量

198
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:confluence-automation(汇流自动化)
来源仓库:https://github.com/aaaaqwq/claude-code-skills
仓库路径:skills/confluence-automation
安装命令:
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill confluence-automation
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/aaaaqwq/claude-code-skills --skill confluence-automation

简介

通过 Rube MCP 自动化 Confluence 页面创建、标签管理与 CQL 搜索。

  • 支持空间导航与层级操作,提升文档维护效率。
  • 依赖 Composio 的 Confluence toolkit 与有效连接。
  • 首次使用前需完成 Rube MCP 服务器配置。
  • confluence-automation 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Confluence 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.

Prerequisites

  • Rube MCP must be connected (RUBE_SEARCH_TOOLS available)
  • Active Confluence connection via RUBE_MANAGE_CONNECTIONS with toolkit confluence
  • Always call RUBE_SEARCH_TOOLS first 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.

  1. Verify Rube MCP is available by confirming RUBE_SEARCH_TOOLS responds
  2. Call RUBE_MANAGE_CONNECTIONS with toolkit confluence
  3. If connection is not ACTIVE, follow the returned auth link to complete Confluence OAuth
  4. 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:

  1. CONFLUENCE_GET_SPACES - List spaces to find the target space ID [Prerequisite]
  2. CONFLUENCE_SEARCH_CONTENT - Find existing page to avoid duplicates or locate parent [Optional]
  3. CONFLUENCE_GET_PAGE_BY_ID - Get current page content and version number before updating [Prerequisite for updates]
  4. CONFLUENCE_CREATE_PAGE - Create a new page in a space [Required for creation]
  5. CONFLUENCE_UPDATE_PAGE - Update an existing page with new content and incremented version [Required for updates]
  6. 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 IDs
  • title: Page title (must be unique within a space)
  • parentId: Parent page ID for creating child pages; omit to place under space homepage
  • body.storage.value: HTML/XHTML content in Confluence storage format
  • body.storage.representation: Must be "storage" for create operations
  • version.number: For updates, must be current version + 1
  • version.message: Optional change description

Pitfalls:

  • Confluence enforces unique page titles per space; creating a page with a duplicate title will fail
  • UPDATE_PAGE requires version.number set to current version + 1; always fetch current version first with GET_PAGE_BY_ID
  • Content must be in Confluence storage format (XHTML), not plain text or Markdown
  • CREATE_PAGE uses body.storage.value while UPDATE_PAGE uses body.value with body.representation
  • GET_PAGE_BY_ID requires 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:

  1. CONFLUENCE_SEARCH_CONTENT - Keyword search with intelligent relevance ranking [Required]
  2. CONFLUENCE_CQL_SEARCH - Advanced search using Confluence Query Language [Alternative]
  3. CONFLUENCE_GET_PAGE_BY_ID - Hydrate full content for selected search results [Optional]
  4. 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 ranking
  • spaceKey: Limit search to a specific space
  • limit: 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, or none
  • limit: 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_CONTENT fetches up to 300 pages and applies client-side filtering -- not a true full-text search
  • CONFLUENCE_CQL_SEARCH is the real full-text search; use text ~ "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:

  1. CONFLUENCE_GET_SPACES - List all spaces with optional filtering [Required]
  2. CONFLUENCE_GET_SPACE_BY_ID - Get detailed metadata for a specific space [Optional]
  3. CONFLUENCE_CREATE_SPACE - Create a new space with key and name [Optional]
  4. CONFLUENCE_GET_SPACE_PROPERTIES - Retrieve custom metadata stored as space properties [Optional]
  5. CONFLUENCE_GET_SPACE_CONTENTS - List pages, blog posts, or attachments in a space [Optional]
  6. 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 name
  • type: global or personal
  • status: current (active) or archived
  • spaceKey: For GET_SPACE_CONTENTS, filters by space key
  • id: 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_ID requires numeric space ID, not the space key; use GET_SPACES to find numeric IDs
  • Clickable space URLs may need assembly: join _links.webui (relative) with _links.base
  • Default pagination is 25; set limit explicitly (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:

  1. CONFLUENCE_SEARCH_CONTENT - Find the target page ID [Prerequisite]
  2. CONFLUENCE_GET_CHILD_PAGES - List direct children of a parent page [Required]
  3. CONFLUENCE_GET_PAGE_ANCESTORS - Get the full ancestor chain for a page [Optional]
  4. CONFLUENCE_GET_LABELS_FOR_PAGE - List labels on a specific page [Optional]
  5. CONFLUENCE_ADD_CONTENT_LABEL - Add labels to a page [Optional]
  6. CONFLUENCE_GET_LABELS_FOR_SPACE_CONTENT - List labels across all content in a space [Optional]
  7. CONFLUENCE_GET_PAGE_VERSIONS - Audit edit history for a page [Optional]

Key parameters:

  • id: Page ID for child pages, ancestors, labels, and versions
  • cursor: 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_PAGES only 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_VERSIONS requires 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_SPACES with spaceKey filter, or CREATE_PAGE accepts space keys directly
  • Page title -> Page ID: CONFLUENCE_SEARCH_CONTENT with query param, 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). Increment start by limit until fewer results than limit are returned.
  • Cursor-based (GET_CHILD_PAGES, GET_PAGES): Use the cursor from _links.next in the response. Continue until no next link 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_ID requires numeric ID, not the space key
  • GET_PAGE_BY_ID takes 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_PAGE nests body under body.storage.value; UPDATE_PAGE uses body.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

TaskTool SlugKey Params
List spacesCONFLUENCE_GET_SPACEStype, status, limit
Get space by IDCONFLUENCE_GET_SPACE_BY_IDid
Create spaceCONFLUENCE_CREATE_SPACEkey, name, type
Space contentsCONFLUENCE_GET_SPACE_CONTENTSspaceKey, type, status
Space propertiesCONFLUENCE_GET_SPACE_PROPERTIESid, key
Search contentCONFLUENCE_SEARCH_CONTENTquery, spaceKey, limit
CQL searchCONFLUENCE_CQL_SEARCHcql, expand, limit
List pagesCONFLUENCE_GET_PAGESspaceId, sort, limit
Get page by IDCONFLUENCE_GET_PAGE_BY_IDid (integer)
Create pageCONFLUENCE_CREATE_PAGEtitle, spaceId, body
Update pageCONFLUENCE_UPDATE_PAGEid, title, body, version
Delete pageCONFLUENCE_DELETE_PAGEid
Child pagesCONFLUENCE_GET_CHILD_PAGESid, limit, sort
Page ancestorsCONFLUENCE_GET_PAGE_ANCESTORSid
Page labelsCONFLUENCE_GET_LABELS_FOR_PAGEid
Add labelCONFLUENCE_ADD_CONTENT_LABELcontent ID, label
Page versionsCONFLUENCE_GET_PAGE_VERSIONSid
Space labelsCONFLUENCE_GET_LABELS_FOR_SPACEspace ID

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.11%
按下载量换算73

Claude

29.3%
按下载量换算58

Cursor

19.62%
按下载量换算39

Gemini CLI

11.03%
按下载量换算22

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills