Use this workflow whenever source, runtime behavior, architecture, tests, or project state changes.
- Read
context.mdandarchitecture/code-map.md. - Identify the subsystem row for changed source files.
- Update source code or docs in the smallest coherent slice.
- Run the relevant validation command from
test_index/or the code-map row. - Update component docs when interfaces, ownership, or invariants changed.
- Update
SYSTEM_FLOW_INDEX.mdonly when runtime or UX flow changed. - Update
context.mdas the concise restart state.
| Information | Location |
|---|---|
| Current restart state | context.md |
| Session evidence | logs/, context_checkpoints/ |
| Source ownership | architecture/code-map.md |
| Subsystem contracts | architecture/components/ |
| User/developer guides | docs/ |
| Test meaning and commands | test_index/ |
| Architectural decisions | decisions/ |
| Reusable findings | knowledgebase/ |
| Repeatable procedures | skills/ |
| Debugging failures | errors/ |
- Changed source files are listed.
- Each changed source file maps to a code-map subsystem row.
- Related architecture/component docs are updated or explicitly unchanged.
- Related test docs are updated or explicitly unchanged.
- Validation commands and results are recorded.
context.mdlinks to current anchors instead of duplicating them.
Create a repo-local skill only when the workflow is stable, repeatable, and has clear invocation criteria, inputs, outputs, checks, and stop conditions. Do not create skills for one-off fixes or session-specific history.