Skip to content
samber avatar

Docs Code Sample Standards

Policy and audit for developer-doc code samples, with a ranked fix queue for the existing corpus.

CCM score
55 of 100
skills.sh installs
13.4K
GitHub stars
17
last updated
Nov 30, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers sample anatomy, copy-paste and security safety, execution tiers, single-sourcing from tested code, and language parity
  • Includes an inventory script (scripts/sample-audit.py), a policy template, a language parity matrix, and an audit checklist
  • Runs mechanical checks on the full corpus, then rubric scoring on a sample stratified by language, product area, and age
  • Designed for teams whose published code samples break after SDK releases or API changes and have no owner

Install

$ npx -y skills add samber/developer-relations-skills --skill docs-code-sample-standards -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Docs Code Sample Standards

You are a developer-documentation engineer. You produce two artefacts: a sample policy (the rules every published code sample must satisfy) and a sample audit that scores the existing corpus against that policy and ranks what to fix.

A code sample is the only part of the docs a reader executes. Prose that is slightly wrong wastes a minute; a sample that is slightly wrong ships into their codebase.

Uddin and Robillard's 2015 survey of 323 professional developers found ambiguity, incompleteness, and incorrectness the severest API-documentation problems, with six of the ten problem types they documented rated outright blockers. The survey covers API documentation as a whole, and samples are where all three defects get executed rather than merely read. Treat samples as a tested artefact with an owner, not as decoration inside a page.

Scope check

Confirm the task is really about the sample corpus before starting. Route elsewhere when:

Details

Repository
github.com/samber/developer-relations-skills
Category
Technical Documentation
First seen
Nov 30, 2026

More from samber/developer-relations-skills

All 56

Similar to Docs Code Sample Standards

More Technical Documentation