Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Design, write, review, and test code samples in developer documentation, including executable examples, explanatory snippets, request and response pairs, placeholders, outputs, language choice, sandboxing, and autogenerated samples. Use when docs include API examples, SDK snippets, CLI commands, config examples, tutorials, or code blocks readers may copy.
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-01 | ✗→✓ | ▲ Improved | -6% | 0% |
| case-03 | ✗→✓ | ▲ Improved | -10% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 1% | 0% |
| case-11 | ✗→✓ | ▲ Improved | 122% | 0% |
| case-12 | ✗→✓ | ▲ Improved | -11% | 0% |
Use this skill to create and review code samples that are useful, accurate, copyable, and maintainable. It applies to executable examples, explanatory snippets, API request/response pairs, CLI commands, config files, and generated references.
This skill is derived from Docs for Developers: An Engineer's Field Guide to Technical Writing, especially Chapter 5, "Integrating code samples." The guidance is transformed and paraphrased; do not copy book prose into user outputs. Source: https://link.springer.com/book/10.1007/978-1-4842-7217-6
guidelines.md to choose the smallest useful reference set.workflows/review-code-sample.md for a full sample review.When reviewing or designing code samples, return:
| Need | Start Here | |------|------------| | Understand sample types | references/core/knowledge.md | | Apply sample rules | references/core/knowledge.md | | See before/after examples | references/core/knowledge.md | | Review or design a sample | workflows/review-code-sample.md | | Route by task | guidelines.md |
Other measured skills in the registry, with their headline benchmark lift.