precap

precap is a skill for Claude Code, Codex from Parcha-ai/parcha-skills. It costs 166 tokens per session (2,965 once invoked), scanned A, original, MIT.

A task-planning aid that writes an imagined, evidence-based recap before or during long work. It compares that recap with the actual work to detect when the task has drifted.

In plain words
What is it for?
Use it to write, check, or revise a task recap based on the repository, plan, and history.
Why use it?
Long coding tasks can lose direction as context changes and subtasks multiply. This gives the agent a concrete reference for noticing and explaining deviations.

Skill for Claude CodeCodex

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present. Also seen: names the AskUserQuestion tool; mentions Codex.

Part of the precap plugin — 1 skill shipped together

Good fit Use it to write, check, or revise a task recap based on the repository, plan, and history.

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

Made for: Claude Code, Codex.

Or install precap, the plugin that ships this one along with the rest of its 1 skill.

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 precap

README.md
[![agentmods](https://agentmods.dev/badge/skills/parcha-ai/parcha-skills/precap/github.svg)](https://agentmods.dev/skills/parcha-ai/parcha-skills/precap)
Your own site
<a href="https://agentmods.dev/skills/parcha-ai/parcha-skills/precap"><img src="https://agentmods.dev/badge/skills/parcha-ai/parcha-skills/precap/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 precap

Your own site · 80×15
<a href="https://agentmods.dev/skills/parcha-ai/parcha-skills/precap"><img src="https://agentmods.dev/badge/skills/parcha-ai/parcha-skills/precap.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 166 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,965 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.00166 $0.02965
Opus 5.5 $0.00066 $0.01186
Sonnet 5.5 $0.00033 $0.00593
Haiku 4.5 $0.00017 $0.00297

Measured 1mo ago against content hash 07b3363080de, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

precap 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.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/precap.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

precap/skills/precap/SKILL.md · 207 lines

How it starts

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

/precap — the recap written before the work

A precap is a recap from the future. You imagine the task is completely done, then write the account of the work it took and the end result, in past tense, as concretely as a real recap. Long-running agents lose the thread: context compacts, subtasks multiply, a detour starts to look like the task. A precap gives your future self a fixed reference to compare against. It does not predict the future; it records the imagined path, concretely enough that leaving it is detectable and revising it is explicit.

The difference between a precap and an educated guess is investigation. Every step in the path must point at something real in the repo, plan, or history. A step with no grounding is a hope.

Modes

  • write (default): no precap.md for this task yet. Investigate, imagine, write, validate.
  • check: a precap exists and work is under way. Compare reality against it and report.
  • revise: reality diverged. Amend the precap without erasing what was imagined.

If precap.md already exists in the working directory and the user did not say which mode, read it first and default to check. Overwriting a live precap loses the drift history that makes it useful.

Phase 0 — Anchor the task

Establish what "done" means before imagining how it got done.

  1. Capture the task statement verbatim: the user's words, the plan file, the issue, the PR description. It goes into the precap unedited so a later reader can see whether the interpretation drifted from the ask.
  2. Read any plan that already exists: a plan-mode file, .cascade/<project>.md, a design or RDD doc, a Linear ticket. The precap sits downstream of the plan and must not contradict it silently. Where it does, say so.
  3. Note the working directory, branch, and base. Run git status --short and git log --oneline -10. A dirty tree or a branch already carrying commits changes the story: part of the imagined path may already have happened.
  4. Decide the scope questions that are the user's to make. If the task forks on something only they can settle (which API to keep, whether to migrate data, whether to touch a shared contract), use AskUserQuestion now with concrete options. Do not write a fork as decided when it is not. In Codex, use the equivalent structured user-input tool when available. When no user is reachable (a headless run, a cascade worker, a scheduled job), do not block: follow the branch that changes the least, write the fork with Decided by: the user (undecided), and add a Drift signal that fires if the run starts acting on the other branch.

Read the full file on GitHub · 207 lines

Files

What ships with it

4 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 · 207 lines · 166 tokens per session scan A 07b3363080de

Subscribe to this mod's changes

precap is a skill published in the GitHub repository Parcha-ai/parcha-skills (126 stars, last pushed 15d ago), licensed MIT. It adds 166 tokens to every session and 2,965 once invoked, about $0.0007 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-09-09.

Related

precap compared with skills from other repositories

precap next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
precapParcha-ai/parcha-skillsSkill12615d agoMITA166Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill99ktodayApache-2.0A19Claude Code
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79ktodayMITA200Claude Code, Codex
systematic-debuggingobra/superpowersSkill314k3d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143ktodayMITA95Claude Code
next-partial-prefetching-adoptionvercel/next.jsSkill143ktodayMITA103Claude Code