[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75JRQMD3ZBFWT66N4N1BV0A":3,"skill-same:01M75JRQMD3ZBFWT66N4N1BV0A":51},{"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":30,"commitSha":31,"skillDirectory":32,"forksCount":14,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M75JRQMD3ZBFWT66N4N1BV0A","prompt-versioning",null,"How to version any LLM prompt in The Warden's Oak (decision, critic, agent-player, and future families). Use when editing anything under assets\u002Fprompts\u002F or changing a *_VERSION constant in prompt-builder.ts or src\u002Fagent\u002F.","WernerVdM97\u002Fdaily-pixel","WernerVdM97","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F51920192?v=4","01M75JPTS7EV5F4QH79JWF8YCE","Werner V\u002Fd Merwe","01M75JPTTSMZ29EMDP2KRMHVHC",0,"MIT","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002F.pi\u002Fskills\u002Fprompt-versioning\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: prompt-versioning\ndescription: How to version any LLM prompt in The Warden's Oak (decision, critic, agent-player, and future families). Use when editing anything under assets\u002Fprompts\u002F or changing a *_VERSION constant in prompt-builder.ts or src\u002Fagent\u002F.\nallowed-tools: Read, Write, Edit, Glob, Grep\npaths:\n  - assets\u002Fprompts\u002F**\n  - src\u002Fllm\u002Fprompt-builder.ts\n  - src\u002Fagent\u002FagentPrompt.ts\n  - src\u002Fagent\u002FcriticPrompt.ts\n---\n\n# Prompt Versioning\n\nEvery LLM prompt is versioned so historical `llm_calls`\u002F`actions` rows stay attributable to the exact prompt that produced them. The same discipline applies to **all** prompt families — don't special-case the decision prompt.\n\n## Layout\n\nEach family lives in `assets\u002Fprompts\u002F\u003Cfamily>\u002F`, loaded from the file matching its version constant, which is stamped on every row it produces. The owning module is the module that reads the prompt, not necessarily `prompt-builder.ts`:\n\n| Family | Folder | Version constant | Owning module | Versioned file | Stamped as |\n| -------- | -------- | ------------------ | --------------- | ---------------- | ------------ |\n| Decision | `assets\u002Fprompts\u002Fdecision-prompts\u002F` | `PROMPT_SET_VERSION` | `src\u002Fllm\u002Fprompt-builder.ts` | the set directory `v14\u002F` (`classify.md`, `decide\u002F*.md`, `resolve\u002F**\u002F*.md`) | `\u003CvN>\u002F\u003Ctemplate>` |\n| Critic | `assets\u002Fprompts\u002Fcritic\u002F` | `CRITIC_VERSION` | `src\u002Fllm\u002Fprompt-builder.ts` | `critic-\u003CvN>.md` | `critic-\u003CvN>` |\n| Agent brain | `assets\u002Fprompts\u002Fagent-player\u002F` | `AGENT_PLAYER_SET_VERSION` | `src\u002Fagent\u002FagentPrompt.ts` | the set directory `v2\u002F` (`brain.md`, `handbook.md`, `personas\u002F\u003Cname>.md`) | `agent-\u003CvN>` \u002F `agent-\u003CvN>\u002F\u003Cpersona>` |\n| Playtest critic | `assets\u002Fprompts\u002Fagent-critic\u002F` | `AGENT_CRITIC_SET_VERSION` | `src\u002Fagent\u002FcriticPrompt.ts` | the set directory `v2\u002F` (`\u003Ctemplate>.md`: `critic.md`, `persona-review.md`) | `agent-critic-\u003CvN>\u002F\u003Ctemplate>` |\n\nNew families follow the same shape: own folder, a `*_VERSION` constant for a single-file family or a `*_SET_VERSION` constant for a set-based one, `\u003Cfamily>-\u003CvN>.md` files in the first case or a `\u003CvN>\u002F` directory in the second, and a `current_source.md` mirror (single-file) or a `current_source\u002F` directory mirror (set-based — see below).\n\n**Where a version constant lives.** The two `src\u002Fllm\u002Fprompt-builder.ts` families load eagerly at module scope and are boot-critical for the live bot. The two `src\u002Fagent\u002F` families belong to the opt-in agent-player QA adapter (JSON-seam DA-5), which core LLM code must never depend on, so they own their constants and load lazily at gateway construction. Putting them in `prompt-builder.ts` would make a missing harness asset a production boot failure for a path prod never runs. Rules 1-3 below are location-agnostic and bind every family equally. Note the frozen v1 agent brain file is `agent-v1.md`, not `agent-player-v1.md`; renaming it would decouple the filename from rows already stamped `agent-v1`, so the divergence stands deliberately.\n\n## Rules (every family)\n\n1. **Never edit a published version in place** — copy `\u003Cfamily>-\u003Cold>.md` → `\u003Cfamily>-\u003Cnew>.md`, edit the new file, and bump the matching `*_VERSION` constant in the family's owning module (see the Layout table). Keep the old files so past rows stay attributable.\n2. **Always mirror the active file to `current_source.md`** in the same folder — keep it byte-identical to the version the constant points at. It's the canonical \"current\" mirror.\n3. **Version constants are independent.** Bumping `PROMPT_VERSION` does not touch `CRITIC_VERSION`, and vice versa — change only the family you're editing.\n\n## Set-based families\n\nA family whose runtime unit spans several templates fired together for one outcome (e.g. a classify → decide → resolve pipeline) doesn't fit \"one version, one file\" — it needs a **versioned set**: a directory of templates that ships and is stamped as a unit ([[v12-prompt-set-versioning]]).\n\n- **Layout — directory per set:** `assets\u002Fprompts\u002F\u003Cfamily>\u002F\u003CvN>\u002F{template-a,template-b,…}.md`. Every template in the directory belongs to that version; there is no cross-version mixing.\n- **One set-version constant, derived per-call stamps.** A single `*_SET_VERSION` constant (e.g. `PROMPT_SET_VERSION`) names the set; never hand-maintain a version constant per template inside it — that breaks \"the set is stamped together\" and adds bookkeeping for nothing. Per-call telemetry stamps the *stage within the set* as `${version}\u002F${template}` (e.g. `'v12\u002Fcombat'`), derived by a small helper (`stampFor`), never a hardcoded string.\n- **Mirror the active set to a `current_source\u002F` directory.** Generalises the single-file `current_source.md` rule to a set: keep `assets\u002Fprompts\u002F\u003Cfamily>\u002Fcurrent_source\u002F` byte-identical to the version directory the `*_SET_VERSION` constant points at, so `current_source\u002F` is always the canonical \"current\" set no matter what the active version is named. Re-sync it whenever the active set changes.\n- **Never edit a *published* set in place** — once a set has produced attributable rows you must preserve (it's live in prod \u002F past the cutover), copy `\u003Cfamily>\u002F\u003Cold>\u002F` → `\u003Cfamily>\u002F\u003Cnew>\u002F`, edit the new directory, bump the `*_SET_VERSION` constant, and re-point `current_source\u002F` at the new version. Keep old set directories so past rows stay attributable. A set still *in development* (pre-cutover, its only rows in a dev DB that gets wiped) may be edited in place — just keep `current_source\u002F` in sync.\n","# Prompt Versioning\n\nEvery LLM prompt is versioned so historical `llm_calls`\u002F`actions` rows stay attributable to the exact prompt that produced them. The same discipline applies to **all** prompt families — don't special-case the decision prompt.\n\n## Layout\n\nEach family lives in `assets\u002Fprompts\u002F\u003Cfamily>\u002F`, loaded from the file matching its version constant, which is stamped on every row it produces. The owning module is the module that reads the prompt, not necessarily `prompt-builder.ts`:\n\n| Family | Folder | Version constant | Owning module | Versioned file | Stamped as |\n| -------- | -------- | ------------------ | --------------- | ---------------- | ------------ |\n| Decision | `assets\u002Fprompts\u002Fdecision-prompts\u002F` | `PROMPT_SET_VERSION` | `src\u002Fllm\u002Fprompt-builder.ts` | the set directory `v14\u002F` (`classify.md`, `decide\u002F*.md`, `resolve\u002F**\u002F*.md`) | `\u003CvN>\u002F\u003Ctemplate>` |\n| Critic | `assets\u002Fprompts\u002Fcritic\u002F` | `CRITIC_VERSION` | `src\u002Fllm\u002Fprompt-builder.ts` | `critic-\u003CvN>.md` | `critic-\u003CvN>` |\n| Agent brain | `assets\u002Fprompts\u002Fagent-player\u002F` | `AGENT_PLAYER_SET_VERSION` | `src\u002Fagent\u002FagentPrompt.ts` | the set directory `v2\u002F` (`brain.md`, `handbook.md`, `personas\u002F\u003Cname>.md`) | `agent-\u003CvN>` \u002F `agent-\u003CvN>\u002F\u003Cpersona>` |\n| Playtest critic | `assets\u002Fprompts\u002Fagent-critic\u002F` | `AGENT_CRITIC_SET_VERSION` | `src\u002Fagent\u002FcriticPrompt.ts` | the set directory `v2\u002F` (`\u003Ctemplate>.md`: `critic.md`, `persona-review.md`) | `agent-critic-\u003CvN>\u002F\u003Ctemplate>` |\n\nNew families follow the same shape: own folder, a `*_VERSION` constant for a single-file family or a `*_SET_VERSION` constant for a set-based one, `\u003Cfamily>-\u003CvN>.md` files in the first case or a `\u003CvN>\u002F` directory in the second, and a `current_source.md` mirror (single-file) or a `current_source\u002F` directory mirror (set-based — see below).\n\n**Where a version constant lives.** The two `src\u002Fllm\u002Fprompt-builder.ts` families load eagerly at module scope and are boot-critical for the live bot. The two `src\u002Fagent\u002F` families belong to the opt-in agent-player QA adapter (JSON-seam DA-5), which core LLM code must never depend on, so they own their constants and load lazily at gateway construction. Putting them in `prompt-builder.ts` would make a missing harness asset a production boot failure for a path prod never runs. Rules 1-3 below are location-agnostic and bind every family equally. Note the frozen v1 agent brain file is `agent-v1.md`, not `agent-player-v1.md`; renaming it would decouple the filename from rows already stamped `agent-v1`, so the divergence stands deliberately.\n\n## Rules (every family)\n\n1. **Never edit a published version in place** — copy `\u003Cfamily>-\u003Cold>.md` → `\u003Cfamily>-\u003Cnew>.md`, edit the new file, and bump the matching `*_VERSION` constant in the family's owning module (see the Layout table). Keep the old files so past rows stay attributable.\n2. **Always mirror the active file to `current_source.md`** in the same folder — keep it byte-identical to the version the constant points at. It's the canonical \"current\" mirror.\n3. **Version constants are independent.** Bumping `PROMPT_VERSION` does not touch `CRITIC_VERSION`, and vice versa — change only the family you're editing.\n\n## Set-based families\n\nA family whose runtime unit spans several templates fired together for one outcome (e.g. a classify → decide → resolve pipeline) doesn't fit \"one version, one file\" — it needs a **versioned set**: a directory of templates that ships and is stamped as a unit ([[v12-prompt-set-versioning]]).\n\n- **Layout — directory per set:** `assets\u002Fprompts\u002F\u003Cfamily>\u002F\u003CvN>\u002F{template-a,template-b,…}.md`. Every template in the directory belongs to that version; there is no cross-version mixing.\n- **One set-version constant, derived per-call stamps.** A single `*_SET_VERSION` constant (e.g. `PROMPT_SET_VERSION`) names the set; never hand-maintain a version constant per template inside it — that breaks \"the set is stamped together\" and adds bookkeeping for nothing. Per-call telemetry stamps the *stage within the set* as `${version}\u002F${template}` (e.g. `'v12\u002Fcombat'`), derived by a small helper (`stampFor`), never a hardcoded string.\n- **Mirror the active set to a `current_source\u002F` directory.** Generalises the single-file `current_source.md` rule to a set: keep `assets\u002Fprompts\u002F\u003Cfamily>\u002Fcurrent_source\u002F` byte-identical to the version directory the `*_SET_VERSION` constant points at, so `current_source\u002F` is always the canonical \"current\" set no matter what the active version is named. Re-sync it whenever the active set changes.\n- **Never edit a *published* set in place** — once a set has produced attributable rows you must preserve (it's live in prod \u002F past the cutover), copy `\u003Cfamily>\u002F\u003Cold>\u002F` → `\u003Cfamily>\u002F\u003Cnew>\u002F`, edit the new directory, bump the `*_SET_VERSION` constant, and re-point `current_source\u002F` at the new version. Keep old set directories so past rows stay attributable. A set still *in development* (pre-cutover, its only rows in a dev DB that gets wiped) may be edited in place — just keep `current_source\u002F` in sync.\n",{"name":5,"paths":24,"description":7,"allowed-tools":29},[25,26,27,28],"assets\u002Fprompts\u002F**","src\u002Fllm\u002Fprompt-builder.ts","src\u002Fagent\u002FagentPrompt.ts","src\u002Fagent\u002FcriticPrompt.ts","Read, Write, Edit, Glob, Grep","dev","96f5ffb582420679625efdf337d44e9ddfcd7c97",".pi\u002Fskills\u002Fprompt-versioning","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel","https:\u002F\u002Fgithub.com\u002FWernerVdM97","informationalism enthusiast","2026-11-14 17:25:05",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add WernerVdM97\u002Fdaily-pixel --skill prompt-versioning",{"tool":43,"command":44},"bunx","bunx skills add WernerVdM97\u002Fdaily-pixel --skill prompt-versioning",{"tool":46,"command":47},"pnpm","pnpm dlx skills add WernerVdM97\u002Fdaily-pixel --skill prompt-versioning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002F.pi\u002Fskills\u002Fprompt-versioning\u002FSKILL.md",true,[],[52,58,63,68,73,78],{"skillNo":53,"name":54,"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":55,"categories":56,"keywords":57,"publishedAt":19},"01M75JS5K1AHJ25E4XCKRGG38P","decide","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002Fassets\u002Fprompts\u002Fdecision-prompts\u002Fv14\u002Fdecide\u002Fskill.md",[],[],{"skillNo":59,"name":54,"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":60,"categories":61,"keywords":62,"publishedAt":19},"01M75JS47KQ0Y0J7GKJGP05CJW","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002Fassets\u002Fprompts\u002Fdecision-prompts\u002Fv13\u002Fdecide\u002Fskill.md",[],[],{"skillNo":64,"name":54,"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":65,"categories":66,"keywords":67,"publishedAt":19},"01M75JS2SGKV3FX5F2GY769FY0","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002Fassets\u002Fprompts\u002Fdecision-prompts\u002Fv12\u002Fdecide\u002Fskill.md",[],[],{"skillNo":69,"name":54,"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":70,"categories":71,"keywords":72,"publishedAt":19},"01M75JS08B4RD30N35BYPP2BF8","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002Fassets\u002Fprompts\u002Fdecision-prompts\u002Fcurrent_source\u002Fdecide\u002Fskill.md",[],[],{"skillNo":74,"name":54,"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":75,"categories":76,"keywords":77,"publishedAt":19},"01M75JRYYS3CASN8Q84SZEKCHE","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002Fassets\u002Fprompts\u002Fdecision-prompts\u002F__test-partial__\u002Fdecide\u002Fskill.md",[],[],{"skillNo":79,"name":80,"nameZh":6,"description":81,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":82,"categories":83,"keywords":84,"publishedAt":19},"01M75JRW7DRDGXRK7CDQ9HKP3D","releasing","Branch model, POC-beta versioning, and the full cut-a-release procedure for The Warden's Oak. Use when committing\u002Fbranching, merging dev→main, bumping VERSION, writing release notes, or tagging a release.","https:\u002F\u002Fgithub.com\u002FWernerVdM97\u002Fdaily-pixel\u002Fblob\u002Fdev\u002F.pi\u002Fskills\u002Freleasing\u002FSKILL.md",[],[]]