docs-and-examples

docs-and-examples is a skill for Claude Code, Codex from sampleXbro/agentsmesh. It costs 32 tokens per session (435 once invoked), scanned A, original, MIT.

Guidance for writing documentation for a TypeScript library, including README files, installation steps, API examples, and migration notes.

In plain words
What is it for?
Use it when documenting a library's installation, quick start, API, runtime support, error handling, or changes between versions.
Why use it?
It reduces the chance that users copy outdated or non-working examples and helps them start using the library quickly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

Good fit Use it when documenting a library's installation, quick start, API, runtime support, error handling, or changes between versions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/samplexbro/agentsmesh/docs-and-examples
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add sampleXbro/agentsmesh --skill docs-and-examples
Clone the repo
git clone --depth 1 https://github.com/sampleXbro/agentsmesh

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for docs-and-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/samplexbro/agentsmesh/docs-and-examples/github.svg)](https://agentmods.dev/skills/samplexbro/agentsmesh/docs-and-examples)
Your own site
<a href="https://agentmods.dev/skills/samplexbro/agentsmesh/docs-and-examples"><img src="https://agentmods.dev/badge/skills/samplexbro/agentsmesh/docs-and-examples/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for docs-and-examples

Your own site · 80×15
<a href="https://agentmods.dev/skills/samplexbro/agentsmesh/docs-and-examples"><img src="https://agentmods.dev/badge/skills/samplexbro/agentsmesh/docs-and-examples.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 435 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.00435
Opus 5.5 $0.00013 $0.00174
Sonnet 5.5 $0.00006 $0.00087
Haiku 4.5 $0.00003 $0.00044

Measured 3mo ago against content hash 3339fe5adc40, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

docs-and-examples scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/docs-and-examples/SKILL.md · 88 lines

What it actually says

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.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3mo ago First seen · 88 lines · 32 tokens per session scan A 3339fe5adc40

Subscribe to this mod's changes

docs-and-examples is a skill published in the GitHub repository sampleXbro/agentsmesh (31 stars, last pushed 2d ago), licensed MIT. It adds 32 tokens to every session and 435 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

docs-and-examples compared with skills from other repositories

docs-and-examples next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
docs-and-examplessampleXbro/agentsmeshSkill312d agoMITA32Claude Code, Codex
user-research-cookiycookiy-ai/user-research-skillSkill1.6k18d agoMITA154Claude Code, Codex
best-practicesMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA35Claude Code, Codex
code-documentationMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA35Claude Code, Codex
audit-library-healthMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA33Claude Code, Codex
share-a-libraryMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA41Claude Code, Codex
update-installed-skillsMoizIbnYousaf/Ai-Agent-SkillsSkill1.2k2mo agoMITA31Claude Code, Codex