Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add i-stack/ai-coding-kit --skill prompt-optimizergit clone --depth 1 https://github.com/i-stack/ai-coding-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/i-stack/ai-coding-kit/prompt-optimizer)<a href="https://agentmods.dev/skills/i-stack/ai-coding-kit/prompt-optimizer"><img src="https://agentmods.dev/badge/skills/i-stack/ai-coding-kit/prompt-optimizer/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/i-stack/ai-coding-kit/prompt-optimizer"><img src="https://agentmods.dev/badge/skills/i-stack/ai-coding-kit/prompt-optimizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00146 | $0.01096 |
| Opus 5.5 | $0.00058 | $0.00438 |
| Sonnet 5.5 | $0.00029 | $0.00219 |
| Haiku 4.5 | $0.00015 | $0.00110 |
Grade A, and why
prompt-optimizer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
What it actually says
Prompt Optimizer
强制入口
命中本 skill 时,必须先完整阅读 references/prompt_optimizer.md 并按其中条款执行。
- 不得以 preamble、规则摘要或其它二次摘要代替该文件全文。
- 盘问规则复用
plan-grill的 interview 子集(PG-000 门控 + PG-001PG-003 逐一盘问,不复用 PG-004 锁定产出,故不产出 PLAN.md),历史召回复用HR-005),本 skill 不内联重复这两套规则,只做「澄清 + 改写 + 展示 + 回答 + 回写」这层增量。historical-recall(HR-001
六条核心规则
- [POPT-001] 触发门控:仅主动触发(
@prompt-optimizer或「帮我优化提问」「优化这个 prompt」「改写我的问题」),不做「发送时自动拦截」。 - [POPT-002] 历史召回:改写前针对原始提问 recall 相似历史;历史澄清结论仅作待验证线索,据此跳过盘问须标注「未澄清假设(来源:历史线索)」。
- [POPT-003] 盘问判定与澄清:复用 plan-grill PG-000 门控 + PG-001~PG-003(仅 interview,不产出 PLAN.md),存在阻塞性歧义时先逐一盘问澄清,无歧义直接改写。
- [POPT-004] 改写:宿主 AI 基于「盘问澄清 + 历史线索」把原始提问重写为结构化高质量提示词,并满足改写验收判据。
- [POPT-005] 透明确认与回答:先展示优化后提示词并以「请确认或修正以上优化稿;确认前不回答原问题。」收尾;确认前不回答原问题,确认后基于它回答;用户显式跳过确认时仍先展示优化稿、标注「未确认假设」后基于优化稿作答,改写改变对象或事实前提时不得跳过。
- [POPT-006] 回写闭环:把原始提问、澄清结论、优化后提示词分别归档到
.plan-reviews/<date-slug>/下的QUESTION.md/CLARIFICATION.md/OPTIMIZED.md(PROMPT-OPTIMIZATION.md仅存一行标题;OPTIMIZED.md容纳确认版 / 修正版 / 豁免确认版)并sync回灌知识库。
细则见 references/prompt_optimizer.md,规则 ID 真值登记在 references/rule_index.md。
入口语义
- 主动触发:用户输入「帮我优化提问」「优化这个 prompt」「改写我的问题」或
@prompt-optimizer。 - 不触发:普通对话、事实查询、代码生成等未请求优化的输入;本 skill 不做「发送时自动拦截」,不参与非优化类任务的执行。
与相邻 skill 的分工
| Skill | 分工 |
|---|---|
historical-recall |
动手前召回 .plan-reviews/ 历史线索(POPT-002 委托其 recall,自身只读) |
plan-grill |
需求盘问(POPT-003 委托其 PG-000 门控 + PG-001~003;仅 interview,不产出 PLAN.md) |
| prompt-optimizer(本 skill) | 澄清后改写提问、透明展示、基于优化版回答、回写闭环 |
cognitive-reasoning |
回答环节的论证质量与真值接地(正交约束,不改变本 skill 流程) |
What ships with it
4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 24d ago First seen · 42 lines · 146 tokens per session scan A c055f6bc2a30
prompt-optimizer is a skill published in the GitHub repository i-stack/ai-coding-kit (3 stars, last pushed 11d ago), licensed MIT. It adds 146 tokens to every session and 1,096 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-06.
prompt-optimizer compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| prompt-optimizeri-stack/ai-coding-kit | Skill | 3 | 11d ago | MIT | A | 146 | Claude Code |
| agent-creatorhotovo/aider-desk | Skill | 1.5k | 9d ago | Apache-2.0 | A | 60 | Claude Code, Codex |
| writing-testshotovo/aider-desk | Skill | 1.5k | 9d ago | Apache-2.0 | A | 48 | Claude Code, Codex |
| githits-mcpgithits-com/githits-cli | Skill | 144 | today | Apache-2.0 | A | 48 | Claude Code |
| ppt-design-skillsunchaokun/PPT-Design-Skill | Skill | 531 | 2mo ago | MIT | A | 35 | Codex |
| hunk-reviewkodustech/kodus-ai | Skill | 1.7k | today | none | A | 69 | Claude Code, Codex |
| kodus-review-settingskodustech/kodus-ai | Skill | 1.7k | today | none | A | 92 | Claude Code, Codex |