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.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "code-examples-sync" with this command: npx skills add practicalswan/agent-skills/practicalswan-agent-skills-code-examples-sync

Code Example Synchronization

Use this skill when docs contain code snippets that are likely to drift from the real implementation.

Activation Conditions

  • 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.

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

Scripts

  • Example Sync Check - Audit Markdown files for untyped fences, placeholder text, and obviously stale examples

Related Skills

SkillRelationship
documentation-verificationValidate code examples before merging docs
documentation-authoringKeep authored docs in sync with code changes
breaking-changes-managementUpdate examples after breaking API changes

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

sql-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

vite-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

php-development

No summary provided by upstream source.

Repository SourceNeeds Review