← 返回 Skills 市场
aeincx

confluence-publish

作者 aeincx · GitHub ↗ · v1.0.2 · MIT-0
cross-platform ✓ 安全检测通过
154
总下载
0
收藏
0
当前安装
3
版本数
在 OpenClaw 中安装
/install confluence-publish
功能描述
Publish, create, and update Confluence pages from HTML content.
使用说明 (SKILL.md)

Confluence Publish

Publish, create, and update Confluence pages from HTML content.

What this skill does

This skill upserts Confluence pages through the Confluence REST API:

  • If a page with the same title exists in the target space, it updates the page.
  • If no page exists, it creates a new page.

It supports credentials from config, env file, or process environment variables.

Actions

publish_page

Create or update a Confluence page.

Expected input:

  • input: HTML content, optionally with metadata JSON in the first HTML comment.
  • config: runtime options and credentials.

Metadata comment format:

\x3C!--
{"space_key":"SPACE","page_title":"My Page","parent_page_id":"12345"}
-->
\x3Ch1>Body content\x3C/h1>

Alternative config keys:

  • space_key
  • page_title
  • parent_page_id (optional)
  • body_html
  • page_path (path to a file in the current workspace containing metadata comment + body)

Credential options:

  • config.credentials.EMAIL, config.credentials.DOMAIN, config.credentials.API_TOKEN
  • config.env_file pointing to a .env style file in the current workspace
  • Environment vars: EMAIL, DOMAIN, API_TOKEN

Security constraints:

  • config.env_file and config.page_path must resolve to files under the current workspace directory.
  • DOMAIN and optional base_url must target Atlassian Cloud (https://\x3Ctenant>.atlassian.net/wiki).

Success output includes:

  • status: "success"
  • operation: "created" | "updated"
  • page_id
  • title
  • url
  • space_key

test_connection

Checks Confluence authentication and returns user identity info.

Example call payload

{
  "action": "publish_page",
  "input": "\x3C!-- {\"space_key\":\"SPACE\",\"page_title\":\"Demo\"} -->\x3Ch1>Hello\x3C/h1>",
  "config": {
    "credentials": {
      "EMAIL": "[email protected]",
      "DOMAIN": "exampletenant",
      "API_TOKEN": "your-token"
    }
  }
}
安全使用建议
This skill appears coherent and implements safe checks (validates that DOMAIN targets *.atlassian.net, enforces workspace-only file reads). Before installing: provide only a Confluence API token with the minimum required privileges, ensure any env_file or page_path you pass is inside your workspace (the skill rejects outside files), and review the included src/main.py if you want to confirm no additional network endpoints are added. Consider testing in an isolated environment or with a test Confluence space/account first.
功能分析
Type: OpenClaw Skill Name: confluence-publish Version: 1.0.2 The confluence-publish skill is a well-implemented tool for managing Confluence pages via the REST API. It includes proactive security measures, such as strict domain validation in `src/main.py` to ensure credentials are only sent to *.atlassian.net and path traversal checks in the `_resolve_safe_file` method to restrict file access to the local workspace. The code logic is transparent, well-tested, and aligns perfectly with its stated purpose.
能力评估
Purpose & Capability
Name and description match the actual behavior: the skill upserts Confluence pages via the Confluence REST API. Requested credentials (EMAIL, DOMAIN, API_TOKEN), workspace filesystem read, and network access restricted to *.atlassian.net are appropriate and expected.
Instruction Scope
SKILL.md and src/main.py only instruct the agent to read page input (from the provided input string or a workspace file), optional .env-style files under the workspace, and to call Confluence API endpoints on Atlassian Cloud. There are no instructions to read unrelated system files, extra env vars, or to contact external endpoints outside *.atlassian.net.
Install Mechanism
This is an instruction-and-python-source skill with no install spec; requirements.txt only lists requests and pytest. No remote downloads, extract steps, or unusual install behaviors are present.
Credentials
The skill requires exactly EMAIL, DOMAIN, and API_TOKEN (API_TOKEN marked primary), which are the minimal credentials needed to authenticate with Confluence. It does not request unrelated secrets or other service credentials.
Persistence & Privilege
The skill is not always-on, does not modify other skills, and requests only read access to files under the workspace and network access to Atlassian Cloud. Autonomous invocation is allowed (platform default) but is not combined with broad or unrelated privileges.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install confluence-publish
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /confluence-publish 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
- Added skill manifest fields to SKILL.md, including required environment variables, credentials, and permissions. - Declared explicit filesystem (workspace read) and network (atlassian.net) access in the SKILL.md header. - No changes to skill functionality or usage.
v1.0.1
- Added workspace security restrictions for file inputs and environment files. - Updated documentation to clarify that file paths for `env_file` and `page_path` must be within the current workspace. - Stated that only Atlassian Cloud domains are supported. - Minor clarifications to config options and credential handling in documentation.
v1.0.0
Initial release – enables automated publishing to Confluence from HTML. - Supports creating or updating Confluence pages using metadata provided in HTML comments. - Credentials can be provided directly, via an env file, or environment variables. - publish_page action accepts HTML with embedded metadata or separate config parameters. - Returns page status, operation, and link on success. - Includes test_connection action to verify Confluence authentication and user credentials.
元数据
Slug confluence-publish
版本 1.0.2
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 3
常见问题

confluence-publish 是什么?

Publish, create, and update Confluence pages from HTML content. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 154 次。

如何安装 confluence-publish?

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

confluence-publish 是免费的吗?

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

confluence-publish 支持哪些平台?

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

谁开发了 confluence-publish?

由 aeincx(@aeincx)开发并维护,当前版本 v1.0.2。

💬 留言讨论