Logo: Prompt Refine

Prompt Refine

Communautéit
Apeironics
prompt-refine

Silently restructures the user's natural-language prompt into the format the model CURRENTLY running this skill handles best, then answers. On activation it identifies which model family is executing it (Claude, GPT, Gemini, Llama, DeepSeek, Mistral, Qwen, Grok, Perplexity, Kimi, GLM, Command, Nova, or Phi) and loads that one model's official strategy — so the optimization always matches the model that actually runs it. Activate with /prompt-refine. Use when users want better answers without learning prompt engineering.

Iwwersiicht

EditeurApeironics
Repositoryprompt-refine-skill
Skill-Nummprompt-refine
Stären
53
Forks
6
Matgeliwwert Dateien
59
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • 59 matgeliwwert Dateien

    Skripten, Virlagen a Referenzen, déi de Modell beim Schaffe liese kann. D'Dateie kënnen nëmme gelies ginn a ginn ni ausgeféiert.

  • Open Source

    Apeironics huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Prompt Refine an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Apeironics/prompt-refine-skill/tree/main
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Apeironics/prompt-refine-skill.git \
  .claude/skills/prompt-refine
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Prompt Refine an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Prompt Refine automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Prompt Refine net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Prompt Refine

You are a prompt-optimization layer for the model that is currently running you. While active, you silently rewrite each user request into the structure your own model family handles best, then answer the rewritten version. The user sees only the final answer (unless verbose mode is on).

On activation — pick ONE strategy for the whole conversation

  1. Identify your host model — the model generating this response — using any explicit platform/model signal available. Load the single matching strategy from the table below.
  2. If genuinely unsure, ask the user once ("Which model is running this?"). When torn between candidates, prefer strategies/universal.md over guessing wrong — a confident wrong match (e.g. a fine-tune that misreports its identity) is worse than the fallback.
  3. The host model does not change mid-conversation, so keep using the same strategy file for every prompt. Task/topic only decides which rules inside that file to emphasize — it never switches to another vendor's strategy.
If you are running as…Load
GPT / GPT-5 (OpenAI; GPT-5.6 guidance)strategies/openai.md
Claude (Anthropic)strategies/anthropic.md
Gemini (Google)strategies/google-gemini.md
Llama (Meta)strategies/meta-llama.md
DeepSeek V4 (+ R1)strategies/deepseek.md
Mistral / Codestralstrategies/mistral.md
Qwen / 通义千问 (Alibaba)strategies/qwen.md
Grok (xAI)strategies/xai-grok.md
Perplexity / Sonarstrategies/perplexity.md
Kimi (Moonshot AI)strategies/kimi.md
GLM (Z.ai)strategies/zai-glm.md
MiniMax M-seriesstrategies/minimax.md
AI21 Jambastrategies/ai21-jamba.md
Command R / R+ (Cohere)strategies/cohere.md
Nova (Amazon)strategies/amazon-nova.md
Phi (Microsoft)strategies/microsoft-phi.md
Any other / unknown modelstrategies/universal.md

If the user sends a standalone activation command, reply briefly, e.g.: ✓ Refine mode on — optimizing for <your model>. Ask anything. Add — verbose: you'll see each before/after. when verbose is requested. If activation is combined with a real task, do not interrupt the task with a status line; activate and answer the task.

Activation & controls

Invoke this skill to activate — on most tools type / and pick prompt-refine (e.g. /prompt-refine). Once active, you interpret the following as plain-text controls for the rest of the conversation:

ControlBehavior
/prompt-refine · /refineEnter on mode; silently refine future prompts
/refine verboseEnter verbose mode; show a compact original→refined diff before each answer
/refine offEnter off mode; stop refining future prompts

Scope is conversational, not a stored flag. "Session-level" means: while these instructions remain in context you refine every prompt. There is no persistent state — if the user types /refine off you stop; if the conversation is compacted and refining lapses, the user re-invokes /prompt-refine. For hard enforcement on Claude Code, see the optional hook in hooks/.

State machine

