learning-aggregator
БесплатноБез исполняемых скриптовНе проверен[Beta] Cross-session analysis of accumulated .learnings/ files. Reads all entries, groups by pattern_key, computes recurrence across sessions, and outputs…
от pskoett★ 343 звезды на GitHubОб этом скилле
Learning Aggregator
Reads accumulated .learnings/ files across all sessions, finds patterns, and produces a ranked list of promotion candidates. This is the outer loop's inspect step.
Without this skill, .learnings/ is a write-only log. Patterns accumulate but nobody synthesizes them. The same gap resurfaces two weeks later because no one looked.
When to Use
- Weekly cadence — scheduled or manual, review accumulated learnings
- Before major tasks — check if the task area has known patterns
- After a burst of sessions — consolidate findings from a sprint or incident
- When an entry's
Recurrence-Countreaches the promotion threshold (>= 3) — verify the candidate with full context
What It Produces
A gap report — a ranked list of patterns that have crossed (or are approaching) the promotion threshold, with evidence and recommended actions.
Step 1: Read All Learning Files
Read these files in .learnings/:
| File | Contains |
|---|---|
LEARNINGS.md |
Corrections, knowledge gaps, best practices, recurring patterns |
ERRORS.md |
Command failures, API errors, exceptions |
FEATURE_REQUESTS.md |
Missing capabilities |
HEALS.md |
Verified runtime recoveries filed by self-healing — including Handoff blocks flagging recurring patterns ready for promotion |
Parse each entry's metadata:
Pattern-Key— the stable deduplication keyRecurrence-Count— how many times this pattern has been seenFirst-Seen/Last-Seen— date rangePriority— low / medium / high / criticalStatus— pending / in_progress / resolved / wont_fix / promoted / promoted_to_skill (the writer's vocabulary; promotion readiness is computed fromRecurrence-Count, not stored as a status)Area— frontend / backend / infra / tests / docs / configRelated Files— which parts of the codebase are affectedSource— conversation / error / user_feedback / simplify-and-hardenTags— free-form labelsTask-ID,Session-ID,Occurrence-ID,Source-Ref,Copied-From— optional provenance fields from newer writers
Step 2: Group and Aggregate
Build canonical occurrences before grouping:
- Collapse copied entries with the same entry ID and normalized content, even when they appear in multiple repo locations.
- Collapse matching
Occurrence-IDvalues across.learnings/, cloud/local mirrors, forks, forwarded transcripts, and trace sources. - When
Occurrence-IDis absent, use explicitTask-ID,Session-ID,Source-Ref, andCopied-Fromlineage plus normalized evidence to identify copies. Do not infer independence from different file paths or checkpoint IDs alone. - Treat one
.learningsentry and one trace event describing the same task occurrence as one occurrence, while retaining both source references as corroborating evidence. - For legacy entries without stable task/session provenance, label lineage
unknown. They may contribute their declared recurrence once per canonical entry, but all unknown-lineage evidence counts as at most one distinct task and cannot by itself prove the cross-task threshold.
Then group canonical occurrences by Pattern-Key. For each group:
- Count deduplicated recurrences across canonical occurrences. Do not sum duplicate copies of
the same entry's
Recurrence-Count. - Count distinct tasks from stable task/session lineage, not source-file count
- Compute time window — days between First-Seen and Last-Seen
- Collect all related files — union of all entries' file references
- Take highest priority across entries in the group
- Collect evidence — the Summary and Details from each entry
For entries without a Pattern-Key, use conservative grouping only:
- Exact match: Same
AreaAND at least 2 identicalTags - File overlap: Same
Related Filespath (exact path match, not substring) - Do NOT fuzzy-match on Summary text — false groupings are worse than ungrouped entries
Flag ungrouped entries separately with a recommendation to assign a Pattern-Key. Ungrouped entries are common and expected — they may be one-off issues or genuinely novel problems.
Step 3: Rank and Classify
Promotion Threshold
An entry is promotion-ready when:
Recurrence-Count >= 3across the group- Seen in
>= 2 distinct tasksproven by stable provenance - Within a
30-day window
Statuses are part of promotion state, not just display metadata:
promoted,promoted_to_skill,resolved, andwont_fixare terminal for the recorded occurrence. Keep them as history, but do not surface a terminal-only group as promotion-ready.- If a newer
pendingorin_progressoccurrence appears after the latest terminal event, classify it as a regression/reopened pattern and compute readiness from the post-terminal occurrences. - A
Handoffblock is evidence that the threshold was previously reached, not permission to re-promote an already
Установить learning-aggregator в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл learning-aggregator?
[Beta] Cross-session analysis of accumulated .learnings/ files. Reads all entries, groups by pattern_key, computes recurrence across sessions, and outputs ranked promotion candidates. This is the outer loop's inspect step — it turns raw learning data into actionable gap reports. Use on a regular cadence (weekly, before major tasks, or at session start for critical projects). Can be invoked manually or scheduled.
Как установить скилл learning-aggregator?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл learning-aggregator запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
skill-creator
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an…
от Anthropicdiscernment-nudge
After you give a substantive answer or draft that the user may act on — advice or recommendations, drafted artifacts such as goals, plans, pitches, proposals…
от Anthropicdata-consolidate
Joins the plant's scheduled exports and connector data into one working dataset — ERP items (NetSuite or Infor M3), sales orders, production work orders…
от Anthropicinspection-to-capa
Runs the quality chain end to end: writes the nonconformance against the requirement it violates, searches history at the moment of writing to say whether…
от Anthropic