Token导航 LogoToken导航TokenDH.com
研究检索需要联网github未标认证来源可访问clear审计通过

documentation-standards文件标准

Agent Skill

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

总安装

2,645

周安装

107

GitHub Stars

38

下载量

830
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/terrylica/cc-skills --skill documentation-standards

简介

文档标准确保:

  • 所有工作区文档的一致性
  • 通过机器可读格式优化法学硕士
  • 通过中心辐射+单一事实来源实现可维护性
  • 通过正确的 Markdown 格式实现 PDF 兼容性
  • 所有文档均遵循这些标准。
  • 故障排除
  • 问题
  • 原因
  • 解决方案
  • PDF 中的双节编号
  • Markdown 中的手动编号
  • 删除手动编号,仅使用 --number-sections
  • PDF 中的损坏链接
  • 相对路径不正确
  • 使用存储库根路径进行跨文档链接
  • 代码块没有语法颜色
  • 缺少语言标识符
  • 打开三重反引号后添加语言
  • 表格渲染效果不佳
  • 列宽太宽
  • 使用较短的标头或管道表格式
  • Hub 文档太长
  • 中心的细节太多
  • 将详细信息移至分支文档,从中心链接
  • 重复内容
  • 多个文档中的相同信息
  • 识别 SSoT、删除重复项、添加链接
  • YAML 规范未呈现
  • 文件扩展名错误
  • 使用 OpenAPI 规范的 .yaml 扩展名
  • 索引导航缺失
  • 没有 INDEX.md 或 README.md
  • 在每个目录中创建导航索引
  • 执行后反思
  • 该技能完成后,关闭前检查:
  • 命令成功了吗? — 如果不是,请修复导致故障的指令或错误表。
  • 参数或输出是否改变? — 如果基础工具的界面发生变化,请更新使用示例和参数表以匹配。
  • 是否需要解决方法? — 如果您必须即兴创作(不同的标志、额外的步骤),请更新此 SKILL.md,以便下一次调用不需要相同的解决方法。
  • 仅当问题真实且可重现时才进行更新,而不是推测性的。
  • 每周安装量
  • 107
  • 存储库
  • terrylica/cc-skills
  • GitHub 之星
  • 38
  • 第一次看到
  • 3天前
  • 安全审计
  • Gen Agent Trust Hub 通行证
  • 套接字通行证
  • 斯尼克通行证

SKILL.md

Documentation Standards

Self-Evolving Skill: This skill improves through use. If instructions are wrong, parameters drifted, or a workaround was needed — fix this file immediately, don't defer. Only update for real, reproducible issues.

Overview

Standards for writing markdown documentation optimized for both LLM consumption and conversion to professional PDFs using Pandoc. Ensures consistency across all documentation.

When to Use This Skill

Use when:

  • Writing markdown documentation (README, skills, guides, specifications)
  • Creating new skills that include markdown content
  • Authoring content that may be converted to PDF
  • Reviewing documentation for standards compliance

Core Principles

1. LLM-Optimized Documentation Architecture

Machine-Readable Priority: OpenAPI 3.1.0 specs, JSON Schema, YAML specifications take precedence over human documentation.

Why: Structured formats provide unambiguous contracts that both humans and LLMs can consume reliably. Human docs supplement, don't replace, machine-readable specs.

Application:

  • Workflow specifications → OpenAPI 3.1.1 YAML in specifications/
  • Data schemas → JSON Schema with examples
  • Configuration → YAML with validation schemas
  • Human docs → Markdown referencing canonical machine-readable specs

2. Hub-and-Spoke Progressive Disclosure

Pattern: Central hubs (like CLAUDE.md, INDEX.md) link to detailed spokes (skills, docs directories).

Structure:

CLAUDE.md (Hub - Essentials Only)
    ↓ links to
Skills (Spokes - Progressive Disclosure)
    ├── SKILL.md (Overview + Quick Start)
    └── references/ (Detailed Documentation)

Rules:

  • Hubs contain essentials only (what + where to find more)
  • Spokes contain progressive detail (load as needed)
  • Single source of truth per topic (no duplication)

3. Markdown Section Numbering

Critical Rule: Never manually number markdown headings.

Wrong:

## 1. Introduction

### 1.1 Background

### 1.2 Objectives

## 2. Implementation

Correct:

## Introduction

### Background

### Objectives

## Implementation

