pact-flow

pact-flow is a skill for Claude Code, Codex from jonathanmr22/pact. It costs 8 tokens per session (307 once invoked), scanned A, original, MIT.

A workflow for documenting how a feature behaves throughout its lifecycle, saved as a YAML file. YAML is a human-readable text format commonly used for configuration and structured records.

In plain words
What is it for?
Use it to create a feature flow after reading the source code, documenting states, operation order, recovery paths, error behavior, and non-obvious interactions.
Why use it?
It records what happens during first installation, normal use, backgrounding, reopening, recovery, and errors, including rules that should always remain true.

Skill for Claude CodeCodex

Part of the pact plugin — 5 skills, 3 agents shipped together

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/jonathanmr22/pact/pact-flow
Any agent
npx skills add jonathanmr22/pact --skill pact-flow
Clone the repo
git clone --depth 1 https://github.com/jonathanmr22/pact

Made for: Claude Code, Codex.

Or install pact, the plugin that ships this one along with the rest of its 5 skills, 3 agents.

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 pact-flow

README.md
[![agentmods](https://agentmods.dev/badge/skills/jonathanmr22/pact/pact-flow.svg)](https://agentmods.dev/skills/jonathanmr22/pact/pact-flow)
Your own site
<a href="https://agentmods.dev/skills/jonathanmr22/pact/pact-flow"><img src="https://agentmods.dev/badge/skills/jonathanmr22/pact/pact-flow.svg" alt="Measured on agentmods" height="20"></a>
Per session 8 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 307 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.00008 $0.00307
Opus 5 $0.00004 $0.00153
Sonnet 5 $0.00002 $0.00061
Haiku 4.5 $0.00001 $0.00031

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

Security

Grade A, and why

pact-flow 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.

plugins/pact/skills/pact-flow/SKILL.md · 25 lines

What it actually says

Create a PACT lifecycle flow document for the feature the user specifies. Save it to feature_flows/{feature_name}_flow.yaml.

Read the relevant source code first to understand the feature's actual behavior. Then generate a YAML flow document covering:

  1. purpose — one sentence: what this feature does and why
  2. system_map_section — pointer to SYSTEM_MAP.yaml (don't duplicate structure)
  3. invariants — things that must ALWAYS be true
  4. states:
    • fresh_install — what exists, what's empty, what's defaulted
    • normal_open — numbered order of operations + assumptions
    • background — what's active, held in memory, lost
    • force_close_reopen — what's lost, what's persisted, recovery path
    • background_resume — what re-initializes, what gets checked
    • error_paths — what happens when things go wrong
  5. gotchas — non-obvious interactions, race conditions, things previous sessions got wrong

After generating, present a verbal summary of the flow to the user for verification before finalizing.

Do NOT duplicate table names, file paths, or provider names from SYSTEM_MAP.yaml — use system_map_section to point there instead. This file owns BEHAVIOR (temporal). The map owns STRUCTURE (spatial).

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 · 25 lines · 8 tokens per session scan A 7825661fec83

Subscribe to this mod's changes

pact-flow is a skill published in the GitHub repository jonathanmr22/pact (15 stars, last pushed 2mo ago), licensed MIT. It adds 8 tokens to every session and 307 once invoked, about $0.0000 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-30.

Related

Other skills, from other repositories

orloj-generator

Interactive scaffold generator for Orloj multi-agent systems. Use this skill whenever someone wants to create, set up, scaffold, bootstrap, or generate an Orloj agent system, pipeline, swarm, or hierarchy. Also trigger when users mention "orlojctl init", ask how to get started with Orloj, want to build a multi-agent…

OrlojHQ/orloj · 168 tokens

nio-scan

Nio code/skill execution-risk scanner. Use when the user wants to scan a file, repo, directory, or skill for execution risks — e.g. "scan this code for risks", "is this file/plugin dangerous", "check this repo for malicious code", "run nio scan on ". Focused single-purpose skill; for other Nio operations use /nio.

core0-io/nio · 81 tokens

memory-sync

Review the auto-extracted candidates in .claude/memory/pending.md and commit keepers to the canonical memory files (landmarks.md, libraries.md, decisions.md, landmines.md, conventions.md, pending-questions.md, backlog.md). Invoke at session start when the SessionStart hook reports pending candidates, or any time…

friedbotstudio/baseline · 99 tokens

chore

Workflow track for tasks that need no TDD — documentation edits, governance count bumps, vendored-skill content updates, configuration tweaks, formatting, typo fixes, dependency bumps where no project code changes. Skips /scenario and /implement (no failing test to drive) and runs the work directly. archive…

friedbotstudio/baseline · 183 tokens

spec

Draft a Workflow Phase 4 technical spec from an intake (and optionally a BRD + scout + research memo). The spec defines how the system will change: design (C4 + UML + dependency graph in PlantUML), data, APIs, tests, rollout, rollback. Output lives at docs/specs/ .md. Never self-approves — approval happens via…

friedbotstudio/baseline · 0 tokens

design-ui

Orchestrates impeccable for every design task inside a workflow phase. Captures intent in natural language, classifies it (design / development / copy), translates design intents into a sequence of impeccable subcommand invocations, runs them in main context with state persistence at .claude/state/design/ .json, and…

friedbotstudio/baseline · 126 tokens