pi-anthropic-auth: Skill for Claude Code

.pi/skills/pre-completion/SKILL.md

pre-completion is a skill for Claude Code, Codex from gotgenes/pi-anthropic-auth. It costs 62 tokens per session (791 once invoked), scanned A, original, MIT.

A final review process for implementation agents after the code changes and checks are complete. It gathers the relevant changed files and sends them to a read-only reviewer before final notes are written.

In plain words
What is it for?
Use it at the end of TDD plans or build plans, after implementation and final checks, before recommending that the issue be shipped.
Why use it?
It provides an additional review before declaring work complete. This can catch issues that deterministic tests or the implementing agent missed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

This is gotgenes/pi-anthropic-auth's own configuration. It tells Claude Code and Codex how to work on pi-anthropic-auth itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything pi-anthropic-auth configures →

Reuse

Borrowing it

Nothing to install: this file belongs to gotgenes/pi-anthropic-auth. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/gotgenes/pi-anthropic-auth/main/.pi/skills/pre-completion/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/gotgenes/pi-anthropic-auth

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 pre-completion

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/pre-completion.svg)](https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/pre-completion)
Your own site
<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/pre-completion"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/pre-completion.svg" alt="Measured on agentmods" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 791 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.1 $0.00062 $0.00791
Opus 5 $0.00031 $0.00396
Sonnet 5 $0.00012 $0.00158
Haiku 4.5 $0.00006 $0.00079

Measured 6d ago against content hash a4684a54dd36, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

pre-completion 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 6d 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.

.pi/skills/pre-completion/SKILL.md · 83 lines

How it starts

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

Skill: pre-completion

Load this skill when all implementation steps are complete and the final deterministic checks have passed. Follow these steps in order before moving to "Summarize" and "Write stage notes."

Step 1: Gather context

Run from the repo root:

BASE=$(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)
git diff --name-only $BASE..HEAD

When the last tag predates unrelated already-landed work (this repo batches releases — refactor:/test:/build: commits don't tag), $BASE..HEAD over-scopes to sibling issues' shipped files. Scope to the issue's own commits instead — anchor on the plan commit (docs: plan … (#N)): git diff --name-only <plan-commit>^..HEAD.

Note:

  • The list of modified files.
  • The issue number (from the plan frontmatter issue: field or the plan filename pattern NNNN-).
  • The plan file path (docs/plans/NNNN-*.md matching the issue number; may be absent for unplanned work).

Step 2: Dispatch the reviewer

Dispatch the pre-completion-reviewer subagent via the subagent tool:

  • subagent_type: "pre-completion-reviewer"
  • description: "Pre-completion review for issue #N"
  • prompt: include the issue number, the modified-files list from Step 1, and the plan file path.

Example prompt to pass:

Review issue #46.
Plan file: docs/plans/0046-background-agent-coverage-gap.md
Modified files since last tag:
  .pi/agents/pre-completion-reviewer.md
  .pi/skills/pre-completion/SKILL.md
  .pi/prompts/tdd-plan.md
  src/oauth-transport.ts
  AGENTS.md

Wait for the reviewer to complete and return its report before continuing.

Step 3: Handle the report

If you cannot read an explicit Overall: PASS|WARN|FAIL line, treat it as "report not captured" and re-dispatch per Step 2. Do not proceed to "Summarize" on an uncaptured or banner-only result.

Overall: PASS

Proceed to the "Summarize" step in the template. Include the one-line verdict in the stage notes ("Pre-completion reviewer: PASS").

Read the full file on GitHub · 83 lines

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. 6d ago First seen · 83 lines · 62 tokens per session scan A a4684a54dd36

Subscribe to this mod's changes

pre-completion is a skill published in the GitHub repository gotgenes/pi-anthropic-auth (235 stars, last pushed yesterday), licensed MIT. It adds 62 tokens to every session and 791 once invoked, about $0.0003 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

surf

Control Chrome browser via CLI for testing, automation, and debugging. Use when the user needs browser automation, screenshots, form filling, page inspection, network/CPU emulation, DevTools streaming, or AI queries via ChatGPT/Gemini/Perplexity/Grok/AI Studio.

w-winter/dot314 · 60 tokens

fabric-spec

Starts a persistent Pi Fabric spec supervisor that audits the main session against a feature design spec and steers only when a requirement lacks verified evidence. Use for strict, unblocked spec compliance while the main agent keeps full freedom to orchestrate.

monotykamary/pi-fabric · 50 tokens

fabric-advisor

Starts a persistent Pi Fabric peer advisor that reviews the main agent at decision points and surfaces only concrete, material advice. Use for ambient correctness review without another extension.

monotykamary/pi-fabric · 36 tokens

prose-review

Review prose written for others (e.g., user-facing documentation, prompts for other LLMs, reports, plans, inline comments, docstrings) for local jargon leakage, orphaned references, missing grounding, and audience or genre mismatch. Always run on prose you produce or materially edit, except for routine conversational…

w-winter/dot314 · 84 tokens

text-search

Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.

w-winter/dot314 · 22 tokens

repoprompt-tool-guidance-refresh

Refresh RepoPrompt tool guidance when the CLI/MCP surface changes. Tracks RepoPrompt CE (rpce-cli, the maintained target) across versions, and can diff the frozen Classic CLI (rp-cli) against CE. Uses /.pi/agent/skills/repoprompt-tool-guidance-refresh/scripts/track-rp-version.sh to capture/diff --help and -l (tool…

w-winter/dot314 · 115 tokens