Works with the AI Agents you already use
Docs Code Sample Tester: Catch Broken Examples
by Saizul Amin
Supports skip, expect-error and continue markers so samples can build on each other.
$5
Docs Code Sample Tester: Catch Broken Examples
Example session with this skill installed
Run the Docs Code Sample Tester skill on my project and give me a prioritised list of what to fix, with exact changes.
- Read your context and instructions
- Compiled the docs code sample
Here is what the Docs Code Sample Tester: Catch Broken Examples skill produced.
Demo: real, unedited output of the skill's bundled script on a sample input from its test suite.
Output
-Users-SaizulAmin-Saizul-Old-PC-Saizul-com/bc16f08c-2133-4c9b-92e4-fd071b48ec64/scratchpad/src/technical-docs-skills/tests/fixtures/code/slow.md:3: FAIL [python] timed out after 1s
1 block(s): 0 ok, 1 failed, 0 skipped (run)
What you do next
- Fix the highest-severity items first.
- Ask your agent to apply the fixes it suggests, then run the skill again to confirm.
- Keep the skill installed and re-run it whenever the project changes.
Connects securely to your tools. The creator never sees your data.
About this skill
Test the code samples in Markdown docs - extract every fenced code block and syntax-check Python (compile), pycon sessions, bash/sh/zsh (bash -n, no execution), console blocks with $ prompts, JSON and TOML, flag risky shell (curl | sh, sudo, rm -rf ~, chmod 777) and angle-bracket placeholders that break shells, and optionally run Python blocks in a subprocess with isolated mode, a temporary directory, a minimal environment and a timeout. Supports skip, expect-error and continue markers so samples can build on each other.
Who it's for
Use when the user asks to test, verify or validate the code examples in a README, tutorial or docs, after an API change that may break examples, when users report that copy-pasted snippets fail, or to add a docs-sample check to CI.
What's inside
- Tested, offline Python script(s): check_code_blocks.py (deterministic results, standard library only unless noted)
- Reference guides: markers-and-fixes.md
- Step-by-step agent instructions in SKILL.md covering: When to use; When not to use; Workflow
Why it's worth it
Generic prompts guess. This skill gives your agent a proven procedure plus scripts that check the facts, so you get the same correct answer every time, with exact fixes instead of vague advice. See the real demo below.
Works with every major AI agent
Built on the open SKILL.md standard: Claude Code, Codex CLI, Cursor, VS Code Copilot, Gemini CLI, Windsurf and 20+ other agents.
Requirements
- Python 3.8+ for the bundled scripts
- No API keys, no account, runs locally
Open source: saizul/technical-docs-skills on GitHub (MIT licence, by Saizul Amin).
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse All Claude Skills.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 1 day ago
- Software
Python 3.8+