skills/context-maintenance/SKILL.md
Keeps `.context/` documentation accurate and current. Use this skill after completing any non-trivial task, when you've learned something new about the project, when promoting lessons from retrospectives, when pruning stale task folders, or when you notice documentation that's outdated or duplicated. If you just finished a task and learned something worth preserving, this is the right skill — even if the user doesn't explicitly ask. For full codebase-level syncs, use `context-review` instead.
npx skillsauth add maestria-co/ai-playbook context-maintenanceInstall 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.
Keep .context/ accurate without letting it rot or bloat. This skill covers the
ongoing maintenance tasks: promoting retrospective insights, pruning stale content,
deciding when to update vs. create, and avoiding duplication.
Use context-review for full codebase scans. Use this skill for incremental updates
after individual tasks.
Lessons logged in .context/retrospectives/ should graduate to permanent docs. This prevents
the retrospective from becoming an unread graveyard.
retrospectives/[ ] promotion itemsstandards.md)[x]| Lesson type | Promote to |
| ------------------------------ | ---------------------------------------------- |
| Coding pattern or anti-pattern | standards.md or standards.md |
| Naming discovery | standards.md |
| Test strategy or mock pattern | testing.md or testing.md |
| Architecture insight | architecture.md |
| Domain knowledge | domains/entities.md or domains/glossary.md |
| Process improvement | workflows/ appropriate file |
| Decision rationale | decisions/index.md (as a new ADR) |
| Situation | Action | | --------------------------------------- | --------------------------------------------------------- | | New information about an existing topic | Update the existing file | | Existing file is wrong or outdated | Update — replace the stale content | | Completely new topic area | Create a new file in the appropriate subdirectory | | Information exists in multiple places | Consolidate into a single file and remove duplicates | | A pattern applies to only one area | Update the area-specific file, don't create a new one |
Rule of thumb: If you're tempted to create a new file, first check if the content belongs in an existing one. Fewer, richer files beats many sparse ones.
Task folders in .context/tasks/[TASK-ID]/ are ephemeral by default.
Delete or archive a task folder when any of these are true:
# Find task folders older than 4 weeks
find .context/tasks/ -name "plan.md" -mtime +28 -exec dirname {} \;
For each old or drifted folder:
Run these periodically (or after every 3–5 tasks):
overview.md — does the tech stack still match manifest files?standards.md — do conventions match recently-written code?architecture.md — do documented patterns match actual code?.context/tasks/ folder has scope-drifted (plan describes a different task than what was built) → apply pruning trigger above.context/ files should be concise. If any file exceeds 300 lines, consider splitting.retrospectives/ should have 10–15 entries max. Prune or archive older ones..context/ files.context/development
Writes and runs a test suite for a piece of code, covering happy path, edge cases, error cases, and security cases. Use when: implementation is complete and needs test coverage, a bug needs a reproduction test and fix validation, or code needs coverage before a refactor. Do not use when: the code under test is not yet implemented, or the spec is still unclear.
testing
Use when creating a new skill, editing an existing skill, or helping a user author a skill for this system. Covers structure, discoverability, quality, and discipline hardening.
development
Evidence-based verification process to run before marking any task complete. Use this skill every time you're about to report that work is done — for features, bug fixes, refactoring, or any code change. This catches the most common failure mode: declaring "done" without proof. If you're finishing up and about to tell the user the task is complete, run this checklist first.
development
Teaches agents how to discover, select, and invoke skills from the skill library. Use this skill whenever you're uncertain which skill applies to a task, when composing multiple skills for complex work, or when you need to understand what skills are available. This is your go-to when facing an ambiguous task and need to figure out the right approach before diving into implementation.