lesson-cluster

lesson-cluster is a skill for Claude Code, Codex from microsoft/cat-agent-skills. It costs 142 tokens per session (1,124 once invoked), scanned A, original, MIT.

A tool for grouping cited decisions and retrospective notes into ranked themes. A retrospective is a review of what happened during completed work and what was learned.

In plain words
What is it for?
Use it to organise closeout lessons, group retrospective findings, and prepare cited themes before writing them up.
Why use it?
It avoids manually sorting lessons and helps keep each theme linked to its supporting evidence.

Skill for Claude CodeCodex ✓ vendor

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

Good fit Use it to organise closeout lessons, group retrospective findings, and prepare cited themes before writing them up.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/microsoft/cat-agent-skills/lesson-cluster
About the project

microsoft/cat-agent-skills is a static website that catalogs reusable instruction sets and related packages for AI agents. People use it to search, filter, rate, and download skills for Cowork, Copilot Studio, and Scout, along with Copilot plugins and Scout automations. The catalogue entries are the skills, instructions, plugins, and settings displayed by the site.

microsoft/cat-agent-skills · 101 stars · on GitHub

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 microsoft/cat-agent-skills --skill lesson-cluster
Clone the repo
git clone --depth 1 https://github.com/microsoft/cat-agent-skills

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 lesson-cluster

README.md
[![agentmods](https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/lesson-cluster/github.svg)](https://agentmods.dev/skills/microsoft/cat-agent-skills/lesson-cluster)
Your own site
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/lesson-cluster"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/lesson-cluster/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 lesson-cluster

Your own site · 80×15
<a href="https://agentmods.dev/skills/microsoft/cat-agent-skills/lesson-cluster"><img src="https://agentmods.dev/badge/skills/microsoft/cat-agent-skills/lesson-cluster.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 142 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,124 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.00142 $0.01124
Opus 5.5 $0.00057 $0.00450
Sonnet 5.5 $0.00028 $0.00225
Haiku 4.5 $0.00014 $0.00112

Measured yesterday against content hash bcc097d09842, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

lesson-cluster 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 yesterday.

The scan reads SKILL.md. This mod also ships 3 executable files (scripts/closeout_core.py, scripts/lesson_cluster.py, scripts/steering_guard.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

submissions/engagement-closeout-knowledge-harvest/skills/lesson-cluster/SKILL.md · 66 lines

How it starts

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

Lesson Cluster

Purpose

Apply references/lesson-taxonomy.md deterministically so lessons are grouped, ranked and cited before prose is drafted.

When to use

After asset-identify, before sanitize-check, for every closeout knowledge harvest.

When NOT to Use

  • Raw sources still need normalization - use artifact-assemble.
  • Assets need reuse scoring or completeness checks - use asset-identify.
  • The user asks whether a lesson may be shared or reused - use sanitize-check.
  • The user asks for the final knowledge-record narrative - use knowledge-record.

Inputs

asset_shortlist.json with decision_log and retrospective_inputs carried from artifact-assemble.

Steps

  1. Run scripts/lesson_cluster.py --input asset_shortlist.json --out lessons_clustered.json.
  2. Quote cluster ids, categories, priority scores, evidence ids and citations verbatim.
  3. Do not polish any lesson that sanitize-check later flags for personal data or confidentiality.
  4. Pass named-person and blame signals through to the Govern step.
  5. If the engine exits non-zero (exit 2 prints lesson_cluster: input error: ...; nothing written, including when asset_shortlist.json was edited after asset-identify), stop and report the error; never create clusters manually.

Tools

Run scripts/lesson_cluster.py with the shell tool and read its JSON output with the file-read tool. No connector writes or outbound actions.

Output format

lessons_clustered.json with lesson_clusters[], evidence citations, sensitivity signals and provenance. The engine copies every input key forward and adds (one cluster shown; clusters are sorted by priority_score, highest first):

{
  "lesson_clusters": [{ "cluster_id": "", "category": "<lesson-taxonomy category or unclassified>",
    "priority_score": 0, "review_candidate": false, "evidence_ids": [], "evidence_citations": [],
    "summary_seed": "", "sensitivity_signals": [], "confidence": 0.0,
    "source": "engine:lesson_cluster", "citation": "lesson-taxonomy.md #..." }],
  "provenance": { "engines": ["asset_identify/<engine version>", "lesson_cluster/<engine version>"] }
}

Read the full file on GitHub · 66 lines

Files

What ships with it

7 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. yesterday First seen · 66 lines · 142 tokens per session scan A bcc097d09842

Subscribe to this mod's changes

lesson-cluster is a skill published in the GitHub repository microsoft/cat-agent-skills (101 stars, last pushed yesterday), licensed MIT. It adds 142 tokens to every session and 1,124 once invoked, about $0.0006 per session on Opus 5.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-11-07.

Related

lesson-cluster compared with skills from other repositories

lesson-cluster next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
lesson-clustermicrosoft/cat-agent-skillsSkill101yesterdayMITA142Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79kyesterdayMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill314k4d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code