[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JHA1PT5NE70EDDPARNT04":3,"skill-same:01M75JHA1PT5NE70EDDPARNT04":58},{"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":31,"commitSha":32,"skillDirectory":33,"forksCount":34,"repositoryHtmlUrl":35,"repositoryHomepageUrl":36,"ownerHtmlUrl":37,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":38,"install":39,"resources":51},"01M75JHA1PT5NE70EDDPARNT04","learnings-sweep",null,"Aggregates per-ticket UNPROMOTED .tickets\u002F\u003Cid>\u002Flearnings.md candidates into a single capped root LEARNINGS.md index, without promoting any of them. Use after `tkt learn \u003Cid>` confirms a candidate (single-ticket mode, called from sprint complete), or run `--full` by hand to backfill\u002Freconcile the whole repo.","sunitghub\u002Fcanon-skills","sunitghub","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F154850182?v=4","01M75JGBZ2TQM1BG49YHTRGHZR","Sunit Joshi","01M75JGC05YY1W8RW5SJAWWTB8",9,"MIT","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Flearnings-sweep\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: learnings-sweep\ndescription: Aggregates per-ticket UNPROMOTED .tickets\u002F\u003Cid>\u002Flearnings.md candidates into a single capped root LEARNINGS.md index, without promoting any of them. Use after `tkt learn \u003Cid>` confirms a candidate (single-ticket mode, called from sprint complete), or run `--full` by hand to backfill\u002Freconcile the whole repo.\ncategory: agent-ops\ntags: [learnings, sprint, memory, aggregation]\nhidden: true\n---\n\n# Learnings Sweep\n\nAggregation only — never promotion. Distinct from `tkt learn` (writes one ticket's candidate) and\nfrom moving a keeper into `critique\u002Fcanon-learnings.md`, `standards\u002F`, or `CLAUDE.md`\u002F`AGENTS.md`\n(a non-builder's separate, later act — see Promotion destinations below). This skill only keeps\nroot `LEARNINGS.md` a current, compact index of what `tkt learn` has produced across tickets — it\nnever changes a row's `Status` away from `UNPROMOTED`.\n\n## Promotion destinations (not this skill's job — context for what \"promote\" means)\n\nA non-builder promoting a keeper from `LEARNINGS.md` in **canon itself** chooses among three places,\nin order of preference. In a **consumer project** the destination is the project's own `PROMOTED.md`\n(seeded by `skills.sh add sprint`\u002F`refresh`, @-imported from its `AGENTS.md`), never canon's tree via\nthe skills symlink — see `skills\u002Fpromote-learnings\u002FSKILL.md`'s \"Canon or consumer\".\n\n1. **`critique\u002Fcanon-learnings.md`** — narrative critique log, the default for most keepers.\n2. **`standards\u002F`** — a formal, reusable standard the keeper generalizes into.\n3. **`CLAUDE.md`\u002F`AGENTS.md`** — rarely. These are always-loaded into every session's context, so\n   every line costs tokens on every turn regardless of relevance (the same progressive-disclosure\n   concern `context-doctor`'s lens 3 checks for). Reserve this destination for a lesson that must\n   apply on every session, not just the ones that happen to touch the relevant area — anything\n   narrower belongs in `standards\u002F` or a scoped reference file instead.\n\nThis skill never makes that choice — it only keeps the candidate queue current so a non-builder has\nsomething to choose from.\n\n## When to use\n\nThis is a skill, not a shell command: invoke it through the Skill tool (Claude Code), or read this file\nand follow its steps (other harnesses). There is no `learnings-sweep` executable on PATH.\n\n- **Single-ticket** (the skill with a ticket id) — run from `skills\u002Fsprint\u002Freference\u002Fcomplete.md`\n  step 8, right after `tkt learn \u003Cid>` confirms\u002Fwrites `.tickets\u002F\u003Cid>\u002Flearnings.md`. Also usable\n  by hand to re-sync one ticket's row after manually editing its `learnings.md`.\n- **Full** (the skill with the argument `--full`) — manual only, never auto-called. Backfills\n  `LEARNINGS.md` from scratch, or reconciles drift (a `learnings.md` created outside `sprint\n  complete`, or the root file hand-edited).\n\n## Single-ticket mode\n\nInput: a ticket id (`t-xxxx`). No glob.\n\n1. Read `.tickets\u002F\u003Cid>\u002Flearnings.md`. If absent, stop — nothing to sweep (report this, don't error).\n2. Extract: `generated` date (frontmatter), the ticket title (H1, after `Learnings candidate —\n   \u003Cid>: `), a one-line finding (compress `## Evaluator findings`\u002F`## Reviewer findings`\u002F`## Deviations`\n   down to the single most load-bearing sentence — prefer a `Candidate lessons` checklist item if\n   any are filled in, else the most load-bearing finding; a real defect the advisory reviewer caught\n   outranks an evaluator \"No findings. Notes…\" line, since the evaluator can pass while the reviewer\n   found the lesson), and `status` (frontmatter — almost always\n   `UNPROMOTED` at this point).\n3. Upsert into `LEARNINGS.md`'s table: if a row for this ticket id already exists, replace it in\n   place (don't duplicate, don't reorder past its original position unless the date changed). If\n   new, insert at the top (newest first).\n4. Rewrite the top-of-file stamp (see Format below).\n5. Apply the cap (see Overflow below).\n\n## `--full` mode\n\n1. Glob `.tickets\u002F*\u002Flearnings.md`.\n2. Parse `LEARNINGS.md`'s existing table for ticket ids already present.\n3. For each globbed file whose ticket id is missing from the table, or whose `learnings.md` mtime\n   is newer than the row's recorded date, run the single-ticket extraction (step 2 above) and\n   upsert.\n4. Rows in the table with no corresponding `.tickets\u002F\u003Cid>\u002Flearnings.md` on disk (the source was\n   deleted) are removed — the row's only reason to exist is as a pointer to that file.\n5. Rewrite the stamp, apply the cap.\n\n## Format\n\n`LEARNINGS.md` at the repo root:\n\n```markdown\n# Learnings\n\nlearnings-sweep last run: MM-DD-YYYY hh:mm\n\n\u003C!-- canon:learnings:BEGIN -->\n| Date | Ticket | Finding | Status |\n|---|---|---|---|\n| 2026-08-24 | [t-96a8](.tickets\u002Ft-96a8\u002Flearnings.md) | \u003Cone-line finding> | UNPROMOTED |\n\u003C!-- canon:learnings:END -->\n```\n\n- Newest row on top by `Date`.\n- `Ticket` links to the source `.tickets\u002F\u003Cid>\u002Flearnings.md` — the table is an index, not a copy;\n  full detail always lives in the source file.\n- The stamp line sits **above** the markers and is rewritten on every run, single-ticket or full —\n  it is not part of the size cap.\n- Per `standards\u002Fskill-setup-std.md`'s canon-managed-content convention: only the lines between\n  `\u003C!-- canon:learnings:BEGIN -->` and `\u003C!-- canon:learnings:END -->` count toward the cap or are\n  ever mechanically touched. Leave a blank line on either side of the markers.\n\n## Cap and overflow\n\nThe managed block (table header + rows, between the markers) is capped at **80 lines** — matching\n`HANDOFF.md`'s existing convention.\n\nWhen an upsert would push the block over the cap:\n\n1. Look for the oldest rows whose `Status` is **not** `UNPROMOTED` (i.e. already `promoted` or\n   `dismissed` by a prior non-builder pass). Move those — oldest first — to `LEARNINGS-archive.md`\n   (create it if absent, same append-only table format, no cap) until back under the cap.\n2. If every row is still `UNPROMOTED` and the cap is still exceeded, **do not archive anything**. A\n   pending, unreviewed row must stay visible. Instead print an advisory: `LEARNINGS.md is over the\n   80-line cap and every row is still UNPROMOTED — a promotion\u002Ftriage pass is due.` Never block —\n   this mirrors `learnings.md` itself being \"never close-gated.\"\n\n## Gotchas\n\n- Never write to `critique\u002Fcanon-learnings.md` or any file under `standards\u002F` — that is promotion,\n  a distinct, later, non-builder act. This skill's own edits must never change a `Status` cell away\n  from `UNPROMOTED`.\n- Single-ticket mode must not glob `.tickets\u002F*` — that defeats the reason `sprint complete` calls it\n  on every close (O(1) per ticket, not O(n) per close). If you find yourself scanning all tickets in\n  single-ticket mode, that's `--full`'s job, not this path's.\n- A ticket's `learnings.md` can be deleted or regenerated (`tkt learn \u003Cid> --force`) at any time —\n  `--full` mode is the reconciliation path for exactly that drift; single-ticket mode assumes the\n  file it's pointed at is current.\n","# Learnings Sweep\n\nAggregation only — never promotion. Distinct from `tkt learn` (writes one ticket's candidate) and\nfrom moving a keeper into `critique\u002Fcanon-learnings.md`, `standards\u002F`, or `CLAUDE.md`\u002F`AGENTS.md`\n(a non-builder's separate, later act — see Promotion destinations below). This skill only keeps\nroot `LEARNINGS.md` a current, compact index of what `tkt learn` has produced across tickets — it\nnever changes a row's `Status` away from `UNPROMOTED`.\n\n## Promotion destinations (not this skill's job — context for what \"promote\" means)\n\nA non-builder promoting a keeper from `LEARNINGS.md` in **canon itself** chooses among three places,\nin order of preference. In a **consumer project** the destination is the project's own `PROMOTED.md`\n(seeded by `skills.sh add sprint`\u002F`refresh`, @-imported from its `AGENTS.md`), never canon's tree via\nthe skills symlink — see `skills\u002Fpromote-learnings\u002FSKILL.md`'s \"Canon or consumer\".\n\n1. **`critique\u002Fcanon-learnings.md`** — narrative critique log, the default for most keepers.\n2. **`standards\u002F`** — a formal, reusable standard the keeper generalizes into.\n3. **`CLAUDE.md`\u002F`AGENTS.md`** — rarely. These are always-loaded into every session's context, so\n   every line costs tokens on every turn regardless of relevance (the same progressive-disclosure\n   concern `context-doctor`'s lens 3 checks for). Reserve this destination for a lesson that must\n   apply on every session, not just the ones that happen to touch the relevant area — anything\n   narrower belongs in `standards\u002F` or a scoped reference file instead.\n\nThis skill never makes that choice — it only keeps the candidate queue current so a non-builder has\nsomething to choose from.\n\n## When to use\n\nThis is a skill, not a shell command: invoke it through the Skill tool (Claude Code), or read this file\nand follow its steps (other harnesses). There is no `learnings-sweep` executable on PATH.\n\n- **Single-ticket** (the skill with a ticket id) — run from `skills\u002Fsprint\u002Freference\u002Fcomplete.md`\n  step 8, right after `tkt learn \u003Cid>` confirms\u002Fwrites `.tickets\u002F\u003Cid>\u002Flearnings.md`. Also usable\n  by hand to re-sync one ticket's row after manually editing its `learnings.md`.\n- **Full** (the skill with the argument `--full`) — manual only, never auto-called. Backfills\n  `LEARNINGS.md` from scratch, or reconciles drift (a `learnings.md` created outside `sprint\n  complete`, or the root file hand-edited).\n\n## Single-ticket mode\n\nInput: a ticket id (`t-xxxx`). No glob.\n\n1. Read `.tickets\u002F\u003Cid>\u002Flearnings.md`. If absent, stop — nothing to sweep (report this, don't error).\n2. Extract: `generated` date (frontmatter), the ticket title (H1, after `Learnings candidate —\n   \u003Cid>: `), a one-line finding (compress `## Evaluator findings`\u002F`## Reviewer findings`\u002F`## Deviations`\n   down to the single most load-bearing sentence — prefer a `Candidate lessons` checklist item if\n   any are filled in, else the most load-bearing finding; a real defect the advisory reviewer caught\n   outranks an evaluator \"No findings. Notes…\" line, since the evaluator can pass while the reviewer\n   found the lesson), and `status` (frontmatter — almost always\n   `UNPROMOTED` at this point).\n3. Upsert into `LEARNINGS.md`'s table: if a row for this ticket id already exists, replace it in\n   place (don't duplicate, don't reorder past its original position unless the date changed). If\n   new, insert at the top (newest first).\n4. Rewrite the top-of-file stamp (see Format below).\n5. Apply the cap (see Overflow below).\n\n## `--full` mode\n\n1. Glob `.tickets\u002F*\u002Flearnings.md`.\n2. Parse `LEARNINGS.md`'s existing table for ticket ids already present.\n3. For each globbed file whose ticket id is missing from the table, or whose `learnings.md` mtime\n   is newer than the row's recorded date, run the single-ticket extraction (step 2 above) and\n   upsert.\n4. Rows in the table with no corresponding `.tickets\u002F\u003Cid>\u002Flearnings.md` on disk (the source was\n   deleted) are removed — the row's only reason to exist is as a pointer to that file.\n5. Rewrite the stamp, apply the cap.\n\n## Format\n\n`LEARNINGS.md` at the repo root:\n\n```markdown\n# Learnings\n\nlearnings-sweep last run: MM-DD-YYYY hh:mm\n\n\u003C!-- canon:learnings:BEGIN -->\n| Date | Ticket | Finding | Status |\n|---|---|---|---|\n| 2026-08-24 | [t-96a8](.tickets\u002Ft-96a8\u002Flearnings.md) | \u003Cone-line finding> | UNPROMOTED |\n\u003C!-- canon:learnings:END -->\n```\n\n- Newest row on top by `Date`.\n- `Ticket` links to the source `.tickets\u002F\u003Cid>\u002Flearnings.md` — the table is an index, not a copy;\n  full detail always lives in the source file.\n- The stamp line sits **above** the markers and is rewritten on every run, single-ticket or full —\n  it is not part of the size cap.\n- Per `standards\u002Fskill-setup-std.md`'s canon-managed-content convention: only the lines between\n  `\u003C!-- canon:learnings:BEGIN -->` and `\u003C!-- canon:learnings:END -->` count toward the cap or are\n  ever mechanically touched. Leave a blank line on either side of the markers.\n\n## Cap and overflow\n\nThe managed block (table header + rows, between the markers) is capped at **80 lines** — matching\n`HANDOFF.md`'s existing convention.\n\nWhen an upsert would push the block over the cap:\n\n1. Look for the oldest rows whose `Status` is **not** `UNPROMOTED` (i.e. already `promoted` or\n   `dismissed` by a prior non-builder pass). Move those — oldest first — to `LEARNINGS-archive.md`\n   (create it if absent, same append-only table format, no cap) until back under the cap.\n2. If every row is still `UNPROMOTED` and the cap is still exceeded, **do not archive anything**. A\n   pending, unreviewed row must stay visible. Instead print an advisory: `LEARNINGS.md is over the\n   80-line cap and every row is still UNPROMOTED — a promotion\u002Ftriage pass is due.` Never block —\n   this mirrors `learnings.md` itself being \"never close-gated.\"\n\n## Gotchas\n\n- Never write to `critique\u002Fcanon-learnings.md` or any file under `standards\u002F` — that is promotion,\n  a distinct, later, non-builder act. This skill's own edits must never change a `Status` cell away\n  from `UNPROMOTED`.\n- Single-ticket mode must not glob `.tickets\u002F*` — that defeats the reason `sprint complete` calls it\n  on every close (O(1) per ticket, not O(n) per close). If you find yourself scanning all tickets in\n  single-ticket mode, that's `--full`'s job, not this path's.\n- A ticket's `learnings.md` can be deleted or regenerated (`tkt learn \u003Cid> --force`) at any time —\n  `--full` mode is the reconciliation path for exactly that drift; single-ticket mode assumes the\n  file it's pointed at is current.\n",{"name":5,"tags":24,"hidden":29,"category":30,"description":7},[25,26,27,28],"learnings","sprint","memory","aggregation",true,"agent-ops","main","3e6c9d35455e8e206133380135b560ddb8b58c0e","skills\u002Flearnings-sweep",1,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills","https:\u002F\u002Fgetcanon.dev","https:\u002F\u002Fgithub.com\u002Fsunitghub","2026-11-15 03:47:49",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":29},[41,44,47],{"tool":42,"command":43},"npx","npx skills add sunitghub\u002Fcanon-skills --skill learnings-sweep",{"tool":45,"command":46},"bunx","bunx skills add sunitghub\u002Fcanon-skills --skill learnings-sweep",{"tool":48,"command":49},"pnpm","pnpm dlx skills add sunitghub\u002Fcanon-skills --skill learnings-sweep","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Flearnings-sweep\u002FSKILL.md",[52],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"evals\u002Fevals.json","REFERENCE","参考文档",3524,"https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Flearnings-sweep\u002Fevals\u002Fevals.json",[59,66,73,80,86,93],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M75JK2VBM156TBGG9CM9RS34","no-evals","A skill with no evals folder.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fno-evals\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M75JK0PTGT7Y2HMWTGPVYT16","hooks","Registers a hook and pushes code.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fhooks\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M75JJYWMTD3CWT18DRYHG82H","good","Formats commit messages. Use when the user asks for a commit message.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fgood\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M75JJX1CRZJS5XJECST8QR9Q","bad-frontmatter","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fskill-check\u002Fbad-frontmatter\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M75JJTCMGGRFG5RNEJMKJ8AN","wrapup","Internal close-pipeline invoked by sprint complete — quality checks, code review, cleanup. Not for direct use; a normal\u002Fhigh-risk sprint's own \"sprint complete\" step calls this automatically.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fwrapup\u002FSKILL.md",[],[],{"skillNo":94,"name":26,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":19},"01M75JJP7CEJQDYQ490EEJKFCP","Manages the sprint workflow for focused changes. Use when asked to add, fix, update, implement, debug, or build — see the Workflow tiers section for what's out of scope.","https:\u002F\u002Fgithub.com\u002Fsunitghub\u002Fcanon-skills\u002Fblob\u002Fmain\u002Fskills\u002Fsprint\u002FSKILL.md",[],[]]