Skip to main content
Preparing workspace

Coding Prompt Builder

Build precise AI prompts for code review, unit tests, refactoring, regex, SQL explain, Dockerfiles, commit messages, changelogs, API docs and tech specs.

About this tool

Coding Prompt Builder

Build precise AI prompts for code review, unit tests, refactoring, regex, SQL explain, Dockerfiles, commit messages, changelogs, API docs and tech specs.

Better prompts get better code. Pick a coding task and fill in the details the model needs, such as language, constraints and edge cases, then copy a prompt for ChatGPT, Claude or Copilot. This page brings together 14 separate coding prompt builder pages (API doc, Changelog, Code comment, Code review, Commit message, Dockerfile, GitHub Copilot, Refactor, Regex, Release notes, SQL explain, Tech spec, Technical doc, Unit test) so you can compare them without hunting for the right one.

How to use Coding Prompt Builder

  1. 1

    Open Coding Prompt Builder on AltFTool — it loads instantly in your browser.

  2. 2

    Choose your task at the top: API doc, Changelog, Code comment, Code review and 10 more. On a phone it is a drop-down list.

  3. 3

    Fill in the coding prompt builder for that task; each of the 14 options keeps its own rules, data and defaults.

  4. 4

    Read the result, then switch task to compare. The page link keeps your task (?v=api-doc), so you can bookmark or share it.

Why use Coding Prompt Builder

  • All 14 in one place

    API doc, Changelog, Code comment and the rest sit behind one picker, so switching task takes a tap instead of a new search.

  • Built for each option

    Every task keeps its own rules, numbers and defaults rather than one generic template.

  • Shareable view

    The link remembers the task you picked, so a bookmark or a shared link opens straight on it.

Common use cases

  • A backend developer pastes six REST endpoints and gets a prompt that produces a Markdown reference with a parameters table and error table per endpoint.
  • Turn a release branch's commit log into user-facing release notes without rewriting each line by hand.
  • A TypeScript developer generates TSDoc for a public SDK and gets tags without types, because the TypeScript signature already carries them and API Extractor expects it that way.
  • A backend developer pastes a 250-line password-reset endpoint diff and gets a security-focused review checking injection, access control and secret logging against OWASP Top 10 categories.

Frequently asked questions

Which task options does this tool cover?

14: API doc, Changelog, Code comment, Code review, Commit message, Dockerfile, GitHub Copilot, Refactor, Regex, Release notes, SQL explain, Tech spec, Technical doc, Unit test. Pick one at the top of the tool; the page link updates (for example ?v=api-doc) so you can bookmark or share that exact view.

What should good API documentation include for each endpoint?

Five things: a one-sentence purpose, every parameter with location, type, required flag and example, a realistic request and success response with the correct status code, the error cases with their status codes, and a note on idempotency and retry behaviour. The generated prompt demands all five for every endpoint in your list.

How do I decide between a major, minor and patch release?

Semantic Versioning 2.0.0 is explicit: increment MAJOR for backwards-incompatible API changes, MINOR for backwards-compatible new functionality, and PATCH for backwards-compatible bug fixes. One breaking change anywhere in the set forces MAJOR, no matter how many small fixes ship with it.

What is the difference between JSDoc and TSDoc?

JSDoc puts the type in braces — @param {string} name - description — while TSDoc omits types entirely, writing @param name - description, because the TypeScript signature already declares them. TSDoc is the standard consumed by Microsoft's API Extractor; JSDoc 3 is the older JavaScript convention that doubles as a type source for plain JS.

How many lines of code should one code review cover?

About 200 to 400 lines per review session. SmartBear's study of peer code review at Cisco found defect-discovery effectiveness drops sharply beyond roughly 400 lines, and recommends reviewing no faster than about 500 lines per hour. This tool computes the number of passes a larger change needs and writes that instruction into the prompt.

What is the Conventional Commits format?

A commit header of the form type(scope)!: description — for example feat(parser): add array support — followed by an optional body and footers, as defined by the Conventional Commits v1.0.0 specification. feat maps to a SemVer MINOR release, fix to PATCH, and a ! or BREAKING CHANGE footer to MAJOR.

How do I write a good prompt for generating a Dockerfile with AI?

State the runtime and version, the exact dependency manifest to copy first, the install/build/start commands, the port, and the hardening you require (multi-stage, non-root, pinned tags). This tool assembles all of that into one structured prompt; vague prompts like 'write a Dockerfile for my app' are what produce bloated single-stage images running as root.

How do I write a good prompt for GitHub Copilot?

State the goal in one sentence, then the inputs, the expected output, any constraints, and finish with a concrete input → output example — all as comments directly above your cursor. GitHub's guidance summarises it as: provide context, keep it to a single task, and show an example rather than describing one.

What is the difference between refactoring and rewriting code?

Refactoring changes a program's internal structure without changing its observable behaviour — same outputs, side effects and error behaviour for every input — while a rewrite may change behaviour. The generated prompt states this definition up front and instructs the model to skip any change it cannot prove behaviour-safe.

How do I get AI to write a correct regex?

Give it concrete examples, not just a description: strings the pattern must match, strings it must not, the exact flavour, and a requirement to verify the pattern against every example in a test table before answering. This tool assembles precisely that prompt — descriptions alone routinely produce patterns that fail on real input.

What is the difference between release notes and a changelog?

A changelog is the complete, chronological record of every change, written for people who want the detail. Release notes are the announcement for one release, written for people who just want to know what changed for them. The changelog is generated from commits; the release notes are edited by a human from that list.