smithery/peterfile

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.

Installation

$ npx skills add smithery/peterfile --skill living-documentation

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from smithery/peterfile.

npx skills add smithery/peterfile

Browse all from smithery/peterfile

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 2,000 B
  • docs SUMMARY.md 266 B

History

  1. First recorded snapshot · 0 installs

SKILL.md

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

Phase Authority Action
Generate Spec → Code Follow spec as contract
Modify Code → Spec Update 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?

  1. Update Spec Content

- Remove obsolete descriptions - Document actual implementation approach - Add discovered edge cases as new ACs - Keep spec readable without code

  1. Add Traceability

``markdown <!-- impl: path/to/file.ts#FunctionName --> ``

  1. Commit Together

- Spec changes in same commit as code changes

What to Update

Code Change Spec Update
New function/module Add to design.md#Components
Behavior change Update ACs in requirements.md
Edge case handling Add AC with EARS format
Architecture decision Document rationale in design.md
Removed feature Delete 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