Create a capture-feedback skill
Problem
When the user gives the agent feedback — correcting a misapplied rule, or specifying a new desired behavior — that feedback is the raw material for refining agent guidance (a skill, subagent, rulebook, general guidance, or helper) so it isn't needed again. Today the signal is lost unless the agent remembers to capture a mistake event, and even then only the error is recorded — not the corrected behavior or the net-new desired behavior, which are the parts that tell a later refinement what to enforce.
Context
capture-event is the append primitive: immutable, write-once records to a named KB store, with auto-filled context and an existing mistake tag (+ --skill) for guidance-preventable errors. It does no implementation, recall, or triage.
- The
collaborate skill already tells the agent to call capture-event --tags mistake --skill <skill> for skill-caused mistakes — but that path is error-only, skill-only, and relies on the agent remembering.
- Agent-guidance feedback routes to the
codeassembly KB store. The registry default_kb is personal, so @default is the wrong destination.
- Refining guidance from a single data point risks over-fitting; feedback is captured now and refined later in a recall-driven pass over these events (
kb-retrieve-events).
Proposed solution
Add a user-invocable capture-feedback skill that records agent-behavior feedback as a guidance-refinement candidate, applying the immediate fix when there's something concrete. It delegates the append to the capture-event skill; it does not refine the guidance itself.
Two modes, decided by one question — did relevant guidance already exist? (the agent assesses best-effort and records uncertainty when unclear):
- Misapplied existing guidance — the agent broke a rule that already exists. Apply the fix, then capture. Tags:
feedback, mistake.
- No such guidance — the user specifies a net-new desired behavior. Usually nothing to apply; capture. Tag:
feedback.
Flow:
- The user invokes
/capture-feedback and describes a correction or a desired behavior.
- If a concrete artifact is involved, apply the fix directly — pausing to confirm the intended fix only when the feedback is genuinely ambiguous (more than one reasonable reading) or risky/large/hard to reverse. Purely behavioral feedback skips straight to capture.
- Capture an event via the
capture-event skill, then report the fix and the record.
Captured content — only to the extent needed to generalize a refinement:
- The generalized lesson: the error→correction pair (misapplied-guidance mode) or the desired behavior (no-guidance mode) — not the raw artifact or diff.
- A best-effort candidate refinement target (guidance artifact + type: skill / subagent / rulebook / general guidance / helper) —
--skill when it's a skill, a body note otherwise, "undetermined" when unclear.
- Routed to the
codeassembly store as a literal default in the skill (the project's conventional KB); --store overrides the rare off-store case.
Delivery: a declared skill, deployed verbatim via the recommended collection — so it delegates to capture-event rather than invoking a helper by an injected path.
Tags: feedback on every record (the refinement pass's recall handle); mistake when existing guidance was misapplied; --skill when the target is a skill.
Acceptance criteria
Must have
Should have
Create a capture-feedback skill
Problem
When the user gives the agent feedback — correcting a misapplied rule, or specifying a new desired behavior — that feedback is the raw material for refining agent guidance (a skill, subagent, rulebook, general guidance, or helper) so it isn't needed again. Today the signal is lost unless the agent remembers to capture a
mistakeevent, and even then only the error is recorded — not the corrected behavior or the net-new desired behavior, which are the parts that tell a later refinement what to enforce.Context
capture-eventis the append primitive: immutable, write-once records to a named KB store, with auto-filled context and an existingmistaketag (+--skill) for guidance-preventable errors. It does no implementation, recall, or triage.collaborateskill already tells the agent to callcapture-event --tags mistake --skill <skill>for skill-caused mistakes — but that path is error-only, skill-only, and relies on the agent remembering.codeassemblyKB store. The registrydefault_kbispersonal, so@defaultis the wrong destination.kb-retrieve-events).Proposed solution
Add a user-invocable
capture-feedbackskill that records agent-behavior feedback as a guidance-refinement candidate, applying the immediate fix when there's something concrete. It delegates the append to thecapture-eventskill; it does not refine the guidance itself.Two modes, decided by one question — did relevant guidance already exist? (the agent assesses best-effort and records uncertainty when unclear):
feedback,mistake.feedback.Flow:
/capture-feedbackand describes a correction or a desired behavior.capture-eventskill, then report the fix and the record.Captured content — only to the extent needed to generalize a refinement:
--skillwhen it's a skill, a body note otherwise, "undetermined" when unclear.codeassemblystore as a literal default in the skill (the project's conventional KB);--storeoverrides the rare off-store case.Delivery: a
declaredskill, deployed verbatim via therecommendedcollection — so it delegates tocapture-eventrather than invoking a helper by an injected path.Tags:
feedbackon every record (the refinement pass's recall handle);mistakewhen existing guidance was misapplied;--skillwhen the target is a skill.Acceptance criteria
Must have
/capture-feedback <description>is a user-invocable skill.capture-eventskill carrying the generalized lesson, and reports the record.--skillfor skills and a body note otherwise, and "undetermined" when unclear.feedback;mistakeis added when existing guidance was misapplied.codeassemblystore with no per-invocation prompt;--storeoverrides.deploy: declared) and joins therecommendedcollection so it deploys with that collection's closure.Should have
collaborateskill's "Skill improvement" instruction points tocapture-feedbackfor user-driven feedback.