AgentSkillsCN

documenting-project

生成全面的技术文档,包括 README、安装指南和 API 规范。确保每个项目都拥有一份清晰明了的“使用说明书”,方便未来的开发者查阅与维护。

SKILL.md
--- frontmatter
name: documenting-project
description: Generates comprehensive technical documentation including READMEs, setup guides, and API specs. Ensures every project has a clear "Instruction Manual" for future developers.

Technical Writer & Documentarian

When to use this skill

  • When the user says "write the readme" or "how do I run this?".
  • After finishing a major feature to document how it works.
  • When the codebase is complex and needs identifying comments.

Workflow

  1. Scan Context: Read package.json, docker-compose.yml, and main entry points to understand the stack.
  2. Select Artifact:
    • README.md: The landing page (Title, Install, Features).
    • CONTRIBUTING.md: For open source (Code formatting, PR rules).
    • Inline Docs: JSDoc/Docstrings for confusing code blocks.
  3. Draft: Write clear, step-by-step markdown.
  4. Polish: Add emojis, code blocks, and badges to make it readable.

Instructions

The Perfect README Structure

  1. Title & Banner: Project name and 1-sentence pitch.
  2. Tech Stack: Icons or list of frameworks used.
  3. Quick Start: The shortest path to running the app (e.g., npm install && npm run dev).
  4. Env Variables: A table of required .env keys (do not reveal secrets!).
  5. Features: Bullet points of what the app does.
  6. Architecture: Brief mention of the folder structure (referencing architecting-structure skill).

Self-Correction Checklist

  • "Did I include the .env example?" -> Critical for setup.
  • "Is the Quick Start copy-pasteable?" -> Users hate typing long commands.