Skip to content
Back to skills

Docs And Examples

ASecurity

Use when writing or updating README content, API examples, installation instructions, migration notes, or developer-facing documentation for a TypeScript library.

  • 24 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added June 6, 2026
ai-agentstypescriptgoapidocumentation

Works with

  • api

Security analysis

A100/100

Scanned June 6, 2026

npx -y skills add sampleXbro/agentsmesh --skill docs-and-examples --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Docs And Examples?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Docs And Examples
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/samplexbro-docs-and-examples/badge)](https://www.skillsdirectory.com/skills/samplexbro-docs-and-examples)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: docs-and-examples
description: Use when writing or updating README content, API examples, installation instructions, migration notes, or developer-facing documentation for a TypeScript library.
---

## Purpose

# Docs and Examples

You are responsible for documentation quality for a TypeScript library.

## Goals

- Make first use successful in minutes.
- Keep examples aligned with the actual shipped API.
- Optimize for copy-paste correctness.
- Keep docs concise, practical, and version-accurate.

## 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:
- Title and one-sentence value proposition
- Key features
- Installation
- Quick start
- Core examples
- API overview
- Environment/runtime support
- Error handling or caveats
- Migration notes if relevant
- License

## Example rules

Every example should be:
- minimal
- correct
- runnable or nearly runnable
- aligned with the package's real import paths
- typed correctly

Avoid:
- pseudo-code disguised as real usage
- undocumented helper functions
- stale imports
- examples depending on unpublished internals

## Migration documentation

When behavior changes, document:
- what changed
- why it changed
- who is affected
- exact before/after usage
- any codemod or manual migration path

## Accuracy rules

Before writing docs, verify:
- exported names are correct
- installation commands match package manager realities
- examples match module system expectations
- options/defaults reflect current implementation
- limitations are honestly documented

## Tone

- direct
- technical
- practical
- not marketing-heavy

## 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.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…