wisdom-distill

wisdom-distill is a skill for Claude Code, Codex from Snowflake-Labs/cocoplus. It costs 33 tokens per session (771 once invoked), scanned A, original, MIT.

A CocoWisdom command that extracts lasting lessons from completed or failed coding-agent sessions and routes them into the project's knowledge files.

In plain words
What is it for?
It helps review session records and project progress files, classify lessons by the project schema, and handle unresolved contradictions.
Why use it?
It preserves useful corrections, decisions, and repeated failure patterns after a session ends, without blocking the developer's next task.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps review session records and project progress files, classify lessons by the project schema, and handle unresolved contradictions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/snowflake-labs/cocoplus/wisdom-distill
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Snowflake-Labs/cocoplus --skill wisdom-distill
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for wisdom-distill

README.md
[![agentmods](https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/wisdom-distill/github.svg)](https://agentmods.dev/skills/snowflake-labs/cocoplus/wisdom-distill)
Your own site
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/wisdom-distill"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/wisdom-distill/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for wisdom-distill

Your own site · 80×15
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/wisdom-distill"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/wisdom-distill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 771 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00771
Opus 5 $0.00016 $0.00385
Sonnet 5 $0.00007 $0.00154
Haiku 4.5 $0.00003 $0.00077

Measured 9d ago against content hash 98906ecd2e8e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

wisdom-distill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cortex/skills/cocowisdom/wisdom-distill.skill.md · 65 lines

How it starts

The opening of the file, as written. The whole thing — 65 lines — stays where its author put it; the contents beside it link to each section on GitHub.

CocoWisdom Distill

Use this skill when $wisdom distill is invoked directly or when the Stop hook queues a background distillation request.

Objective

Extract durable, reusable lessons from a completed, exited, or failed session and route them into CocoWisdom without blocking the developer's next turn.

Inputs

  • Optional session or run id from $wisdom distill <id>.
  • .cocoplus/wisdom/SCHEMA.md when present.
  • .cocoplus/session/PROGRESS.md, .cocoplus/session/CONTEXT.md, .cocoplus/session/steps.jsonl, and relevant lifecycle artifacts.
  • .cocoplus/wisdom/review-queue.md for unresolved contradictions.

Procedure

  1. Check .cocoplus/wisdom/SCHEMA.md. If it does not exist, create a minimal schema with topic categories, source session id, outcome status, evidence pointer, confidence, contradiction handling fields, and an optional ## Stage Mappings table for routing stage role patterns to positive wisdom topics.
  2. Read only the terminal-session artifacts needed to identify lessons, rejections, corrections, governance decisions, and repeated failure modes.
  3. Classify each candidate into a schema-declared category file. Do not invent standing-context text outside the schema.
  4. If a candidate contradicts existing wisdom, follow [wisdom].contradiction_action:
    • queue: add it to .cocoplus/wisdom/review-queue.md.
    • skip: record the skipped contradiction in the report.
    • overwrite: replace only when the evidence pointer and rationale are explicit.
  5. Write accepted entries to the matching topic file under .cocoplus/wisdom/.
  6. Write a distillation report to .cocoplus/lifecycle/cocoflow/<run-id>/distillation-<timestamp>.json when a run id exists, otherwise .cocoplus/wisdom/distillation-<timestamp>.json.

Rules

  • Distillation is asynchronous maintenance. It must never block Stop hook completion.
  • Failed sessions are valid sources when [wisdom].distill_on_failure = true.
  • Store evidence pointers, not transcript dumps.
  • Preserve reviewability: every accepted or queued lesson needs source id, timestamp, category, and rationale.
  • Prefer explicit curation for permanent memory. Automatic distillation may queue candidates, but durable project constraints, rejected approaches, and branch-scoped decisions need evidence pointers and reviewable rationale.

Read the full file on GitHub · 65 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 65 lines · 33 tokens per session scan A 98906ecd2e8e

Subscribe to this mod's changes

wisdom-distill is a skill published in the GitHub repository Snowflake-Labs/cocoplus (720 stars, last pushed 9d ago), licensed MIT. It adds 33 tokens to every session and 771 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

knowledge_store_skill

Skill for working with local .knowledge.yaml files via KnowledgeStore. Use this when you need to recall, search, or manage directory-local memories and knowledge links stored in plain YAML alongside the user's project files. KnowledgeStore is directory-scoped. Each directory that contains a .knowledge.yaml file…

NPC-Worldwide/npcpy · 346 tokens

remember

Stores decisions, patterns, and outcomes in the MCP memory knowledge graph as entities with typed observations and relations. Supports recording architectural decisions, anti-patterns, tool preferences, workflow outcomes, and project conventions that persist across sessions. Use when saving patterns, remembering…

yonatangross/orchestkit · 62 tokens

llm-wiki

Use when building or maintaining a self-contained personal knowledge base (an LLM wiki) in plain markdown. Triggers: ingesting sources into a wiki, querying wiki knowledge, linting wiki health, auditing article claims against their sources, critiquing a wiki source's reasoning, superseding stale knowledge, 'add to…

sammcj/agentic-coding · 82 tokens

authoring-claude-md

Creating and maintaining CLAUDE.md project memory files and .claude/rules/ rule files that provide non-obvious codebase context. Use when (1) creating a new CLAUDE.md for a project, (2) adding architectural patterns or design decisions to existing CLAUDE.md, (3) capturing project-specific conventions that aren't…

sammcj/agentic-coding · 93 tokens

screenpipe-chats

Search what was said in existing screenpipe, Codex, Claude, Cursor, and Gemini CLI chats, then continue or steer one exact chat when the user explicitly asks. Use for requests about finding another agent conversation, recalling what an agent said, or sending work to one.

screenpipe/screenpipe · 60 tokens

bootstrap-agent-identity

Consistent agent behavior after restart — progressive identity loading, working context reconstruction from persistent artifacts, fresh-vs-continuation detection, calibration through centering and attunement, and identity verification for coherence. Addresses the cold-start problem where an agent must reconstruct who…

pjt222/agent-almanac · 105 tokens