From kernel
Synthesizes cross-session learnings from AgentDB, identifies patterns, resolves contradictions, and promotes insights into project artifacts like hooks, agents, and skills.
How this skill is triggered — by the user, by Claude, or both
Slash command
/kernel:retrospectiveThis skill is limited to the following tools:
The summary Claude sees in its skill listing — used to decide when to auto-load this skill
<skill id="retrospective">
Pull recent checkpoints for session context:
agentdb recent
Analyze learnings across 6 dimensions:
COALESCE(last_hit, ts) < datetime('now', '-30 days'). A recently recalled
learning is not stale even when its original ts is old..claude/ against its actual work. A recurring
manual pattern with no skill → skill candidate. A repeated safety catch with no hook → hook
candidate. A skill/agent that never fires → prune candidate.Promote via the artifact ladder (most enforceable form that fits, never default to prose):
.claude/hooks/..claude/agents/<name>.md..claude/skills/<name>/SKILL.md with triggers phrased the way tasks are asked..claude/, not the
kernel plugin, unless the lesson is genuinely cross-project.<ask_user> Use AskUserQuestion when: promotable patterns found. Ask: "Found {N} promotable patterns. Scaffolding as {hooks/agents/skills}, approve?" Options: scaffold all, review each, skip promotion Prune candidates (dormant skills/agents) always require explicit approval before removal. </ask_user>
Take housekeeping actions:
agentdb learn {type} "{merged}" "{combined evidence}"agentdb query "DELETE FROM learnings WHERE id = {id}"Emit the machine-readable mutation record — MANDATORY, not optional:
Write _meta/reports/retrospective-{date}.json per
schemas/kernel.retrospective-result.v1.schema.json:
"${CLAUDE_PLUGIN_ROOT:-.}/orchestration/manifest/kernel-manifest" validate _meta/reports/retrospective-{date}.json
Future handoffs reference this file via provenance.retrospective_refs, so resumed work knows which infrastructure mutations it depends on.
Write synthesis to AgentDB:
agentdb write-end '{"did":"retrospective","clusters":N,"merged":N,"archived":N,"promoted":N,"artifacts":["path1","path2"],"mutation_record":"_meta/reports/retrospective-{date}.json"}'
<output_format>
{path} (reinforced {N}x, evidence: {summary})_meta/reports/retrospective-{date}.json (kernel.retrospective-result/v1, validated)
</output_format>npx claudepluginhub ariaxhan/kernel-claude --plugin kernelExtracts session patterns into reusable learnings with analyze, review, and list modes. Manages a learnings.jsonl file for persistent memory across sessions.
Analyzes work history and accumulated lessons to surface concrete improvements: new agents/skills, memory pruning, rule consolidation, and bin/ extraction from efficiency audits.
Runs context-aware retrospectives that auto-gather data from git, specs, learnings, and observations, presenting pre-populated tables for human refinement.