agentleFS
owainlewisowainlewis/blueprint/skills/factory/SKILL.md

factory

Skill410 starsChanged 4 months agoMITView on GitHub

Takes a GitHub issue to a pull request with passing CI in one shot, without supervision. Writes product and technical specs, implements them, and fixes CI failures and automated review comments. Use when asked to build an issue end to end without supervision.

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

5 rules. 0 are common, 4 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 9 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  • could be automatic: a setting could enforce it
  1. Distinctive:

    Keep the repository's branch prefix if it has one.

    line 14
  2. Distinctive:

    Run the tests and fix any failures.

    line 19
  3. Very specific:

    Wait for CI with gh pr checks --watch.

    line 23
  4. Distinctive:

    If recent pull requests in the repository have automated reviews, wait up to 10 minutes for them.

    line 24
  5. Distinctive:

    Stop after 3 rounds of CI or review fixes.

    line 29

“Common” is measured: kept by at least 6 in 10 of the 9 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Factory

Take the provided GitHub issue to a pull request. Do not ask the user anything.

Work in a new git worktree at ../<repo>-<issue>, on a new branch from the latest default branch. Put the issue number in the branch name, such as 42-fix-login. Keep the repository's branch prefix if it has one.

  1. Review the provided issue and write a PRODUCT_SPEC.md and a TECHNICAL_SPEC.md in docs/<feature-slug>/.
  2. Implement TECHNICAL_SPEC.md, with a test for each requirement in PRODUCT_SPEC.md.
  3. Run the tests and fix any failures. Check that each new test fails without your change.
  4. Open a pull request. Start its description with Closes #<issue>, then add three sections: What changed, Why, and Verification.
  5. Wait for CI with gh pr checks --watch. Fix any failures and push.
  6. If recent pull requests in the repository have automated reviews, wait up to 10 minutes for them. Fix each comment, or reply with why not. If you pushed a fix, go back to step 5.
  7. Comment on the issue with the pull request link and what happened.

Stop after 3 rounds of CI or review fixes. Never weaken a test, merge, or force-push.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.