framework/engineering/skills/engineer-prompts-for-instant/SKILL.md
Guide for writing stable, effective prompts for instant/fast models (Gemini Flash, GPT-4o Mini, Haiku), suitable for beginners.
npx skillsauth add korchasa/flow engineer-prompts-for-instantInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This guide helps you get stable, accurate results from high-speed models (like Gemini Flash, GPT-4o Mini, Claude Haiku). These models are fast and cost-effective but need clear instructions and examples to work best.
Instant models are like fast learners who prefer copying a pattern over reading a textbook. The most effective way to improve their performance is to provide examples.
Use this structure for 90% of your tasks. It is designed to be copy-paste friendly.
# 1. ROLE (Who matches the task?)
You are an expert [Role Name, e.g., Data Analyst, Copy Editor].
# 2. TASK (What to do?)
[Action Verb] the [Input Data] to produce [Result].
- Be direct. Use commands like "Extract", "Summarize", "Translate".
# 3. RULES & FORMAT (How to do it?)
- Output format: [JSON, Markdown Table, Plain Text, etc.]
- Constraint 1: [e.g., Do not include markdown code blocks]
- Constraint 2: [e.g., If data is missing, write "N/A"]
# 4. FEW-SHOT EXAMPLES (CRITICAL FOR STABILITY)
Input: [Short Example Input] Output: [Perfect Example Output]
Input: [Short Example Input 2] Output: [Perfect Example Output 2]
# ACTUAL INPUT
[Paste your real data here]
Always give at least one example (1-shot), ideally three (3-shot). This fixes formatting errors better than any written instruction.
Even fast models can make mistakes on math or logic. Ask them to "think" before answering.
<thinking> tags before outputting
the JSON."Tell the model what NOT to do.
| Problem | Solution |
| :----------------------------- | :-------------------------------------------------------------------------------- |
| Model ignores format | Move the "Output Format" section to the very bottom, right before the Input. |
| Model hallucinates details | Add a rule: "If the answer is not in the text, state 'Unknown'." |
| Response is too chatty | Add: "Return ONLY the result. No conversational filler." |
| Logic is flawed | Ask the model to output a <thinking>Step 1... Step 2...</thinking> block first. |
Task: Extract meeting items from a rough email.
# ROLE
You are a personal assistant.
# TASK
Extract action items from the email.
# RULES
- Output a JSON list of strings.
- Only include tasks with a deadline.
# EXAMPLES
Input: "Hi, can you buy milk by 5pm? Also, the weather is nice." Output: ["Buy
milk (Deadline: 5pm)"]
Input: "Just checking in. Please submit the report tomorrow." Output: ["Submit
report (Deadline: Tomorrow)"]
# INPUT
[User's Email]
development
Use when the user asks to add TypeScript strict-mode code-style rules to AGENTS.md for a TypeScript project using strict mode. Do NOT trigger for Deno projects (use setup-agent-code-style-deno) or non-strict TS configurations.
development
Use when the user asks to add Deno/TypeScript code-style rules to AGENTS.md, or during initial Deno project setup when code-style guidelines need to be established. Do NOT trigger for non-Deno TypeScript projects (use setup-agent-code-style-strict), or for runtime-agnostic style advice.
testing
Use when the user provides a source (URL, file path, or free text) to save into the project's memex — a long-term knowledge bank for AI agents. Stores the raw source, extracts entities into cross-linked pages, runs a backlink audit, and updates the index and activity log. Do NOT trigger on casual reads; only when the intent is to persist a source into the memex.
development
Use when the user asks to audit a memex (long-term knowledge bank for AI agents) for orphans, dead SALP REFs, missing sections, contradictions, or index drift. Runs a deterministic structural check, layers LLM-judgement findings, optionally auto-fixes trivial issues with `--fix`. Do NOT trigger on general code linting.