← 返回 Skills 市场
pejovicvuk

Confluence

作者 Vuk Pejović · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ⚠ suspicious
150
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install atlassian-confluence
功能描述
Read and write Confluence pages, search content, manage labels and comments. Use when user mentions Confluence, wiki, documentation, pages, or knowledge base.
使用说明 (SKILL.md)

Confluence Cloud

Read and write Confluence Cloud pages via confluence-cli.sh. Uses the same Atlassian credentials as Jira.

Script location: {baseDir}/confluence-cli.sh

Commands

List spaces

{baseDir}/confluence-cli.sh spaces

Returns: [{ id, key, name, type, status }]

Note: most commands use the space id (numeric), not the key.

List pages in a space

{baseDir}/confluence-cli.sh pages 98312
{baseDir}/confluence-cli.sh pages 98312 50

Returns: [{ id, title, status, parentId, authorId, created, url }]

Default limit: 25.

Get page content

{baseDir}/confluence-cli.sh get 12345

Returns: { id, title, status, spaceId, parentId, version, body_text, body_html, truncated, created, url }

body_text is HTML-stripped plain text (first 3000 chars). body_html is raw storage format (first 5000 chars). If truncated is true, the page has more content than shown.

Find page by title

{baseDir}/confluence-cli.sh get-by-title 98312 "Deployment Runbook"

Returns page content directly. Use this when you know the exact page title — avoids a separate search + get.

List child pages

{baseDir}/confluence-cli.sh children 12345

Returns: [{ id, title, status, url }]

Search with CQL

{baseDir}/confluence-cli.sh search "space=ENG AND type=page AND title~\"architecture\""
{baseDir}/confluence-cli.sh search "label=runbook" 20

Common CQL patterns:

  • Pages in a space: space=ENG AND type=page
  • By title: title~"deployment guide"
  • By label: label=runbook
  • Recently modified: lastModified > now("-7d")
  • By creator: creator=currentUser() AND type=page

Returns: { total, results: [{ id, title, type, space, url }] }

Create page

{baseDir}/confluence-cli.sh create --space 98312 --title "Deployment Runbook" --parent 12345 --body "\x3Ch2>Steps\x3C/h2>\x3Cp>1. Pull latest main...\x3C/p>"

Required: --space, --title. Optional: --parent (page ID to nest under), --body (HTML storage format).

Returns: { id, title, url }

Update page

{baseDir}/confluence-cli.sh update 12345 --title "Updated Title" --body "\x3Cp>New content\x3C/p>"

Auto-increments the version number.

Returns: { id, title, version, url }

Get page comments

{baseDir}/confluence-cli.sh comments 12345

Returns: { count, comments: [{ id, body, created, version }] }

Add comment to page

{baseDir}/confluence-cli.sh add-comment 12345 "This section needs updating after the API migration"

Returns: { id, pageId, created }

List attachments

{baseDir}/confluence-cli.sh attachments 12345

Returns: [{ id, title, mediaType, fileSize, downloadUrl }]

Get page labels

{baseDir}/confluence-cli.sh labels 12345

Returns: [{ name, prefix }]

Add labels

{baseDir}/confluence-cli.sh add-labels 12345 "runbook,production,v2"

Labels are comma-separated.

Exploration Rules

When working with Confluence:

  1. Search first — use search with CQL to find pages. Do not list all pages in a space and scan through them.
  2. Use get-by-title when you know the page name — it's one call instead of search + get.
  3. Check truncated — if a page is truncated, tell the user the content was too long to load fully.
  4. Use children to navigate page hierarchies instead of listing the whole space.
  5. Before creating, always search to check if a similar page already exists.

Body Format

Confluence uses HTML "storage format":

  • \x3Cp>text\x3C/p> — paragraph
  • \x3Ch2>text\x3C/h2> — heading
  • \x3Ctable>\x3Ctbody>\x3Ctr>\x3Cth>Header\x3C/th>\x3C/tr>\x3Ctr>\x3Ctd>Cell\x3C/td>\x3C/tr>\x3C/tbody>\x3C/table> — table
  • \x3Cstrong>text\x3C/strong> — bold
  • \x3Ca href="url">text\x3C/a> — link
  • \x3Cac:structured-macro ac:name="jira">\x3Cac:parameter ac:name="key">PROJ-123\x3C/ac:parameter>\x3C/ac:structured-macro> — Jira link macro

