[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M75EF3QMQHD329CBDVNJH38S":3,"skill-same:01M75EF3QMQHD329CBDVNJH38S":62},{"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":6,"ownerDescription":6,"updatedAt":29,"install":30,"resources":43},"01M75EF3QMQHD329CBDVNJH38S","prompt-optimization",null,"Use when the user asks to optimize, improve, harden, or tighten a prompt; when \u002Foptimize-prompt is invoked; when a user hands over a rough prompt to be made AI-ready; when a prompt is described as vague, incomplete, or missing guardrails; or when the user asks for help making a prompt \"production-ready\" or \"model-ready.\"","WatsonWBlair\u002Flab-claude-plugins","WatsonWBlair","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F11588551?v=4","01M75EE977HTGZENYCP8VWPHFF","Watson Blair","01M75EE988475NPVGNQR2C11J7",1,"MIT","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: prompt-optimization\ndescription: Use when the user asks to optimize, improve, harden, or tighten a prompt; when \u002Foptimize-prompt is invoked; when a user hands over a rough prompt to be made AI-ready; when a prompt is described as vague, incomplete, or missing guardrails; or when the user asks for help making a prompt \"production-ready\" or \"model-ready.\"\n---\n\n# prompt-optimization\n\n> **Single-source note:** This skill contains no clause text and no rubric content. Library clauses live in `reference\u002Fboilerplate-library.md`; augment selection logic lives in `reference\u002Faugment-heuristics.md`; rewrite structure and interview rules live in `reference\u002Frewrite-rubric.md`. This file is the router and mode-selection surface only.\n\n## Overview\n\nThis skill optimizes a prompt in one of two modes — **augment** (add hardening boilerplate to the original) or **rewrite** (produce a full AI-ready restructure) — and presents a clear record of what changed and why so the user can audit the result.\n\nThe skill does not depend on a loop framework. The clarifying-question interview in rewrite mode is a normal conversational turn — a bounded question set in a single response, followed by the user's reply — not a ralph-style re-feed loop. No `ralph-loop` dependency is needed or declared.\n\n---\n\n## Input channel\n\nThe prompt to be optimized is taken from:\n\n1. The command argument when invoked as `\u002Foptimize-prompt \u003Cprompt>` (or with flags: `\u002Foptimize-prompt --augment \u003Cprompt>`, `\u002Foptimize-prompt --rewrite \u003Cprompt>`).\n2. When no argument is given, the most recent user message in the conversation.\n\n---\n\n## Mode-selection contract\n\nMode is determined in this priority order:\n\n1. **Explicit flag** — `--augment` or `--rewrite` in the invocation. An explicit flag always wins; skip inference.\n2. **Inferred intent** — when no flag is given, read the user's request for signals:\n   - Signals toward **rewrite**: user says \"rewrite,\" \"restructure,\" \"make this AI-ready from scratch,\" \"completely redo,\" or the prompt is so thin that augmentation would add more text than the original.\n   - Signals toward **augment**: user says \"add guardrails,\" \"harden,\" \"tighten,\" \"what clauses should I add,\" or the prompt already has substantial structure worth preserving.\n   - Intent is genuinely ~50\u002F50: **default to augment** — augment is the least-surprising, non-destructive choice (it preserves the author's wording; a rewrite discards it). This default is confirmed and does not require re-asking.\n3. **State the selected mode** before doing any work. One sentence is sufficient: \"Running in augment mode — adding hardening clauses to your prompt.\" Do not proceed until the mode is stated.\n\nThe user may override after seeing the mode statement; if they do, re-run in the requested mode without requiring a new invocation.\n\n---\n\n## Augment branch\n\nWhen augment mode is selected:\n\n1. Load [`reference\u002Faugment-heuristics.md`](reference\u002Faugment-heuristics.md). That file is the operative logic; follow it exactly.\n2. Follow the augment heuristics to classify the prompt shape, evaluate each library entry's applicability, apply the conflict-suppression rule, and check for contradictions with the original prompt's instructions. Clause text is always fetched verbatim from [`reference\u002Fboilerplate-library.md`](reference\u002Fboilerplate-library.md) — never paraphrased.\n3. Return the result in this order:\n   - The original prompt, unchanged.\n   - A clearly labelled append-block (e.g. `## Augmentation`) containing the applied clauses in verbatim form.\n   - The enumeration required by the augment heuristics output contract: applied clauses (id, provenance, applicability match reason) and suppressed clauses (id, suppression reason).\n\nDo not restructure, rephrase, or rewrite any part of the original prompt. If the prompt is so under-specified that no library entry is applicable, state that and suggest rewrite mode instead.\n\n---\n\n## Rewrite branch\n\nWhen rewrite mode is selected:\n\n1. Load [`reference\u002Frewrite-rubric.md`](reference\u002Frewrite-rubric.md). That file is the operative logic; follow it exactly.\n2. Run the ambiguity test (Section 2 of the rubric) on the source prompt. The test may pass or trip:\n   - **Test passes** (prompt is sufficiently clear): proceed to the rewrite.\n   - **Test trips** (one or more ambiguity conditions hold): enter the interview branch (Section 3 of the rubric). Ask a bounded, specific question set — ceiling of five questions — in a single response and wait for the user's reply. Do not re-feed autonomously. The interview is a normal conversational turn.\n3. Produce the rewrite output per the rubric's Section 4 output contract:\n   - The optimized prompt as a standalone block satisfying all four rubric elements (goal, success criterion, scope boundary, output contract).\n   - A labeled rationale section naming the structural changes made, any inferences drawn from context, and any assumptions stated when the interview ceiling was reached.\n\nDo not embed clause text from the boilerplate library directly in the rewritten prompt unless the user requests it; rewrite mode restructures the prompt, it does not paste augment clauses.\n\n---\n\n## Reference files\n\n- [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fprompt-optimization\u002Freference\u002Fboilerplate-library.md`](reference\u002Fboilerplate-library.md) — the single source for all hardening clause text and entry metadata (applicability, conflict, provenance). Augment branch reads clause text from here.\n- [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fprompt-optimization\u002Freference\u002Faugment-heuristics.md`](reference\u002Faugment-heuristics.md) — augment-mode selection logic: prompt shape classification, context-awareness rule, conflict-suppression rule, output contract.\n- [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fprompt-optimization\u002Freference\u002Frewrite-rubric.md`](reference\u002Frewrite-rubric.md) — rewrite-mode structure: four required elements of an AI-ready prompt, the ambiguity test, interview branch rules, rewrite output contract.\n","# prompt-optimization\n\n> **Single-source note:** This skill contains no clause text and no rubric content. Library clauses live in `reference\u002Fboilerplate-library.md`; augment selection logic lives in `reference\u002Faugment-heuristics.md`; rewrite structure and interview rules live in `reference\u002Frewrite-rubric.md`. This file is the router and mode-selection surface only.\n\n## Overview\n\nThis skill optimizes a prompt in one of two modes — **augment** (add hardening boilerplate to the original) or **rewrite** (produce a full AI-ready restructure) — and presents a clear record of what changed and why so the user can audit the result.\n\nThe skill does not depend on a loop framework. The clarifying-question interview in rewrite mode is a normal conversational turn — a bounded question set in a single response, followed by the user's reply — not a ralph-style re-feed loop. No `ralph-loop` dependency is needed or declared.\n\n---\n\n## Input channel\n\nThe prompt to be optimized is taken from:\n\n1. The command argument when invoked as `\u002Foptimize-prompt \u003Cprompt>` (or with flags: `\u002Foptimize-prompt --augment \u003Cprompt>`, `\u002Foptimize-prompt --rewrite \u003Cprompt>`).\n2. When no argument is given, the most recent user message in the conversation.\n\n---\n\n## Mode-selection contract\n\nMode is determined in this priority order:\n\n1. **Explicit flag** — `--augment` or `--rewrite` in the invocation. An explicit flag always wins; skip inference.\n2. **Inferred intent** — when no flag is given, read the user's request for signals:\n   - Signals toward **rewrite**: user says \"rewrite,\" \"restructure,\" \"make this AI-ready from scratch,\" \"completely redo,\" or the prompt is so thin that augmentation would add more text than the original.\n   - Signals toward **augment**: user says \"add guardrails,\" \"harden,\" \"tighten,\" \"what clauses should I add,\" or the prompt already has substantial structure worth preserving.\n   - Intent is genuinely ~50\u002F50: **default to augment** — augment is the least-surprising, non-destructive choice (it preserves the author's wording; a rewrite discards it). This default is confirmed and does not require re-asking.\n3. **State the selected mode** before doing any work. One sentence is sufficient: \"Running in augment mode — adding hardening clauses to your prompt.\" Do not proceed until the mode is stated.\n\nThe user may override after seeing the mode statement; if they do, re-run in the requested mode without requiring a new invocation.\n\n---\n\n## Augment branch\n\nWhen augment mode is selected:\n\n1. Load [`reference\u002Faugment-heuristics.md`](reference\u002Faugment-heuristics.md). That file is the operative logic; follow it exactly.\n2. Follow the augment heuristics to classify the prompt shape, evaluate each library entry's applicability, apply the conflict-suppression rule, and check for contradictions with the original prompt's instructions. Clause text is always fetched verbatim from [`reference\u002Fboilerplate-library.md`](reference\u002Fboilerplate-library.md) — never paraphrased.\n3. Return the result in this order:\n   - The original prompt, unchanged.\n   - A clearly labelled append-block (e.g. `## Augmentation`) containing the applied clauses in verbatim form.\n   - The enumeration required by the augment heuristics output contract: applied clauses (id, provenance, applicability match reason) and suppressed clauses (id, suppression reason).\n\nDo not restructure, rephrase, or rewrite any part of the original prompt. If the prompt is so under-specified that no library entry is applicable, state that and suggest rewrite mode instead.\n\n---\n\n## Rewrite branch\n\nWhen rewrite mode is selected:\n\n1. Load [`reference\u002Frewrite-rubric.md`](reference\u002Frewrite-rubric.md). That file is the operative logic; follow it exactly.\n2. Run the ambiguity test (Section 2 of the rubric) on the source prompt. The test may pass or trip:\n   - **Test passes** (prompt is sufficiently clear): proceed to the rewrite.\n   - **Test trips** (one or more ambiguity conditions hold): enter the interview branch (Section 3 of the rubric). Ask a bounded, specific question set — ceiling of five questions — in a single response and wait for the user's reply. Do not re-feed autonomously. The interview is a normal conversational turn.\n3. Produce the rewrite output per the rubric's Section 4 output contract:\n   - The optimized prompt as a standalone block satisfying all four rubric elements (goal, success criterion, scope boundary, output contract).\n   - A labeled rationale section naming the structural changes made, any inferences drawn from context, and any assumptions stated when the interview ceiling was reached.\n\nDo not embed clause text from the boilerplate library directly in the rewritten prompt unless the user requests it; rewrite mode restructures the prompt, it does not paste augment clauses.\n\n---\n\n## Reference files\n\n- [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fprompt-optimization\u002Freference\u002Fboilerplate-library.md`](reference\u002Fboilerplate-library.md) — the single source for all hardening clause text and entry metadata (applicability, conflict, provenance). Augment branch reads clause text from here.\n- [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fprompt-optimization\u002Freference\u002Faugment-heuristics.md`](reference\u002Faugment-heuristics.md) — augment-mode selection logic: prompt shape classification, context-awareness rule, conflict-suppression rule, output contract.\n- [`${CLAUDE_PLUGIN_ROOT}\u002Fskills\u002Fprompt-optimization\u002Freference\u002Frewrite-rubric.md`](reference\u002Frewrite-rubric.md) — rewrite-mode structure: four required elements of an AI-ready prompt, the ambiguity test, interview branch rules, rewrite output contract.\n",{"name":5,"description":7},"main","96661862dc562a393000885c124a5ecac4436e10","plugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins","https:\u002F\u002Fgithub.com\u002FWatsonWBlair","2026-09-18 05:11:49",{"source":8,"skillName":5,"commands":31,"prompt":41,"zipAvailable":42},[32,35,38],{"tool":33,"command":34},"npx","npx skills add WatsonWBlair\u002Flab-claude-plugins --skill prompt-optimization",{"tool":36,"command":37},"bunx","bunx skills add WatsonWBlair\u002Flab-claude-plugins --skill prompt-optimization",{"tool":39,"command":40},"pnpm","pnpm dlx skills add WatsonWBlair\u002Flab-claude-plugins --skill prompt-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization\u002FSKILL.md",true,[44,50,54,58],{"path":45,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":48,"sourceHtmlUrl":49},"reference\u002Faugment-heuristics.md","REFERENCE","参考文档",10372,"https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization\u002Freference\u002Faugment-heuristics.md",{"path":51,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":52,"sourceHtmlUrl":53},"reference\u002Fboilerplate-library.md",10018,"https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization\u002Freference\u002Fboilerplate-library.md",{"path":55,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":56,"sourceHtmlUrl":57},"reference\u002Frewrite-rubric.md",10026,"https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization\u002Freference\u002Frewrite-rubric.md",{"path":59,"resourceType":46,"resourceTypeDesc":47,"sizeBytes":60,"sourceHtmlUrl":61},"reference\u002Fvalidation-notes.md",17072,"https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fprompt-optimization\u002Fskills\u002Fprompt-optimization\u002Freference\u002Fvalidation-notes.md",[63,70,77,84,91,98],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":19},"01M75EF0VG9XYWB3H9JKJN42RA","pr-review-loop","Use when driving a multi-pass PR review to a merge bar; when the user invokes \u002Fpr-review-loop; when a review pass returned critical findings that need fixing followed by another review; when iterative PR review-fix cycles need to run mostly hands-off.","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fpr-review-loop\u002Fskills\u002Fpr-review-loop\u002FSKILL.md",[],[],{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M75EEX7SVPNYZ2GR0FS49WWJ","improve-codebase-architecture","Scan a codebase for deepening opportunities, present them as a visual HTML report, then grill through whichever one you pick.","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-discipline\u002Fskills\u002Fimprove-codebase-architecture\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":19},"01M75EETCSKT40TF1DR4HZKWWQ","handoff","Compact the current conversation into a handoff document for another agent to pick up.","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-discipline\u002Fskills\u002Fhandoff\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":19},"01M75EERHEFP1DXC49PRYQBYDZ","grilling","Interview the user relentlessly about a plan or design. Use when the user wants to stress-test a plan before building, or uses any 'grill' trigger phrases.","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-discipline\u002Fskills\u002Fgrilling\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":19},"01M75EEPQ8132MPKGJ51RBK4Q3","grill-with-docs","A relentless interview to sharpen a plan or design, which also maintains the repo's GLOSSARY.md and logs load-bearing decisions as you go.","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-discipline\u002Fskills\u002Fgrill-with-docs\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M75EEMQTFVF6D4BS7RTH4AM9","grill-me","A relentless interview to sharpen a plan or design.","https:\u002F\u002Fgithub.com\u002FWatsonWBlair\u002Flab-claude-plugins\u002Fblob\u002Fmain\u002Fplugins\u002Fengineering-discipline\u002Fskills\u002Fgrill-me\u002FSKILL.md",[],[]]