Token导航 LogoToken导航

Agent Skill · 待分类

format-docs(格式化文档)

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

format-docs 是待分类类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为需要联网;许可证信息还不明确,第三方扫描已通过,按安装量在待分类类的 11,209 个 Skill 里排第 2,321。

总安装 1,680周安装 70GitHub Stars 公开资料未说明下载 560核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/jorgemuza/orbit --skill format-docs

这个 Skill 是做什么的

这个 Skill 的分类还没最终确定,用法以来源仓库的说明为准。

用于辅助文档、README 和内容稿件整理改写。适合提炼结构、统一术语或补齐章节内容。应保留项目已有事实、命令和路径信息。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。不要把未确认的信息写成确定结论。

format-docs 属于待分类类 Skill,可作为该场景下的辅助能力补充。涉及对外文案时需控制语气,避免过度营销。

来源仓库内路径:skills/format-docs

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/jorgemuza/orbit --skill format-docs;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

format-docs 怎么安装?

在终端执行 npx skills add https://github.com/jorgemuza/orbit --skill format-docs。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

format-docs 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

format-docs 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

format-docs 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

format-docs 用的人多吗?

公开数据是累计安装 1,680 次,近一周安装 70 次,下载 560 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

format-docs 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理待分类类任务、又不想每次都手写提示词的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

待分类类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
infsh-cli

infsh CLI · Codex、Claude

4,374,576382权限未标注未明确未收录
ai-video-generation

AI 视频生成 · Codex、Claude

4,313,376382调用外部服务未明确有提醒
lark-openapi-explorer

云雀 OpenAPI 浏览器 · Codex、Claude

2,064,1209,011需要联网未明确有提醒
lark-workflow-standup-report

Lark 工作流程站立报告 · Codex、Claude

2,041,6328,978需要联网未明确通过
use-my-browser

使用我的浏览器 · Codex、Claude

1,848,49140操作浏览器未明确未通过
format-docs

格式化文档 · 本页

1,680—需要联网未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Format Docs

Prepare markdown documents for clean Confluence publishing via orbit confluence publish. This skill analyzes and transforms markdown files — individually or as a directory tree — to follow the conventions that Confluence expects.

When to Use

  • Before running orbit confluence publish for the first time on a docs directory
  • When adding new markdown files to an existing published docs tree
  • When docs render poorly in Confluence and need structural fixes
  • When migrating docs from another system (GitHub wiki, Notion export, etc.)

Process

1. Assess the Scope

Determine whether the user is asking about a single file or a directory.

  • Single file: Read it and apply the file-level checks below.
  • Directory: List the full tree, then work through both directory-level and file-level checks.

2. Directory-Level Checks

If formatting a directory, verify and fix these structural issues:

INDEX.md files — Every directory that contains markdown files needs an INDEX.md. This file becomes the parent page in Confluence for all sibling .md files.

docs/
  INDEX.md              ← Required: parent page for docs/
  overview.md
  api/
    INDEX.md            ← Required: parent page for api/
    endpoints.md

