Prompt Cookbook
Real prompts for real problems. Copy these directly into Claude Code, Cursor, or any MCP-compatible AI assistant.
Full Cookbook on GitHubUnderstanding Code
Explain a function
Get a complete picture of any symbol with its callers and callees.
What does the ProcessPayment function do and who calls it?Trace data flow
Follow data from entry points to storage.
How is user input validated before reaching the database in the checkout flow?Understand architecture
Get a high-level view of system design.
Give me an overview of the authentication system architecture.Safe Refactoring
Check impact before changes
Know exactly what breaks before you refactor.
What is the blast radius if I change the UserService interface?Find affected tests
Run only the tests that matter.
Which tests should I run after modifying the payment handler?Rename safely
Find every reference before renaming.
I want to rename getUserById to fetchUser. Show me all the places that need updating.Code Review
Review a PR
Get AI-assisted code review with risk assessment.
Analyze the changes in this PR and highlight any risks.Find the right reviewer
Data-driven reviewer suggestions.
Who should review changes to the internal/api package?Check for breaking changes
Catch breaking changes before they ship.
Does this diff introduce any breaking changes to the public API?Code Quality
Find dead code
Clean up unused code safely.
Are there any exported functions in this package that are never called?Identify hotspots
Focus attention on high-churn areas.
What are the riskiest files to change based on recent activity?Check coupling
Find architectural improvement opportunities.
Which modules are tightly coupled and might need refactoring?Security
Scan for secrets
Find accidentally committed secrets.
Are there any exposed API keys or credentials in the codebase?Audit sensitive code
Review security-sensitive areas.
Show me all code that handles user passwords or authentication tokens.Want more prompts? See the full cookbook on GitHub