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.
npx skills add Atman36/codex-maintainer-kit --skill pr-factory-architectgit clone --depth 1 https://github.com/Atman36/codex-maintainer-kitWrote 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.
[](https://agentmods.dev/skills/atman36/codex-maintainer-kit/pr-factory-architect)<a href="https://agentmods.dev/skills/atman36/codex-maintainer-kit/pr-factory-architect"><img src="https://agentmods.dev/badge/skills/atman36/codex-maintainer-kit/pr-factory-architect/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.
<a href="https://agentmods.dev/skills/atman36/codex-maintainer-kit/pr-factory-architect"><img src="https://agentmods.dev/badge/skills/atman36/codex-maintainer-kit/pr-factory-architect.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00102 | $0.01543 |
| Opus 5.5 | $0.00041 | $0.00617 |
| Sonnet 5.5 | $0.00020 | $0.00309 |
| Haiku 4.5 | $0.00010 | $0.00154 |
Grade A, and why
pr-factory-architect 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 3mo 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.
How it starts
The opening of the file, as written. The whole thing — 196 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Role: Architect
Find one small architectural improvement that reduces complexity.
Inputs
{{REPO_ROOT}}- Workspace path
Goal
Find one architectural improvement that:
- Implementable as small PR (<200 LOC)
- Reduces complexity/duplication/coupling
- Does NOT change public API (unless already unstable/internal)
- Has clear verification path (tests/build)
Examples of Good Improvements
1. Isolate Side-Effect
Extract side-effect (I/O, network, file system) behind interface for testability.
Example:
Current: Business logic directly calls fs.readFileSync()
Improvement: Extract FileReader interface, inject dependency
Benefit: Business logic testable without file system
2. Extract Duplicate Logic
Multiple places have same/similar code → extract into shared module.
Example:
Current: Email validation regex duplicated in 4 files
Improvement: Extract EMAIL_REGEX constant to validation/constants.ts
Benefit: Single source of truth, easier to update
3. Reduce Circular Imports
Module A imports B, B imports A → hard to understand, test, and maintain.
Example:
Current: user.ts ↔ auth.ts (circular)
Improvement: Extract shared types to user-types.ts
Benefit: Clear dependency direction
4. Clarify Boundaries
Core logic mixed with adapters/CLI → hard to test and reuse.
Example:
Current: Business logic in CLI handler
Improvement: Extract to core/ module, CLI calls core
Benefit: Core testable independently, reusable in API
5. Consistent Error Handling
Errors thrown inconsistently (string, Error, custom) → hard to handle.
Example:
Current: throw "Invalid input", throw new Error(), throw custom
Improvement: Introduce AppError base class
Benefit: Consistent error handling, better error context
For detailed patterns and examples, see references/refactoring-patterns.md.
Rules
- Don't propose big rewrites: Keep it <200 LOC
- Don't propose new frameworks: Use existing tools
- Don't add dependencies unless truly necessary
- Don't change public API unless internal/unstable
- Schema-valid JSON payload: Build payload conforming to
ExecutionResult - Persist analysis JSON: Write payload to
{{ARTIFACT_DIR}}/architect-<timestamp>.json - Chat output format: Return only
SAVED_JSON_PATH=<absolute_path_to_json>
What ships with it
2 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.
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.
- 3mo ago First seen · 196 lines · 102 tokens per session scan A 84655b68166f
pr-factory-architect is a skill published in the GitHub repository Atman36/codex-maintainer-kit (2 stars, last pushed 6mo ago), licensed MIT. It adds 102 tokens to every session and 1,543 once invoked, about $0.0004 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.
pr-factory-architect compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| pr-factory-architectAtman36/codex-maintainer-kit | Skill | 2 | 6mo ago | MIT | A | 102 | Claude Code, Codex |
| clean-codeagent-skills-hub/agent-skills-hub | Skill | 139 | 3d ago | MIT | A | 21 | Claude Code |
| create-pragent-skills-hub/agent-skills-hub | Skill | 139 | 3d ago | MIT | A | 36 | Claude Code, Codex |
| codex-reviewagent-skills-hub/agent-skills-hub | Skill | 139 | 3d ago | MIT | A | 18 | Claude Code, Codex |
| code-that-fits-in-your-headCodeAlive-AI/ai-driven-development | Skill | 195 | yesterday | MIT | A | 215 | Claude Code |
| git-pr-reviewhuangwb8/skills | Skill | 51 | 5d ago | MIT | A | 76 | Claude Code, Codex |
| challenge-resolveBorda/AI-Rig | Skill | 31 | today | Apache-2.0 | A | 90 | Claude Code, Codex |