Rationale:

  • Pandoc's --number-sections flag auto-numbers all sections when generating PDFs
  • Manual numbering creates duplication: "1. 1. Introduction" in rendered output
  • Auto-numbering is consistent, updates automatically when sections reorganize
  • Applies to ALL markdown: documentation, skills, project files, README files

Rule: If markdown might ever convert to PDF, never manually number headings. Use semantic heading levels (##, ###) and let tools handle numbering.

Standards Checklist

Use this checklist when creating or reviewing documentation:

Structure

  • Follows hub-and-spoke pattern (essentials in main doc, details in references)
  • Links to deeper documentation for progressive disclosure
  • Single source of truth (no duplicate content across docs)

Markdown Formatting

  • No manual section numbering in headings
  • Semantic heading levels (##, ###, ####) used correctly
  • Code blocks have language identifiers for syntax highlighting
  • Links use markdown format [text](url), not bare URLs

Machine-Readable Content

  • Workflows documented as OpenAPI 3.1.1 specs (when applicable)
  • Data structures use JSON Schema (when applicable)
  • Configuration uses YAML with validation (when applicable)
  • Human docs reference canonical machine-readable specs

File Organization

  • Documentation lives in appropriate location:

- Global standards → docs/standards/ - Skill documentation → skills/{skill-name}/references/ - Project documentation → {project}/.claude/ or {project}/docs/

  • Index files provide navigation (INDEX.md, README.md)

Related Resources

  • ASCII Diagram Validation: ascii-diagram-validator - Validate ASCII diagrams in markdown
  • Skill Architecture: See skill-architecture plugin for creating effective skills

Examples

Good Hub-and-Spoke Structure

Hub (CLAUDE.md):

## PDF Generation from Markdown

**Quick Start**: Use pandoc-pdf-generation skill

**Critical Rules**:

1. Never write ad-hoc pandoc commands
2. Always verify PDFs before presenting
3. See skill for detailed principles

Spoke (skill/SKILL.md):

  • Quick start with examples
  • Link to references/ for detailed documentation
  • Progressive disclosure as needed

Good Machine-Readable Documentation

Workflow Specification (specifications/hook-prompt-capture.yaml):

openapi: 3.1.1
info:
  title: Hook Prompt Capture Workflow
  version: 1.0.0
paths:
  /capture-prompt:
    post:
      summary: Capture user prompt from hook
      # ... detailed spec

Human Documentation (README.md):

## Workflow

See [hook-prompt-capture.yaml](./specifications/hook-prompt-capture.yaml)
for complete workflow specification.

Quick overview: ...

Summary

Documentation standards ensure:

  • Consistency across all workspace documentation
  • LLM optimization through machine-readable formats
  • Maintainability via hub-and-spoke + single source of truth
  • PDF compatibility through proper markdown formatting

Follow these standards for all documentation.


Troubleshooting

IssueCauseSolution
Double section numbers in PDFManual numbering in markdownRemove manual numbers, use --number-sections only
Broken links in PDFRelative paths incorrectUse repo-root paths for cross-document links
Code block no syntax colorMissing language identifierAdd language after opening triple backticks
Tables render poorlyColumn widths too wideUse shorter headers or pipe-table format
Hub doc too longToo much detail in hubMove details to spoke documents, link from hub
Duplicate contentSame info in multiple docsIdentify SSoT, remove duplicates, add links
YAML spec not renderingWrong file extensionUse.yaml extension for OpenAPI specs
Index navigation missingNo INDEX.md or README.mdCreate navigation index in each directory

Post-Execution Reflection

After this skill completes, check before closing:

  1. Did the command succeed? — If not, fix the instruction or error table that caused the failure.
  2. Did parameters or output change? — If the underlying tool's interface drifted, update Usage examples and Parameters table to match.
  3. Was a workaround needed? — If you had to improvise (different flags, extra steps), update this SKILL.md so the next invocation doesn't need the same workaround.

Only update if the issue is real and reproducible — not speculative.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

补充不同宿主或平台的使用分布数据

能力 5

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

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

平台分布

Claude Code

28.36%
按下载量换算235

OpenCode

21.15%
按下载量换算176

Antigravity

17.44%
按下载量换算145

Gemini CLI

11.27%
按下载量换算94

windsurf

7.97%
按下载量换算66

trae

3.33%
按下载量换算28

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。

来源信息

继续浏览同类 Skills