Learn from a session
Capture a durable preference, working pattern, recurring friction, or successful
workflow from a session in an established Intelligence project. This skill owns
identifying and generalizing the lesson; intelligence-update-context owns writing it.
Verify readiness
- Locate
<manifest>,<content-dir>, and<module>, then runintelligence status --check. Missing or inconsistent setup, an onboarding pending header, or unresolved preserved instructions routes to/intelligence-learn-from-repositoryfor repair and migration. Stop session capture until onboarding is complete. A retained backup manifest or converted legacy config alone does not mean onboarding is incomplete.
Analyze and propose
- Identify the lesson from the conversation or explicit user input. For a workflow, list the actual steps performed, user decisions, branches, failure recovery, and verification. Retain the sequence that worked.
- Generalize the evidence by removing instance-specific filenames, dates, and phrasing. Keep the reason needed to apply the lesson to the next task. Prefer a positive instruction such as "Default to one recommendation" for "Stop generating three options". Preserve safety prohibitions; confirm a translation if changing the negation changes meaning. Keep a negative example only when paired with its replacement and useful for recognizing the pattern.
- Inspect configured sources for an existing owner. A preference or constraint belongs in a rule, path-specific context in a scoped rule, an observed repeatable procedure in a skill, and a persona or expertise boundary in an agent. Prefer extending an existing artifact over adding a sibling.
- Present each proposal with its action (
CREATE,UPDATE, orARCHIVE), source path, concrete draft, and one-line reason. This phase is read-only; only user-accepted lessons become persistent instructions. Reuse approval already given for the exact proposal.
Apply and verify
- Pass accepted proposals and their session evidence to
/intelligence-update-context. It handles artifact-specific authoring, references, a single batch sync, and the final status check. - Compare the resulting source changes with the accepted lesson. For a workflow, verify that its decisions, working steps, recovery, and proof of completion remain executable without this conversation. Report the saved lesson, its owner, and verification; a session-specific transcript is not completion.