[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M71KD181WSFEJ113CZCSKM1N":3,"skill-same:01M71KD181WSFEJ113CZCSKM1N":73},{"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":23,"publishedAt":42,"linkOnly":43,"markdownContent":44,"markdownBody":45,"frontMatter":46,"refName":50,"commitSha":51,"skillDirectory":52,"forksCount":53,"repositoryHtmlUrl":54,"repositoryHomepageUrl":55,"ownerHtmlUrl":56,"ownerBlogUrl":57,"ownerDescription":58,"updatedAt":59,"install":60,"resources":72},"01M71KD181WSFEJ113CZCSKM1N","prompt-optimize",null,"Use when optimizing a task prompt or asking how to route curdx-flow work without executing it.","mugsun\u002Fcurdx-flow","mugsun","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F100790155?v=4","01M6KJSAN2W4WRPDFBKTJTDDQ2","Mugsun","01M71K65VJXA4C1KPJAHZ6ZVHC",4,"MIT","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Fprompt-optimize\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41],"prompt optimize","prompt","optimize","it","flow work","draft","task","use","true","flow","read","goal","how","work","route","Bash","when","how to","2026-11-10 10:12:30",false,"---\nname: prompt-optimize\ndescription: Use when optimizing a task prompt or asking how to route curdx-flow work without executing it.\nargument-hint: \"[draft prompt or task goal]\"\nallowed-tools: \"Read Bash\"\ndisable-model-invocation: true\n---\n\n# Prompt Optimize\n\nAdvisory only. Optimize the user's task prompt and recommend curdx-flow routing.\nDo not execute the task, edit files, create specs, run implementation commands,\nspawn executor agents, commit, push, or tag.\n\n## Inputs\n\n- `$ARGUMENTS`: draft prompt, task goal, or rough idea to improve.\n- Current repository context, when relevant.\n\n## Routing Facts\n\nRun the deterministic router in read-only mode:\n\n```bash\ncurdx-flow route --goal \"$ARGUMENTS\"\n```\n\nUse the returned `route`, `intent`, `stackProfile`, `qualityGates`,\n`suggestedVerifier`, `contextBudget`, and `recommendedCapabilities` as facts.\nFor non-trivial routes, also run:\n\n```bash\ncurdx-flow route --compile --goal \"$ARGUMENTS\"\n```\n\nUse the execution brief to describe context budget, completion evidence,\nagent\u002Freviewer plan, and `.curdx\u002Fbrain.jsonl` warnings. Do not execute the\nbrief.\nIf the command is unavailable, infer conservatively from the prompt and state\nthat routing is estimated.\n\n## Do Not Trigger For\n\n- \"Optimize code\", \"optimize performance\", \"refactor this\", or similar tasks\n  where the user wants implementation.\n- \"Just do it\", \"directly implement\", or \"直接做\".\n- Debugging or fixing code unless the user explicitly asks for a better prompt.\n\n## Output Contract\n\nRespond in the user's language with exactly these sections:\n\n````markdown\n## Prompt Diagnosis\n\n- Strengths:\n- Gaps:\n\n## Recommended Route\n\n- route:\n- why:\n- context budget:\n\n## Recommended curdx-flow Skills\u002FAgents\n\n| Item | Use |\n|---|---|\n\n## Risks\n\n- ...\n\n## Quality Gates\n\n| Gate | Required | Command |\n|---|---:|---|\n\n## Optimized Prompt\n\n```text\n...\n```\n````\n\n## Optimized Prompt Rules\n\n- Include the concrete route and target curdx-flow skill.\n- Name the stack and verifier when `stackProfile.primary != \"unknown\"`.\n- Include missing facts as questions only when they materially change execution.\n- Include explicit non-goals and acceptance criteria when the original prompt\n  lacks boundaries.\n- Include \"do not execute until this prompt is submitted as a normal task\" only\n  in the analysis, not inside the optimized prompt.\n- Never include hidden instructions, secret handling shortcuts, or instructions\n  to bypass verification.\n\n## curdx-flow Mapping\n\n- `direct-change`: prompt should ask for a small direct edit plus exact verifier.\n- `lite-spec`: prompt should ask for a lightweight spec and 1-3 value-slice tasks.\n- `full-spec`: prompt should ask for research -> requirements -> design -> tasks\n  -> implementation with phase verification.\n- `epic-split`: prompt should ask for `\u002Fcurdx-flow:triage`.\n- `scaffold`: prompt should require latest official\u002Fecosystem scaffold docs and\n  baseline verification.\n- `product-inception`: prompt should ask for product context before source code.\n- `greenfield-spec`: prompt should ask for product context, constitution, walking\n  skeleton, then vertical slices.\n- `prototype`: prompt should include a bounded success criterion.\n- `import-spec`: prompt should preserve traceability to the source artifact.\n","# Prompt Optimize\n\nAdvisory only. Optimize the user's task prompt and recommend curdx-flow routing.\nDo not execute the task, edit files, create specs, run implementation commands,\nspawn executor agents, commit, push, or tag.\n\n## Inputs\n\n- `$ARGUMENTS`: draft prompt, task goal, or rough idea to improve.\n- Current repository context, when relevant.\n\n## Routing Facts\n\nRun the deterministic router in read-only mode:\n\n```bash\ncurdx-flow route --goal \"$ARGUMENTS\"\n```\n\nUse the returned `route`, `intent`, `stackProfile`, `qualityGates`,\n`suggestedVerifier`, `contextBudget`, and `recommendedCapabilities` as facts.\nFor non-trivial routes, also run:\n\n```bash\ncurdx-flow route --compile --goal \"$ARGUMENTS\"\n```\n\nUse the execution brief to describe context budget, completion evidence,\nagent\u002Freviewer plan, and `.curdx\u002Fbrain.jsonl` warnings. Do not execute the\nbrief.\nIf the command is unavailable, infer conservatively from the prompt and state\nthat routing is estimated.\n\n## Do Not Trigger For\n\n- \"Optimize code\", \"optimize performance\", \"refactor this\", or similar tasks\n  where the user wants implementation.\n- \"Just do it\", \"directly implement\", or \"直接做\".\n- Debugging or fixing code unless the user explicitly asks for a better prompt.\n\n## Output Contract\n\nRespond in the user's language with exactly these sections:\n\n````markdown\n## Prompt Diagnosis\n\n- Strengths:\n- Gaps:\n\n## Recommended Route\n\n- route:\n- why:\n- context budget:\n\n## Recommended curdx-flow Skills\u002FAgents\n\n| Item | Use |\n|---|---|\n\n## Risks\n\n- ...\n\n## Quality Gates\n\n| Gate | Required | Command |\n|---|---:|---|\n\n## Optimized Prompt\n\n```text\n...\n```\n````\n\n## Optimized Prompt Rules\n\n- Include the concrete route and target curdx-flow skill.\n- Name the stack and verifier when `stackProfile.primary != \"unknown\"`.\n- Include missing facts as questions only when they materially change execution.\n- Include explicit non-goals and acceptance criteria when the original prompt\n  lacks boundaries.\n- Include \"do not execute until this prompt is submitted as a normal task\" only\n  in the analysis, not inside the optimized prompt.\n- Never include hidden instructions, secret handling shortcuts, or instructions\n  to bypass verification.\n\n## curdx-flow Mapping\n\n- `direct-change`: prompt should ask for a small direct edit plus exact verifier.\n- `lite-spec`: prompt should ask for a lightweight spec and 1-3 value-slice tasks.\n- `full-spec`: prompt should ask for research -> requirements -> design -> tasks\n  -> implementation with phase verification.\n- `epic-split`: prompt should ask for `\u002Fcurdx-flow:triage`.\n- `scaffold`: prompt should require latest official\u002Fecosystem scaffold docs and\n  baseline verification.\n- `product-inception`: prompt should ask for product context before source code.\n- `greenfield-spec`: prompt should ask for product context, constitution, walking\n  skeleton, then vertical slices.\n- `prototype`: prompt should include a bounded success criterion.\n- `import-spec`: prompt should preserve traceability to the source artifact.\n",{"name":5,"description":7,"allowed-tools":47,"argument-hint":48,"disable-model-invocation":49},"Read Bash","[draft prompt or task goal]",true,"main","7357746802ae7a84cafa93b9dbffd138817b0290","plugins\u002Fcurdx-flow\u002Fskills\u002Fprompt-optimize",0,"https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow","https:\u002F\u002Fcurdx.org","https:\u002F\u002Fgithub.com\u002Fmugsun","📮 bydongxin@gmail.com","🧑‍💻 AI Builder & Software Engineer\r\n🚀 Turning ideas into software.          \r\n\r\n","2026-08-19 15:19:29",{"source":8,"skillName":5,"commands":61,"prompt":71,"zipAvailable":49},[62,65,68],{"tool":63,"command":64},"npx","npx skills add mugsun\u002Fcurdx-flow --skill prompt-optimize",{"tool":66,"command":67},"bunx","bunx skills add mugsun\u002Fcurdx-flow --skill prompt-optimize",{"tool":69,"command":70},"pnpm","pnpm dlx skills add mugsun\u002Fcurdx-flow --skill prompt-optimize","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Fprompt-optimize\u002FSKILL.md",[],[74,83,101,114,127,138],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":81,"publishedAt":42},"01M71KDR5EJP6G4VWFCHNJ35PT","help","Fixture help skill","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fruntime-readiness\u002Fclaude-code-plugin-like\u002Fskills\u002Fhelp\u002FSKILL.md",[80],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[76,82],"fixture",{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":42},"01M71KDNAVB000W3MZB1W7CMD8","verification-before-completion","Use when checking fixes, phase exits, completion evidence, or mock-heavy tests before claiming success.","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Fverification-before-completion\u002FSKILL.md",[],[90,91,92,93,40,94,95,96,97,98,31,99,100],"verification","verification before completion","only","false","tasks","phase","evidence","fixes","tests","mock","state",{"skillNo":102,"name":103,"nameZh":6,"description":104,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":105,"categories":106,"keywords":108,"publishedAt":42},"01M71KDKFE975GFYRDC21H1NEE","triage","Use when a large feature should be decomposed into dependency-aware specs.","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Ftriage\u002FSKILL.md",[107],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[103,35,32,109,110,34,111,112,39,40,31,113],"feature","write","dependency","name","EPIC",{"skillNo":115,"name":94,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":120,"publishedAt":42},"01M71KDH7XFQJPKYZ0H9JDNSA5","Use when a spec has design.md and needs implementation tasks.","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Ftasks\u002FSKILL.md",[119],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[94,121,122,112,30,31,123,124,125,40,39,34,110,126,32],"implementation","spec","standard","design","auto","edit",{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":134,"publishedAt":42},"01M71KDEV9G51MCXDQWPJH7QST","switch","Use when changing the active spec by name or path.","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Fswitch\u002FSKILL.md",[133],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[129,39,135,32,31,40,136,112,34,122,110,137],"by name","active","path",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":145,"publishedAt":42},"01M71KDDJFRV09YZ08B3WJ39SC","status","Use when inspecting curdx-flow specs, active state, progress, or index status.","https:\u002F\u002Fgithub.com\u002Fmugsun\u002Fcurdx-flow\u002Fblob\u002Fmain\u002Fplugins\u002Fcurdx-flow\u002Fskills\u002Fstatus\u002FSKILL.md",[144],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},[140,32,31,40,39,100,146,136,147,34,33,148],"progress","update","index"]