Skip to content
Public template

About

Template for building software with an AI coding agent: one scoped prompt, one branch, one reviewed PR at a time. Includes a case study.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

agent-dev-workflow

A small template for building software with an AI coding agent while keeping a human in charge of review. One scoped prompt, one branch, one pull request at a time.

Who it's for

A solo developer, or a small team, directing a coding agent and wanting each change to be reviewable, reversible and documented.

Case study

This template comes from a solo commercial game project built with AI coding agents (title withheld): 412 commits, 44 merged pull requests and about 2,800 automated tests, all through this loop. Read the case study.

The loop

idea -> design call (ledger) -> build prompt (docs/prompts/<batch>.md)
     -> agent works on claude/<batch>, one commit per prompt section, pushing each
     -> agent writes a report, opens a PR into main, stops
     -> human reviews and tests
     -> merge to main -> next batch starts from updated main

Rules the template encodes

  • main is the last reviewed build. Nothing lands there except through a reviewed PR.
  • One batch at a time. Parallel batches from one base collide in shared docs.
  • Prompt sections are commit steps, each revertable on its own.
  • Every decision goes in a ledger with a "reopen if" condition.
  • Tests and a seeded sweep script are part of the batch, not extras.
  • The agent stops after opening the PR. It does not start the next prompt.
  • Every report says what was seen running, what only tests cover, and what was not verified.

What's in the box

File Purpose
docs/prompts/README.md, example-build-prompt.md How to write a prompt, and a full example
docs/CODE_GUIDE.md The agent's standing instructions (fill in)
docs/BRANCHING.md Branch and merge rules
docs/DECISION_LEDGER.md Design calls with reopen conditions
docs/LAB_REPORT_TEMPLATE.md The report an agent writes at the end of a batch
.github/pull_request_template.md, CHANGELOG.md PR and release records

Use it

  1. Copy these files into your repo.
  2. Write your own conventions in docs/CODE_GUIDE.md.
  3. Copy docs/prompts/example-build-prompt.md, rename it to your batch, and fill it in.
  4. Point your agent at the prompt and your code guide.
  5. Review the PR using .github/pull_request_template.md, then merge.

License

MIT, see LICENSE.

About

Template for building software with an AI coding agent: one scoped prompt, one branch, one reviewed PR at a time. Includes a case study.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors