doughnut: Skill for Claude Code

.agents/skills/format-changed/SKILL.md

format-changed is a skill for Claude Code, Codex from nerds-odd-e/doughnut. It costs 42 tokens per session (461 once invoked), scanned A, original, MIT.

A procedure for formatting only the parts of a working project affected by current Git changes. It checks the repository's own list of affected components and stops when a formatting result needs a behaviour or design decision.

In plain words
What is it for?
Use it on request before committing changes, especially when staged, unstaged, or new files may affect several components.
Why use it?
It avoids reformatting unrelated files and prevents automatic formatting from silently changing program behaviour or design choices.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is nerds-odd-e/doughnut's own configuration. It tells Claude Code and Codex how to work on doughnut 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 doughnut configures →

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/run.sh pnpm format:changed.

Reuse

Borrowing it

Nothing to install: this file belongs to nerds-odd-e/doughnut. 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/nerds-odd-e/doughnut/main/.agents/skills/format-changed/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/nerds-odd-e/doughnut

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 format-changed

README.md
[![agentmods](https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/format-changed.svg)](https://agentmods.dev/skills/nerds-odd-e/doughnut/format-changed)
Your own site
<a href="https://agentmods.dev/skills/nerds-odd-e/doughnut/format-changed"><img src="https://agentmods.dev/badge/skills/nerds-odd-e/doughnut/format-changed.svg" alt="Measured on agentmods" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 461 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.00042 $0.00461
Opus 5 $0.00021 $0.00230
Sonnet 5 $0.00008 $0.00092
Haiku 4.5 $0.00004 $0.00046

Measured yesterday against content hash 104f40213cd9, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

format-changed 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 yesterday.

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.

.agents/skills/format-changed/SKILL.md · 62 lines

What it actually says

Format Changed

Format the current working-tree changes without taking ownership of Git state. The repository command owns changed-component detection; do not reproduce its path-to-component mapping in this skill or in ad hoc shell logic.

This is an explicitly on-demand skill. Routine execute-plan wrap-up runs the same repository command directly and does not invoke this skill or spawn a formatting agent.

Workflow

  1. From the repository root, record git status --short so the final report can identify the changed paths present before formatting.

  2. Run the selective formatter through the repository runner:

    ./scripts/run.sh pnpm format:changed
    

    The command considers staged, unstaged, and nonignored untracked paths and formats only their affected components.

  3. If the command reports a mechanically determined correction that it could not apply, make only that mechanical correction and rerun the command. Examples include formatter-prescribed whitespace, import ordering, or another result with one unambiguous non-behavioral fix.

  4. If resolving a result could change behavior, public types, architecture, or design intent, stop without guessing. Preserve any formatting already applied and report the diagnostic and the judgment needed.

  5. Record git status --short again and report every changed path remaining, including paths added or modified during formatting.

Never stage, commit, push, revert, restore, stash, or hide changes. Do not run format:all, duplicate component detection, or broaden the task beyond mechanical formatting results.

Handoff

On success, end the response with:

## FORMAT CHANGED COMPLETE

Include the command result and changed-path list immediately before the marker.

When judgment is required, include the failing diagnostic, changed-path list, and the decision needed, then end with:

## FORMAT CHANGED JIDOKA STOP
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. yesterday First seen · 62 lines · 42 tokens per session scan A 104f40213cd9

Subscribe to this mod's changes

format-changed is a skill published in the GitHub repository nerds-odd-e/doughnut (49 stars, last pushed today), licensed MIT. It adds 42 tokens to every session and 461 once invoked, about $0.0002 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-09-05.

Related

Other skills, from other repositories

prowler-commit

Creates professional git commits following conventional-commits format. Trigger: When creating commits, after completing code changes, when user asks to commit.

prowler-cloud/prowler · 33 tokens

gh-auth-isolation

Safely manage multiple GitHub identities (EMU + personal) in agent workflows.

github/gh-aw · 20 tokens

comet-github

A routing guide for Comet-related GitHub work. It directs requests about pull requests, issues, CI failures, ideas, and fixes to the appropriate review or implementation process.

rpamis/comet · 72 tokens

github-skill

Work with GitHub via the gh CLI — clone repositories, create/list/merge pull requests, create/list issues, and run any other gh command (API calls, workflow runs, releases, repo administration). List operations return parsed JSON.

zeenie-ai/OpenCompany · 51 tokens

codex-autoresearch

Run autonomous, measurable experiments in a Git repository: change one hypothesis, verify a numeric metric, keep improvements, and revert failures. Use when the user wants Codex to keep iterating toward a numeric target in the foreground or as a detached background run. Do not use for ordinary one-shot coding…

leo-lilinxiao/codex-autoresearch · 80 tokens

changelog-composer

Generates structured changelogs and release notes from git history and PRs, classifying breaking changes, features, fixes, performance, docs. Triggers on: "generate changelog", "write release notes", "what changed since", "prepare release", "release notes for", "diff since tag".

Mathews-Tom/armory · 67 tokens