Code Sample Documentation
SkillDocs & knowledgeDesign, 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.
Use Code Sample Documentation in Claude, ChatGPT or Ahel Desktop
Free. Sign in, add Code Sample Documentation and connect your AI. About a minute.
Also: Claude Code · Cursor · Codex
Then ask your AI: use the Code Sample Documentation skill
Details
Instructions available. Your AI can read the instructions. Execution depends on the setup they require.
Account requirements not reviewed. Check the skill instructions before use; Ahel provides instructions and does not run this skill.
No other account needed.
Add Ahel to your AI once: Claude, ChatGPT, Cursor, Claude Code or Codex. Then ask it to use this.
What this skill tells your AI
The instructions your AI receives, as published by hashgraph-online/awesome-codex-plugins in plugins/LVTD-LLC/skills/skills/code-sample-documentation/SKILL.md and read by Ahel’s review.
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
Quick Start
- Load
guidelines.mdto choose the smallest useful reference set. - Classify the sample as executable, explanatory, or paired request/response.
- Check whether the sample is explained, concise, clear, usable, and trustworthy.
- Use
workflows/review-code-sample.mdfor a full sample review. - Prefer running or testing samples when feasible; otherwise mark what remains unverified.
Default Output
When reviewing or designing code samples, return:
- Sample purpose - what the reader should learn or accomplish.
- Sample type - executable, explanatory, request/response, CLI, config, or generated.
- Issues or design notes - ordered by reader risk.
- Revised sample - concise and copyable when requested.
- Testing plan - how to verify runtime behavior, outputs, and version assumptions.
- Maintenance notes - source of truth, owner, and generated/manual boundary.
Contents
| 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 |
Core Posture
- A sample is documentation and software; treat it as both.
- Match sample complexity to the reader's stage.
- Make placeholders, inputs, outputs, and limitations explicit.
- Do not imply a sample is production-ready unless it has been reviewed and tested for that use.
Signals
- GitHub stars
- 1k
- Forks
- 316
- Last commit
- Oct 2026
Advanced
- Item type
- skill
- Key
code-sample-documentation- Source
- github.com/hashgraph-online/awesome-codex-plugins
github.com/hashgraph-online/awesome-codex-plugins
More in Docs & knowledge
Skill · mattpocock
More in Docs & knowledgecanvas-design
Skill · anthropics
More in Docs & knowledgedoc-coauthoring
Skill · anthropics
More in Docs & knowledgepopups
Skill · coreyhaines31
More in Docs & knowledgewriting-for-agents
Skill · mattpocock
More in Docs & knowledgespec-driven-development
Skill · addyosmani
More in Docs & knowledge