If an INDEX.md is missing, create one with:

  • Frontmatter (title from directory name, today's date)
  • A brief intro line
  • A properties report directive (see below)
  • Child page tables wrapped in confluence ignore blocks

INDEX.md structure — Every INDEX.md must follow this pattern:

---
title: "Section Title"
# ... full frontmatter ...
confluence_labels:
  - my-label
---

# Section Title

> Brief intro summarizing the section.

---

<!-- confluence:properties-report cql="ancestor = currentContent() AND label = 'my-label'" firstcolumn="Title" headings="Owner,Status,Version,Reviewed on" -->

<!-- confluence:ignore-start -->

## Subsection Name

| Document | Version | Summary |
|----------|---------|---------|
| [Child Page](./child-page.md) | v1.0 | Brief description |

<!-- confluence:ignore-end -->

Key rules for INDEX.md files:

  1. Properties report directive — Add a <!-- confluence:properties-report --> directive after the intro content. This generates a dynamic table on Confluence that pulls metadata from all child pages sharing the same label. Use ancestor = currentContent() to scope to child pages, and match the label from confluence_labels.
  2. Confluence ignore blocks — Wrap all child page listing content (section headings, tables, links) between <!-- confluence:ignore-start --> and <!-- confluence:ignore-end -->. This content is only visible in markdown viewers (GitHub, local); on Confluence, the properties report replaces it.
  3. Label alignment — The label value in the CQL query must match one of the confluence_labels defined in the child pages' frontmatter. Use the same label across all siblings so the report captures them all.
  4. Report headings — Include at minimum: Owner,Status,Version,Reviewed on. These must match field names in the children's confluence_properties.

File naming — Rename files that would cause URL issues:

  • Use lowercase with hyphens: api-reference.md not API Reference.md
  • No spaces, underscores, or special characters in filenames
  • No version numbers in filenames — track versions in frontmatter instead

Flat nesting — Confluence page trees work best with one level of topic directories under the root. If the directory has deeply nested subdirectories (3+ levels), suggest flattening.

3. File-Level Checks

For each markdown file, check and fix the following. Read the formatting reference for detailed rules on each item.

Frontmatter

Every file needs YAML frontmatter with all standard fields populated. Frontmatter is the single source of truth for document metadata — any metadata that exists in the frontmatter must NOT be duplicated in the document body.

Always use the full frontmatter template:

---
title: API Reference
subtitle: "Reference — Project Docs v1.0"
date: "2026-03-09"
author: "Engineering Team"
confluence_ignore: false
confluence_labels:
  - api
  - reference
confluence_properties:
  - id: status
    fields:
      Owner: "Engineering Team"
      Classification: Internal
      Status: "{status:Green|Published}"
      Version: v1.0
      Reviewed on: 2026-03-05
---

When adding or completing frontmatter:

  • Derive title from the first # heading if present, otherwise from the filename
  • Set date to today's date
  • Derive author from inline metadata if present, otherwise from existing sibling files or ask the user
  • Derive subtitle from document context (e.g., "ADR — Project v1.0", "Guide — Team Docs")
  • Suggest confluence_labels based on the directory name and content
  • Always include confluence_properties with at minimum: Owner, Classification, Status, Version, and Reviewed on
  • Populate property values from inline metadata found in the document body when available
  • Set confluence_ignore: false by default. Only set to true when the user explicitly wants to exclude a file from Confluence publishing (previously published pages will be deleted on next sync)
  • Never overwrite existing confluence_page_id or confluence_url
Remove Redundant Inline Metadata

After populating the frontmatter, remove any inline metadata blocks from the document body that duplicate information already captured in the frontmatter or confluence_properties. These blocks typically appear near the top of the document as bold-key/value lines or small tables.

Patterns to detect and remove:

**Document Version**: 1.0
**Status**: Draft (Proposal)
**Classification**: Internal
**Last Updated**: March 7, 2026
**Author**: Engineering Team
**Owner**: Platform Team

Also detect and remove metadata presented as:

  • Key-value lines: Version: 1.0 or Status: Draft
  • Small two-column tables with metadata-like headers (e.g., | Field | Value |)
  • Blockquote metadata: > **Version**: 1.0

Rules for removal:

  • Only remove metadata lines/blocks where the information is already captured in frontmatter fields or confluence_properties fields
  • If an inline metadata block contains values not yet in frontmatter, absorb them into frontmatter first, then remove the block
  • Preserve any surrounding content — only strip the metadata lines themselves
  • If the metadata block is followed by a blank line or horizontal rule, remove the separator too to avoid orphaned whitespace
Heading Hierarchy

The converter skips the first # heading (Confluence uses the page title instead), so the document body should use ## as the top-level section heading.

Fix these issues:

  • Multiple # headings — Keep only the first one (it becomes the title). Convert subsequent # to ##.
  • Heading gaps — Don't jump from ## to ####. Fill in the hierarchy.
  • No # heading — If the file has no # heading but has a title in frontmatter, that's fine. If it has neither, add a # heading derived from the filename.
Document Structure

Well-structured documents follow this pattern:

# Title

> One-line summary of what this document covers.

<!-- confluence:toc-start -->

## Table of Contents

1. [Section One](#section-one)
2. [Section Two](#section-two)

<!-- confluence:toc-end -->

---

## Section One

Content...

---

## Section Two

Content...

Apply these structural improvements:

  • Add a TOC if the document has 3+ sections (## headings). Wrap the TOC section (heading + list) with <!-- confluence:toc-start --> / <!-- confluence:toc-end --> directives so it gets replaced with the Confluence TOC macro on publish. The markdown TOC remains visible in GitHub/local renderers.
  • Add horizontal rules (---) between major sections for visual separation.
  • Add a summary blockquote after the title if the document jumps straight into content without context.
Cross-References

If the file is part of a directory being formatted, add a Cross-References section near the bottom linking to related sibling documents:

## Cross-References

| Document | Relevance |
|----------|-----------|
| [Related Doc](./related-doc.md) | Brief note on why it's relevant |

Use relative paths so links resolve correctly both locally and in Confluence.

Revision History

For documents that will be actively maintained, add a revision history table at the bottom:

## Revision History

| Version | Date | Changes |
|---------|------|---------|
| 1.0 | 2026-03-09 | Initial document |

Only add this if the document doesn't already have one.

4. Content Formatting

Fix markdown patterns that don't convert well to Confluence:

IssueFix
Inline metadata blocks (**Status**: Draft, etc.)Absorb into frontmatter/confluence_properties, then remove from body
Raw HTML tagsReplace with markdown equivalents
<br> tagsUse blank lines instead
Deeply nested lists (3+ levels)Flatten to 2 levels max
Tables with multi-line cellsSplit into simpler tables
Inline images with relative pathsVerify paths are correct relative to the file
GitHub-flavored alerts (> [!NOTE])Keep as-is — the converter handles these
MkDocs admonitions (!!! note)Keep as-is — the converter handles these

5. Diagram Formatting

Fenced code blocks with diagram languages (mermaid, plantuml, graphviz, d2, etc.) are rendered as PNG images via kroki.io during Confluence publishing. Orbit auto-sanitizes common issues, but source diagrams should follow these rules for best results.

Auto-fixed by orbit (no manual action needed):

  • <br/> tags in participant names, notes, and messages → stripped
  • Parenthesized suffixes in participant aliases: Worker (queue) → Worker - queue
  • Trailing () on participant names → removed
  • Port numbers after colons: API:8000 → API
  • Reverse arrows: Client<<--API: msg → API-->>Client: msg

Must be fixed manually when formatting docs:

IssueFix
ASCII box-drawing (┌┐└┘│─)Convert to proper Mermaid/D2/PlantUML syntax
ASCII sequence diagrams (`\-- ->`)Convert to sequenceDiagram with proper arrows
Bare code blocks (no language tag) with diagram-like contentAdd mermaid, d2, or plantuml language tag
State transitions as plain text (DRAFT → ACTIVE → DEPRECATED)Convert to stateDiagram-v2
Very large diagrams (15+ participants, 50+ messages)Split into smaller diagrams

Diagram type selection:

ContentBest format
Request/response flowsmermaid sequenceDiagram
State machinesmermaid stateDiagram-v2
Simple flowchartsmermaid flowchart TD/LR
Component treesmermaid graph TD
Entity/data modelsmermaid erDiagram
Nested architectured2
Layered systemsd2

When encountering ASCII art or text-based diagrams in documents being formatted, convert them to the appropriate diagram language. If the diagram is too complex to convert confidently, leave it as a plain code block with a text language tag.

6. Confluence-Specific Enhancements

These are optional improvements that use Confluence features:

  • Status badges — Use {status:Color|Text} syntax in property fields (e.g., {status:Green|Published}). Emoji shortcodes (:green_circle: Green) are also supported.
  • Confluence ignore blocks — Wrap sections that should only appear in markdown (not Confluence) with <!-- confluence:ignore-start --> and <!-- confluence:ignore-end -->. In INDEX.md files, all child page tables must be wrapped (see Directory-Level Checks above).
  • Properties report — Every INDEX.md must include a properties report directive. See the INDEX.md structure in Directory-Level Checks for the exact pattern.

7. Dry Run

After making changes, suggest the user verify with:

orbit confluence publish <directory> --space <SPACE> --parent <PAGE_ID> --dry-run -p <profile>

This previews what would be published without making changes.

Rules

  • Never delete content — only restructure and add metadata.
  • Never overwrite confluence_page_id or confluence_url — these are managed by orbit confluence publish.
  • Preserve existing frontmatter fields — add missing ones, don't remove existing ones.
  • When in doubt about a title, derive it from the # heading first, then from the filename.
  • Keep changes minimal — don't rewrite prose, don't reorganize sections unless the heading hierarchy is broken.
  • Show the user a summary of changes before applying them to a large directory.

平台分布

Codex

37.24%
按下载量换算209

Claude

29.52%
按下载量换算165

Cursor

21.3%
按下载量换算119

Gemini CLI

9.78%
按下载量换算55

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

继续浏览同类 Skills