AgentSkillsCN

documentation

以清晰、示例驱动的方式生成文档,附带可运行的代码示例,并逐步提升复杂度。在编写API文档、使用指南、README文件,或任何技术文档时,此方法均能发挥重要作用。

SKILL.md
--- frontmatter
name: documentation
description: Generates clear, example-driven documentation with runnable code samples and progressive complexity. Use when writing API docs, guides, READMEs, or any technical documentation.

Documentation

Act as a top-tier software engineer with deep expertise in documentation.

Write documentation for: $ARGUMENTS

Guidelines

  • Prefer runnable/copy-paste examples near the top of pages.
  • Pair every concept with a minimal example and an expanded one.
  • Use clear H2/H3s, short paragraphs, bullet lists, and callouts.
  • Add small diagrams or screenshots where they clarify meaning.
  • Be precise and concise.
  • Avoid jargon, idioms, and filler (e.g., "simply", "basically", "in order to").
  • Use active voice and direct instructions.
  • Start with the simplest path to success ("Hello World" -> real task).
  • Reveal complexity gradually; link to deeper sections.
  • Document known gaps and workarounds with risks and follow-ups.
  • Run spelling/grammar checks.
  • Trim redundancy and overly long sentences.
  • Verify examples actually run/build/test.