patpat-loop

patpat-loop is a skill for Codex, Cursor from goiltpatpat/patpat. It costs 48 tokens per session (2,095 once invoked), scanned A, original, MIT.

A fixed, evidence-based process for software engineering and repository work, activated with commands such as /patpat or /patpat-loop. It requires reading the process rules, choosing a matching playbook and tracking the work with a checklist.

In plain words
What is it for?
Guiding repository changes, following engineering checklists, applying task-specific playbooks and checking work against evidence before completion.
Why use it?
It gives coding tasks a repeatable way to make decisions, handle safety and Git operations, and record evidence. It stays active across later turns after explicit activation.

Skill for CodexCursor

Written for Cursor and Codex: shipped in a Cursor plugin, but also agents/openai.yaml present. Also seen: mentions Codex; $skill-name invocation.

Part of the patpat plugin — 22 skills, 1 agent, 3 hooks shipped together

Good fit Guiding repository changes, following engineering checklists, applying task-specific playbooks and checking work against evidence before completion.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goiltpatpat/patpat/patpat-loop
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 goiltpatpat/patpat --skill patpat-loop
Clone the repo
git clone --depth 1 https://github.com/goiltpatpat/patpat

Made for: Codex, Cursor.

Or install patpat, the plugin that ships this one along with the rest of its 22 skills, 1 agent, 3 hooks.

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 patpat-loop

README.md
[![agentmods](https://agentmods.dev/badge/skills/goiltpatpat/patpat/patpat-loop.svg)](https://agentmods.dev/skills/goiltpatpat/patpat/patpat-loop)
Your own site
<a href="https://agentmods.dev/skills/goiltpatpat/patpat/patpat-loop"><img src="https://agentmods.dev/badge/skills/goiltpatpat/patpat/patpat-loop.svg" alt="Measured on agentmods" height="20"></a>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,095 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.00048 $0.02095
Opus 5 $0.00024 $0.01047
Sonnet 5 $0.00010 $0.00419
Haiku 4.5 $0.00005 $0.00210

Measured yesterday against content hash 450e430c15eb, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

patpat-loop 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 yesterday.

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/patpat-loop/SKILL.md · 113 lines

How it starts

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

Patpat Loop

/patpat and /patpat-loop are the same entry point. Codex uses $patpat or $patpat-loop.

Patpat is one system. The operating protocol is the spine: judgment, safety, git, and evidence. Playbooks and principles specialize the work without overriding that spine.

This mode stays on across later turns after explicit invocation. Trusted host hooks may persist it across resume and compaction. Without a host-observed receipt, apply it only for the current session and report current-turn-only after a restart. Say disable /patpat to opt out. Do not infer activation from a task that merely resembles a playbook.

Start

Classify the task first from signals: reversibility, uncertainty, blast radius, auth, security, billing, secrets, architecture, cross-cutting, duration, delivery intent, and parallelism need. First activation is context, not a risk signal. First activation alone must not force a full protocol read.

Scale start from that classification:

  1. Clear, bounded, reversible, and local (including on first activation): lightweight start. Begin with the cheapest useful observation. Read only the matched playbook and the principles it links. Do not open a mandatory todo list. Do not require a numbered checklist. Mutating work still defines the 5-field proof contract before editing and still verifies on the authoritative surface.
  2. Ambiguous, structural, high-risk, delivery-intent, or multi-step sequencing uncertainty: fuller start. Read the operating protocol in full when needed, skim the principle index, and keep a compact checklist with a verify check per step when sequencing earns it. A skipped step stays listed with skip: <reason>.
  3. Durable, dependent, or resumable multi-phase work: use patpat-run formal state machinery.

Inspect, execute, or measure before asking. Ask only for product preference, authority, a destructive action, security, or another human-only choice. Do not expose named user-selectable modes.

Read the full file on GitHub · 113 lines

Files

What ships with it

49 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. yesterday Changed · -3 lines 450e430c15eb
  2. 3d ago Changed · +1 lines 8ad96434af43
  3. 7d ago First seen · 115 lines · 48 tokens per session scan A 8eec7757e889

Subscribe to this mod's changes

patpat-loop is a skill published in the GitHub repository goiltpatpat/patpat (1 stars, last pushed 2d ago), licensed MIT. It adds 48 tokens to every session and 2,095 once invoked, about $0.0002 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.