AgentSkillsCN

documentation

文档编写模式与标准。在处理 .md 文件、docs/ 或 README 更新时加载此技能。

SKILL.md
--- frontmatter
name: documentation
description: Documentation patterns and standards. Load when working with .md files, docs/, or README updates.

Documentation

Types

TypeTemplate
FeatureOverview, Usage, Examples, API
GuideIntroduction, Steps, Examples, Troubleshooting
ReferenceDescription, Parameters, Returns, Examples
READMEOverview, Quick Start, Installation, Usage

Rules

RuleRequirement
ExamplesCode samples mandatory
UsageQuickstart section required
UpdatedInclude last-updated date
IndexUpdate INDEX.md for new docs
StyleMatch existing documentation style

Standard Sections

For Feature Docs

markdown
# Feature Name

> Brief description

## Quick Start
[Minimal working example]

## Usage
[Detailed usage instructions]

## Examples
[Code examples with explanations]

## API Reference
[If applicable]

## Troubleshooting
[Common issues and solutions]

---
Last updated: YYYY-MM-DD

For READMEs

markdown
# Project/Component Name

> One-line description

## Quick Start
[Get running in < 1 minute]

## Installation
[Step-by-step setup]

## Usage
[Common use cases]

## Configuration
[Options and settings]

## Contributing
[How to contribute]

Gotchas

CategoryPatternSolution
IndexDoc not listedUpdate docs/INDEX.md
StyleInconsistent formatMatch existing style
ExamplesMissing codeAdd code samples
LinksBroken referencesVerify all links work

Commands

TaskCommand
Preview MDUse VS Code preview or grip
Check linksmarkdown-link-check *.md
Generate TOCUse doctoc or VS Code extension