[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CSWQWE5NC1ZP16SDQNVK3M":3,"skill-same:01M6CSWQWE5NC1ZP16SDQNVK3M":102},{"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":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":32,"commitSha":33,"skillDirectory":34,"forksCount":14,"repositoryHtmlUrl":35,"repositoryHomepageUrl":6,"ownerHtmlUrl":36,"ownerBlogUrl":37,"ownerDescription":6,"updatedAt":38,"install":39,"resources":51},"01M6CSWQWE5NC1ZP16SDQNVK3M","cleanup",null,"Cleans up old auto-captured files with configurable retention policy and archive support.","goffity\u002Fdev-km","goffity","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F778547?v=4","01M6CSW9QQ32YQYTRKQWVKYCAY","Goffity","01M6CSW9VQFVZ3QS6RB4VYJGE6",0,"MIT","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Fcleanup\u002FSKILL.md",[],[5,19,20,21,22,23,24],"policy","support","archive","auto","up","files","2026-11-10 10:12:30",false,"---\nname: cleanup\ndescription: Cleans up old auto-captured files with configurable retention policy and archive support.\nargument-hint: \"[days]\"\nuser-invocable: true\n---\n\n# Cleanup - Retention Policy Manager\n\nจัดการไฟล์เก่าด้วย retention policy พร้อม archive และ dry-run mode\n\n## Usage\n\n```\n\u002Fcleanup                    # Preview ด้วย default settings (30 days)\n\u002Fcleanup [days]             # Preview with custom retention period\n\u002Fcleanup [days] --execute   # Execute cleanup\n\u002Fcleanup --archive          # Archive before delete\n```\n\n## Instructions\n\n### Step 1: Parse Arguments and Show Current State\n\n```bash\nexport TZ='Asia\u002FBangkok'\n\necho \"=== Auto-captured Files ===\"\nfind docs\u002Fauto-captured -type f -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l | xargs echo \"Total files:\"\n\necho \"\"\necho \"=== Learnings Files ===\"\nfind kb\u002F05-ai-reviewed\u002Flearnings -type f -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l | xargs echo \"Total files:\"\n\necho \"\"\necho \"=== Archives ===\"\nls -la docs\u002Farchives\u002F 2>\u002Fdev\u002Fnull || echo \"No archives yet\"\n```\n\n### Step 2: Determine Mode\n\n| Argument | Mode |\n|----------|------|\n| (none) | Dry-run, 30 days retention |\n| `[days]` | Dry-run with custom retention |\n| `[days] --execute` | Execute cleanup |\n| `--archive` | Enable archiving |\n| `--all` | Clean all targets |\n\n### Step 3: Run Cleanup Script\n\n**Dry-run mode (default):**\n\n```bash\ncd \"$PROJECT_ROOT\"\n.\u002Fscripts\u002Fcleanup.sh --days [DAYS] --dry-run [--archive] [--all]\n```\n\n**Execute mode:**\n\n```bash\ncd \"$PROJECT_ROOT\"\n.\u002Fscripts\u002Fcleanup.sh --days [DAYS] [--archive] [--all]\n```\n\n### Step 4: Show Results\n\nDisplay the script output showing:\n- Files that would be \u002F were deleted\n- Total space freed\n- Archives created (if enabled)\n\n### Step 5: Confirm and Suggest Next Steps\n\n```markdown\n## Cleanup Summary\n\n| Metric | Value |\n|--------|-------|\n| Retention Period | [days] days |\n| Files Processed | [count] |\n| Space Freed | [size] |\n| Archives Created | [count] |\n\n### Next Steps\n\n1. Review remaining files in `docs\u002Fauto-captured\u002F`\n2. Run `\u002Fdistill` to extract patterns from learnings\n3. Schedule periodic cleanup (cron job recommendation)\n```\n\n## Examples\n\n```bash\n# Preview what would be deleted (30 days default)\n\u002Fcleanup\n\n# Preview with 7 days retention\n\u002Fcleanup 7\n\n# Execute cleanup with archiving\n\u002Fcleanup 14 --archive --execute\n\n# Clean all targets (auto-captured + draft learnings)\n\u002Fcleanup --all --execute\n```\n\n## Retention Policy\n\n| Target | Policy |\n|--------|--------|\n| `docs\u002Fauto-captured\u002F` | Delete all files older than retention period |\n| `kb\u002F05-ai-reviewed\u002Flearnings\u002F` | Delete only `status: draft` files older than retention period |\n| `kb\u002F05-ai-reviewed\u002Fretrospective\u002F` | Never auto-delete (permanent records) |\n| `kb\u002F02-patterns\u002F` | Never auto-delete (distilled knowledge) |\n\n## Archive Format\n\nWhen `--archive` is enabled:\n- Archives stored in `docs\u002Farchives\u002F`\n- Format: `archive_[target]_YYYYMMDD_HHMMSS.tar.gz`\n- Contains all files that will be deleted\n\n## Scheduling Recommendation\n\nAdd to crontab for automatic cleanup:\n\n```bash\n# Weekly cleanup, keep 30 days, archive old files\n0 0 * * 0 cd \u002Fpath\u002Fto\u002Fproject && .\u002Fscripts\u002Fcleanup.sh --days 30 --archive --all\n```\n\n## Related Commands\n\n| Command | Purpose |\n|---------|---------|\n| `\u002Fdistill` | Extract patterns from learnings |\n| `\u002Fmem` | Quick knowledge capture |\n| `\u002Ftd` | Session retrospective |\n","# Cleanup - Retention Policy Manager\n\nจัดการไฟล์เก่าด้วย retention policy พร้อม archive และ dry-run mode\n\n## Usage\n\n```\n\u002Fcleanup                    # Preview ด้วย default settings (30 days)\n\u002Fcleanup [days]             # Preview with custom retention period\n\u002Fcleanup [days] --execute   # Execute cleanup\n\u002Fcleanup --archive          # Archive before delete\n```\n\n## Instructions\n\n### Step 1: Parse Arguments and Show Current State\n\n```bash\nexport TZ='Asia\u002FBangkok'\n\necho \"=== Auto-captured Files ===\"\nfind docs\u002Fauto-captured -type f -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l | xargs echo \"Total files:\"\n\necho \"\"\necho \"=== Learnings Files ===\"\nfind kb\u002F05-ai-reviewed\u002Flearnings -type f -name \"*.md\" 2>\u002Fdev\u002Fnull | wc -l | xargs echo \"Total files:\"\n\necho \"\"\necho \"=== Archives ===\"\nls -la docs\u002Farchives\u002F 2>\u002Fdev\u002Fnull || echo \"No archives yet\"\n```\n\n### Step 2: Determine Mode\n\n| Argument | Mode |\n|----------|------|\n| (none) | Dry-run, 30 days retention |\n| `[days]` | Dry-run with custom retention |\n| `[days] --execute` | Execute cleanup |\n| `--archive` | Enable archiving |\n| `--all` | Clean all targets |\n\n### Step 3: Run Cleanup Script\n\n**Dry-run mode (default):**\n\n```bash\ncd \"$PROJECT_ROOT\"\n.\u002Fscripts\u002Fcleanup.sh --days [DAYS] --dry-run [--archive] [--all]\n```\n\n**Execute mode:**\n\n```bash\ncd \"$PROJECT_ROOT\"\n.\u002Fscripts\u002Fcleanup.sh --days [DAYS] [--archive] [--all]\n```\n\n### Step 4: Show Results\n\nDisplay the script output showing:\n- Files that would be \u002F were deleted\n- Total space freed\n- Archives created (if enabled)\n\n### Step 5: Confirm and Suggest Next Steps\n\n```markdown\n## Cleanup Summary\n\n| Metric | Value |\n|--------|-------|\n| Retention Period | [days] days |\n| Files Processed | [count] |\n| Space Freed | [size] |\n| Archives Created | [count] |\n\n### Next Steps\n\n1. Review remaining files in `docs\u002Fauto-captured\u002F`\n2. Run `\u002Fdistill` to extract patterns from learnings\n3. Schedule periodic cleanup (cron job recommendation)\n```\n\n## Examples\n\n```bash\n# Preview what would be deleted (30 days default)\n\u002Fcleanup\n\n# Preview with 7 days retention\n\u002Fcleanup 7\n\n# Execute cleanup with archiving\n\u002Fcleanup 14 --archive --execute\n\n# Clean all targets (auto-captured + draft learnings)\n\u002Fcleanup --all --execute\n```\n\n## Retention Policy\n\n| Target | Policy |\n|--------|--------|\n| `docs\u002Fauto-captured\u002F` | Delete all files older than retention period |\n| `kb\u002F05-ai-reviewed\u002Flearnings\u002F` | Delete only `status: draft` files older than retention period |\n| `kb\u002F05-ai-reviewed\u002Fretrospective\u002F` | Never auto-delete (permanent records) |\n| `kb\u002F02-patterns\u002F` | Never auto-delete (distilled knowledge) |\n\n## Archive Format\n\nWhen `--archive` is enabled:\n- Archives stored in `docs\u002Farchives\u002F`\n- Format: `archive_[target]_YYYYMMDD_HHMMSS.tar.gz`\n- Contains all files that will be deleted\n\n## Scheduling Recommendation\n\nAdd to crontab for automatic cleanup:\n\n```bash\n# Weekly cleanup, keep 30 days, archive old files\n0 0 * * 0 cd \u002Fpath\u002Fto\u002Fproject && .\u002Fscripts\u002Fcleanup.sh --days 30 --archive --all\n```\n\n## Related Commands\n\n| Command | Purpose |\n|---------|---------|\n| `\u002Fdistill` | Extract patterns from learnings |\n| `\u002Fmem` | Quick knowledge capture |\n| `\u002Ftd` | Session retrospective |\n",{"name":5,"description":7,"argument-hint":30,"user-invocable":31},"[days]",true,"main","835c1f754a3eab31c2e7eb408d21431a98c633ee","skills\u002Fcleanup","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km","https:\u002F\u002Fgithub.com\u002Fgoffity","www.narongwate.com","2026-11-10 01:34:18",{"source":8,"skillName":5,"commands":40,"prompt":50,"zipAvailable":31},[41,44,47],{"tool":42,"command":43},"npx","npx skills add goffity\u002Fdev-km --skill cleanup",{"tool":45,"command":46},"bunx","bunx skills add goffity\u002Fdev-km --skill cleanup",{"tool":48,"command":49},"pnpm","pnpm dlx skills add goffity\u002Fdev-km --skill cleanup","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Fcleanup\u002FSKILL.md",[52,58,62,66,70,74,78,82,86,90,94,98],{"path":53,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fcommands.md","REFERENCE","参考文档",15460,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Freferences\u002Fcommands.md",{"path":59,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":60,"sourceHtmlUrl":61},"rules\u002Fartifact.md",1885,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fartifact.md",{"path":63,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":64,"sourceHtmlUrl":65},"rules\u002Fauth.md",3164,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fauth.md",{"path":67,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":68,"sourceHtmlUrl":69},"rules\u002Fcontext.md",2445,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fcontext.md",{"path":71,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":72,"sourceHtmlUrl":73},"rules\u002Fcred.md",2928,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fcred.md",{"path":75,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":76,"sourceHtmlUrl":77},"rules\u002Fjob.md",7712,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fjob.md",{"path":79,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":80,"sourceHtmlUrl":81},"rules\u002Fnode.md",3060,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fnode.md",{"path":83,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":84,"sourceHtmlUrl":85},"rules\u002Fother.md",3658,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fother.md",{"path":87,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":88,"sourceHtmlUrl":89},"rules\u002Fplugin.md",3166,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fplugin.md",{"path":91,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":92,"sourceHtmlUrl":93},"rules\u002Fqueue.md",1554,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Fqueue.md",{"path":95,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":96,"sourceHtmlUrl":97},"rules\u002Frun.md",12584,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Frun.md",{"path":99,"resourceType":54,"resourceTypeDesc":55,"sizeBytes":100,"sourceHtmlUrl":101},"rules\u002Ftest.md",1062,"https:\u002F\u002Fgithub.com\u002Fhashgraph-online\u002Fawesome-codex-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Favivsinai\u002Fjenkins-cli\u002Fskills\u002Fjk\u002Frules\u002Ftest.md",[103,114,148,160,168,183],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":25},"01M6CSZ9DKT0CG5Y2HE8F5D9KX","wait-what","Stop. That last message did not land: re-pitch it.","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Fwait-what\u002FSKILL.md",[],[110,111,112,113],"wait what","land","stop","message",{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":128,"publishedAt":25},"01M6CSZ6B0GH2N75WNPPESCDHX","tdd","Test-driven development loop (red-green-refactor) with commit-based phase state and Jira traceability. Use when the user wants to build a feature or fix a bug test-first, mentions \"tdd\", \"red-green-refactor\", or \"test-first\". Replaces the tdg plugin — combines its commit\u002Fphase discipline with seam-based test quality rules from kb Testing Standards.","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Ftdd\u002FSKILL.md",[120,125],{"categoryNo":121,"categoryName":122,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000007","代码审查","SCENARIO","使用场景",{"categoryNo":126,"categoryName":127,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000008","测试与质量",[116,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147],"discipline","development","state","first","loop","quality","Rules","fix","kb","use","test","standards","red-green-refactor","build","green","jira","testing","commit","plugin",{"skillNo":149,"name":150,"nameZh":6,"description":151,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":152,"categories":153,"keywords":154,"publishedAt":25},"01M6CSZ3PNYFR2K5GB197TA7GP","td","Creates post-task retrospectives with Before\u002FAfter context and session documentation.","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Ftd\u002FSKILL.md",[],[150,155,156,157,158,159],"documentation","context","session","task","done",{"skillNo":161,"name":162,"nameZh":6,"description":163,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":164,"categories":165,"keywords":166,"publishedAt":25},"01M6CSZ1TZKVNHS07B4EBQEKFQ","summary","Generates weekly or monthly session summaries from retrospectives and activity logs.","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Fsummary\u002FSKILL.md",[],[162,167,157],"logs",{"skillNo":169,"name":170,"nameZh":6,"description":171,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":172,"categories":173,"keywords":177,"publishedAt":25},"01M6CSYZQHMHJT9ZV8FYY06XZN","share","Shares knowledge across projects by copying to shared-knowledge directory with cross-project metadata.","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Fshare\u002FSKILL.md",[174],{"categoryNo":175,"categoryName":176,"taxonomyType":123,"taxonomyTypeDesc":124},"01JBSEEDCAT000000000000021","资料检索与研究",[170,178,179,180,181,182],"directory","metadata","file","knowledge","projects",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":189,"publishedAt":25},"01M6CSYXFZ7D7EKEFXCQE8QW7S","session-analyzer","Analyzes git changes and creates retrospective drafts with Before\u002FAfter context.","https:\u002F\u002Fgithub.com\u002Fgoffity\u002Fdev-km\u002Fblob\u002Fmain\u002Fskills\u002Fsession-analyzer\u002FSKILL.md",[],[157,190,191,156,192],"session analyzer","git","retrospective"]