pi-anthropic-auth: Skill for Claude Code

.pi/skills/tidy-first/SKILL.md

tidy-first is a skill for Claude Code, Codex from gotgenes/pi-anthropic-auth. It costs 44 tokens per session (1,088 once invoked), scanned A, original, MIT.

A preparation process for implementation agents based on the Tidy First approach: make small code improvements that simplify an upcoming change before implementing it. It sends the files involved to a read-only reviewer and then assesses the suggestions.

In plain words
What is it for?
Use it at the start of implementation plans or build plans that modify source or test files, after the existing tests pass.
Why use it?
It can make a planned code change easier to understand and safer to implement. It also prevents unnecessary preparation when the plan only changes documentation or configuration.

Skill for Claude CodeCodex

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

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/tidy-first/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 tidy-first

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/tidy-first/github.svg)](https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/tidy-first)
Your own site
<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/tidy-first"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/tidy-first/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 tidy-first

Your own site · 80×15
<a href="https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/tidy-first"><img src="https://agentmods.dev/badge/skills/gotgenes/pi-anthropic-auth/tidy-first.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,088 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00044 $0.01088
Opus 5.5 $0.00018 $0.00435
Sonnet 5.5 $0.00009 $0.00218
Haiku 4.5 $0.00004 $0.00109

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

Security

Grade A, and why

tidy-first 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.

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/tidy-first/SKILL.md · 65 lines

How it starts

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

Skill: tidy-first

Load this skill during planning — after the design is settled (the Decide step) and before the plan is written. It encodes Kent Beck's Tidy First: make the change easy (with small preparatory refactors landed first), then make the easy change. The assessment runs in a subagent so the many-files read does not consume the planning agent's context.

Planning is the right moment because the plan is the artifact that must absorb the answer. An assessment that arrives at implementation time can only contradict a frozen plan; one that arrives here reshapes the TDD Order before anything is committed to.

Applicability gate

Dispatch the assessor when the plan will create or modify src/ or test/ files. Skip for a docs-only or config-only plan — there is nothing to prepare. Note the skip and proceed to writing the plan.

Step 1: Gather the target files

From the settled design, list the src//test/ files the change will modify or create — the same list you are about to write into the plan's "Module-Level Changes". The plan does not exist on disk yet, so this list is the assessor's primary input, not a file path. Add every test that drives the seam the change rewires, even when the design edits none of them — a composition-root or entry-point test breaks on a wiring change that never touches its file.

Step 2: Dispatch the assessor

Dispatch the tidy-first-assessor subagent via the subagent tool:

  • subagent_type: "tidy-first-assessor"
  • description: "Tidy-First assessment for issue #N"
  • prompt: include the issue number, the target-files list from Step 1, the symbols the design alters (each as <file>:<symbol>, for the assessor's consumer trace), and a design summary — 5–15 lines stating what each target file gains, loses, or changes, and roughly where in the file it lands.

The design summary carries the weight the written plan used to carry, so write it concretely: "adds a third branch to resolveScope() in src/scope.ts (currently 40 lines)" tells the assessor where the friction is; "updates scope resolution" does not.

Read the full file on GitHub · 65 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. 1mo ago Changed · +9 lines · -22 tokens per session 41992b654dcd
  2. 2mo ago First seen · 56 lines · 66 tokens per session scan A e0830894d736

Subscribe to this mod's changes

tidy-first is a skill published in the GitHub repository gotgenes/pi-anthropic-auth (426 stars, last pushed 13d ago), licensed MIT. It adds 44 tokens to every session and 1,088 once invoked, about $0.0002 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-08-30.

Related

Other skills, from other repositories