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

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex; mentions OpenCode.

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/atman36/codex-maintainer-kit/pr-factory-implementer
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.

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/github.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/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for pr-factory-implementer

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00082 $0.01485
Opus 5.5 $0.00033 $0.00594
Sonnet 5.5 $0.00016 $0.00297
Haiku 4.5 $0.00008 $0.00148

Measured 1mo ago against content hash 1bd968e534f7, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 4mo ago), licensed MIT. It adds 82 tokens to every session and 1,485 once invoked, about $0.0003 per session on Opus 5.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

codex-autoresearch

Run repeated, measured Git experiments toward a numeric target; keep improvements and revert failures. Use for autonomous optimization or managing an autoresearch run, not one-shot edits.

leo-lilinxiao/codex-autoresearch · 39 tokens

investigating-repository-history

Investigate GitHub repository history before risky code changes using git blame/log, GitHub PRs, review comments, squash/rebase/cherry-pick/rename heuristics, and cited evidence. Use when asking why code exists, whether a change is safe, what PR introduced behavior, or before editing API, compatibility, security…

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

finishing-a-development-branch

Use when development work is complete and you need to prepare for merge. Guides through cleanup, testing, documentation, and creating a well-structured pull request.

peintune/runjam · 38 tokens

repo-activity-summary

Summarize a repository's recent engineering activity from git history — technologies, work types, churn hotspots, contributor patterns, and velocity. Use when asking "what has this repo been working on", "is this project active", "who contributes what", "where are the hotspots", or before onboarding onto an unfamiliar…

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

commit

Create commit messages following Sentry conventions. Use when committing code changes, writing commit messages, or formatting git history. Follows conventional commits with Sentry-specific issue references.

agent-skills-hub/agent-skills-hub · 36 tokens

create-pr

Create pull requests following Sentry conventions. Use when opening PRs, writing PR descriptions, or preparing changes for review. Follows Sentry's code review guidelines.

agent-skills-hub/agent-skills-hub · 36 tokens