plugins/coordinator.bak/skills/lessons-trim/SKILL.md
Periodic maintenance of lessons files — trims stale entries, merges duplicates, and deletes exhausted feature-scoped files. Implements the 'Periodic trim' rule from CLAUDE.md's Self-Improvement Loop. This skill should be used when lessons.md is getting long, when a feature is complete and its lessons file should be cleaned up, or when periodic housekeeping is needed. Invoked by /update-docs (Phase 6) or standalone.
npx skillsauth add oduffy-delphi/coordinator-claude lessons-trimInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review tasks/lessons.md (global) and any tasks/<feature>/lessons.md files. This is the periodic safety net described in the Self-Improvement Loop guidelines in CLAUDE.md.
Discovery: Find feature-scoped lessons files via tasks/*/lessons.md (glob). Each match is a feature-scoped file. Global lessons live at tasks/lessons.md (no subdirectory).
Skip if no lessons files exist.
For each lessons file:
lessons.md, find it a home rather than discarding it:
docs/guides/*.md and add it there under a ## Gotchas or ## Key Patterns section. These are battle stories — losing the ability to grep for them is a real cost.lessons.md for fast session-start accesstasks/<feature>/lessons.md) relates to completed work and all entries are either migrated or preserved in the global file, delete itMigration mechanics: When migrating an entry to a wiki guide, use the existing docs/guides/ structure. If no guide exists for the relevant system, create one or add a ## Gotchas section to the closest existing guide. Update docs/guides/DIRECTORY_GUIDE.md if you create a new guide.
Judgment call: When in doubt, migrate rather than discard — the cost of a slightly long wiki page is lower than losing a hard-won implementation insight. But be honest: pure task-state entries with no pattern content should be discarded, not padded into artificial wiki prose.
tools
Orient session — preflight, load context, choose work
documentation
Wrap up finished work — capture lessons, update docs
testing
Use before commit, /merge-to-main, /workday-complete, or to validate repo state. Resolves and runs the project's configured fast-test command.
development
Root-cause discipline for ONE identified bug, test failure, or unexpected behavior — pin the premise, reproduce, trace to source, fix at source, verify. For a single known issue, not a codebase sweep.