# Coding prompts

> 19 bides on coding, each with the result it produced.

- [Plan a feature as commit-sized steps before an agent codes it](https://promptabide.com/bides/plan-feature-in-commit-sized-steps-for-agent) — Developers handing a multi-day feature to Claude Code, Codex or Cursor who want reviewable steps instead of one giant diff.
- [Triage profiler output and pick the one fix worth trying first](https://promptabide.com/bides/triage-profiler-output-find-bottleneck) — Developers with a slow endpoint or job and a profile in hand, who need to know where the next hour of optimization should go.
- [Explain inherited legacy code before you have to change it](https://promptabide.com/bides/explain-legacy-code-before-changing-it) — Developers who inherited code with no docs and no original author, and have a concrete change to make soon.
- [Review gate for a coding agent's diff before you merge it](https://promptabide.com/bides/review-gate-for-coding-agent-diff) — Anyone merging changes written by Claude Code, Codex, Cursor or Copilot agents, especially after long unattended runs.
- [Write an MCP tool description a model will actually pick right](https://promptabide.com/bides/write-mcp-tool-description-and-schema) — Developers building MCP servers or agent tools who see models calling the wrong tool or inventing arguments.
- [Review a REST API design before any client depends on it](https://promptabide.com/bides/review-rest-api-design-before-building) — Backend and full-stack developers about to ship an API that mobile apps or third parties will call and that will be hard to change later.
- [Turn a rough request into a task spec a coding agent can run](https://promptabide.com/bides/write-task-spec-for-coding-agent) — Developers and PMs delegating features to Claude Code, Codex or background agents who want fewer wrong turns and follow-up questions.
- [Code review with a blocker/major/minor severity rubric](https://promptabide.com/bides/code-review-with-severity-rubric) — Solo developers without a reviewer, or teams wanting a first-pass review that separates real bugs from style opinions.
- [Explain-then-edit protocol for Claude Code and Codex tasks](https://promptabide.com/bides/explain-then-edit-protocol-coding-agents) — Developers using Claude Code, Codex or Cursor on code they care about, who want to catch a wrong plan before it becomes a wrong diff.
- [Build and test a regex against your own match examples](https://promptabide.com/bides/build-regex-with-test-cases) — Anyone writing a regex for validation or extraction who wants proof it handles their real examples, not just a plausible pattern.
- [Have a coding agent write handoff notes before you stop](https://promptabide.com/bides/coding-agent-handoff-notes-prompt) — Claude Code, Codex and Cursor users whose sessions run out of context, get interrupted, or pass work between people or tools.
- [Write characterization tests for untested code before a refactor](https://promptabide.com/bides/characterization-tests-for-untested-code) — Developers inheriting untested functions who need a safety net before refactoring or fixing them.
- [Write a commit message and PR description from a diff](https://promptabide.com/bides/commit-message-and-pr-description-from-diff) — Developers who want clean commit history and reviewable PRs without spending ten minutes writing them by hand.
- [Speed up a slow SQL query from its EXPLAIN ANALYZE plan](https://promptabide.com/bides/optimize-slow-sql-query-from-explain-plan) — Backend developers and analysts with one slow Postgres or MySQL query and the plan to go with it.
- [Find the root cause of a bug before writing any fix](https://promptabide.com/bides/root-cause-a-bug-before-fixing-it) — Developers stuck on a bug where the obvious patch didn't work, or who want to understand the failure before shipping a fix.
- [Generate a CLAUDE.md or AGENTS.md file for your repository](https://promptabide.com/bides/generate-claude-md-agents-md-for-repo) — Teams using Claude Code, Codex or Cursor who are tired of correcting the same agent mistakes in every session.
- [Refactor legacy code behind a characterization test gate](https://promptabide.com/bides/refactor-with-tests-gate-for-coding-agents) — Developers asking an agent to clean up tangled code where any behavior change, even an improvement, would be a bug.
- [Compare two coding agents' attempts at the same task and pick one](https://promptabide.com/bides/compare-two-coding-agent-attempts) — Developers who run the same task through two agents or two attempts (best-of-n) and need a fair, fast way to choose.
- [Security review of a code snippet with exploit-level detail](https://promptabide.com/bides/security-review-code-snippet-with-exploits) — Developers shipping web endpoints who want a focused security pass on specific handlers before release or after a scare.

---

Canonical HTML: https://promptabide.com/topics/coding
Agent guide: https://promptabide.com/llms.txt · https://promptabide.com/agent-instructions.md
Sitemap: https://promptabide.com/sitemap.xml
