Prompt Effectiveness Criteria
# Prompt Effectiveness Guide — How Claude Interprets Your Instructions This reference explains how Claude Code actually processes skill instructions, agent definitions, and hooks. Use it to understand why certain prompt patterns work better than others and to diagnose issues where Claude behaves unexpectedly. --- ## 1. Common Ambiguity Patterns These verbs/phrases sound clear to humans but are semantically empty for Claude. Claude will substitute its training priors, which may not match your intent. | Ambiguous pattern | What Claude does | Better alternative | |---------------------------------------|-------------------------------------------|-------------------------------------------------------------------------------| | "Handle the error" | Logs it and continues (most common prior) | "If 4xx, return empty result. If 5xx, retry once, then fail with error." | | "Process the data" | Reads it and produces a summary | "Parse each row as JSON, validate against schema, collect failures in array" | | "Manage the state" | Creates a variable and updates it | "Store in `Map<string, State>`, update on event X, clear on event Y" | | "Ensure quality" | Does nothing measurable | "Run `pnpm lint && pnpm test` and fail if either exits non-zero" | | "Check if valid" | Returns boolean with no definition | "Validate: field X is non-empty string, field Y matches regex `/^\d{3}$/`" | | "Clean up" | Deletes temporary files | "Remove files matching `*.tmp` in `./out/`, but preserve `./out/index.html`" | | "Optimize" | Adds caching | "Reduce response time by batching DB queries: max 1 query per entity type" | --- ## 2. Claude's Interpretation Heuristics When instructions are ambiguous, Claude falls back to these defaults: ### 2a. Missing error handling → Claude skips errors silently If your skill doesn't say what to do when something fails, Claude will typically try/catch and continue. This is almost never what you want. **Fix**: Always specify failure behaviour explicitly:
fill the variables
This prompt has 1 variable. Pro fills them into a ready-to-paste prompt for you — no manual find-and-replace.
{3}
Unlock with Pro →when to use it
Community prompt sourced from the open-source GitHub repo ordinary9843/claude-code-auditor (MIT). A "Prompt Effectiveness Criteria" style prompt — adapt the placeholders and specifics to your task. Imported as-is and not independently retested here, so check the output before relying on it.
tags
productivitycommunitydeveloper
source
ordinary9843/claude-code-auditor · MIT
more in Productivity
Productivity✓ tested
Summarize a doc into decisions & actions
chief of staff who extracts what to DO, not just what was said
Productivity✓ tested
Draft a reply to a hard email
calm, direct communicator who de-escalates without caving
Productivity✓ tested
Turn a brain-dump into a weekly plan
planning coach who protects your focus, not just your calendar