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.
curl -O https://raw.githubusercontent.com/gotgenes/pi-anthropic-auth/main/.pi/skills/tidy-first/SKILL.mdgit clone --depth 1 https://github.com/gotgenes/pi-anthropic-authWrote 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.
[](https://agentmods.dev/skills/gotgenes/pi-anthropic-auth/tidy-first)<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.
<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>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00066 | $0.00693 |
| Opus 5 | $0.00033 | $0.00347 |
| Sonnet 5 | $0.00013 | $0.00139 |
| Haiku 4.5 | $0.00007 | $0.00069 |
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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 56 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: tidy-first
Load this skill at the start of implementation — after the green baseline passes and before the first change. 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 implementation agent's context.
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 (a /build-plan that touches no code) — there is nothing to prepare.
Note the skip and proceed.
Step 1: Gather the target files
From the plan's "Module-Level Changes" table (or "TDD Order"), list the src//test/ files the change will modify or create.
This list plus the plan path is the assessor's input.
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 plan file path, and the target-files list from Step 1.
The assessor is read-only and returns an advisory report: Recommended preparatory commits (each tied to a specific friction the change will hit), Optional ones, and Rejected-as-scope-creep items it deliberately declined.
Step 3: Triage the report
The report is advisory — you decide what lands.
- Recommended tidyings: land each as its own
refactor:ortest:commit before the feature work, in the order given, each leaving the tree green. This is the point — the behavior-change commit that follows is small and reviewable. - Optional tidyings: take them only if they genuinely shrink the change; skip otherwise.
- Rejected items: do not act on them. If one looks worth doing, it is separate-concern cleanup — note it for a future improvement round or file it as its own issue, do not fold it into this change. Read a rejection's reasoning, not just its verdict — one that contradicts the plan is a signal to re-examine the plan.
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.
- 10d ago First seen · 56 lines · 66 tokens per session scan A e0830894d736
tidy-first is a skill published in the GitHub repository gotgenes/pi-anthropic-auth (241 stars, last pushed 4d ago), licensed MIT. It adds 66 tokens to every session and 693 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.
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.
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…
text-search
Search indexed text corpora with qmd. For indexed content, prefer qmd over grep.
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…
xcodebuildmcp
Build/test Xcode projects via the XcodeBuildMCP MCP server using a local CLI wrapper for pi (no MCP support). Use when the user mentions Xcode, xcodebuild, iOS builds/tests, or XcodeBuildMCP.
security-patterns
Security patterns for authentication, defense-in-depth, input validation, OWASP Top 10, LLM safety, and PII masking. Use when implementing auth flows, security layers, input sanitization, vulnerability prevention, prompt injection defense, or data redaction.