mainframe-pi-engineer

mainframe-pi-engineer is a skill for Claude Code, Codex from CATWILLgh/MAINFRAME. It costs 76 tokens per session (524 once invoked), scanned A, a copy of pi-engineer, MIT.

A controlled handoff to a project-scoped Pi engineer for one clearly defined implementation block. The primary agent keeps responsibility for the architecture, review, and final result.

In plain words
What is it for?
Use it when the implementation block, acceptance checks, allowed files, and exclusions are already clear, including when resuming a block to correct failed checks.
Why use it?
It limits delegated work to agreed files, requirements, checks, and boundaries instead of sending an open-ended coding request.

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/catwillgh/mainframe/mainframe-pi-engineer
Any agent
npx skills add CATWILLgh/MAINFRAME --skill mainframe-pi-engineer
Clone the repo
git clone --depth 1 https://github.com/CATWILLgh/MAINFRAME

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 mainframe-pi-engineer

README.md
[![agentmods](https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-pi-engineer.svg)](https://agentmods.dev/skills/catwillgh/mainframe/mainframe-pi-engineer)
Your own site
<a href="https://agentmods.dev/skills/catwillgh/mainframe/mainframe-pi-engineer"><img src="https://agentmods.dev/badge/skills/catwillgh/mainframe/mainframe-pi-engineer.svg" alt="Measured on agentmods" height="20"></a>
Per session 76 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 524 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 88% copy Near-identical to another mod 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.00076 $0.00524
Opus 5 $0.00038 $0.00262
Sonnet 5 $0.00015 $0.00105
Haiku 4.5 $0.00008 $0.00052

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

Security

Grade A, and why

mainframe-pi-engineer 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 3d 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.

Origin

This is a copy

88% identical to pi-engineer — 27 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

adapters/codex/skills/mainframe-pi-engineer/SKILL.md · 49 lines

What it actually says

Pi engineer

Keep architecture, user communication, final review, and the commit in this primary task. Pi implements one already-agreed block in the current Git worktree and returns structured evidence; its internal verifier is a quality gate, not final acceptance.

For a new block, write a short JSON request inside .agents/runtime/pi/requests/ with this exact shape:

{
  "schemaVersion": 1,
  "goal": "One observable result",
  "writePaths": ["path/or/narrow-glob"],
  "excludePaths": [],
  "invariants": ["Behavior that must remain true"],
  "acceptance": ["Concrete result that can be checked"],
  "forbiddenFutureStages": ["Later work that must not begin"],
  "checks": [{"argv": ["exact-executable", "arg"], "timeoutMs": 60000}]
}

Keep lists only as detailed as the block requires. Checks must be exact argv, not inline shell, and cannot invoke Git. Run mainframe-pi engineer --mode new --request <project-relative-request.json>.

For a correction to the same active block, write a packet containing exactly instructions, missingEvidence, and failedCheckIds arrays, then run mainframe-pi engineer --mode resume --feedback <project-relative-feedback.json>. Omit --feedback only when resuming interrupted work without new review findings.

Let a run finish unless it reports a real block. Inspect the returned status, changed paths, checks, acceptance evidence, and verifier verdict against the actual diff. ready-for-architect-review means only that Pi's internal pass is complete. Send an in-scope defect back as one precise resume correction. Once accepted, create the Conventional Commit here, limited to accepted task paths and preserving unrelated dirty or staged work. The next new block reconciles that commit and compacts the persistent Pi session.

Do not copy Pi's internal pipeline into the prompt, pass profile/config/project overrides, ask Pi to commit, or treat its verifier as user acceptance.

Files

What ships with it

1 file 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. 3d ago First seen · 49 lines · 76 tokens per session scan A c52f48af9128

Subscribe to this mod's changes

mainframe-pi-engineer is a skill published in the GitHub repository CATWILLgh/MAINFRAME (2 stars, last pushed 13d ago), licensed MIT. It adds 76 tokens to every session and 524 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. It is 88% identical to pi-engineer, differing in 27 lines, and is treated as a copy.

Related

Other skills, from other repositories

cc-hooks

Multi-agent hook system: author hooks once as rulesync-canonical hooks.json (HookDefinitionSchema), deploy via superskill install / superskill hook emit to Claude Code, Codex, OpenCode, Pi (pi-hooks), and Gemini CLI. Covers command, prompt, and http hooks, cross-platform event mapping, and safety invariants.

gobing-ai/superskill · 71 tokens

built-for-shopify-standards

Prepare a Shopify app for Built for Shopify status. Covers current quality criteria, performance, accessibility, Shopify admin integration, compliance webhooks, observability, support, application readiness, and ongoing eligibility.

khadinakbarlabs/shopify-app-builder · 47 tokens

dev-troubleshooting

Use when a Shopify dev workflow is failing — shopify app dev cryptic errors, Cloudflare tunnel not starting, App Bridge v3→v4 migration 'No AppBridge context provided', GraphQL 200 OK with throttle errors, webhook 401, double-subscribed webhooks, app proxy 404, REST 302 loops, Rust function wasm-validator errors…

khadinakbarlabs/shopify-app-builder · 175 tokens

merchant-pain-prevention

Use when designing, building, reviewing, or shipping a Shopify app to avoid the patterns that get merchants angry (1-2 star reviews, uninstalls, churn). Covers theme injection / leftover code on uninstall, surprise billing, fake urgency, slow scripts, cancel friction, scope creep, bot-only support, broken on platform…

khadinakbarlabs/shopify-app-builder · 162 tokens

app-pricing-strategy

Use when designing Shopify app pricing, choosing a pricing model (flat tiered / usage-based / freemium / hybrid), setting trial length (7/14/30 days), structuring 3-4 tier plans, sizing capped usage, raising prices on existing customers, or writing pricing copy for the App Store listing. Triggers: 'shopify app…

khadinakbarlabs/shopify-app-builder · 146 tokens

ux-modern-app-feel

Use when you want a Shopify embedded app to feel modern, fast, and opinionated like Linear, Notion, Vercel, or Cron — speed-first, keyboard-first, calm UI, opinionated defaults, no-config success path. Covers keyboard shortcuts inside App Bridge, command palette patterns, micro-interactions Polaris allows, density vs…

khadinakbarlabs/shopify-app-builder · 162 tokens