pr-factory-implementer

pr-factory-implementer is a skill for Claude Code, Codex from Atman36/codex-maintainer-kit. It costs 82 tokens per session (1,485 once invoked), scanned A, original, MIT.

A workflow for implementing an approved PRSpec, which is a written description of an intended code change. It works in a clean worktree, keeps the diff small, and checks the result with tests and linters.

In plain words
What is it for?
Use it when an approved PRSpec specifies files and behavior to change. It verifies the branch and worktree, implements the specification, runs allowed checks, and summarizes the outcome.
Why use it?
It adds a defined process for making a requested change while protecting unrelated work. If verification fails, it can use the reported errors to make limited repair attempts and check again.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/atman36/codex-maintainer-kit/pr-factory-implementer
Any agent
npx skills add Atman36/codex-maintainer-kit --skill pr-factory-implementer
Clone the repo
git clone --depth 1 https://github.com/Atman36/codex-maintainer-kit

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for pr-factory-implementer

README.md
[![agentmods](https://agentmods.dev/badge/skills/atman36/codex-maintainer-kit/pr-factory-implementer.svg)](https://agentmods.dev/skills/atman36/codex-maintainer-kit/pr-factory-implementer)
Your own site
<a href="https://agentmods.dev/skills/atman36/codex-maintainer-kit/pr-factory-implementer"><img src="https://agentmods.dev/badge/skills/atman36/codex-maintainer-kit/pr-factory-implementer.svg" alt="Measured on agentmods" height="20"></a>
Per session 82 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,485 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00082 $0.01485
Opus 5 $0.00041 $0.00743
Sonnet 5 $0.00016 $0.00297
Haiku 4.5 $0.00008 $0.00148

Measured 4d ago against content hash 1bd968e534f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

pr-factory-implementer scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/pr-factory-implementer/SKILL.md · 182 lines

How it starts

The opening of the file, as written. The whole thing — 182 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Role: Implementer

Implement PRSpec changes safely and verify they work.

Inputs

  • {{REPO_ROOT}} - Workspace path
  • {{HEAD_BRANCH}} - Head branch (already checked out)
  • {{PRSPEC_JSON}} - PRSpec JSON (approved by Gatekeeper)
  • {{RELATED_FILES}} - Optional high-signal file list from Analyst/Scout
  • {{CONSTRAINTS}} - Additional constraints (optional)
  • {{ALLOWED_COMMANDS}} - Allowed verification commands (optional)

Goal

Implement exactly what PRSpec describes, keep diff small, and make checks pass.

Process

  1. Verify clean worktree: No unrelated changes, correct branch
  2. Scope context: Read only PRSpec files_touched, {{RELATED_FILES}} (if provided), and direct dependencies
  3. Implement changes: Follow PRSpec precisely
  4. Run verification: Tests, linters, build (from PRSpec or discovered)
  5. Self-heal loop: If verification fails, run up to 3 cycles Fix (from stderr) -> Verify
  6. Summarize results: Changed files, commands run, test output

For detailed safety rules and worktree hygiene, see references/safety-rules.md.

Safety Rules

Critical: Never Create Tool State Files

Never create, commit, or track these directories:

  • .agentplane/
  • .opencode/
  • .claude/
  • .kimi/
  • .codex/
  • .cursor/
  • Any other AI IDE state directories

These are local tool state and must NEVER be committed to the repository.

Sandbox for Untrusted Repos

  • Prefer running Implementer in an isolated environment (Docker/microVM) when repository trust is unknown.
  • If the environment is explicitly non-isolated and risk budget is low, return needs_human before running install/build scripts.

Keep Diff Small

  • Touch only necessary files: Don't refactor unrelated code
  • No mass formatting: Even if code style is inconsistent
  • Preserve existing style: Match surrounding code
  • Minimal imports: Only add what you need

Follow PRSpec Exactly

  • Don't expand scope: If PRSpec says "add test", don't also fix nearby bugs
  • Use specified files: If PRSpec says "src/utils/validation.test.ts", touch that file only
  • Match change type: If PRSpec says "test", don't modify production code (unless test depends on it)
  • Cleanup out-of-scope edits: If unrelated files changed, explicitly revert them:
    • git checkout -- <unplanned-file-1> <unplanned-file-2> ...

Read the full file on GitHub · 182 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 182 lines · 82 tokens per session scan A 1bd968e534f7

Subscribe to this mod's changes

pr-factory-implementer is a skill published in the GitHub repository Atman36/codex-maintainer-kit (2 stars, last pushed 3mo ago), licensed MIT. It adds 82 tokens to every session and 1,485 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

git-workflow

This skill should be used when the user asks to "create git commit", "manage branches", "follow git workflow", "use Conventional Commits", "handle merge conflicts", or asks about git branching strategies, version control best practices, pull request workflows. Provides comprehensive Git workflow guidance for team…

Galaxy-Dawn/claude-scholar · 64 tokens

daily-paper-generator

Use when the user asks to generate daily paper digests on a general topic. This skill supports both arXiv and bioRxiv (or either one), then produces structured Chinese/English summaries for selected papers.

Galaxy-Dawn/claude-scholar · 47 tokens

codex-autoresearch

Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…

leo-lilinxiao/codex-autoresearch · 80 tokens

map-wayfind

Decision-frontier wayfinding: build and work a durable map of open design decisions BEFORE planning, for large or foggy efforts where /map-plan would force premature decomposition. Use when a task is too big or too vague to decompose — many unknowns, tangled decisions, or "I'm not even sure what to build yet" — and…

azalio/map-framework · 182 tokens

map-fast

Minimal workflow for small, low-risk changes — no planning, no learning.

azalio/map-framework · 17 tokens

clipboard

Copy text to clipboard with optional rich formatting. Triggers on "copy to clipboard", "copy that", "pbcopy", "copy formatted", "copy rich text".

CodeAlive-AI/ai-driven-development · 36 tokens