
docs-code-sample-standards
Defines the policy every code sample in developer documentation must meet
by samberFree
Description
Docs Code Sample Standards is an agent skill for the code samples inside developer documentation. It produces two things: a sample policy that sets the rules every published sample must meet, and a sample audit that checks an existing corpus of samples against that policy and returns a ranked fix queue. The skill's premise is that a code sample is the only part of the docs a reader executes, so a sample that is slightly wrong ships into someone's codebase, while slightly wrong prose only wastes a minute. It cites survey research in which developers rated ambiguity, incompleteness and incorrectness as the most severe API documentation problems, and it argues that samples should be treated as tested artefacts with an owner. Before starting, the skill checks that the task really is about the sample corpus. It hands off work that belongs to other skills, such as a zero-to-first-success quickstart, a teaching tutorial, the documentation's information architecture, endpoint-by-endpoint API reference pages, or docs written for coding agents. It is written for developer-documentation engineers and developer relations teams who maintain sample code. It triggers on requests to audit or standardize code samples in documentation.…
Highlights
- Writes a policy every published code sample must meet
- Audits an existing sample corpus into a ranked fix queue
- Checks scope and hands off unrelated docs work
- Treats samples as tested artefacts with an owner
Ratings & Reviews
No ratings yet
Be the first to rate docs-code-sample-standards.
People also visit
docs-code-sample-standards FAQ
What is the Docs Code Sample Standards skill?
An agent skill that writes a policy for code samples in developer docs and audits an existing set of samples against it.
How do I install it?
Run npx skills add https://github.com/samber/developer-relations-skills --skill docs-code-sample-standards in your project.
What does the audit output?
A ranked fix queue for the sample corpus, so the most serious problems in the samples are addressed first.
When should I use a different skill?
When the task is a quickstart page, a tutorial, the docs structure, API reference completeness or documentation for a coding agent, the skill routes you to the right one.
Which security audits has it passed?
Gen Agent Trust Hub: Warn. Socket: Pass. Snyk: Pass.
What are the best docs-code-sample-standards alternatives?
Popular alternatives to docs-code-sample-standards include doc-audit, developer-docs-structure-audit and update-docs. See all docs-code-sample-standards alternatives




















