CLI reference
chain capture
Record a learning event (success, failure, correction, note) or a memory rule
Example
chain capture Options
-
--event <type>Event type (success|failure|correction|note)
-
--skill <slug>Target slug (skill, workflow, agent, or rule name)
-
--target <kind>Target kind: skill | workflow | agent | rule (auto-detected when omitted)
-
--summary <text>Short summary of what was learned
-
--repo <hint>Repository or path hint
-
--rule <title>Capture a memory rule instead of an event
-
--content <text>Content of the memory rule (required with --rule)
-
--scope <scope>Scope of the memory rule (global|workspace)
-
--spec <id>Link this learning to a PRD or spec (e.g. PRD-42, SPEC-024)
-
--chain-home <path>Override hub path for this command
Related documentation
Full command table: Commands reference · Troubleshooting