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
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 -yInstalls 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- Developer Community Health13.4K
- Technical Video Script14.2K
- Devtools Pricing Strategy13.9K
- Devrel Budget Allocation13.9K
- Devrel Hiring13.9K
- Oss Launch13.9K
- Developer Relations Kickoff13.9K
- Devrel Strategy13.9K
- Devrel Career13.9K
- Developer Community Launch13.9K
- Devrel Radar13.8K
- Developer Education Strategy13.8K
- Open Source Company Strategy13.8K
- Oss Sponsors Brand Strategy13.8K
- Developer Quickstart Guide13.8K
- Open Standards Strategy13.7K
- Developer Docs Structure Audit13.7K
- Oss Distribution Strategy13.7K
- Developer Ecosystem Strategy13.7K
- Developer Meetup Program13.7K
- Oss Governance13.7K
- Oss License Strategy13.7K
- Oss Contributor Onboarding13.7K
- Readme Optimization13.7K
Similar to Docs Code Sample Standards
More Technical Documentationdart-write-documentationflutter/agent-plugins12.5K installsdart write documentation
architecture-decision-recordsaffaan-m/ecc12.4K installsCapture architectural decisions made during Claude Code sessions as structured ADRs. Auto-detects decision moments, records context, alternatives considered, an
architecture-blueprint-generatorgithub/awesome-copilot12.4K installsComprehensive project architecture blueprint generator that analyzes codebases to create detailed architectural documentation. Automatically detects technology
vitepressantfu/skills12.3K installsVitePress static site generator powered by Vite and Vue. Use when building documentation sites, configuring themes, or writing Markdown with Vue components.
documentation-lookupaffaan-m/ecc12K installsUse up-to-date library and framework docs via Context7 MCP instead of training data. Activates for setup questions, API references, code examples, or when the u
postmortem-writingwshobson/agents11.5K installsWrite effective blameless postmortems with root cause analysis, timelines, and action items. Use when conducting incident reviews, writing postmortem documents,