[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F1CTVJHTW8X080CSY5GVDH":3,"skill-same:01M7F1CTVJHTW8X080CSY5GVDH":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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":47},"01M7F1CTVJHTW8X080CSY5GVDH","prompt-optimization",null,"Operate ProTeGi text prompt optimization and Promptist text-to-image prompt rewriting workflows for LMOps.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Flmops\u002Fsub-skills\u002Fprompt-optimization\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: prompt-optimization\ndescription: \"Operate ProTeGi text prompt optimization and Promptist\n  text-to-image prompt rewriting workflows for LMOps.\"\ndisable-model-invocation: true\nmetadata:\n  disco-role: operating\nlicense: MIT\n---\n\n# Prompt Optimization\n\nUse this operating sub-skill when the user asks for LMOps prompt optimization, prompt rewriting, or prompt-optimization run planning.\n\n## Route by task shape\n\n- **ProTeGi text prompt optimization**: use for automatic optimization of zero-shot binary classification prompts with labeled train\u002Ftest data, markdown seed prompts, and an approved chat\u002Fcompletion provider budget.\n- **Promptist prompt rewriting**: use for text-to-image prompt rewriting with the pretrained Promptist prompter model, but plan offline first to avoid accidental model downloads.\n- **Promptist RL training**: use only for planning or explicitly approved heavy execution; it needs training prompt data, a supervised prompter checkpoint, Stable Diffusion\u002FCLIP\u002Faesthetic reward assets, Accelerate\u002FTRL, GPUs, and credentials.\n- **Retrieval-based prompt or demonstration selection**: route to `..\u002Fexample-retrieval\u002FSKILL.md`.\n- **Domain\u002Finstruction corpus conversion or model adaptation before prompt work**: route to `..\u002Fadaptation-and-training\u002FSKILL.md`.\n- **Broad LMOps project routing**: consult `..\u002F..\u002Freferences\u002Fproject-index.md` if the user names a different LMOps project.\n\n## Required first checks\n\n1. Classify the request as ProTeGi optimization, Promptist pretrained rewrite planning, Promptist RL training planning, or a route-out case.\n2. Confirm required inputs before any expensive or external action:\n   - ProTeGi: task name, task data directory, seed prompt markdown file(s), output log path, evaluator, scorer, provider credentials, overwrite consent, and budget\u002Fconcurrency limits.\n   - Promptist rewrite: plain text prompt(s), model id, tokenizer id, model cache or network consent, and CPU\u002FGPU expectation for any real model load.\n   - Promptist RL training: data directory, supervised prompter checkpoint, Stable Diffusion model access, TRL\u002FPPO config, checkpoint directory, distributed launch plan, GPU availability, Hugging Face access, and W&B\u002Flogging policy.\n3. Use the bundled safe planners before any source checkout run:\n   - `python scripts\u002Fprotegi_command_builder.py --help`\n   - `python scripts\u002Fpromptist_rewrite_skeleton.py --help`\n4. Read the focused runtime references:\n   - `references\u002Fprotegi-cli-and-api.md`\n   - `references\u002Fpromptist-workflows.md`\n   - `references\u002Ftroubleshooting.md`\n\n## Safe operating defaults\n\n- Do not run model downloads, provider calls, image generation, PPO training, Docker\u002Fcontainer startup, or multi-node launches unless the user explicitly asks and provides the needed environment and credentials.\n- Treat bundled scripts as planners and validators. They do not import LMOps source code, call model providers, load Promptist models, download weights, generate images, or train.\n- Promptist GPU\u002Fmodel-download workflows and multi-node RL training are documented but not creation-time verified by this sub-skill.\n- Treat ProTeGi output files as user data: the native program removes an existing output file before writing, so ask before overwriting.\n\n## Quick ProTeGi planning pattern\n\n1. Choose one of the supported native task names: `ethos`, `jailbreak`, `liar`, or `ar_sarcasm`.\n2. Stage task data in the required layout and one or more seed prompt markdown files with a `# Task` section and `{{ text }}` placeholder.\n3. Build a command without executing it:\n\n```bash\npython scripts\u002Fprotegi_command_builder.py \\\n  --task liar \\\n  --data-dir data\u002Fmy_binary_task \\\n  --prompts prompts\u002Fseed.md \\\n  --out runs\u002Fmy_binary_task.ucb.out \\\n  --evaluator ucb \\\n  --scorer 01 \\\n  --path-policy warn\n```\n\n4. Resolve any warnings, confirm credentials and overwrite behavior, then run the emitted command only in a prepared ProTeGi environment.\n\n## Quick Promptist planning pattern\n\n1. Start with the offline skeleton and keep model loading off:\n\n```bash\npython scripts\u002Fpromptist_rewrite_skeleton.py \\\n  --plain-text \"A rabbit is wearing a space suit\" \\\n  --model-id microsoft\u002FPromptist \\\n  --tokenizer-id gpt2 \\\n  --show-prompts\n```\n\n2. If the user approves a real rewrite run, confirm PyTorch\u002FTransformers availability and whether the Promptist model and tokenizer are already cached or may be downloaded.\n3. If the user asks for RL training, move to the training checklist in `references\u002Fpromptist-workflows.md` and do not treat it as a small smoke test.\n","# Prompt Optimization\n\nUse this operating sub-skill when the user asks for LMOps prompt optimization, prompt rewriting, or prompt-optimization run planning.\n\n## Route by task shape\n\n- **ProTeGi text prompt optimization**: use for automatic optimization of zero-shot binary classification prompts with labeled train\u002Ftest data, markdown seed prompts, and an approved chat\u002Fcompletion provider budget.\n- **Promptist prompt rewriting**: use for text-to-image prompt rewriting with the pretrained Promptist prompter model, but plan offline first to avoid accidental model downloads.\n- **Promptist RL training**: use only for planning or explicitly approved heavy execution; it needs training prompt data, a supervised prompter checkpoint, Stable Diffusion\u002FCLIP\u002Faesthetic reward assets, Accelerate\u002FTRL, GPUs, and credentials.\n- **Retrieval-based prompt or demonstration selection**: route to `..\u002Fexample-retrieval\u002FSKILL.md`.\n- **Domain\u002Finstruction corpus conversion or model adaptation before prompt work**: route to `..\u002Fadaptation-and-training\u002FSKILL.md`.\n- **Broad LMOps project routing**: consult `..\u002F..\u002Freferences\u002Fproject-index.md` if the user names a different LMOps project.\n\n## Required first checks\n\n1. Classify the request as ProTeGi optimization, Promptist pretrained rewrite planning, Promptist RL training planning, or a route-out case.\n2. Confirm required inputs before any expensive or external action:\n   - ProTeGi: task name, task data directory, seed prompt markdown file(s), output log path, evaluator, scorer, provider credentials, overwrite consent, and budget\u002Fconcurrency limits.\n   - Promptist rewrite: plain text prompt(s), model id, tokenizer id, model cache or network consent, and CPU\u002FGPU expectation for any real model load.\n   - Promptist RL training: data directory, supervised prompter checkpoint, Stable Diffusion model access, TRL\u002FPPO config, checkpoint directory, distributed launch plan, GPU availability, Hugging Face access, and W&B\u002Flogging policy.\n3. Use the bundled safe planners before any source checkout run:\n   - `python scripts\u002Fprotegi_command_builder.py --help`\n   - `python scripts\u002Fpromptist_rewrite_skeleton.py --help`\n4. Read the focused runtime references:\n   - `references\u002Fprotegi-cli-and-api.md`\n   - `references\u002Fpromptist-workflows.md`\n   - `references\u002Ftroubleshooting.md`\n\n## Safe operating defaults\n\n- Do not run model downloads, provider calls, image generation, PPO training, Docker\u002Fcontainer startup, or multi-node launches unless the user explicitly asks and provides the needed environment and credentials.\n- Treat bundled scripts as planners and validators. They do not import LMOps source code, call model providers, load Promptist models, download weights, generate images, or train.\n- Promptist GPU\u002Fmodel-download workflows and multi-node RL training are documented but not creation-time verified by this sub-skill.\n- Treat ProTeGi output files as user data: the native program removes an existing output file before writing, so ask before overwriting.\n\n## Quick ProTeGi planning pattern\n\n1. Choose one of the supported native task names: `ethos`, `jailbreak`, `liar`, or `ar_sarcasm`.\n2. Stage task data in the required layout and one or more seed prompt markdown files with a `# Task` section and `{{ text }}` placeholder.\n3. Build a command without executing it:\n\n```bash\npython scripts\u002Fprotegi_command_builder.py \\\n  --task liar \\\n  --data-dir data\u002Fmy_binary_task \\\n  --prompts prompts\u002Fseed.md \\\n  --out runs\u002Fmy_binary_task.ucb.out \\\n  --evaluator ucb \\\n  --scorer 01 \\\n  --path-policy warn\n```\n\n4. Resolve any warnings, confirm credentials and overwrite behavior, then run the emitted command only in a prepared ProTeGi environment.\n\n## Quick Promptist planning pattern\n\n1. Start with the offline skeleton and keep model loading off:\n\n```bash\npython scripts\u002Fpromptist_rewrite_skeleton.py \\\n  --plain-text \"A rabbit is wearing a space suit\" \\\n  --model-id microsoft\u002FPromptist \\\n  --tokenizer-id gpt2 \\\n  --show-prompts\n```\n\n2. If the user approves a real rewrite run, confirm PyTorch\u002FTransformers availability and whether the Promptist model and tokenizer are already cached or may be downloaded.\n3. If the user asks for RL training, move to the training checklist in `references\u002Fpromptist-workflows.md` and do not treat it as a small smoke test.\n",{"name":5,"license":15,"metadata":24,"description":7,"disable-model-invocation":26},{"disco-role":25},"operating",true,"main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","05-技能与代理开发\u002Flmops\u002Fsub-skills\u002Fprompt-optimization",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":26},[37,40,43],{"tool":38,"command":39},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill prompt-optimization",{"tool":41,"command":42},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill prompt-optimization",{"tool":44,"command":45},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill prompt-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Flmops\u002Fsub-skills\u002Fprompt-optimization\u002FSKILL.md",[48,54,58],{"path":49,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":52,"sourceHtmlUrl":53},"references\u002Fpromptist-workflows.md","REFERENCE","参考文档",5410,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Flmops\u002Fsub-skills\u002Fprompt-optimization\u002Freferences\u002Fpromptist-workflows.md",{"path":55,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":56,"sourceHtmlUrl":57},"references\u002Fprotegi-cli-and-api.md",9119,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Flmops\u002Fsub-skills\u002Fprompt-optimization\u002Freferences\u002Fprotegi-cli-and-api.md",{"path":59,"resourceType":50,"resourceTypeDesc":51,"sizeBytes":60,"sourceHtmlUrl":61},"references\u002Ftroubleshooting.md",6086,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F05-技能与代理开发\u002Flmops\u002Fsub-skills\u002Fprompt-optimization\u002Freferences\u002Ftroubleshooting.md",[63,70,75,82,89,96],{"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},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],{"skillNo":71,"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":72,"categories":73,"keywords":74,"publishedAt":19},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":19},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":19},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]