[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7CRZSM12QRKRPX81KDBHT92":3,"skill-same:01M7CRZSM12QRKRPX81KDBHT92":47},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":29,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7CRZSM12QRKRPX81KDBHT92","learning-aggregator",null,"[Beta] Cross-session analysis of accumulated .learnings\u002F 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.","YYC-Cube\u002FYYC3-Knowledge-Base","YYC-Cube","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F235006543?v=4","01M79J2PH4SWD2X0825X6PN748","yyc3","01M79J2PHVK3F6ZBYT8K2SCZCW",1,"MIT","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-pskoett-ai-skills\u002Fskills\u002Flearning-aggregator\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: learning-aggregator\ndescription: \"[Beta] Cross-session analysis of accumulated .learnings\u002F 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.\"\n---\n\n# Learning Aggregator\n\nReads accumulated `.learnings\u002F` files across all sessions, finds patterns, and produces a ranked list of promotion candidates. This is the outer loop's **inspect** step.\n\nWithout this skill, `.learnings\u002F` is a write-only log. Patterns accumulate but nobody synthesizes them. The same gap resurfaces two weeks later because no one looked.\n\n## When to Use\n\n- **Weekly cadence** — scheduled or manual, review accumulated learnings\n- **Before major tasks** — check if the task area has known patterns\n- **After a burst of sessions** — consolidate findings from a sprint or incident\n- **When self-improvement flags `promotion_ready`** — verify the flag with full context\n\n## What It Produces\n\nA **gap report** — a ranked list of patterns that have crossed (or are approaching) the promotion threshold, with evidence and recommended actions.\n\n## Step 1: Read All Learning Files\n\nRead these files in `.learnings\u002F`:\n\n| File | Contains |\n|------|----------|\n| `LEARNINGS.md` | Corrections, knowledge gaps, best practices, recurring patterns |\n| `ERRORS.md` | Command failures, API errors, exceptions |\n| `FEATURE_REQUESTS.md` | Missing capabilities |\n\nParse each entry's metadata:\n- `Pattern-Key` — the stable deduplication key\n- `Recurrence-Count` — how many times this pattern has been seen\n- `First-Seen` \u002F `Last-Seen` — date range\n- `Priority` — low \u002F medium \u002F high \u002F critical\n- `Status` — pending \u002F promotion_ready \u002F promoted \u002F dismissed\n- `Area` — frontend \u002F backend \u002F infra \u002F tests \u002F docs \u002F config\n- `Related Files` — which parts of the codebase are affected\n- `Source` — conversation \u002F error \u002F user_feedback \u002F simplify-and-harden\n- `Tags` — free-form labels\n\n## Step 2: Group and Aggregate\n\nGroup entries by `Pattern-Key`. For each group:\n\n1. **Sum recurrences** across all entries with the same key\n2. **Count distinct tasks** — how many different sessions\u002Ftasks encountered this\n3. **Compute time window** — days between First-Seen and Last-Seen\n4. **Collect all related files** — union of all entries' file references\n5. **Take highest priority** across entries in the group\n6. **Collect evidence** — the Summary and Details from each entry\n\nFor entries without a `Pattern-Key`, use conservative grouping only:\n- **Exact match**: Same `Area` AND at least 2 identical `Tags`\n- **File overlap**: Same `Related Files` path (exact path match, not substring)\n- **Do NOT fuzzy-match** on Summary text — false groupings are worse than ungrouped entries\n\nFlag 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.\n\n## Step 3: Rank and Classify\n\n### Promotion Threshold\nAn entry is **promotion-ready** when:\n- `Recurrence-Count >= 3` across the group\n- Seen in `>= 2 distinct tasks`\n- Within a `30-day window`\n\n### Approaching Threshold\nAn entry is **approaching** when:\n- `Recurrence-Count >= 2` or\n- `Priority: high\u002Fcritical` with any recurrence\n\n### Classification\nFor each promotion candidate, classify the gap type:\n\n| Gap Type | Signal | Fix Target |\n|----------|--------|------------|\n| **Knowledge gap** | Agent didn't know X | Update project instruction files (CLAUDE.md, AGENTS.md, .github\u002Fcopilot-instructions.md) |\n| **Tool gap** | Agent improvised around missing capability | Add or update MCP tool \u002F script |\n| **Skill gap** | Same behavior pattern keeps failing | Create or update a skill (use `\u002Fskill-creator`, validate with `quick_validate.py`, register `skill-check` eval) |\n| **Ambiguity** | Conflicting interpretations of spec\u002Fprompt | Tighten instructions or add examples |\n| **Reasoning failure** | Agent had the knowledge but reasoned wrong | Add explicit decision rules or constraints |\n\n## Step 4: Produce Gap Report\n\nOutput a structured report:\n\n```markdown\n## Learning Aggregator: Gap Report\n\n**Scan date:** YYYY-MM-DD\n**Period:** [since date] to [now]\n**Entries scanned:** N\n**Patterns found:** N\n**Promotion-ready:** N\n**Approaching threshold:** N\n\n### Promotion-Ready Patterns\n\n#### 1. [Pattern-Key] — [Summary]\n\n- **Recurrence:** N times across M tasks\n- **Window:** First-Seen → Last-Seen\n- **Priority:** high\n- **Gap type:** knowledge gap\n- **Area:** backend\n- **Related files:** path\u002Fto\u002Ffile.ext\n- **Evidence:**\n  - [LRN-YYYYMMDD-001] Summary of first occurrence\n  - [LRN-YYYYMMDD-002] Summary of second occurrence\n  - [ERR-YYYYMMDD-001] Summary of related error\n- **Recommended action:** Add rule to project instruction files (CLAUDE.md, AGENTS.md, .github\u002Fcopilot-instructions.md): \"[concise prevention rule]\"\n- **Eval candidate:** Yes — [description of what to test]\n\n#### 2. ...\n\n### Approaching Threshold\n\n#### 1. [Pattern-Key] — [Summary]\n- **Recurrence:** 2 times across 1 task\n- **Needs:** 1 more recurrence or 1 more distinct task\n- ...\n\n### Ungrouped Entries (no Pattern-Key)\n\n- [LRN-YYYYMMDD-005] \"Summary\" — needs pattern_key assignment\n- ...\n\n### Dismissed \u002F Stale\n\n- Entries with Last-Seen > 90 days ago and Status: pending → recommend dismissal\n```\n\n## Step 5: Handoff\n\nThe gap report feeds into:\n\n1. **harness-updater agent** — takes promotion-ready patterns and applies them to project instruction files (CLAUDE.md, AGENTS.md, .github\u002Fcopilot-instructions.md)\n2. **eval-creator skill** — takes eval candidates and creates permanent test cases\n3. **Human review** — for patterns classified as \"reasoning failure\" or \"ambiguity\" (these need human judgment)\n\n## Filtering\n\n- `--since YYYY-MM-DD` — only scan entries after this date\n- `--min-recurrence N` — raise the promotion threshold\n- `--area AREA` — filter to a specific area (frontend, backend, etc.)\n- `--deep` — also analyze session traces via Entire (see Session Trace Analysis below)\n\n## Session Trace Analysis\n\nThe outer loop reads from two complementary sources:\n\n| Source | What it is | Cadence | Cost |\n|--------|-----------|---------|------|\n| `.learnings\u002F` | Explicit entries written by self-improvement during sessions. Agent's own reflections: corrections, knowledge gaps, recurring patterns it noticed. | Every session (hot path) | Near-zero |\n| Session traces | Full session transcripts captured by [Entire](https:\u002F\u002Fentire.io): prompts, tool calls, outputs, files modified, token usage, checkpoints. | Weekly or on-demand (cold path) | Expensive — only run at cadence |\n\nThe default mode reads `.learnings\u002F` and produces a gap report from what the agent explicitly logged. The `--deep` mode also analyzes session traces and merges findings from both sources.\n\n### Why both sources matter\n\n`.learnings\u002F` captures what the agent **noticed and chose to log** — a curated subset. Session traces capture **everything that happened**, including patterns the agent worked around, retried, or never recognized as failures.\n\nExamples of patterns visible in traces but absent from `.learnings\u002F`:\n\n- **Retry loops**: The same tool call repeated 3+ times with small variations. The agent eventually got it right but never logged the initial failures.\n- **Silent user corrections**: The user said \"no, that's wrong\" mid-flow. The agent corrected course but didn't log the misunderstanding.\n- **Worked-around test failures**: A test failed, the agent changed approach, the new approach passed, the original failure was forgotten.\n- **Context handoff causes**: Which drift signals actually triggered handoffs, not just that handoffs happened.\n- **Token\u002Ftime anomalies**: Sessions with disproportionate cost vs output — a signal of inefficiency the agent is unaware of.\n\nThese patterns are high-value for the outer loop because the agent can't self-report them. Session traces are the only source.\n\n### When to trigger --deep mode\n\nTrace analysis is **not** per-session. It's cadenced:\n\n- **Weekly scheduled** (recommended minimum): after a sprint or burst of sessions\n- **Post-incident**: when something went wrong and you want to understand why\n- **Pre-promotion**: before committing a pattern to project instruction files, verify it actually recurs in real sessions\n- **Manual invocation**: `\u002Flearning-aggregator --deep --since 7d`\n\nRunning trace analysis per-session would burn tokens without producing new signal — cross-session patterns only emerge over multiple sessions.\n\n### Reading traces with Entire\n\nWhen `--deep` is requested, the skill uses the `entire` CLI to query shadow branch data:\n\n```bash\n# Check availability\nentire --version\n\n# List recent checkpoints as JSON (id, date, session_id, message, tool_use_id)\nentire rewind --list\n\n# Read a checkpoint's full transcript\nentire explain --checkpoint \u003Cid> --full --no-pager\n\n# Or raw JSONL\nentire explain --checkpoint \u003Cid> --raw-transcript --no-pager\n\n# Filter to one session\nentire explain --session \u003Csession-id-prefix>\n\n# Generate AI summary (expensive, use sparingly)\nentire explain --checkpoint \u003Cid> --generate\n```\n\nIf `entire` is not installed or the current repo doesn't have Entire enabled, `--deep` falls back to `.learnings\u002F`-only mode and reports the limitation in the gap report.\n\n### What to extract from a trace\n\nFor each checkpoint within the time window, parse the raw transcript and look for:\n\n1. **Tool call repetition** — same tool + similar args > 3 times → likely a retry loop. Pattern-key: `retry-loop.\u003Ctool>`\n2. **User correction markers** — user messages containing \"no\", \"wrong\", \"actually\", \"instead\" immediately after an agent action → Pattern-key: `correction.\u003Carea>`\n3. **Error patterns in tool output** — matches against the same regex set as `error-detector.sh` (error, failed, Traceback, etc.) → Pattern-key: `error.\u003Ccategory>`\n4. **Handoff triggers** — context-surfing exit events and which drift signals fired → Pattern-key: `drift.\u003Csignal>`\n5. **Approach changes** — agent switching strategy mid-task without explicit pivot → Pattern-key: `approach-switch.\u003Cdomain>`\n6. **Token anomalies** — sessions with token count > 2x the median for similar task types → Pattern-key: `cost.\u003Ctask-type>`\n\nEach finding is normalized to the same taxonomy as self-improvement (`harden.input_validation`, `simplify.dead_code`, etc.) where possible.\n\n### How the two sources merge in the gap report\n\nWhen `--deep` runs, each pattern in the gap report gets a `sources` field:\n\n```yaml\npromotion_ready:\n  - pattern_key: \"harden.input_validation\"\n    recurrence_count: 5\n    sources:\n      - .learnings\u002FLEARNINGS.md (3 entries)\n      - entire:traces (5 occurrences across 4 sessions)\n    confidence: high  # appears in both sources\n    evidence:\n      - \"LRN-20260401-001: Missing bounds check on pagination\"\n      - \"entire:1ca16f9b: Retry loop on \u002Fapi\u002Fsearch — pageSize rejected 4 times\"\n      - \"entire:8bf2e4cd: User correction 'validate before DB query'\"\n    entire_checkpoints:\n      - 1ca16f9bb3801ee2a02f2384f31355a54b81ea00\n      - 8bf2e4cd63d01040b38df07c43f73e0f15d05ac9\n```\n\nA pattern in both sources is higher confidence than one from either alone. A pattern only in `.learnings\u002F` might be over-logged by a diligent agent. A pattern only in traces might be noise. The overlap is where the signal is strongest.\n\n### Trace source compatibility\n\nThe default implementation targets Entire (v0.5.4+) via the `entire rewind --list` and `entire explain` commands. The concept is source-agnostic — any session capture tool that exposes:\n\n- A list of recent checkpoints (with id, timestamp, session id)\n- The ability to read a checkpoint's transcript\n- Timestamps for cadence filtering\n\n...can serve as a trace source. Adapters for other capture tools can be added in `scripts\u002F` or via gh-aw `mcp-scripts`.\n\n## Persistence\n\nReads `.learnings\u002F` from the working directory. This is the only persistence mode — the skill does not integrate with external memory backends in interactive sessions. For CI-side durable storage across workflow runs, see `learning-aggregator-ci`, which can optionally back its state with gh-aw's `repo-memory` (git-branch persistence). The resulting branch is a normal git branch and can be fetched locally if desired, but the interactive skill itself only reads local files.\n\n### Tracker-id in gap reports\n\nEach promotion candidate in the gap report includes a `tracker` field set to the pattern-key. This tracker propagates through the full chain: harness-updater embeds it as a comment in project instruction files, eval-creator references it in eval cases. To audit the full lifecycle of a pattern, search for `tracker:[pattern-key]` across the repo and GitHub.\n\n## What This Skill Does NOT Do\n\n- Does not modify `.learnings\u002F` files (read-only analysis)\n- Does not apply promotions (that's harness-updater)\n- Does not create evals (that's eval-creator)\n- Does not fix code or run tests\n- Does not replace human judgment for ambiguous patterns\n- Does not run `--deep` trace analysis per-session — only on cadence or explicit invocation\n- Does not require Entire — falls back to `.learnings\u002F`-only mode when trace source is unavailable\n","# Learning Aggregator\n\nReads accumulated `.learnings\u002F` files across all sessions, finds patterns, and produces a ranked list of promotion candidates. This is the outer loop's **inspect** step.\n\nWithout this skill, `.learnings\u002F` is a write-only log. Patterns accumulate but nobody synthesizes them. The same gap resurfaces two weeks later because no one looked.\n\n## When to Use\n\n- **Weekly cadence** — scheduled or manual, review accumulated learnings\n- **Before major tasks** — check if the task area has known patterns\n- **After a burst of sessions** — consolidate findings from a sprint or incident\n- **When self-improvement flags `promotion_ready`** — verify the flag with full context\n\n## What It Produces\n\nA **gap report** — a ranked list of patterns that have crossed (or are approaching) the promotion threshold, with evidence and recommended actions.\n\n## Step 1: Read All Learning Files\n\nRead these files in `.learnings\u002F`:\n\n| File | Contains |\n|------|----------|\n| `LEARNINGS.md` | Corrections, knowledge gaps, best practices, recurring patterns |\n| `ERRORS.md` | Command failures, API errors, exceptions |\n| `FEATURE_REQUESTS.md` | Missing capabilities |\n\nParse each entry's metadata:\n- `Pattern-Key` — the stable deduplication key\n- `Recurrence-Count` — how many times this pattern has been seen\n- `First-Seen` \u002F `Last-Seen` — date range\n- `Priority` — low \u002F medium \u002F high \u002F critical\n- `Status` — pending \u002F promotion_ready \u002F promoted \u002F dismissed\n- `Area` — frontend \u002F backend \u002F infra \u002F tests \u002F docs \u002F config\n- `Related Files` — which parts of the codebase are affected\n- `Source` — conversation \u002F error \u002F user_feedback \u002F simplify-and-harden\n- `Tags` — free-form labels\n\n## Step 2: Group and Aggregate\n\nGroup entries by `Pattern-Key`. For each group:\n\n1. **Sum recurrences** across all entries with the same key\n2. **Count distinct tasks** — how many different sessions\u002Ftasks encountered this\n3. **Compute time window** — days between First-Seen and Last-Seen\n4. **Collect all related files** — union of all entries' file references\n5. **Take highest priority** across entries in the group\n6. **Collect evidence** — the Summary and Details from each entry\n\nFor entries without a `Pattern-Key`, use conservative grouping only:\n- **Exact match**: Same `Area` AND at least 2 identical `Tags`\n- **File overlap**: Same `Related Files` path (exact path match, not substring)\n- **Do NOT fuzzy-match** on Summary text — false groupings are worse than ungrouped entries\n\nFlag 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.\n\n## Step 3: Rank and Classify\n\n### Promotion Threshold\nAn entry is **promotion-ready** when:\n- `Recurrence-Count >= 3` across the group\n- Seen in `>= 2 distinct tasks`\n- Within a `30-day window`\n\n### Approaching Threshold\nAn entry is **approaching** when:\n- `Recurrence-Count >= 2` or\n- `Priority: high\u002Fcritical` with any recurrence\n\n### Classification\nFor each promotion candidate, classify the gap type:\n\n| Gap Type | Signal | Fix Target |\n|----------|--------|------------|\n| **Knowledge gap** | Agent didn't know X | Update project instruction files (CLAUDE.md, AGENTS.md, .github\u002Fcopilot-instructions.md) |\n| **Tool gap** | Agent improvised around missing capability | Add or update MCP tool \u002F script |\n| **Skill gap** | Same behavior pattern keeps failing | Create or update a skill (use `\u002Fskill-creator`, validate with `quick_validate.py`, register `skill-check` eval) |\n| **Ambiguity** | Conflicting interpretations of spec\u002Fprompt | Tighten instructions or add examples |\n| **Reasoning failure** | Agent had the knowledge but reasoned wrong | Add explicit decision rules or constraints |\n\n## Step 4: Produce Gap Report\n\nOutput a structured report:\n\n```markdown\n## Learning Aggregator: Gap Report\n\n**Scan date:** YYYY-MM-DD\n**Period:** [since date] to [now]\n**Entries scanned:** N\n**Patterns found:** N\n**Promotion-ready:** N\n**Approaching threshold:** N\n\n### Promotion-Ready Patterns\n\n#### 1. [Pattern-Key] — [Summary]\n\n- **Recurrence:** N times across M tasks\n- **Window:** First-Seen → Last-Seen\n- **Priority:** high\n- **Gap type:** knowledge gap\n- **Area:** backend\n- **Related files:** path\u002Fto\u002Ffile.ext\n- **Evidence:**\n  - [LRN-YYYYMMDD-001] Summary of first occurrence\n  - [LRN-YYYYMMDD-002] Summary of second occurrence\n  - [ERR-YYYYMMDD-001] Summary of related error\n- **Recommended action:** Add rule to project instruction files (CLAUDE.md, AGENTS.md, .github\u002Fcopilot-instructions.md): \"[concise prevention rule]\"\n- **Eval candidate:** Yes — [description of what to test]\n\n#### 2. ...\n\n### Approaching Threshold\n\n#### 1. [Pattern-Key] — [Summary]\n- **Recurrence:** 2 times across 1 task\n- **Needs:** 1 more recurrence or 1 more distinct task\n- ...\n\n### Ungrouped Entries (no Pattern-Key)\n\n- [LRN-YYYYMMDD-005] \"Summary\" — needs pattern_key assignment\n- ...\n\n### Dismissed \u002F Stale\n\n- Entries with Last-Seen > 90 days ago and Status: pending → recommend dismissal\n```\n\n## Step 5: Handoff\n\nThe gap report feeds into:\n\n1. **harness-updater agent** — takes promotion-ready patterns and applies them to project instruction files (CLAUDE.md, AGENTS.md, .github\u002Fcopilot-instructions.md)\n2. **eval-creator skill** — takes eval candidates and creates permanent test cases\n3. **Human review** — for patterns classified as \"reasoning failure\" or \"ambiguity\" (these need human judgment)\n\n## Filtering\n\n- `--since YYYY-MM-DD` — only scan entries after this date\n- `--min-recurrence N` — raise the promotion threshold\n- `--area AREA` — filter to a specific area (frontend, backend, etc.)\n- `--deep` — also analyze session traces via Entire (see Session Trace Analysis below)\n\n## Session Trace Analysis\n\nThe outer loop reads from two complementary sources:\n\n| Source | What it is | Cadence | Cost |\n|--------|-----------|---------|------|\n| `.learnings\u002F` | Explicit entries written by self-improvement during sessions. Agent's own reflections: corrections, knowledge gaps, recurring patterns it noticed. | Every session (hot path) | Near-zero |\n| Session traces | Full session transcripts captured by [Entire](https:\u002F\u002Fentire.io): prompts, tool calls, outputs, files modified, token usage, checkpoints. | Weekly or on-demand (cold path) | Expensive — only run at cadence |\n\nThe default mode reads `.learnings\u002F` and produces a gap report from what the agent explicitly logged. The `--deep` mode also analyzes session traces and merges findings from both sources.\n\n### Why both sources matter\n\n`.learnings\u002F` captures what the agent **noticed and chose to log** — a curated subset. Session traces capture **everything that happened**, including patterns the agent worked around, retried, or never recognized as failures.\n\nExamples of patterns visible in traces but absent from `.learnings\u002F`:\n\n- **Retry loops**: The same tool call repeated 3+ times with small variations. The agent eventually got it right but never logged the initial failures.\n- **Silent user corrections**: The user said \"no, that's wrong\" mid-flow. The agent corrected course but didn't log the misunderstanding.\n- **Worked-around test failures**: A test failed, the agent changed approach, the new approach passed, the original failure was forgotten.\n- **Context handoff causes**: Which drift signals actually triggered handoffs, not just that handoffs happened.\n- **Token\u002Ftime anomalies**: Sessions with disproportionate cost vs output — a signal of inefficiency the agent is unaware of.\n\nThese patterns are high-value for the outer loop because the agent can't self-report them. Session traces are the only source.\n\n### When to trigger --deep mode\n\nTrace analysis is **not** per-session. It's cadenced:\n\n- **Weekly scheduled** (recommended minimum): after a sprint or burst of sessions\n- **Post-incident**: when something went wrong and you want to understand why\n- **Pre-promotion**: before committing a pattern to project instruction files, verify it actually recurs in real sessions\n- **Manual invocation**: `\u002Flearning-aggregator --deep --since 7d`\n\nRunning trace analysis per-session would burn tokens without producing new signal — cross-session patterns only emerge over multiple sessions.\n\n### Reading traces with Entire\n\nWhen `--deep` is requested, the skill uses the `entire` CLI to query shadow branch data:\n\n```bash\n# Check availability\nentire --version\n\n# List recent checkpoints as JSON (id, date, session_id, message, tool_use_id)\nentire rewind --list\n\n# Read a checkpoint's full transcript\nentire explain --checkpoint \u003Cid> --full --no-pager\n\n# Or raw JSONL\nentire explain --checkpoint \u003Cid> --raw-transcript --no-pager\n\n# Filter to one session\nentire explain --session \u003Csession-id-prefix>\n\n# Generate AI summary (expensive, use sparingly)\nentire explain --checkpoint \u003Cid> --generate\n```\n\nIf `entire` is not installed or the current repo doesn't have Entire enabled, `--deep` falls back to `.learnings\u002F`-only mode and reports the limitation in the gap report.\n\n### What to extract from a trace\n\nFor each checkpoint within the time window, parse the raw transcript and look for:\n\n1. **Tool call repetition** — same tool + similar args > 3 times → likely a retry loop. Pattern-key: `retry-loop.\u003Ctool>`\n2. **User correction markers** — user messages containing \"no\", \"wrong\", \"actually\", \"instead\" immediately after an agent action → Pattern-key: `correction.\u003Carea>`\n3. **Error patterns in tool output** — matches against the same regex set as `error-detector.sh` (error, failed, Traceback, etc.) → Pattern-key: `error.\u003Ccategory>`\n4. **Handoff triggers** — context-surfing exit events and which drift signals fired → Pattern-key: `drift.\u003Csignal>`\n5. **Approach changes** — agent switching strategy mid-task without explicit pivot → Pattern-key: `approach-switch.\u003Cdomain>`\n6. **Token anomalies** — sessions with token count > 2x the median for similar task types → Pattern-key: `cost.\u003Ctask-type>`\n\nEach finding is normalized to the same taxonomy as self-improvement (`harden.input_validation`, `simplify.dead_code`, etc.) where possible.\n\n### How the two sources merge in the gap report\n\nWhen `--deep` runs, each pattern in the gap report gets a `sources` field:\n\n```yaml\npromotion_ready:\n  - pattern_key: \"harden.input_validation\"\n    recurrence_count: 5\n    sources:\n      - .learnings\u002FLEARNINGS.md (3 entries)\n      - entire:traces (5 occurrences across 4 sessions)\n    confidence: high  # appears in both sources\n    evidence:\n      - \"LRN-20260401-001: Missing bounds check on pagination\"\n      - \"entire:1ca16f9b: Retry loop on \u002Fapi\u002Fsearch — pageSize rejected 4 times\"\n      - \"entire:8bf2e4cd: User correction 'validate before DB query'\"\n    entire_checkpoints:\n      - 1ca16f9bb3801ee2a02f2384f31355a54b81ea00\n      - 8bf2e4cd63d01040b38df07c43f73e0f15d05ac9\n```\n\nA pattern in both sources is higher confidence than one from either alone. A pattern only in `.learnings\u002F` might be over-logged by a diligent agent. A pattern only in traces might be noise. The overlap is where the signal is strongest.\n\n### Trace source compatibility\n\nThe default implementation targets Entire (v0.5.4+) via the `entire rewind --list` and `entire explain` commands. The concept is source-agnostic — any session capture tool that exposes:\n\n- A list of recent checkpoints (with id, timestamp, session id)\n- The ability to read a checkpoint's transcript\n- Timestamps for cadence filtering\n\n...can serve as a trace source. Adapters for other capture tools can be added in `scripts\u002F` or via gh-aw `mcp-scripts`.\n\n## Persistence\n\nReads `.learnings\u002F` from the working directory. This is the only persistence mode — the skill does not integrate with external memory backends in interactive sessions. For CI-side durable storage across workflow runs, see `learning-aggregator-ci`, which can optionally back its state with gh-aw's `repo-memory` (git-branch persistence). The resulting branch is a normal git branch and can be fetched locally if desired, but the interactive skill itself only reads local files.\n\n### Tracker-id in gap reports\n\nEach promotion candidate in the gap report includes a `tracker` field set to the pattern-key. This tracker propagates through the full chain: harness-updater embeds it as a comment in project instruction files, eval-creator references it in eval cases. To audit the full lifecycle of a pattern, search for `tracker:[pattern-key]` across the repo and GitHub.\n\n## What This Skill Does NOT Do\n\n- Does not modify `.learnings\u002F` files (read-only analysis)\n- Does not apply promotions (that's harness-updater)\n- Does not create evals (that's eval-creator)\n- Does not fix code or run tests\n- Does not replace human judgment for ambiguous patterns\n- Does not run `--deep` trace analysis per-session — only on cadence or explicit invocation\n- Does not require Entire — falls back to `.learnings\u002F`-only mode when trace source is unavailable\n",{"name":5,"description":7},"main","87afe6ce96220accf50a345dea46784c8c9f210e","YYC3-Skills-技能包\u002FYYC3-Skills-技能包-pskoett-ai-skills\u002Fskills\u002Flearning-aggregator",0,"https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base","https:\u002F\u002Fkb.yyc3.top\u002F","https:\u002F\u002Fgithub.com\u002FYYC-Cube","万象归元于云枢 | 深栈智启新纪元","2026-11-10 10:37:32",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill learning-aggregator",{"tool":39,"command":40},"bunx","bunx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill learning-aggregator",{"tool":42,"command":43},"pnpm","pnpm dlx skills add YYC-Cube\u002FYYC3-Knowledge-Base --skill learning-aggregator","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-Skills-技能包\u002FYYC3-Skills-技能包-pskoett-ai-skills\u002Fskills\u002Flearning-aggregator\u002FSKILL.md",true,[],[48,55,62,69,76,83],{"skillNo":49,"name":50,"nameZh":6,"description":51,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":52,"categories":53,"keywords":54,"publishedAt":19},"01M7CTDWHERCXPQCP0K03A86AS","vercel-sandbox","Run agent-browser + Chrome inside Vercel Sandbox microVMs for browser automation from any Vercel-deployed app. Use when the user needs browser automation in a Vercel app (Next.js, SvelteKit, Nuxt, Remix, Astro, etc.), wants to run headless Chrome without binary size limits, needs persistent browser sessions across commands, or wants ephemeral isolated browser environments. Triggers include \"Vercel Sandbox browser\", \"microVM Chrome\", \"agent-browser in sandbox\", \"browser automation on Vercel\", or any task requiring Chrome in a Vercel Sandbox.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fvercel-sandbox\u002FSKILL.md",[],[],{"skillNo":56,"name":57,"nameZh":6,"description":58,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":59,"categories":60,"keywords":61,"publishedAt":19},"01M7CTD8D2BNJY54S65M47HEJA","slack","Interact with Slack workspaces using browser automation. Use when the user needs to check unread channels, navigate Slack, send messages, extract data, find information, search conversations, or automate any Slack task. Triggers include \"check my Slack\", \"what channels have unreads\", \"send a message to\", \"search Slack for\", \"extract from Slack\", \"find who said\", or any task requiring programmatic Slack interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fslack\u002FSKILL.md",[],[],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7CTCSSB8ZP3Q58C3YZDZK1W","electron","Automate Electron desktop apps (VS Code, Slack, Discord, Figma, Notion, Spotify, etc.) using agent-browser via Chrome DevTools Protocol. Use when the user needs to interact with an Electron app, automate a desktop app, connect to a running app, control a native app, or test an Electron application. Triggers include \"automate Slack app\", \"control VS Code\", \"interact with Discord app\", \"test this Electron app\", \"connect to desktop app\", or any task requiring automation of a native Electron application.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Felectron\u002FSKILL.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7CTCBJY76688V4DCZGWFHGQ","dogfood","Systematically explore and test a web application to find bugs, UX issues, and other problems. Use when asked to \"dogfood\", \"QA\", \"exploratory test\", \"find issues\", \"bug hunt\", \"test this app\u002Fsite\u002Fplatform\", or review the quality of a web application. Produces a structured report with full reproduction evidence -- step-by-step screenshots, repro videos, and detailed repro steps for every issue -- so findings can be handed directly to the responsible teams.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fdogfood\u002FSKILL.md",[],[],{"skillNo":77,"name":78,"nameZh":6,"description":79,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":19},"01M7CTC4H0FFGVEAQR9PA4GA1A","agent-browser","Browser automation CLI for AI agents. Use when the user needs to interact with websites, including navigating pages, filling forms, clicking buttons, taking screenshots, extracting data, testing web apps, or automating any browser task. Triggers include requests to \"open a website\", \"fill out a form\", \"click a button\", \"take a screenshot\", \"scrape data from a page\", \"test this web app\", \"login to a site\", \"automate browser actions\", or any task requiring programmatic web interaction.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-WebSpec-Web标准\u002FYYC3-WebSpec-Web标准-standards\u002Fbrowser-agent\u002Fskills\u002Fagent-browser\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":19},"01M7CTBKVFYBG78FDSABSDJTTQ","shadcn","Manages shadcn components and projects — adding, searching, fixing, debugging, styling, and composing UI, including chat interfaces. Provides project context, component docs, and usage examples. Applies when working with shadcn\u002Fui, component registries, presets, --preset codes, or any project with a components.json file. Also triggers for \"shadcn init\", \"create an app with --preset\", \"switch to --preset\", and for building a design system or applying a DESIGN.md or brand spec to shadcn\u002Fui.","https:\u002F\u002Fgithub.com\u002FYYC-Cube\u002FYYC3-Knowledge-Base\u002Fblob\u002Fmain\u002FYYC3-UI-界面组件\u002FYYC3-UI-界面组件-ui\u002Fskills\u002Fshadcn\u002FSKILL.md",[],[]]