[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78H39E34D2EX4YFPD307QEZ":3,"skill-same:01M78H39E34D2EX4YFPD307QEZ":52},{"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":14,"repositoryHtmlUrl":27,"repositoryHomepageUrl":6,"ownerHtmlUrl":28,"ownerBlogUrl":29,"ownerDescription":30,"updatedAt":31,"install":32,"resources":45},"01M78H39E34D2EX4YFPD307QEZ","artifacts-purge",null,"PAUSED \u002F OPERATOR-GATED. Do not invoke autonomously. Tracked under OI-0011. The CLI can delete generated artifact trees, but `.artifacts\u002F` is not uniformly ephemeral; prior Flow\u002FNode run artifacts may be needed for resume, replay, comparison, or active investigations. No purge runs without explicit operator go-ahead.","aptlyundecided\u002Fbagelwerk","aptlyundecided","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1045064?v=4","01M78H37K1N5D4YHY63NYPBZ89","Alex","01M78H37M6X2X56CJTYZ9DARJS",0,"MPL-2.0","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fartifacts-purge\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: artifacts-purge\ndescription: PAUSED \u002F OPERATOR-GATED. Do not invoke autonomously. Tracked under OI-0011. The CLI can delete generated artifact trees, but `.artifacts\u002F` is not uniformly ephemeral; prior Flow\u002FNode run artifacts may be needed for resume, replay, comparison, or active investigations. No purge runs without explicit operator go-ahead.\n---\n\n# Artifacts Purge\n\n> **STATUS: paused \u002F operator-gated (2026-05-13).** Tracked under [OI-0011](..\u002F..\u002F..\u002F.agents\u002Fopen-items\u002Fitems\u002FOI-0011.md).\n>\n> The CLI under `.pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002F` is functional and its low-level safety guards (path-escape rejection, symlink rejection, dry-run default, `--yes` opt-in) all work as designed. **But the skill's original premise is wrong**: it treats every entry under `.artifacts\u002F` as disposable, and that is not true. Some prior Flow\u002FNode run artifacts may be needed for resume, replay, comparison, recovery, or active investigations. Purging them silently can destroy in-flight work.\n>\n> Until preservation is designed and shipped (OI-0011 preservation tasks), **agents must not invoke `npm run artifacts:purge` against the live repo `.artifacts\u002F` tree.** The script is left registered in `package.json` so existing operator workflows are not surprised, but the operator must explicitly OK every run.\n\nReclaim disk space and clear stale generated outputs under repo-root `.artifacts\u002F` (or another repo's `.artifacts\u002F` via `--root \u003Cpath>`).\n\n`.artifacts\u002F` is the standard write target for runtime-generated artifacts across the repo (per `CONTEXT.md` and `AGENTS.md` § Artifacts). It is gitignored and machine-specific. **However, not every entry is cheap to recreate** — see the preservation gap below.\n\n## When to use (post-preservation; not yet)\n\n- `.artifacts\u002F` has grown large and you want to reclaim space.\n- Stale artifact runs are confusing new investigations; you want a clean slate.\n- Before benchmarking a fresh run that needs a known-empty starting state.\n- Before a durable handoff where the operator wants generated state minimized.\n\nEach of the above currently requires operator confirmation **per invocation** and, ideally, an explicit `--keep \u003Cglob>` listing the subtrees that must survive. None of that is in place yet.\n\n## Do not use this\n\n- **Autonomously, ever, against the live repo `.artifacts\u002F` tree.** Operator must give explicit go-ahead for each run until preservation lands.\n- To delete user-owned files elsewhere in the repo (the CLI refuses).\n- To remove the `.artifacts\u002F` directory itself (the CLI preserves it; tools that write to it will recreate subtrees as needed).\n- To inspect or restore individual artifacts — use git, file system tools, or the producing Flow\u002FNode surface instead.\n\n## Preservation gap (open)\n\n`.artifacts\u002F` is **not** a uniformly ephemeral directory. Known consumers of prior artifact state include:\n\n- **Flow\u002FNode resume, fork, and replay workflows** that read upstream run outputs from `.artifacts\u002F` to continue or branch from a known state.\n- **Replay benches** and dogfood loops that compare against last-known outputs.\n- **In-flight open items** whose investigation depends on artifacts produced by earlier sessions.\n\nUntil those subtrees are inventoried and the CLI can preserve them by default (planned: a curated default-preserve list plus `--keep \u003Cglob>` plus optional `.artifacts\u002F.preserve` sentinel), the purge tool is **not safe to run unattended** even with all its existing path \u002F symlink guards.\n\nTracked preservation work under OI-0011:\n\n- `T-006` — Discover preservation requirements for active Flow\u002FNode artifact consumers and historical replay\u002Fresume assumptions.\n- `T-007` — Implement preservation in the CLI (`--keep` \u002F sentinel \u002F default-preserve set).\n- `T-008` — Re-run smoke tests using `--root \u003Ctempdir>`, never the live tree.\n- `T-009` — Re-evaluate operator-gate strength once preservation defaults exist.\n\n## CLI tooling (strict)\n\nTypeScript CLI: `.pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002FartifactsPurgeCli.ts`. **Do not invoke it unless the operator explicitly asks for that exact purge run.** When changing this skill's warning\u002Fquarantine text, edit the canonical `.pi\u002Fskills\u002F` copy first and sync mirrors so every harness sees the same operator gate.\n\nFrom repo root: `npm run artifacts:purge`. Fallback: `npx tsx .pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002FartifactsPurgeCli.ts`. **Both forms require operator confirmation per invocation until preservation lands.**\n\n| Invocation | Effect |\n| --- | --- |\n| `npm run artifacts:purge` | **Dry-run.** Lists every top-level entry under `.artifacts\u002F` that would be deleted. No filesystem changes. Exits 0. |\n| `npm run artifacts:purge -- --yes` | Deletes the listed entries. Leaves the `.artifacts\u002F` directory itself in place. Exits 0 on full success, 1 if any entry failed. |\n| `npm run artifacts:purge -- --root \u003Cpath>` | Run against a different repo checkout. May be combined with `--yes`. |\n\n## Output format\n\nOne line per top-level entry under `.artifacts\u002F`, kind-prefixed and space-separated (rigid for agents, cheap on tokens):\n\n```text\n\u003Ckind> \u003Crepo-relative-path>\n```\n\n`\u003Ckind>` is one of `dir `, `file`, `link`. Examples:\n\n```text\ndir  .artifacts\u002Fagents\ndir  .artifacts\u002Fruns\nfile .artifacts\u002Flast-run.json\n```\n\nA summary line is emitted to stderr (`DRY-RUN: would delete N…` or `Removed N entr…`). Stdout carries only the entry list, so it is safe to pipe.\n\n## Safety guarantees\n\n1. **Path resolution is anchored to repo root.** The CLI refuses if the resolved `.artifacts\u002F` path is not exactly `.artifacts` directly under the repo root.\n2. **Symlink rejection.** If `.artifacts\u002F` itself is a symbolic link, the CLI refuses (prevents `.artifacts -> \u002Fetc` style traps). Symlink entries *inside* `.artifacts\u002F` are removed as symlinks; their targets are not touched.\n3. **Dry-run default.** Running without `--yes` never mutates the filesystem.\n4. **Directory preservation.** The `.artifacts\u002F` directory itself is preserved; only its contents are removed.\n5. **No interactive prompts.** `--yes` is the confirmation. The CLI is usable in CI or scripted contexts only after the operator has explicitly approved that run.\n\n## Out of scope (paused version)\n\n- Recreating placeholder files after purge. Producers should bootstrap their own subtrees.\n- Cross-machine remote purges. Use the local CLI in each checkout.\n- Running unattended against this repo's live `.artifacts\u002F` tree before preservation defaults exist.\n\n(Note: `--keep \u003Cglob>` *was* listed as v1-out-of-scope when this skill was first authored, but the smoke-test incident on 2026-05-13 reframed it as a **v1 prerequisite**. Tracked as T-007 on the OI-0011 sidecar.)\n","# Artifacts Purge\n\n> **STATUS: paused \u002F operator-gated (2026-05-13).** Tracked under [OI-0011](..\u002F..\u002F..\u002F.agents\u002Fopen-items\u002Fitems\u002FOI-0011.md).\n>\n> The CLI under `.pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002F` is functional and its low-level safety guards (path-escape rejection, symlink rejection, dry-run default, `--yes` opt-in) all work as designed. **But the skill's original premise is wrong**: it treats every entry under `.artifacts\u002F` as disposable, and that is not true. Some prior Flow\u002FNode run artifacts may be needed for resume, replay, comparison, recovery, or active investigations. Purging them silently can destroy in-flight work.\n>\n> Until preservation is designed and shipped (OI-0011 preservation tasks), **agents must not invoke `npm run artifacts:purge` against the live repo `.artifacts\u002F` tree.** The script is left registered in `package.json` so existing operator workflows are not surprised, but the operator must explicitly OK every run.\n\nReclaim disk space and clear stale generated outputs under repo-root `.artifacts\u002F` (or another repo's `.artifacts\u002F` via `--root \u003Cpath>`).\n\n`.artifacts\u002F` is the standard write target for runtime-generated artifacts across the repo (per `CONTEXT.md` and `AGENTS.md` § Artifacts). It is gitignored and machine-specific. **However, not every entry is cheap to recreate** — see the preservation gap below.\n\n## When to use (post-preservation; not yet)\n\n- `.artifacts\u002F` has grown large and you want to reclaim space.\n- Stale artifact runs are confusing new investigations; you want a clean slate.\n- Before benchmarking a fresh run that needs a known-empty starting state.\n- Before a durable handoff where the operator wants generated state minimized.\n\nEach of the above currently requires operator confirmation **per invocation** and, ideally, an explicit `--keep \u003Cglob>` listing the subtrees that must survive. None of that is in place yet.\n\n## Do not use this\n\n- **Autonomously, ever, against the live repo `.artifacts\u002F` tree.** Operator must give explicit go-ahead for each run until preservation lands.\n- To delete user-owned files elsewhere in the repo (the CLI refuses).\n- To remove the `.artifacts\u002F` directory itself (the CLI preserves it; tools that write to it will recreate subtrees as needed).\n- To inspect or restore individual artifacts — use git, file system tools, or the producing Flow\u002FNode surface instead.\n\n## Preservation gap (open)\n\n`.artifacts\u002F` is **not** a uniformly ephemeral directory. Known consumers of prior artifact state include:\n\n- **Flow\u002FNode resume, fork, and replay workflows** that read upstream run outputs from `.artifacts\u002F` to continue or branch from a known state.\n- **Replay benches** and dogfood loops that compare against last-known outputs.\n- **In-flight open items** whose investigation depends on artifacts produced by earlier sessions.\n\nUntil those subtrees are inventoried and the CLI can preserve them by default (planned: a curated default-preserve list plus `--keep \u003Cglob>` plus optional `.artifacts\u002F.preserve` sentinel), the purge tool is **not safe to run unattended** even with all its existing path \u002F symlink guards.\n\nTracked preservation work under OI-0011:\n\n- `T-006` — Discover preservation requirements for active Flow\u002FNode artifact consumers and historical replay\u002Fresume assumptions.\n- `T-007` — Implement preservation in the CLI (`--keep` \u002F sentinel \u002F default-preserve set).\n- `T-008` — Re-run smoke tests using `--root \u003Ctempdir>`, never the live tree.\n- `T-009` — Re-evaluate operator-gate strength once preservation defaults exist.\n\n## CLI tooling (strict)\n\nTypeScript CLI: `.pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002FartifactsPurgeCli.ts`. **Do not invoke it unless the operator explicitly asks for that exact purge run.** When changing this skill's warning\u002Fquarantine text, edit the canonical `.pi\u002Fskills\u002F` copy first and sync mirrors so every harness sees the same operator gate.\n\nFrom repo root: `npm run artifacts:purge`. Fallback: `npx tsx .pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002FartifactsPurgeCli.ts`. **Both forms require operator confirmation per invocation until preservation lands.**\n\n| Invocation | Effect |\n| --- | --- |\n| `npm run artifacts:purge` | **Dry-run.** Lists every top-level entry under `.artifacts\u002F` that would be deleted. No filesystem changes. Exits 0. |\n| `npm run artifacts:purge -- --yes` | Deletes the listed entries. Leaves the `.artifacts\u002F` directory itself in place. Exits 0 on full success, 1 if any entry failed. |\n| `npm run artifacts:purge -- --root \u003Cpath>` | Run against a different repo checkout. May be combined with `--yes`. |\n\n## Output format\n\nOne line per top-level entry under `.artifacts\u002F`, kind-prefixed and space-separated (rigid for agents, cheap on tokens):\n\n```text\n\u003Ckind> \u003Crepo-relative-path>\n```\n\n`\u003Ckind>` is one of `dir `, `file`, `link`. Examples:\n\n```text\ndir  .artifacts\u002Fagents\ndir  .artifacts\u002Fruns\nfile .artifacts\u002Flast-run.json\n```\n\nA summary line is emitted to stderr (`DRY-RUN: would delete N…` or `Removed N entr…`). Stdout carries only the entry list, so it is safe to pipe.\n\n## Safety guarantees\n\n1. **Path resolution is anchored to repo root.** The CLI refuses if the resolved `.artifacts\u002F` path is not exactly `.artifacts` directly under the repo root.\n2. **Symlink rejection.** If `.artifacts\u002F` itself is a symbolic link, the CLI refuses (prevents `.artifacts -> \u002Fetc` style traps). Symlink entries *inside* `.artifacts\u002F` are removed as symlinks; their targets are not touched.\n3. **Dry-run default.** Running without `--yes` never mutates the filesystem.\n4. **Directory preservation.** The `.artifacts\u002F` directory itself is preserved; only its contents are removed.\n5. **No interactive prompts.** `--yes` is the confirmation. The CLI is usable in CI or scripted contexts only after the operator has explicitly approved that run.\n\n## Out of scope (paused version)\n\n- Recreating placeholder files after purge. Producers should bootstrap their own subtrees.\n- Cross-machine remote purges. Use the local CLI in each checkout.\n- Running unattended against this repo's live `.artifacts\u002F` tree before preservation defaults exist.\n\n(Note: `--keep \u003Cglob>` *was* listed as v1-out-of-scope when this skill was first authored, but the smoke-test incident on 2026-05-13 reframed it as a **v1 prerequisite**. Tracked as T-007 on the OI-0011 sidecar.)\n",{"name":5,"description":7},"main","4b62590481058e38cbc5f0d1b781001205b45ff0",".pi\u002Fskills\u002Fartifacts-purge","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk","https:\u002F\u002Fgithub.com\u002Faptlyundecided","alexdwilson.dev","carcinificating","2026-11-12 23:57:35",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add aptlyundecided\u002Fbagelwerk --skill artifacts-purge",{"tool":38,"command":39},"bunx","bunx skills add aptlyundecided\u002Fbagelwerk --skill artifacts-purge",{"tool":41,"command":42},"pnpm","pnpm dlx skills add aptlyundecided\u002Fbagelwerk --skill artifacts-purge","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fartifacts-purge\u002FSKILL.md",true,[46],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"cli\u002FartifactsPurgeCli.ts","SCRIPT","脚本",4819,"https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fartifacts-purge\u002Fcli\u002FartifactsPurgeCli.ts",[53,59,66,73,80,87],{"skillNo":54,"name":55,"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":56,"categories":57,"keywords":58,"publishedAt":19},"01M78H5JMKWBHYA0Y4F7Z4NA00","structured-output-repair","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002Fsrc\u002Fcore\u002Fagent-execution\u002Fskills\u002Fstructured-output-repair\u002FSKILL.md",[],[],{"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},"01M78H5GC0HM0KCTRZPTMD0TFK","version-release","Use when the user asks to bump\u002Fincrement the package version, prepare a release, produce changelog\u002Frelease notes, or decide whether a change should be called out in the changelog.","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fversion-release\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},"01M78H5CP4K6P6A0ADY8DM2XB0","ubiquitous-language","Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions \"domain model\" or \"DDD\".","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Fubiquitous-language\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},"01M78H58Q2B0XM6YT7AD15AFFZ","todo-monitor","Create and advance a per-open-item agent todo list using the `npm run todos --` CLI without pausing after each task. Follows todo-contract (strict CLI-only mutation) and todo-enforcer rules.","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftodo-monitor\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M78H55CBZ0K977N7Q1JZ48BM","todo-hard-stop","Execute a per-open-item todo list via the `npm run todos --` CLI under the canonical todo contract, pausing after each completed task for operator feedback.","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftodo-hard-stop\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M78H50XT4F68HSRPDAG1R579","todo-enforcer","Enforce the per-open-item todo contract (strict CLI-only mutation via `npm run todos --`; no hand-edits to `*.todo.json`) so tracked agent work stays focused, isolated, and linked to an open item.","https:\u002F\u002Fgithub.com\u002Faptlyundecided\u002Fbagelwerk\u002Fblob\u002Fmain\u002F.pi\u002Fskills\u002Ftodo-enforcer\u002FSKILL.md",[],[]]