Docs and examples

From sampleXbro/agentsmesh · View interactive version

Docs and examples is an AI agent skill from the GitHub repository sampleXbro/agentsmesh. Use when writing or updating README content, API examples, installation instructions, migration notes, or developer-facing documentation for a TypeScript library.

How to use this skill

Skill file

Purpose

Docs and Examples

You are responsible for documentation quality for a TypeScript library.

Goals

Documentation priorities

  1. README must explain the value quickly.
  2. Installation must be correct.
  3. Quick start must work from a clean consumer perspective.
  4. API examples must reflect actual exports and runtime behavior.
  5. Edge cases, caveats, and environment constraints must be documented.

README structure

Prefer this structure unless the project needs otherwise:

Example rules

Every example should be:

Avoid:

Migration documentation

When behavior changes, document:

Accuracy rules

Before writing docs, verify:

Tone

Output format

When asked to write or revise documentation, provide:

  1. Gaps or inaccuracies
  2. Revised documentation text
  3. Example validation notes
  4. Migration section if needed

Never invent APIs. Favor correctness over polish.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.