Coding prompts
Browse 27 coding prompts shared by the PromptVan community. Practical, ready-to-use prompts for coding work. Each one is written and refined by a real practitioner, with the full prompt text, the variables to fill in, and the AI models it works best with. Copy a prompt straight into ChatGPT, Claude, Gemini or your own tooling via the PromptVan CLI and MCP. Open any prompt to see how to use it, who made it, and related coding prompts. New coding prompts are added as the community publishes them, so check back or follow the authors whose work fits your workflow.
Annual maxima rainfall script from station CSV
Use this when you have daily or sub-daily rainfall records from a station and need a Python script that extracts annual maxima, fits an extreme value distribution and reports retur
Security review of LLM-generated code
Use this on code that an assistant wrote or heavily edited, before it goes into a pull request. LLM-written code tends to fail in repeatable ways: string-built queries, missing aut
Untrusted input boundary rewriter
Use this when you have a system prompt that stuffs retrieved pages, emails or user uploads straight into context and you want the boundaries between instructions and data made expl
Backfill plan reviewer for idempotency
Use this before you run a backfill on a production table. Paste the job description and the SQL or code, and it reviews the plan for the failures that actually bite: non-idempotent
Malformed model JSON repair with change report
Use this when a model returned something that almost parses: markdown fences, trailing commas, single quotes, a truncated tail, prose before the object. It repairs the structure wi
Refactor diff judge with revise limit
This is the evaluator I run on every batch a refactorer sub-agent returns, before the orchestrator marks it done. It reads the task contract, the diff, the test output and the api-
API existence verifier sub-agent
This is the sub-agent I put between any code-writing agent and the merge step. It takes a list of external symbols (functions, methods, config keys, CLI flags) pulled from a diff a
Refactor orchestrator with named sub-agents
Use this as the top-level prompt when you run a refactor as several agents in Claude Code or Cursor: one orchestrator that plans and four sub-agents that each do one narrow job. Th
Read-only first tool router for ops agents
A router prompt that sits between your diagnostic agents and your tools. Given a requested action, it picks the least-privileged tool that can answer, refuses to auto-route anythin
Log clusterer sub-agent with strict contract
A narrow sub-agent for the log step of an incident pipeline. It takes a log excerpt and returns grouped error signatures with counts and timings, nothing more. Pair it with an orch
On-call incident triage orchestrator
Use this as the top-level prompt when an alert fires and you want a team of narrow sub-agents to gather evidence while you stay on the keyboard. It plans, delegates to four named s
Shader bug diagnosis from symptoms
Use this when a shader renders wrong and you cannot see why: black sprites, flickering outlines, palette swaps that bleed, UVs that shift on certain GPUs. It makes the model rank h
Implementer sub-agent with strict contract
A sub-agent prompt for the step where code actually gets written. It receives a spec, the file contents and a list of paths it may touch, and returns a diff plus the assumptions it
MCP tool scaffolder sub-agent
Use this as the code-generation sub-agent in a team that builds MCP servers. The orchestrator hands it one tool spec at a time and gets back files, tests and a status, which makes
Dependency upgrade orchestrator with named sub-agents
Use this when you want one agent to run a package upgrade across a repo by delegating to four named sub-agents: Scout, Patcher, Runner and Judge. It plans the upgrade, writes down
MCP tool router with failure fallback
Use this as the routing step inside an agent loop when you have more than a handful of MCP tools and several sub-agents. It gets one plan step at a time, picks exactly one tool or
Changelog drafter sub-agent for merged PRs
Run this as a sub-agent in a release pipeline after PRs are merged. It takes the merged PR list and returns one changelog line per PR, or a clear reason why there is no line. It ma
One-on-one feedback notes for a player
Use this to prepare talking points before a one-on-one with a single player. Paste that player's stats, your VOD observations on them and the focus you agreed last time. You get a
Step reproducer sub-agent for tutorials
Use this as the sub-agent that executes one tutorial step exactly as written and reports whether it works. It is built to be called by an orchestrator, one step at a time, and it r
Workflow step documentation from rule files
Use this when you inherit or finish a Snakemake or Nextflow-style workflow and need a README that someone else in the lab can follow. Paste the rule or process definitions and the
Bug Triage & Root-Cause Assistant
Paste a stack trace and the relevant code; get ranked hypotheses, the most likely root cause, and a minimal repro plan. Built to avoid confident guessing.
Test Suite Generator
Writes unit tests for a function including edge cases and failure modes. Names tests by behavior, not implementation.
Friendly API Error Messages
Rewrites raw error codes into messages a user understands, with a next step. Keeps the technical detail in a separate log line.
API Endpoint Documentation