[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M74G1E76XFPWQM2C9NQRBX3C":3,"skill-same:01M74G1E76XFPWQM2C9NQRBX3C":46},{"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":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M74G1E76XFPWQM2C9NQRBX3C","cavekit-archive",null,"Archive old project-root SPEC.md content when file exceeds 500 lines. Copies full SPEC.md to .cavekit\u002Farchive\u002F before trimming completed tasks, old bugs, and uncited constraints\u002Finterfaces\u002Finvariants. Use when users invoke \u002Fck:archive or ask to archive, trim, or compact Cavekit SPEC.md.","casualjim\u002Fpi-mimir","casualjim","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F456109?v=4","01M74FWNWVYZQ29YNASRYNTCG4","Ivan Porto Carrero","01M74FWNXE5R8481XV0Q8Q7EY0",16,"MIT","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-cavekit\u002Fskills\u002Fcavekit-archive\u002FSKILL.md",[],[],"2026-11-11 15:11:14",false,"---\nname: cavekit-archive\ndescription: Archive old project-root SPEC.md content when file exceeds 500 lines. Copies full SPEC.md to .cavekit\u002Farchive\u002F before trimming completed tasks, old bugs, and uncited constraints\u002Finterfaces\u002Finvariants. Use when users invoke \u002Fck:archive or ask to archive, trim, or compact Cavekit SPEC.md.\n---\n\n# cavekit-archive — compact SPEC.md\n\nArchive long project-root `SPEC.md` files. Full copy first; trim working copy only after explicit user approval.\n\nRead bundled `..\u002F..\u002FFORMAT.md` before interpreting or editing `SPEC.md`. The bundled file defines section order, pipe-table rules, archive comments, ID monotonicity, and caveman-style encoding.\n\n## PRECHECK\n\n1. Read project-root `SPEC.md`. If missing, report `no SPEC.md, nothing to archive` and stop.\n2. Count lines. If `SPEC.md` has `≤500` lines, report `SPEC.md is \u003CN> lines. Nothing to archive.` and stop with no writes.\n3. Read bundled `..\u002F..\u002FFORMAT.md` if not already loaded.\n4. Determine target archive path: `.cavekit\u002Farchive\u002FSPEC-\u003CYYYY-MM-DD>.md`; if it exists, use `-2`, `-3`, etc.\n\n## DRY-RUN PREVIEW — no writes\n\nAnalyze `SPEC.md`. Do not create directories, archive files, or edit `SPEC.md` during preview.\n\nCompute:\n\n1. `lines before` = total line count.\n2. §T candidates: rows with status `x`; list IDs\u002Franges and line count.\n3. §B candidates: rows whose `date` is older than 90 days; list IDs\u002Franges and line count.\n4. Active cites: collect `cites` cells from §T rows with status `.` or `~`.\n5. §V candidates: `V\u003Cn>` lines not cited by active §T; list IDs\u002Franges and line count.\n6. §I candidates: interface items not cited by active §T; list refs and line count.\n7. §C candidates: constraints not cited by active §T; list count and line count.\n8. `lines after` = `lines before` minus removed candidate lines plus one archive comment per trimmed section.\n\nShow preview:\n\n```text\n## archive preview\n\narchive target: .cavekit\u002Farchive\u002FSPEC-\u003CYYYY-MM-DD>.md\n§T would archive: T1, T3-T8, T12 (9 tasks completed)\n§B would archive: B1-B4 (4 bugs older than 90 days)\n§V would archive: V1,V3-V5 (4 invariants, no active task cites them)\n§I would archive: I.cli (1 interface, no active task cites it)\n§C would archive: 2 constraints, no active task cites them\n§G untouched\n\nlines before: 533\nlines after: 100\n```\n\nAsk approval with `ask_user_question` after preview. Do not use a prose-only `Proceed?` prompt. Offer 2-4 options:\n\n- `Proceed (Recommended)` → continue to ARCHIVE + TRIM.\n- `Amend preview` → user changes include\u002Fexclude choices, then rerun dry-run preview.\n- `Stop` → stop with no writes.\n\nIf user approves, continue to ARCHIVE + TRIM.\nIf user stops, write nothing.\nIf user amends, incorporate requested include\u002Fexclude changes and rerun dry-run preview.\n\n## ARCHIVE\n\n1. Create `.cavekit\u002Farchive\u002F` if absent.\n2. Copy exact full pre-trim `SPEC.md` to chosen archive path.\n3. Do not normalize line endings, rewrite content, or modify the archive copy.\n4. Only after archive copy succeeds, edit working `SPEC.md`.\n\n## TRIM\n\nTrim only working `SPEC.md`. Archive copy remains exact and untouched.\n\n### §T — completed tasks\n\n1. Remove rows with status `x`.\n2. Preserve remaining `.` and `~` rows.\n3. Insert archive comment above §T table header:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §T T1-T12 -->\n```\n\n### §B — old bugs\n\n1. Remove §B rows older than 90 days.\n2. Preserve recent rows.\n3. Insert archive comment above §B table header:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §B B1-B5 -->\n```\n\n### §V — uncited invariants\n\n1. Collect live `V\u003Cn>` refs from active §T rows only (`.` or `~`).\n2. Remove `V\u003Cn>` lines not in live set.\n3. Insert archive comment above §V archived range:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §V V1,V3-V5 -->\n```\n\n### §I — uncited interfaces\n\n1. Collect live `I.*` refs from active §T rows only (`.` or `~`).\n2. Remove §I items not in live set.\n3. Insert archive comment above §I archived range:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §I I.api,I.cli -->\n```\n\n### §C — uncited constraints\n\n1. Collect live §C refs from active §T rows only (`.` or `~`).\n2. Remove §C bullets not in live set.\n3. Insert archive comment above §C archived range:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §C -->\n```\n\n### §G — never touched\n\nDo not edit §G.\n\n## REPORT\n\nAfter writes, show changed path, archive path, and diff summary:\n\n```text\n## archive report\n\nsaved to: .cavekit\u002Farchive\u002FSPEC-2026-05-15.md\n\n§T archived: T1, T3-T8, T12 (9 tasks completed)\n§B archived: B1-B4 (4 bugs older than 90 days)\n§V archived: V1,V3-V5 (4 invariants, no active task cites them)\n§I archived: I.cli (1 interface, no active task cites it)\n§C archived: 2 constraints\n§G untouched\n\nlines before: 542\nlines after: 218\n```\n\n## RULES\n\n- Archive = exact full pre-trim copy. Content loss ⊥.\n- No writes before dry-run preview and explicit user OK through `ask_user_question`.\n- Missing `SPEC.md` or `≤500` lines → no write.\n- One archive file per run. If same-day archive exists, suffix `-2`, `-3`, etc.\n- §G never removed or changed.\n- §T removes only completed rows (`x`).\n- §B removes only rows older than 90 days.\n- §C, §I, and §V remove only items uncited by active §T (`.` or `~`).\n- Archive comments must include archive path, section, and ranges\u002Frefs when applicable.\n- After archive, cavekit-spec\u002Fbuild\u002Fcheck must resolve IDs\u002Fcites from current tables plus archive comments and archived `SPEC.md` copies. Never reuse IDs.\n- Do not commit unless user explicitly asks in this session.\n","# cavekit-archive — compact SPEC.md\n\nArchive long project-root `SPEC.md` files. Full copy first; trim working copy only after explicit user approval.\n\nRead bundled `..\u002F..\u002FFORMAT.md` before interpreting or editing `SPEC.md`. The bundled file defines section order, pipe-table rules, archive comments, ID monotonicity, and caveman-style encoding.\n\n## PRECHECK\n\n1. Read project-root `SPEC.md`. If missing, report `no SPEC.md, nothing to archive` and stop.\n2. Count lines. If `SPEC.md` has `≤500` lines, report `SPEC.md is \u003CN> lines. Nothing to archive.` and stop with no writes.\n3. Read bundled `..\u002F..\u002FFORMAT.md` if not already loaded.\n4. Determine target archive path: `.cavekit\u002Farchive\u002FSPEC-\u003CYYYY-MM-DD>.md`; if it exists, use `-2`, `-3`, etc.\n\n## DRY-RUN PREVIEW — no writes\n\nAnalyze `SPEC.md`. Do not create directories, archive files, or edit `SPEC.md` during preview.\n\nCompute:\n\n1. `lines before` = total line count.\n2. §T candidates: rows with status `x`; list IDs\u002Franges and line count.\n3. §B candidates: rows whose `date` is older than 90 days; list IDs\u002Franges and line count.\n4. Active cites: collect `cites` cells from §T rows with status `.` or `~`.\n5. §V candidates: `V\u003Cn>` lines not cited by active §T; list IDs\u002Franges and line count.\n6. §I candidates: interface items not cited by active §T; list refs and line count.\n7. §C candidates: constraints not cited by active §T; list count and line count.\n8. `lines after` = `lines before` minus removed candidate lines plus one archive comment per trimmed section.\n\nShow preview:\n\n```text\n## archive preview\n\narchive target: .cavekit\u002Farchive\u002FSPEC-\u003CYYYY-MM-DD>.md\n§T would archive: T1, T3-T8, T12 (9 tasks completed)\n§B would archive: B1-B4 (4 bugs older than 90 days)\n§V would archive: V1,V3-V5 (4 invariants, no active task cites them)\n§I would archive: I.cli (1 interface, no active task cites it)\n§C would archive: 2 constraints, no active task cites them\n§G untouched\n\nlines before: 533\nlines after: 100\n```\n\nAsk approval with `ask_user_question` after preview. Do not use a prose-only `Proceed?` prompt. Offer 2-4 options:\n\n- `Proceed (Recommended)` → continue to ARCHIVE + TRIM.\n- `Amend preview` → user changes include\u002Fexclude choices, then rerun dry-run preview.\n- `Stop` → stop with no writes.\n\nIf user approves, continue to ARCHIVE + TRIM.\nIf user stops, write nothing.\nIf user amends, incorporate requested include\u002Fexclude changes and rerun dry-run preview.\n\n## ARCHIVE\n\n1. Create `.cavekit\u002Farchive\u002F` if absent.\n2. Copy exact full pre-trim `SPEC.md` to chosen archive path.\n3. Do not normalize line endings, rewrite content, or modify the archive copy.\n4. Only after archive copy succeeds, edit working `SPEC.md`.\n\n## TRIM\n\nTrim only working `SPEC.md`. Archive copy remains exact and untouched.\n\n### §T — completed tasks\n\n1. Remove rows with status `x`.\n2. Preserve remaining `.` and `~` rows.\n3. Insert archive comment above §T table header:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §T T1-T12 -->\n```\n\n### §B — old bugs\n\n1. Remove §B rows older than 90 days.\n2. Preserve recent rows.\n3. Insert archive comment above §B table header:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §B B1-B5 -->\n```\n\n### §V — uncited invariants\n\n1. Collect live `V\u003Cn>` refs from active §T rows only (`.` or `~`).\n2. Remove `V\u003Cn>` lines not in live set.\n3. Insert archive comment above §V archived range:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §V V1,V3-V5 -->\n```\n\n### §I — uncited interfaces\n\n1. Collect live `I.*` refs from active §T rows only (`.` or `~`).\n2. Remove §I items not in live set.\n3. Insert archive comment above §I archived range:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §I I.api,I.cli -->\n```\n\n### §C — uncited constraints\n\n1. Collect live §C refs from active §T rows only (`.` or `~`).\n2. Remove §C bullets not in live set.\n3. Insert archive comment above §C archived range:\n\n```text\n\u003C!-- archive: .cavekit\u002Farchive\u002FSPEC-\u003Cdate>.md §C -->\n```\n\n### §G — never touched\n\nDo not edit §G.\n\n## REPORT\n\nAfter writes, show changed path, archive path, and diff summary:\n\n```text\n## archive report\n\nsaved to: .cavekit\u002Farchive\u002FSPEC-2026-05-15.md\n\n§T archived: T1, T3-T8, T12 (9 tasks completed)\n§B archived: B1-B4 (4 bugs older than 90 days)\n§V archived: V1,V3-V5 (4 invariants, no active task cites them)\n§I archived: I.cli (1 interface, no active task cites it)\n§C archived: 2 constraints\n§G untouched\n\nlines before: 542\nlines after: 218\n```\n\n## RULES\n\n- Archive = exact full pre-trim copy. Content loss ⊥.\n- No writes before dry-run preview and explicit user OK through `ask_user_question`.\n- Missing `SPEC.md` or `≤500` lines → no write.\n- One archive file per run. If same-day archive exists, suffix `-2`, `-3`, etc.\n- §G never removed or changed.\n- §T removes only completed rows (`x`).\n- §B removes only rows older than 90 days.\n- §C, §I, and §V remove only items uncited by active §T (`.` or `~`).\n- Archive comments must include archive path, section, and ranges\u002Frefs when applicable.\n- After archive, cavekit-spec\u002Fbuild\u002Fcheck must resolve IDs\u002Fcites from current tables plus archive comments and archived `SPEC.md` copies. Never reuse IDs.\n- Do not commit unless user explicitly asks in this session.\n",{"name":5,"description":7},"main","86a206d111fba4ffc9c47c363486479262e63513","packages\u002Fpi-cavekit\u002Fskills\u002Fcavekit-archive",9,"https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir","https:\u002F\u002Fgithub.com\u002Fcasualjim","http:\u002F\u002Fflanders.co.nz","2026-11-10 15:32:15",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add casualjim\u002Fpi-mimir --skill cavekit-archive",{"tool":38,"command":39},"bunx","bunx skills add casualjim\u002Fpi-mimir --skill cavekit-archive",{"tool":41,"command":42},"pnpm","pnpm dlx skills add casualjim\u002Fpi-mimir --skill cavekit-archive","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-cavekit\u002Fskills\u002Fcavekit-archive\u002FSKILL.md",true,[],[47,54,61,68,75,82],{"skillNo":48,"name":49,"nameZh":6,"description":50,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M74GK3CG2X0988XMHBKNC0HG","why","Use for 'why does X work this way', 'why we picked Y', design rationale, regressions, postmortems, or data-backed thresholds. Discovers available MCPs and queries each evidence category (source control, issue tracker, long-form docs, real-time chat, infrastructure observability, error tracking, product analytics warehouse) in parallel, then returns a cited read on decisions and tradeoffs. Use how for runtime behavior.","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-pstack\u002Fskills\u002Fwhy\u002FSKILL.md",[],[],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M74GK2A4034JSAN8BCGBEPVB","unslop","Cut AI tells from any writing.","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-pstack\u002Fskills\u002Funslop\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M74GK13302GXTR58TM47BQY1","typescript-best-practices","TypeScript best practices. Use when reading or editing any .ts or .tsx file.","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-pstack\u002Fskills\u002Ftypescript-best-practices\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M74GJYB1DJCA4AQH22MWYM9J","technical-writing","Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use for \u002Fskill:technical-writing or when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-pstack\u002Fskills\u002Ftechnical-writing\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M74GJW7794XM60AKH76941T0","teach","Explain a body of work plainly so a person actually understands it. Runs the `how` and `why` skills and weaves what they find into one clear explanation. Use for 'teach me this', 'help me really understand X', 'explain this change or subsystem to me'.","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-pstack\u002Fskills\u002Fteach\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M74GJPQN3RW4FN7G78W2NFR1","tdd","Use only when the user explicitly asks for TDD, a failing test, or a regression test, OR when the bug has an obvious cheap local test target. Skip when the test path is unclear, expensive, integration-heavy, or not requested.","https:\u002F\u002Fgithub.com\u002Fcasualjim\u002Fpi-mimir\u002Fblob\u002Fmain\u002Fpackages\u002Fpi-pstack\u002Fskills\u002Ftdd\u002FSKILL.md",[],[]]