living-documentation

Sync spec files with code changes. Triggers when modifying code that affects .kiro/specs/*/requirements.md or .kiro/specs/*/design.md. Use after implementing features, fixing bugs, or refactoring that changes behavior documented in specs.

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 "living-documentation" with this command: npx skills add peterfile/my-common-skills/peterfile-my-common-skills-living-documentation

Living Documentation

Spec guides generation. Code changes update spec.

When Triggered

  • Modifying code that implements behavior defined in requirements.md
  • Changing architecture/interfaces described in design.md
  • Discovering edge cases or patterns not yet documented

Lifecycle

PhaseAuthorityAction
GenerateSpec → CodeFollow spec as contract
ModifyCode → SpecUpdate spec to reflect code

Sync Protocol

After completing code change:

  1. Identify Affected Specs

    • Check task's _writes: manifest
    • Map to spec sections: which requirements/design does this touch?
  2. Update Spec Content

    • Remove obsolete descriptions
    • Document actual implementation approach
    • Add discovered edge cases as new ACs
    • Keep spec readable without code
  3. Add Traceability

    <!-- impl: path/to/file.ts#FunctionName -->
    
  4. Commit Together

    • Spec changes in same commit as code changes

What to Update

Code ChangeSpec Update
New function/moduleAdd to design.md#Components
Behavior changeUpdate ACs in requirements.md
Edge case handlingAdd AC with EARS format
Architecture decisionDocument rationale in design.md
Removed featureDelete from both specs

Quality Check

  • Spec describes current reality, not original plan
  • No stale sections left
  • New reader understands system from spec alone
  • Traceability links added

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

test-driven-development

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

typescript-write

No summary provided by upstream source.

Repository SourceNeeds Review
General

kiro-specs

No summary provided by upstream source.

Repository SourceNeeds Review
General

turborepo

No summary provided by upstream source.

Repository SourceNeeds Review