| name | guidance-sync |
| description | Probe the current session for self-improvement opportunities โ corrections, friction, gotchas, and repetition that should become updates to project-local skills, AGENTS.md, steering, or tool-script guides. Invoke manually (/guidance-sync) periodically during a session or before wrapping up. Trigger: guidance sync, self improvement, what should we update, capture learnings, sync guidance, improvement opportunities, session retro. |
| metadata | {"type":"protocol","invocation":"user-only","practice":null} |
Guidance Sync โ In-Session Self-Improvement Probe
Mine THIS session for signals that the project's guidance layer should change. Source material is the live conversation โ not git history, not session archives (the automated retrospective variant is future work; session-analysis owns historical data).
Probes (run all, report findings per probe)
P1 โ Corrections
Where did the user correct me this session? Each correction is a candidate rule:
- Corrected assumption โ steering or AGENTS.md line
- Corrected workflow โ skill edit (the skill taught the wrong shape)
- Corrected scope/intent โ skill description or trigger vocabulary fix
P2 โ Friction
Where did work stall or need archaeology this session?
- Stale docs hit in practice (wrong flag syntax, dead path, missing step)
- Knowledge that existed only in someone's head or a previous session
- A check or verification that had to be improvised
P3 โ New knowledge
What did this session learn that the next session shouldn't rediscover?
- Gotchas with incidents behind them โ guide skill "hard rules" section
- Output-interpretation rules (what a field/verdict actually means)
- Environment facts (access limits, version quirks) โ environment notes
P4 โ Repetition
What did I do manually 2+ times this session? Candidates for:
- A tools/ script (follow the validation contract)
- A skill workflow step
- An AGENTS.md command entry
P5 โ Coverage gate
Does every tools/ script family touched this session have a guide skill covering usage and output interpretation? A family needs one if output requires interpretation, flags are misusable, or misuse has cost. Otherwise an AGENTS.md command entry suffices โ don't create ceremony.
P6 โ Prune
What existing guidance did this session ignore, contradict, or work around? Curation is the point: uncurated guidance measurably degrades agents, and net line count only going up means accumulating, not curating.
- A rule I violated to do the job correctly โ the rule is wrong; edit or remove it now
- A correction happened DESPITE a covering rule โ the prose failed; promote to mechanical enforcement (lint, hook, validation) instead of adding more prose
- Guidance contradicted by observed reality โ fix in place now (repair-on-touch โ don't defer to a scheduled review that won't happen)
- Two files own the same rule โ consolidate to one source of truth, delete the copy
Route removals to their owners โ never build a parallel prune mechanism: skill retirement โ compositions/deprecated.yaml flow; AGENTS.md over budget โ agents-md-authoring trim gate; systemic multi-file drift โ propose /project-audit; doc decay โ docs-audit.
Output Format
## Self-Improvement Probe โ {date}
| # | Probe | Finding | Proposed change | Target |
|---|-------|---------|-----------------|--------|
| 1 | P1 correction | ... | ... | .kiro/skills/X or AGENTS.md |
| 2 | P3 gotcha | ... | ... | guide skill hard-rules |
Apply now: [items needing no decision]
Needs your call: [items with trade-offs]
Not worth capturing: [signals judged noise, with one-line why]
Net guidance delta: +A / โR lines across applied changes
Apply approved items in the same session. Trivial corrections (stale syntax, dead link) apply directly; note them.
Discipline
- Proposals must trace to a specific moment in this session โ no generic "docs could be better"
- Entry filter: capture only what will plausibly change a future outcome โ if the model already does it unprompted, or reading the code reveals it, it's noise
- Supersede, don't obliterate: decision records get marked superseded, never deleted; removals go through owned mechanisms; git history + recall are the archive (no quarantine lists โ manual status flags rot without a sweep)
- One source of truth: command lines in AGENTS.md, interpretation in guide skills, incidents in hard-rules sections
- Capture into the right layer: glossary terms โ
.memory/CONTEXT.md; decisions โ recall/ADR; behavior rules โ steering/skills
- Skill budget: <100 lines per SKILL.md; split to
references/ if over