agent-environment-retr…
Use when a completed session needs an agent-environment retrospective. Not for an engineering retrospective from telemetry: use engineering-retrospective.
Use when the user explicitly asks to save, curate, or consolidate what was learned, or closes a meaningful knowledge-work session. Not for remote, publish, deploy, or irreversible changes.
$ npx -y skills add OutlineDriven/odin-claude-plugin --skill compound --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/compoundContext preview
The summary Claude sees to decide when to auto-load this skill.
Use when the user explicitly asks to save, curate, or consolidate what was learned, or closes a meaningful knowledge-work session. Not for remote, publish, deploy, or irreversible changes.
name: compound description: 'Use when the user explicitly asks to save, curate, or consolidate what was learned, or closes a meaningful knowledge-work session. Not for remote, publish, deploy, or irreversible changes.'
| Field | Bound contract | |---|---| | Trigger | User explicitly asks to save, curate, or consolidate what was learned, or closes a meaningful knowledge-work session. | | Authority | Reversible local: writes only docs/solutions/{slug}.md records and repo-root CONCEPTS.md; rollback is version control. No remote mutation. Never silently deletes stale entries. | | Side effect | Writes typed docs/solutions/{slug}.md records and repo-root CONCEPTS.md; may update stale entries, but never silently delete them. | | Done | At most three specific typed learnings or an honest none are proposed; duplicates and contradictions are checked; the user approves; saved records carry type, retrieval tags, confidence, date, source, Context, and Implication; confirmation names retrieval tags. |
1. Scan docs/solutions/ recursively (`**/*.md`, excluding `README.md`) for existing records. Load each record and extract its frontmatter tags, type, and source. Records written by `autolearn` live in category subdirectories and carry its own schema; read them for overlap, never rewrite them to this schema. Done when: every existing record is loaded with its frontmatter. 2. Check for stale and conflicting entries: compare the extracted tags of each existing record against the candidate learnings. An entry is stale when its tags overlap with a new candidate and its content contradicts or supersedes the candidate. An entry conflicts when it shares tags but states the opposite. Flag each stale or conflicting entry by name with the overlap reason; do not delete or overwrite it. Done when: every stale or conflicting entry is flagged by name with its overlap reason. 3. Propose at most three specific learnings drawn from the session transcript. Classify each with a type (e.g., pattern, caveat, reference, decision, concept, fix, lesson). Reject a fourth or fifth as scope creep; propose none if the session yielded no durable learning. Done when: at most three learnings are proposed with types, or an honest none is proposed. 4. For each proposed learning: a. Check against the stale-knowledge inventory: if a duplicate or contradiction exists by shared tag, flag it explicitly rather than overwriting. Done when: the duplicate or contradiction is flagged or none exists. b. Assign retrieval tags, confidence level (high/medium/low), date (ISO 8601), and source context. Done when: tags, confidence, date, and source are assigned. c. Draft frontmatter per the Record schema below: type, tags, confidence, date, source, Context (what triggered the learning), Implication (what changes as a result). Done when: frontmatter is drafted with all seven fields. 5. Present the proposed records to the user for approval. Include the stale/conflict flags so the user can decide whether to update, merge, or consolidate. Done when: the proposed records and flags are presented for approval. 6. On user approval: write each approved record to docs/solutions/{slug}.md using the drafted frontmatter and a prose body derived from the session. If a record updates or consolidates an existing entry, preserve the original entry's history line. Done when: every approved record is written with valid frontmatter and history preserved. 7. Confirm completion by naming the retrieval tags for each saved record. Done when: the retrieval tags for each saved record are named in the confirmation.
| Failure class | Result | |---|---| | docs/solutions/ exists but is unreadable | Block: skill cannot execute; report the path and the read error. | | User rejects all proposed learnings | Non-converged: nothing is written; report "No knowledge records saved." | | Write fails (disk error, permission) | Rollback: do not leave a partial record; report the error and the record that failed. | | Duplicate tag detected, user unresponsive | Non-converged: do not write; confirm explicitly before proceeding. |
Markdown files written to docs/solutions/ (or the configured directory), each with frontmatter (type, tags, confidence, date, source, Context, Implication), plus a terminal confirmation naming retrieval tags for each saved record.
Canonical frontmatter contract for `docs/solutions/{slug}.md` records. All seven fields are required.
| Field | Type | Description | |---|---|---| | `type` | string | Learning type: pattern, caveat, reference, decision, concept, fix, lesson. | | `tags` | array[string] | Retrieval keywords, lowercase and hyphen-separated. Used for duplicate and contradiction detection. | | `confidence` | enum | `high`, `medium`, or `low`. | | `date` | string | ISO 8601 date (`YYYY-MM-DD`). | | `source` | string | Where the learning originated: session context, PR, issue, or codebase area. | | `Context` | string | What triggered the learning: the situation or problem that produced it. | | `Implication` | string | What changes as a result: the actionable consequence of the learning. |
Prose body derived from the session, expanding on Context and Implication with the substance of the learning. No fixed section structure; let the learning shape dictate the prose.
`{slug}.md`: a sanitized, descriptive slug derived from the learning's core idea. No date suffix (the `date` field carries that).
Wrap array items in double quotes when a value starts with any of: `` ` `` `[` `]` `{` `}` `,` `*` `
Formerly the ODIN Claude Plugin. The repository URL is unchanged. Outline-Driven Development, nicknamed ODIN, is a highly opinionated code-agent skill library: principles-first engineering, surgical editing, and workflow automation, published as installable
Repo: OutlineDriven/odin-claude-plugin
Use when a completed session needs an agent-environment retrospective. Not for an engineering retrospective from telemetry: use engineering-retrospective.
Use when a repo needs agent setup, AGENTS.md added or made lean, CLAUDE.md audited, or agent instructions scored or pruned. Not for remote, credential,…
Use when a human explicitly asks for a full repository agent-compatibility pass returning a scored report with prioritized fixes. Not for tasks that require…
Use when setting up a project, auditing agent command permissions, or asking which read-only bash commands and domains to allow. Not for remote, credential,…
Use when asked to build or review a CLI intended for coding agents and return flag-driven, pipeline-safe, idempotent design advice. Not for running or…
Use when the user asks to make the skills framework work in a new harness, IDE, or CLI. Not for remote, credential, publish, deploy, or irreversible changes.