Black Friday sale: 85 Claude Code agents for $29 one-time · lifetime updatesGet access →
Free Tool

Claude Code Prompt Generator

Vague prompts get vague results. Fill in a few boxes and get a clear, specific prompt for Claude Code: what to do, where to look, context Claude can't see, how to check the result, and what to report back. It follows the advice in Anthropic's own Claude Code best practices.

Your Claude Code prompt
Fix this bug: Users report login fails after the session times out.

Where to look: src/auth/

Context you can't see in the code: We refresh tokens with a 15-minute expiry. The bug only happens in production behind the CDN.

How to do it:
1. First read the relevant code and tell me your plan in a few bullets. Wait for my OK before editing.
2. Write a failing test that reproduces the bug, then fix it so the test passes.
3. Be thorough: handle edge cases such as empty input, errors and loading states, not just the happy path.
4. When you're done, run `npm test -- auth` and make sure it passes.
5. Finish with a short summary: what you changed, the command you ran and its output.

Prompt strength: 5/5 — clear and specific.

The 5 parts of a great Claude Code prompt

  1. Be specific. Not "fix the login bug" but what fails, when, and for whom.
  2. Point to the files. A folder or file path saves Claude from searching the whole repo.
  3. Add hidden context. Only what Claude can't find by reading the code: production quirks, decisions, who uses what.
  4. Give a pass/fail check. A test, build or lint command Claude can run to prove it worked.
  5. Ask for evidence. The command it ran and the output, so you can trust the result.

Running the same kind of prompt again and again? Save it as a skill or use ready-made commands: claudeagents includes 53 slash commands like /fix-error and /build-feature that already follow these rules.

Skip the setup: 85 ready-made agents for Claude Code

Coding, SEO and marketing agents, 52 skills and 53 slash commands. Installs with one line.

All free tools →

Frequently asked questions

Anthropic's best practices say: be specific about the problem, point to the files involved, add context Claude can't find by reading the code, and give it a check that passes or fails, such as a test or build command. Then ask for evidence: the command it ran and the output.

Related guides and tools