code-examples-sync
/code-examples-sync
Synchronize and verify code examples in documentation. Use when function signatures change, API interfaces update, imports shift, or documentation snippets become outdated and need correction.
- Author
- PracticalSwan ↗
- Repository
- agent-skills ↗
- Licence
- MIT
- Last repository change
- 19.10.2026
Assessment and security
- Files in this package
- 5
- Scripts
- 1
- HTML comments
- 4
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 19.10.2026, without references to retired models or APIs.
MIT, open: use and modify while retaining author attribution.
- 1 scripts in this package. Review them before installing, as Claude may execute them.
- SKILL.md zawiera komentarze HTML (4). Nie widać ich w podglądzie Markdown, a model je czyta.
Scripts: scripts/example-sync-check.py
What it does and when to use it
Synchronize and verify code examples in documentation. Use when function signatures change, API interfaces update, imports shift, or documentation snippets become outdated and need correction.
Original author description
Synchronize and verify code examples in documentation. Use when function signatures change, API interfaces update, imports shift, or documentation snippets become outdated and need correction.
How it works
- Activation Conditions
- Workflow
- Cross-Client Portability
- MCP Availability And Fallback
- Anti-Patterns
- Verification Protocol
- Quality Checklist
- References & Resources
- Related Skills
SKILL.md preview
--- name: code-examples-sync version: "2.0" last_updated: 2026-09-08 tags: [code, examples, sync, workflow, quality] description: "Synchronize and verify code examples in documentation. Use when function signatures change, API interfaces update, imports shift, or documentation snippets become outdated and need correction." --- # Code Example Synchronization Use this skill when docs contain code snippets that are likely to drift from the real implementation. - Leverage native parallel subagent dispatch and 200k+ context windows where available. ## Activation Conditions Use symptom -> action triggers: when one matches, apply this skill and verify with the protocol below. - Function signatures changed - Imports or package names changed - Request or response contracts changed - Framework guidance or recommended patterns changed - A doc snippet compiles conceptually but no longer matches the codebase ## Workflow 1. Find the canonical implementation first. 2. Update every affected snippet in docs, examples, and READMEs. 3. Verify syntax, imports, and expected outputs. 4. Note any intentional divergence, such as simplified tutorial snippets. <!-- MCP:START --> <!-- PORTABILITY:START --> ## Cross-Client Portability This skill is written to stay usable across GitHub Copilot, Claude Code, and Codex. - GitHub Copilot: keep the folder in a Copilot-visible skill path or wrap the workflow in project instructions when folder discovery is unavailable. - Claude Code: keep the folder in a local skills directory or a compatible plugin source. - Codex: install or sync the folder into `$CODEX_HOME/skills/code-examples-sync` and restart Codex after major changes. <!-- PORTABILITY:END --> ## MCP Availability And Fallback Preferred MCP Server: None required - Fallback prompt: "Use the Code Example Synchronization skill without MCP. Rely on its local instructions, bundled resources, standard shell or editor tools, and direct verification. Show the evidence used before concluding." - Do not claim an MCP operation was used when the active host does not expose it. - Treat local files, tests, rendered outputs, logs, or screenshots as the fallback evidence path. <!-- MCP:END --> ## Anti-Patterns - Starting work before the plan or gate is clear: Execution drifts when success criteria are implied instead of explicit. - Treating verification as optional cleanup: The last mile is where regressions and missing updates are usually hiding. - Mixing planning, implementation, and release work in one jump: You lose the causal chain that explains why a change is safe. ## Verification Protocol Before claiming "skill applied successfully": 1. Pass/fail: The Code Examples Sync workflow starts from explicit success criteria, constraints, and stop conditions. 2. Pass/fail: Required evidence is collected before any completion, approval, or readiness claim. 3. Pass/fail: The next action follows the documented gate order without skipping review or verification steps. 4. Pressure-test scenario: Apply the workflow under time pressure with one failing check and one tempting shortcut. 5. Success metric: Zero rationalizations; blocked, failed, or unverified work is reported as such. ## Quality Checklist - [ ] Snippet matches current API shape - [ ] Imports and package names are current - [ ] Async, error handling, and setup steps still make sense - [ ] Output examples match current behavior - [ ] Duplicate snippets across docs were updated together ## References & Resources ### Documentation - [Code Example Verification](./references/verification.md) - Checks for examples, imports, outputs, and compatibility ### Scripts - [Example Sync Check](./scripts/example-sync-check.py) - Audit Markdown files for untyped fences, placeholder text, and obviously stale examples ## Related Skills - [development-workflow](../development-workflow/SKILL.md): Use it when the workflow also needs planning, quality gates, and delivery tracking. - [code-quality](../code-quality/SKILL.md): Use it when the workflow also needs two-stage review (spec compliance first, then code quality), maintainability, and refactoring guidance. - [systematic-debugging](../systematic-debugging/SKILL.md): Use it when the workflow also needs root-cause debugging before proposing fixes. - [test-driven-development](../test-driven-development/SKILL.md): Use it when the workflow also needs test-first implementation and regression safety.
Files in this package (5)
- CHANGELOG.md 6 KB
- LICENSE.txt 1 KB
- SKILL.md 4 KB
- references/verification.md 1 KB
- scripts/example-sync-check.py 2 KB
Versions
The database has no other skills named code-examples-sync.
Database snapshot: 13.11.2026 · package version 6acb4c59b906 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 0 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 95verify-examples
Runs documentation examples, such as commands, code snippets, curl calls, and quickstarts, from their stated setup and checks the promised output. Use whenever someone asks whether the examples in a guide, README, or tutorial still work, without rewriting the whole document. - 100repo-website-api-update
Update existing API documentation when Formisch source code changes. Use when function signatures, types, interfaces, or JSDoc comments change in the library source. - 95docs-search
Search auto-generated codebase documentation for function signatures, API docs, class definitions, and code comments. Use when the user asks to "search docs", "find documentation", "look up a function", "check the API", or before implementing changes to verify correct signatures and patterns. - 100js-docs-sync
Keep hand-written docs/ documentation in JS packages accurate and up to date with their source code. Use this skill whenever: (1) source files in a JS package that has a docs/ folder are modified — especially exports, function signatures, types, or public API changes, (2) the… - 100docs-sync
Use when the user asks to update documentation after code or configuration changes, audit documentation drift, or prepare README, API, runbook, or release docs. Changes only affected documentation and verifies examples, links, contracts, and operational steps against source code. - 100documentation-lookup
Use when the user needs current library, framework, or API documentation and version-specific code examples.