Prompt Library
This is a working prompt library, not a narrative read. Use the quick reference to find the right prompt pattern first, then go to the relevant section for the full template, rationale, and anti-patterns.
How to Use This Page
- Prompts are in copy-pasteable code blocks
Why this worksnotes explain the structural choicesAnti-patternboxes show what not to do- Links point to the playbook where the full workflow lives
- If you do not yet know which workflow you need, read How to Use Zero Drift first
Quick Reference
| When You Need To... | Use This Pattern | Section |
|---|---|---|
| Research a competitive landscape | Research brief with key design questions | Research Briefs |
| Find everything in a domain | 4-agent source-category sweep | Discovery |
| Deep-dive individual systems | Per-system dispatch with report template | Deep Dives |
| Compare findings into decisions | Feature matrix + cross-cutting analysis | Synthesis |
| Build an implementation plan | 6-prompt sequence: context -> draft -> gaps -> decisions -> harden -> review | Planning |
| Review code changes | P1-P4 severity-classified review | Code Review |
| Expand a rough idea into requirements | Structured questioning with EARS format | Requirements |
| Extract how software works | Extraction brief with methodology per source type | System Prompt Extraction |
| Write agent instructions | Identity + numbered constraints + anti-flattery + brevity | Agent Instructions |
Research Briefs
The research brief is the highest-leverage prompt pattern in this framework. It turns a vague "go research X" request into a structured investigation with comparable outputs across parallel agents.
Use it when the end goal is a decision, not a summary of findings. Good research briefs force answers to concrete design questions, standardize the report shape, and make the synthesis step mechanical instead of editorial.
Downloadable Skill
The agentic-research skill is a ready-to-use Claude Code skill that implements this research workflow. Drop it into your .claude/skills/ directory or install it via the Superpowers plugin.
The Anatomy of a Research Brief
This template was used for two major projects: a competitive analysis of 11 event accreditation platforms (producing per-system glossaries, ERD diagrams, a 24-capability feature matrix, and 5 design recommendations) and a landscape survey of AI coding tools (discovering 300+ tools, producing 289 individual reports and comparison matrices). The same template structure drove both.
# [Domain] — Competitive Research Brief
## Objective
[One paragraph: what you're researching, why, and for whom.]
### Our context (for anchoring the analysis)
[Who you are, what you're building, why you need this research.
Critical: state what you are NOT sharing with the researcher
to avoid anchoring bias.]
### Key design questions (use these to guide what you look for)
[3-9 numbered questions. These are DECISION-FORCING, not
open-ended. Each question should have a concrete answer
for each system researched.]
1. [Question about core entity modeling]
2. [Question about automation vs manual approach]
3. [Question about edge case handling]
...
## Systems to Research
[Table with system name, URL, and category.
Group by domain (primary competitors, adjacent industries).]
## Research Methodology
### General approach
Each system can be researched independently and in parallel
by separate sub-agents. There are no dependencies between
systems — the synthesis/comparison step happens after all
individual reports are complete.
### Tools and techniques — use whatever works
[Explicitly permit and encourage specific techniques:
web search, crawling, browser automation, API discovery,
GitHub exploration, YouTube demos, review sites.]
### What to look for (in priority order)
[Numbered list from most to least valuable:
1. Entity/data model
2. Terminology/vocabulary
3. Key workflows
4. Architecture patterns
...]
### When information is unavailable
- State it explicitly: "Not publicly documented."
- Mark confidence levels: 🟢 High, 🟡 Medium, 🔴 Low
- Don't fabricate — an honest "unknown" beats a guess
- Move on — don't burn time on systems with no public docs
## Outputs
### Per-system reports → `reports/{system-name}.md`
[Define the exact template every report must follow.
Consistent headings across all agents is what makes
synthesis possible later.]
1. System Overview
2. Glossary (system terms → generic concepts)
3. Data Model (mermaid ERD + written description)
4. Key Workflows (mermaid flowcharts)
5. [Domain-specific sections]
6. Strengths & Limitations
7. Sources (all URLs, categorized)
### Cross-system deliverables
[Feature matrix, executive summary, recommendations.]Why This Works
Question-driven, not task-driven. Instead of "go research these systems and write reports," the brief says "here are the 9 design questions we need answered — find how each system addresses them." This reframing makes every finding map to a decision, and makes the synthesis phase almost mechanical: you just compare answers across systems.
Anti-Pattern: The Vague Research Request
Research accreditation systems. Look at these URLs.
Write detailed reports. Include data models and workflows.This produces inconsistent reports that can't be compared. Each agent interprets "detailed" differently, focuses on different aspects, and uses different structures. Synthesis becomes impossible.
Prompt Evolution: Seed vs. Refined
A brief for researching how event management platforms handle credentials, access control, and on-site entitlements — comparing 11 competing products to inform the design of a new system — went through two iterations. Comparing them reveals what makes prompts improve:
Seed version (5KB):
visit all websites and marketing pages for each system,
help articles and preferably technical API documentation
for the various platforms to collect information on the following:
- Conceptual overview of the system
- Data models
- Behaviours
- Limitations
- StrengthsRefined version (17KB) — same section rewritten as decision-forcing questions. These were for event accreditation software, but the pattern applies universally — notice how each question maps to a design choice:
### Key design questions we're trying to answer
1. Person vs credential vs entitlement: What is the central entity?
How are people with multiple roles handled?
2. Rule-based vs direct assignment: Can entitlements be assigned via
rules or only directly per-person?
3. Consumables modeling: How are limited-use items, unlimited items,
and returnable items modeled differently?
...9 total questions| What Changed | Seed | Refined | Why It Matters |
|---|---|---|---|
| Focus | "Collect information on..." | "Answer these 9 design questions" | Decision-forcing questions produce actionable output |
| Research anchoring | None | "We are [Company]... we are deliberately NOT sharing our current data model" | Prevents anchoring bias while providing enough context |
| Methodology | "Visit all websites" | 8 specific techniques (web search, browser automation, GitHub, YouTube, reviews, job postings) | Agents know which tools to use |
| Confidence tracking | Not mentioned | "Mark 🟢🟡🔴 on each section" | Readers know what to trust |
| Missing data | Implicit | "Don't fabricate — an honest unknown is more useful than a guess" | Normalizes gaps instead of hallucinations |
| Output spec | "Separate detailed reports" | 8-section template with exact headings | Consistent structure enables comparison |
The Deliberate Withholding Technique
The refined brief explicitly states: "We are deliberately not sharing our current data model... The goal is an unbiased investigation." This prevents the researcher from anchoring on your existing design and producing confirmatory research instead of genuine discovery.
Discovery & Parallel Search
Discovery is a first-class activity, not an afterthought. The pattern: dispatch multiple agents with different search strategies, then merge and deduplicate.
4-Agent Discovery Sweep
This prompt was used to discover 300+ agentic developer tools. Each agent sweeps different source categories — the overlap between agents validates which findings are significant.
You are Discovery Agent [A/B/C/D] for our [domain] research survey.
Your job is to find every [domain] tool that exists — including small
hobby projects, archived tools, and experiments. Completeness matters
more than curation at this stage.
Search [your assigned sources]:
- [Specific search queries for this source category]
- [Specific sites/platforms to check]
- [Specific tags/topics to search]
For each tool discovered, record:
| Name | URL | Category | Source Found | Stars | Status | Notes |
Append everything to DISCOVERY.md. Do not filter or curate — include
everything you find. Deduplication happens later.The 4 source strategies that produced 300+ findings from 4 parallel agents:
| Agent | Source Category | What to Search |
|---|---|---|
| A — GitHub | Repository search | Topic tags (ai-coding-assistant, coding-agent, etc.), search queries, "See also" sections in READMEs, trending repos |
| B — Curated Lists | Awesome-lists & comparisons | Awesome-lists, comparison blog posts, ProductHunt launches, SWE-bench participants, AlternativeTo pages |
| C — Communities | Forums & marketplaces | Reddit (r/LocalLLaMA, r/ChatGPTCoding), HackerNews "Show HN" posts, VS Code/JetBrains marketplaces, npm/PyPI/crates.io |
| D — Media | Press & announcements | YouTube reviews, conference talks, TechCrunch/Verge coverage, company launch posts, funding announcements |
Why 4 Agents, Not 1?
A single agent searching all sources hits context limits and loses focus. Source-specialized agents go deeper in their domain. The real value is cross-validation through overlap — tools found by 3+ agents (Claude Code, Cursor, Cline, Aider) are validated market leaders. Tools found by only 1 agent are the interesting discoveries.
Anti-Pattern: The Unfocused Sweep
Find everything about agentic coding tools. Search the web,
GitHub, Reddit, and anywhere else. Make a comprehensive list.Without source-category specialization, agents do shallow searches across everything. With specialization, they go deep in their assigned category. Four focused agents beat one scattered agent.
The Discovery Table Format
Deliberate column design for later processing:
markdown
| Name | URL | Category | Source Found | Stars | Status | Notes |
| ----- | ------------------------------ | -------- | -------------------------- | ----- | ------ | ---------------------- |
| Aider | github.com/paul-gauthier/aider | CLI | Agent A: GitHub topics | 32k | Active | Python, multi-model |
| Aider | aider.chat | CLI | Agent B: awesome-ai-coding | 32k | Active | (duplicate — confirms) |Why these columns: Name + URL for identification. Category for grouping. Source Found enables cross-validation — the same tool appearing from multiple agents means it's significant. Stars provide a rough popularity signal. Status flags dead/archived tools early. Notes capture anything that doesn't fit elsewhere.
Deep-Dive Research Prompts
After discovery, dispatch one agent per system (or per batch for lower-tier entries). The key principle: template consistency is non-negotiable — it's what makes synthesis possible.
Per-System Agent Dispatch
Research [System Name] ([URL]) for our [domain] competitive analysis.
Answer every Key Design Question from the research brief:
1. [Question 1]
2. [Question 2]
...
Use the source priority table:
1. API docs / OpenAPI specs / source code (🟢 highest confidence)
2. Official help center / knowledge base articles
3. Configuration references / admin guides
4. Demo videos / product walkthroughs
5. Third-party reviews (G2, Capterra)
6. Marketing pages / feature lists
7. Job postings / inferred from UI screenshots (🔴 lowest)
Produce a report following this exact template:
1. System Overview (what, who, pricing, confidence level)
2. Glossary (system terms → generic concepts, as table)
3. Data Model (mermaid erDiagram + written description)
4. Key Workflows (mermaid flowcharts)
5. Access Model
6. Integrations & Technical Architecture
7. Strengths & Limitations (specific examples, not vague)
8. Sources (all URLs, categorized by type)
For each section, mark confidence: 🟢 Confirmed, 🟡 Inferred, 🔴 Unknown.
If information is unavailable, state it explicitly with a 🔴 marker.
Do not fabricate. An honest "unknown" is more useful than a guess.Why Source Priority Matters
Not all sources are equally reliable. API docs showing a POST /entitlements endpoint is 🟢 confirmation that entitlements exist. A marketing page saying "comprehensive entitlement management" could mean anything. Making agents explicitly rank their sources forces them to seek higher-quality evidence before falling back to marketing copy.
The Report Template Requirement
A competitive analysis of 11 event management platforms produced 11 reports with identical headings — Glossary, Data Model, Key Workflows, Access Model, etc. This made synthesis almost mechanical: compare the "Data Model" section across all 11 systems, then compare "Access Model," then compare "Workflows."
Without consistent templates, synthesis requires reading 11 free-form documents and mentally extracting comparable information. With templates, it's a structured comparison.
The output of this research will be synthesized into a feature matrix
and cross-system comparison. To make that possible:
- Every report MUST use the same section headings
- Every data model MUST use mermaid erDiagram syntax
- Every workflow MUST use mermaid flowchart syntax
- Every glossary MUST be a | System Term | Generic Concept | Description | table
- Shorter reports for systems with less public info are fine
- Missing sections are fine IF marked as 🔴 Unknown
- The structure must never change to accommodate the dataSynthesis & Comparison
The output of multi-system research: feature matrices, cross-cutting analysis, and opinionated recommendations.
Feature Matrix Prompt
Synthesize all [N] per-system reports into a comparative analysis.
1. Build a feature matrix:
- Rows: capabilities derived from the Key Design Questions
- Columns: all [N] systems
- Cells: ✅ Supported | ⚠️ Partial/Limited | ❌ Not supported
- Every cell must trace back to a specific finding in a report
2. Write cross-cutting analysis BY QUESTION, not by system:
"How do systems answer Question 1?" → patterns, outliers, gaps
"How do systems answer Question 2?" → patterns, outliers, gaps
...
3. Identify the biggest gaps — capabilities that NO system handles well.
4. Write 5 ranked design recommendations:
For each: what to do, which systems do it best, why, and what to
avoid based on industry failures.
5. Be opinionated. Recommend, don't just describe.
"Every system uses the term 'Registration' differently — adopting
[System A]'s junction pattern (Person + Event + Role) gives us the
most mature entity model" is more useful than "systems vary in
their terminology."Analyze by Question, Not by System
"How does each system handle consumables?" produces comparison. "Here's what System A does, here's what System B does" produces 11 independent summaries. The cross-cutting framing is what makes synthesis actually synthesize.
Anti-Pattern: The Non-Opinionated Summary
Summarize the findings from all system reports.
Compare the systems. Highlight similarities and differences.This produces a balanced, diplomatic overview that doesn't help anyone make decisions. The explicit "be opinionated — recommend, don't just describe" instruction is what transforms a report into a decision tool.
Planning & Architecture
The 6-Prompt Planning Sequence
This sequence was used to plan a new feature module (an entitlement system replacing a simpler model) for a Laravel application — but the 6-prompt pattern applies to any implementation plan. It produced a 1,971-line plan with 17 sections. The key: each prompt builds on the previous output and forces a specific kind of thinking.
Prompt 1 — Context gathering:
Read the existing [module/system]: the [Model] model, its policy,
the [related component], the controller, and the [specification].
Also read the [prototype/mockup]. Summarize: data model, API shape,
authorization pattern, and what the prototype adds beyond what exists.Prompt 2 — First draft:
Write an implementation plan for the [feature]. Structure it as:
Context, Enums, Migrations (with full column definitions), Models
(with relationships and computed properties), Services, Controllers,
Tests. Reference existing [codebase] patterns where applicable.Prompt 3 — Gap identification:
This plan likely has gaps and missing details. Identify them. Check:
enum completeness, relationship definitions, status transition
triggers, edge cases for [core business logic], namespace accuracy
against the codebase, and column name accuracy against existing
migrations.Prompt 4 — Decision-forcing:
Based on the gaps found:
1. Should [complex feature] ship in v1 or v2?
2. [Migration strategy]: clean cutover or gradual migration?
3. When [entity] no longer meets [rule criteria]:
hard-delete, soft-delete, or status change?Prompt 5 — Plan hardening:
Update the plan with these decisions. Then cross-reference against
the prototype UI: verify every UI element has a data field, and
every data field appears in the UI. Flag any mismatches.Prompt 6 — Final review:
Review this implementation plan as if it were a code review. Focus on
logical inconsistencies, missing error handling, undefined edge cases,
and performance concerns.The Sequence Matters
Each prompt forces a different mode of thinking: Prompt 1 is exploration. Prompt 2 is generation. Prompt 3 is adversarial. Prompt 4 is decision-making. Prompt 5 is cross-validation. Prompt 6 is critical review. Skipping any step produces a weaker plan.
Anti-Pattern: The Single-Shot Plan
Write me an implementation plan for the entitlement system.
Make it comprehensive and detailed.Single-shot plans are always incomplete. They miss edge cases, contain assumptions the author doesn't realize they're making, and skip the gap-identification and hardening steps that catch real issues (wrong column names, missing methods, namespace errors).
The Gap Identification Prompt
This prompt found 6 specific errors in a first-draft plan — wrong method calls on parent models, incorrect pivot table column names, missing event triggers, and incorrect namespace references. These would have become bugs in production.
This plan likely has gaps and missing details. Identify them.
Check systematically:
- Enum completeness: are all status values defined? Any missing states?
- Relationship definitions: are all foreign keys correct? Any missing
inverse relationships?
- Status transition triggers: what events cause status changes? Are all
transitions defined?
- Edge cases: what happens when [specific scenario]?
- Namespace accuracy: verify all class names, method names, and file
paths against the actual codebase (read the files)
- Column name accuracy: verify column names against existing migrations
(read the migration files)
- Missing methods: does the plan reference any methods that don't exist
on the models? Check by reading the model files.
For each gap found, output:
- What's wrong
- Where in the plan it occurs
- Concrete fix"Check against the actual codebase"
The instruction to verify names against real files is what catches real bugs. Without it, the agent assumes its own knowledge of the codebase is correct — and it often isn't. Column names, method signatures, and namespaces drift between what the model remembers and what actually exists.
Code Review & Quality
Full Code Review with Severity Tiers
Review the diff on this branch against main. Use `git diff main...HEAD`.
Review in priority order:
1. P1 Security: injection, auth/authz, secrets, data exposure, SSRF
2. P2 Correctness: logic errors, null/undefined, race conditions, error handling
3. P3 Performance: N+1, missing indexes, unnecessary allocations
4. P4 Style: naming, structure, test coverage
For each finding, output:
- File and line number
- Issue description
- Severity (P1/P2/P3/P4)
- Concrete suggested fix (code, not prose)
End with a summary table and a verdict: Approve, Request Changes, or Comment.Why Priority Order Matters
Reviewing in P1→P4 order ensures security issues are found first, even if the agent runs out of context window. A review that catches an SQL injection but misses a naming issue is far more valuable than one that catches 20 style issues but overlooks the injection.
Security-Only Review
Security audit of the changes on this branch (git diff main...HEAD).
Check every changed line for:
- SQL/NoSQL injection
- Command injection
- XSS / unsanitized output
- Authentication bypass
- Authorization flaws (can user A access user B's data?)
- Hardcoded secrets or credentials
- SSRF / open redirect
- Insecure deserialization
Ignore style, performance, and naming. Only report security findings.
Each finding: file, line, vulnerability type, exploit scenario, fix.Self-Review Before Committing
Run `git diff --cached` and review my staged changes.
Apply the standard priority order (P1 Security → P2 Correctness →
P3 Performance → P4 Style). Be strict — I want to catch issues
before they reach a reviewer.
For each finding: file, line, severity, issue, fix.
End with a verdict: safe to commit, or needs changes.Re-Review After Fixes
Re-review the changes since the last review (commits abc123..HEAD).
1. Verify each fix in the findings table actually resolves the issue
2. Check that fixes did not introduce new problems
3. Update the status column: FIXED → VERIFIED, or note regressions
Output the updated findings table.Full workflow: Code Review Loops playbook
Requirements Elicitation
The Structured Questioning Prompt
This prompt was reused across 7+ requirements sessions and consistently produced structured output. The XML section markers help the model parse the multi-part instruction.
<role>
You are an expert requirements analyst specializing in transforming
rough, informal ideas into structured, comprehensive requirements.
You excel at identifying gaps, ambiguities, and unstated assumptions
in early-stage concepts.
</role>
<task>
Analyze the provided rough idea and expand it into a structured
requirements document. Your goal is to:
1. Clarify what the idea is trying to achieve
2. Extract concrete requirements
3. Surface assumptions that need validation
4. Identify gaps and open questions
</task>
<instructions>
Think step-by-step through the idea:
1. **Understand the Core Problem**
- What problem is this solving?
- Who is the target user?
- What's the current pain point?
2. **Extract Functional Requirements**
Use EARS format: "When [situation], the system shall [action]"
- What must the system DO?
- What are the key user interactions?
- What are the main data flows?
3. **Extract Non-Functional Requirements**
- Performance expectations
- Security requirements
- Usability constraints
4. **Surface Assumptions**
Mark each as:
- VALIDATED (confirmed true)
- UNVALIDATED (needs checking)
- RISKY (could invalidate the approach if wrong)
5. **Identify Gaps and Open Questions**
For every requirement, ask:
- "What happens when [error case]?"
- "Who decides [policy]?"
- "How do we know [success criteria]?"
6. **Define Acceptance Criteria**
For each functional requirement, write Given-When-Then scenarios.
Output the full requirements document with all six sections.
</instructions>
<idea>
[Paste the rough idea here]
</idea>XML Section Markers
The <role>, <task>, <instructions>, <idea> tags aren't just formatting — they help the model parse section boundaries. From analysis of 43 agentic tools, XML-wrapped sections (<critical_rules>, <think>, <workflow>) are used by the highest-performing tools because they provide unambiguous structure that models parse more reliably than markdown headings alone.
EARS Format
"When [situation], the system shall [action]" forces requirements to be testable. Compare: "The system should handle errors gracefully" (untestable) vs "When a payment API call returns a 5xx error, the system shall retry twice with exponential backoff and then display a user-friendly error message" (testable).
Full workflow: Requirements Elicitation playbook
System Prompt Extraction
A meta-research prompt for extracting and comparing the system prompts used by agentic coding tools. This pattern applies whenever you need to reverse-engineer how software works from its source code or binaries.
Extraction Brief
Extract, catalog, and compare the system prompts, agent role
definitions, and tool schemas used by [category of tools].
## Why This Matters
[System prompts / configuration files / etc.] are the "source code"
of [the tool's] behavior. Two tools using the same [underlying
technology] can behave completely differently based on their
[configuration]. Extracting and comparing reveals:
- How tools differentiate beyond UI
- What patterns work (convergent evolution across competitors)
- Architecture decisions (how multi-component systems coordinate)
- Trust/safety boundaries
## Target Tools (Priority Order)
### Group A — Open Source (read source directly)
[Table: tool, repo, language, where to look]
### Group B — Closed Source (reverse engineer)
[Table: tool, download, format, extraction method]
## Extraction Methodology
For open source:
1. Clone or browse the repository
2. Search for [specific patterns]: grep -r "[pattern]"
3. Look for dedicated [config] files: [directories to check]
4. Note dynamic construction (runtime injection, project-specific)
For closed source:
1. Download the binary/package
2. For npm packages: unpack with `npm pack` + `tar xzf`
3. For Electron apps: extract app.asar with `npx asar extract`
4. For VS Code extensions: download VSIX, unzip, read extension.js
5. For native binaries: `strings binary | grep -i "[patterns]"`
## What to Extract
For each tool, capture:
1. Main [configuration] — the core instruction/setup
2. Role definitions (for multi-component systems)
3. Capability schemas — how capabilities are described
4. Mode-specific variants (different configs per mode)
5. Customization format — how users extend the config
6. Dynamic elements — what gets injected at runtime
## Output Format
Per-tool directory with consistent files:
├── README.md # Overview, extraction method, confidence
├── main-config.md # Primary configuration
├── roles.md # Per-role definitions (if applicable)
├── capabilities.md # Capability/tool definitions
└── customization.md # User customization format
Aggregated comparison analyzing:
- Common patterns across tools
- Where tools diverge (differentiation)
- Scale comparison (size/complexity)
- Safety/trust patterns
- Best practices (what appears to work)Agent Instruction Patterns
Insights extracted from analyzing 43 agentic developer tool system prompts. These patterns appeared independently across competing tools — convergent evolution toward what actually works.
Identity Anchoring
Named agents outperform generic ones. Every tool analyzed opens with an identity statement:
✅ "You are Claude Code, Anthropic's official CLI for Claude."
✅ "You are Crush, Charm's AI coding agent."
❌ "You are a helpful AI assistant."The name anchors behavioral expectations. "Claude Code" knows it's a terminal tool, operates on files, and should be concise. "A helpful AI assistant" has no such anchoring.
Constraint Enumeration
Numbered rules in structured sections outperform narrative instructions. From analysis of the highest-performing tools:
✅ Structured (used by 8/43 tools):
<critical_rules>
1. READ BEFORE EDITING: Never edit a file you haven't read first.
2. NEVER COMMIT unless the user explicitly asks.
3. NEVER PUSH to remote unless explicitly asked.
4. TEST AFTER CHANGES: Run tests after each modification.
</critical_rules>
❌ Narrative (common in lower-performing tools):
Please be careful when editing files. Make sure to read them first.
Try to test your changes when possible. Be cautious about committing.The structured version is followed more reliably because:
- Numbered items are individually addressable ("violated rule 3")
- XML wrappers (
<critical_rules>) help models parse section boundaries - Imperative verbs ("NEVER", "READ") are more salient than soft language ("please", "try")
The Anti-Flattery Directive
Six competing tools independently converged on suppressing the same behavior:
# From Augment Code:
"Don't start your response by saying a question or idea was good,
great, fascinating, or any other positive adjective."
# From Roo Code / Kilo Code:
"STRICTLY FORBIDDEN from starting messages with 'Great', 'Certainly',
'Okay', 'Sure'."
# From Claude Code:
"Avoid using over-the-top validation or excessive praise."This convergent evolution across Anthropic, OpenAI, Augment, Codeium, and open-source projects confirms it's a real, persistent model behavior that must be actively suppressed. If you're writing agent instructions, include an explicit anti-flattery directive.
Output Brevity Rules
CLI tools enforce strict brevity. IDE tools are more permissive:
| Context | Rule | Example |
|---|---|---|
| CLI | 2-4 lines max | "Keep text output under 4 lines unless explaining complex changes" |
| IDE | 10-20 lines | Richer explanations acceptable in sidebar panels |
| Web builder | Custom format | v0 uses MDX, Lovable uses XML — domain-specific serialization |
Read-Before-Edit
8 of 43 tools include this rule explicitly. It prevents a specific failure mode: the agent "knows" a file's contents from training data, edits based on that stale knowledge, and produces a broken file.
READ BEFORE EDITING: Never edit a file you haven't read
in this conversation. Your training data may be outdated —
always verify the current file contents first.Meta-Prompting Insights
Patterns that apply across all prompt types.
Constraints Beat Vibes
Specific rules outperform vague guidance every time:
| Vague (❌) | Specific (✅) |
|---|---|
| "Be thorough in your research" | "Search these 4 source categories, record in this 7-column table" |
| "Write a detailed plan" | "Structure as: Context, Enums, Migrations (with column definitions), Models, Services, Controllers, Tests" |
| "Review carefully" | "Review in P1-P4 priority order. For each finding: file, line, severity, fix" |
| "Be honest about uncertainty" | "Mark confidence: 🟢 Confirmed (API docs), 🟡 Inferred (help articles), 🔴 Unknown (no data)" |
Decision-Forcing Questions Beat Open-Ended Asks
❌ "How should we handle [feature]?"
✅ "Should [feature] ship in v1 or v2? Clean cutover or gradual
migration? When [entity] no longer qualifies: hard-delete,
soft-delete, or status change?"Open-ended questions get diplomatic non-answers. Decision-forcing questions get concrete positions with trade-off analysis.
Structured Templates Enable Synthesis
When dispatching parallel agents, the template is more important than the instructions:
❌ "Write a detailed report on each system."
✅ "Every report MUST use these exact section headings:
1. System Overview
2. Glossary
3. Data Model (mermaid erDiagram)
4. Key Workflows (mermaid flowchart)
5. Strengths & Limitations
6. Sources"11 reports with identical structure can be synthesized into a feature matrix in minutes. 11 free-form reports require hours of manual extraction.
Normalize Incomplete Information
Agents hallucinate when they can't find information and don't have permission to say "I don't know." Always include:
When information is unavailable:
- State it explicitly: "Data model: Not publicly documented."
- Mark confidence: 🔴
- Don't fabricate — an honest "unknown" is more useful than a guess
- Move on — don't spend excessive time on dead endsThis instruction appeared in both major research projects (Competitive Analysis, Landscape Survey) and prevented hallucinated API schemas, invented data models, and fabricated feature claims.
Order Matters in Long Prompts
From analysis of prompt evolution across agentic tools: instructions on line 10 are followed more reliably than instructions on line 600. One tool grew from 60 lines to 770 lines without proportional behavior improvement — dilution through scale.
Practical rule: Put your most critical constraints (safety rules, output format, "don't fabricate") in the first 50 lines. Domain-specific details and examples can go later.
Parallel-Then-Synthesize
The pattern that produced both major research projects — a competitive analysis of 11 platforms and a landscape survey of 289 developer tools:
Phase 1: Independent parallel research (no dependencies)
→ Each agent produces a report following the same template
Phase 2: Merge & deduplicate
→ Combine findings, resolve conflicts, validate overlap
Phase 3: Synthesize
→ Cross-cutting analysis, feature matrix, recommendations
→ Analyze BY QUESTION, not by system
→ Be opinionated — recommend, don't just describeThis only works if Phase 1 agents use consistent templates. Without template consistency, Phase 3 collapses into manual document comparison.