Rules

  • All output is JSON to stdout, errors to both stderr and stdout.
  • Never delete pages without explicit user confirmation.
  • Always search before creating to avoid duplicates.
  • Results are paginated: pages (max 25), spaces (max 25), comments (max 25). Tell the user if results may be incomplete.
安全使用建议
This skill appears coherent and limited to Confluence Cloud operations. Before installing, verify you trust the skill source (no homepage or publisher info is provided). Make sure curl and python3 are available in the runtime environment (the registry metadata doesn't declare them). Understand that the ATLASSIAN_API_TOKEN and email will be used as basic auth against the ATLASSIAN_URL — only provide credentials you are willing to let this skill use. If you prefer more assurance, review the bundled confluence-cli.sh yourself or use an official/contributed Confluence client with a known provenance.
功能分析
Type: OpenClaw Skill Name: atlassian-confluence Version: 1.0.2 The skill bundle provides Confluence Cloud integration, but the `confluence-cli.sh` script contains multiple command injection vulnerabilities. Several functions (e.g., `cmd_add_labels`, `cmd_add_comment`, and `cmd_get_by_title`) interpolate shell variables directly into inline Python command strings without proper escaping or using environment variables. This allows for arbitrary code execution if an attacker can influence inputs like page IDs or labels. While these appear to be unintentional coding flaws rather than intentional malice, they pose a high risk of exploitation.
能力评估
Purpose & Capability
Name/description (Confluence) align with behavior: the included shell script talks only to Confluence REST endpoints. Minor inconsistency: the script requires curl and python3 (declared in the script header) but the registry metadata lists no required binaries — the script will fail if those binaries are absent.
Instruction Scope
SKILL.md instructs the agent to run the bundled confluence-cli.sh and to use standard Confluence API calls. The instructions do not ask the agent to read unrelated files, other credentials, or to send data to third-party endpoints outside ATLASSIAN_URL.
Install Mechanism
No install spec (instruction-only) and the script is bundled as a file. This is low-risk, but because the script will be executed from disk, users should confirm the script's origin (no homepage/source provided).
Credentials
Required env vars (ATLASSIAN_URL, ATLASSIAN_EMAIL, ATLASSIAN_API_TOKEN) are exactly what a Confluence client needs. No unrelated secrets or extra services are requested.
Persistence & Privilege
always is false and the skill does not request persistent system-wide privileges or modify other skills. It cannot force inclusion in all agent runs.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install atlassian-confluence
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /atlassian-confluence 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
**Expanded support for comments, attachments, and safer navigation rules.** - Added commands to get and add comments to pages (`comments`, `add-comment`). - Introduced attachment listing (`attachments` command). - Added `get-by-title` command to fetch pages directly by title. - Updated output structure to include a `truncated` flag in get operations. - Enhanced exploration guidelines: prefer search and title-based lookups, check truncation, and paginate results. - Results and errors handling clarified; outputs can now appear on both stdout and stderr.
v1.0.1
Added setup documentation
v1.0.0
Initial release of Confluence Cloud integration. - Read and write Confluence Cloud pages via CLI. - Search, create, update pages and manage labels. - List spaces, pages, child pages, and retrieve page content. - Uses same Atlassian credentials as the Jira skill. - No jq required—uses python3 for JSON parsing.
元数据
Slug atlassian-confluence
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

Confluence 是什么?

Read and write Confluence pages, search content, manage labels and comments. Use when user mentions Confluence, wiki, documentation, pages, or knowledge base. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 150 次。

如何安装 Confluence?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install atlassian-confluence」即可一键安装,无需额外配置。

Confluence 是免费的吗?

是的,Confluence 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Confluence 支持哪些平台?

Confluence 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Confluence?

由 Vuk Pejović(@pejovicvuk)开发并维护,当前版本 v1.0.2。

💬 留言讨论