Rewrites a weak prompt into a strong, precise one using only the techniques that empirically improve answers (specification, verification-with-signal, information grounding) — never persona/role-play, which measurably hurt. Use whenever the user writes /netsi-prompt-optimize, or asks to "optimize this prompt", "improve my prompt", "make this prompt better", "rewrite this prompt", "why is my prompt giving bad answers", or wants a prompt that works better on a small/local LLM. Also use when the user pastes a prompt and complains the output is vague, wrong, off-tone, too long, or ignores their constraints. Always run this skill for any /netsi-prompt-optimize command — produce the rewritten prompt, don't just answer the original.
Ingen Claude Code? Hent SKILL.md og indsæt indholdet som din prompt i en hvilken som helst AI-chat.
Turn a weak prompt into a strong one. This skill applies only the levers that
were measured to actually improve LLM answers (especially on small local models):
specification, verification-with-a-real-signal, and information grounding. It
deliberately avoids persona / "imagine you are" / role-relay framing, which added
confident-sounding text and even new errors without improving correctness.
The reasoning and evidence live in references/principles.md.
/netsi-prompt-optimize [the raw prompt to improve]
Examples:
/netsi-prompt-optimize explain spirituality to me simplyIf a prompt follows the command (or is pasted/attached), treat it as the input and optimize it directly — don't ask "what's your prompt?" again.
Talk to the user in the language they write in. But note: for small local models, English instructions inside the prompt were the single biggest quality lever. So the optimized prompt itself may be written in English even when chatting in Danish — tell the user why, and honour any explicit "keep it in Danish" request (the output language is then stated as a constraint inside the prompt).
task.md. If none is present, ask for it in one line.Rewrite the raw prompt into a precise, self-contained prompt that:
Present the result as a fenced, copy-pasteable block titled Optimized prompt, followed by 2–4 bullets on what changed and why (anchored to the rules above).
The default deliverable is the optimized prompt — not the answer. After presenting it (TASK-004), stop and ask whether the user wants you to:
Do not produce the answer until they choose. Only when they ask you to answer:
NO ISSUES.NO ISSUES,
leave the answer unchanged.See references/principles.md for the experiments behind each of these.
By default, deliver only:
Only after the user asks you to answer, append:
Keep it tight. Never jump straight to the answer — the optimized prompt is what this skill returns.
For repeatable use against a local model (Ollama) or the Anthropic API, this skill
bundles a production script: scripts/claude-optimize-prompt.ts. It does exactly
TASK-001→TASK-002 as code (optimize always; critic→revise only when a
reference.md/REFERENCE is present) and writes optimize-out.md.
# Local small model
MODEL=llama3.2 deno run -A scripts/claude-optimize-prompt.ts "the raw prompt"
# Factual task with grounding — auto-enables the critic loop
REFERENCE="$(cat facts.md)" deno run -A scripts/claude-optimize-prompt.ts "the raw prompt"
# Anthropic instead of Ollama
PROVIDER=anthropic ANTHROPIC_API_KEY=sk-... deno run -A scripts/claude-optimize-prompt.ts
Env knobs: PROVIDER (ollama|anthropic), MODEL, OLLAMA_URL, TEMPERATURE,
VERIFY (auto|on|off), REFERENCE / reference.md.
Offer to run or adapt the script when the user's real target is a small model; otherwise just apply TASK-001→TASK-004 inline yourself.
references/principles.md.