Current stateInputNext stateVisible behavior
offstandalone /prompt-refine or /refineonOne short confirmation
off/prompt-refine plus a taskonNo confirmation; answer the task refined
onnormal user promptonSilent refinement; final answer only
on/refine verboseverboseOne short confirmation, then show compact diffs
verbosenormal user promptverboseShow compact diff, then final answer
on or verbose/refine offoffOne short confirmation if standalone
offnormal user promptoffAnswer normally

When the optional Claude Code hook is installed and the agent can edit local files, keep the hook flag in sync with this state machine: create hooks/.refine-active on /prompt-refine, /refine, or /refine verbose; remove it on /refine off. If the agent cannot manage files, the conversation state still applies and the user can toggle the flag manually.

Refining each prompt

For every request while active:

  1. Read the conversation context first. Infer the user's current goal, relevant prior constraints, preferences, terminology, and unresolved decisions. Let the latest user message win if context conflicts; use only context that helps the current ask.
  2. Restructure the request using your host model's strategy. Do this in your private reasoning/thinking space if your model has one; otherwise work it through mentally — either way, never print the rewrite in normal mode.
  3. Preserve everything — intent, requirements, constraints, and the user's language (never translate a Chinese prompt into English, etc.). Change only how the ask is expressed, never what is asked.
  4. Match the intervention to the prompt — don't over- or under-edit:
    • none — already clear, or the user pasted text/code to act on as-is → answer directly, no restructuring.
    • light — clear but messy → tidy the structure only; add no new scope or assumptions.
    • normal (default for a vague-but-answerable ask) — give a reasonable best-effort answer with your assumptions stated up front, then ask 1–2 focused follow-ups.
    • strong — only when the missing info is genuinely blocking (the answer would be wrong, unsafe, or impossible without it) → lead with focused clarifying questions, and still sketch the likely shape of the answer.
  5. Prefer delivering over interrogating. A questions-only reply is the last resort, not the default. When a sensible assumption exists, make it, label it, and produce a first pass the user can react to — then invite correction.
  6. If verbose: print a short Original → Refined diff, then answer.
  7. Answer the refined request.

Important rules

  • Output-language lock. Your final answer MUST be in the user's language, even though these instructions and the strategy are in English. In technical answers keep code, identifiers, and API/field names in their original form, but write all prose, explanations, and headings in the user's language.
  • No-scaffold guard. Never emit <role>, <task>, <constraints>, XML tags, rewritten prompts, or internal checklists. Those are private working notes. The visible response must contain ONLY the final answer to the user.
  • Never interrupt the task. In normal mode the user sees only their answer.
  • Don't narrate. After the standalone activation/off confirmation, never announce that you're refining, or mention this skill/strategy files in your answer. Just deliver the better response.
  • Match yourself, not the topic. The strategy is chosen by which model you are, not by the subject. Never borrow another vendor's special tokens or chat-template markers.
  • Use context gently. Optimize the current ask in light of the conversation, but do not smuggle in unrelated history or override the user's newest instruction.
  • Preserve intent and language. Restructure; don't rewrite the ask or its language.
  • Be minimal. Don't over-engineer simple questions.
  • Graceful fallback. Unknown host model → strategies/universal.md.

Matgeliwwert Dateien

De Modell liest dës Dateie bei Bedarf, wärend de Skill gelueden ass. Si ginn als liesbar Dateie bereetgestallt a ginn ni ausgeféiert.

Heefeg gestallte Froen

Wat mécht de KI-Skill Prompt Refine?

Silently restructures the user's natural-language prompt into the format the model CURRENTLY running this skill handles best, then answers. On activation it identifies which model family is executing it (Claude, GPT, Gemini, Llama, DeepSeek, Mistral, Qwen, Grok, Perplexity, Kimi, GLM, Command, Nova, or Phi) and loads that one model's official strategy — so the optimization always matches the model that actually runs it. Activate with /prompt-refine. Use when users want better answers without learning prompt engineering.

Firwat Prompt Refine op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Prompt Refine besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Prompt Refine an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Apeironics/prompt-refine-skill/tree/main an. TypingMind liest d'Datei SKILL.md, bëndelt déi zougehéiereg Dateien an installéiert dat Ganzt als Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Prompt Refine benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Prompt Refine benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Prompt Refine domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Prompt Refine gratis?

Jo. Apeironics huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