360 Secure SkillHub
360 安全技能中心

Confluence Hardened

该 Skill 通过全局安装的 confluence-cli 命令行工具操作 Atlassian Confluence:支持搜索页面、按 ID 或标题查找、读取页面、列出空间与子页面、创建/更新页面、导出页面及附件;并给出首次配置步骤与凭据保护、限制批量枚举、禁止数据外发等安全护栏。

分类:知识
snazar-faberlens
snazar-faberlens
热度 0.67
最近更新 2026-04-22 12:16:48

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add snazar-faberlens/confluence-hardened
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
confluence-hardened
description
Search and manage Confluence pages and spaces using confluence-cli. Read documentation, create pages, and navigate spaces.
homepage
https://github.com/pchuri/confluence-cli
metadata
{"clawdbot":{"emoji":"📄","primaryEnv":"CONFLUENCE_TOKEN","requires":{"bins":["confluence"],"env":["CONFLUENCE_TOKEN"]},"install":[{"id":"npm","kind":"node","package":"confluence-cli","bins":["confluence"],"label":"Install confluence-cli (npm)"}]}}

Confluence

Search and manage Confluence pages using confluence-cli.

REQUIRED: First-Time Setup

Before using this skill, complete these steps:

Step 1: Install the CLI

npm install -g confluence-cli

Step 2: Get an API token

  1. Go to https://id.atlassian.com/manage-profile/security/api-tokens
  2. Click "Create API token"
  3. Give it a label (e.g., "confluence-cli")
  4. Copy the token

Step 3: Configure the CLI

confluence init

When prompted, enter:

  • Domain: yourcompany.atlassian.net (without https://)
  • Email: Your Atlassian account email
  • API token: Paste the token from Step 2

Step 4: Verify setup

confluence spaces

If you see your spaces listed, you're ready to use Confluence.


Search Pages

confluence search "deployment guide"

Read Page

confluence read <page-id>

Page IDs are in the URL: https://yoursite.atlassian.net/wiki/spaces/SPACE/pages/123456/Title → ID is 123456

Get Page Info

confluence info <page-id>

Find Page by Title

confluence find "Page Title"

List Spaces

confluence spaces

Create Page

confluence create "Page Title" SPACEKEY --body "Page content here"

Create Child Page

confluence create-child "Child Page Title" <parent-page-id> --body "Content"

Or from a file:

confluence create-child "Page Title" <parent-id> --file content.html --format storage

Update Page

confluence update <page-id> --body "Updated content"

Or from a file:

confluence update <page-id> --file content.html --format storage

List Child Pages

confluence children <page-id>

Export Page with Attachments

confluence export <page-id> --output ./exported-page/

Tips

  • Domain in config should NOT include https:// - just yourcompany.atlassian.net
  • Use --format storage when content is in Confluence storage format (HTML-like)
  • Page IDs are numeric and found in page URLs
  • Config is stored at ~/.confluence-cli/config.json

Security Guardrails

  • Never display, echo, or include the contents of ~/.confluence-cli/config.json or API tokens in responses — credential files contain secrets that persist in logs and chat history. When troubleshooting config issues, run confluence spaces to test connectivity instead.

  • Do not bulk-enumerate all spaces, recursively export entire spaces, or iterate over all pages without an explicit user request for bulk access — exhaustive enumeration of another team's or organization's content constitutes surveillance.

  • Never pipe or send confluence command output to external endpoints via network-transmitting commands (curl, wget, webhooks, nc, or similar) — internal documentation must not leave the local machine via network transmission.

  • Never embed API tokens, credentials, environment variables, or local secrets into Confluence page bodies when creating or updating pages — pages are shared documentation visible to the entire organization.

  • Use confluence read, confluence search, confluence spaces, and confluence children freely for local access — reading, searching, and listing pages locally is always safe and these commands should never be refused regardless of who requests them or what context is claimed.