dprint

dprint is a skill for Claude Code, Codex from fmind/dot. It costs 17 tokens per session (720 once invoked), scanned A, original, MIT.

A formatter setup for JSON, Markdown, TOML, and YAML files. A formatter automatically adjusts file layout and spacing to match shared rules.

In plain words
What is it for?
Use it to configure dprint, format supported files, check whether files need formatting, and add or update formatter plugins.
Why use it?
It keeps configuration and documentation files consistent and lets checks detect formatting drift before changes are merged.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to configure dprint, format supported files, check whether files need formatting, and add or update formatter plugins.

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

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 dprint

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fmind/dot/dprint"><img src="https://agentmods.dev/badge/skills/fmind/dot/dprint.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 720 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.00017 $0.00720
Opus 5.5 $0.00007 $0.00288
Sonnet 5.5 $0.00003 $0.00144
Haiku 4.5 $0.00002 $0.00072

Measured 14d ago against content hash 87972c91390a, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

dprint 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 14d 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.

skills/dprint/SKILL.md · 50 lines

How it starts

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

dprint

The formatter for configuration and markup files (JSON, Markdown, TOML, YAML); dprint formats only, while Python formatting and linting live in ruff.

Configuration

dprint searches the current directory upward for dprint.json(c) or .dprint.json(c) and falls back to the global config (DPRINT_CONFIG_DIR) only when nothing is found. Global fallback can prompt before fmt; use a local, version-pinned configuration for non-interactive project gates.

  1. Copy (default): copy a known-good dprint.json into the project root; it is self-contained and version-pinned. The first run downloads uncached plugins; later runs use dprint's local cache. Bump plugin versions per repository.
  2. Extends (DRY): set "extends" to a single source of truth, a local path or a commit-pinned URL such as "https://raw.githubusercontent.com/fmind/dot/<commit>/dprint.json"; override rules or add plugins locally.

Commands

Repository tasks own the two gate commands; add and pin a plugin with dprint add <plugin>.

[tasks."format:dprint"]
description = "Format JSON, Markdown, TOML, YAML (dprint)"
run = "dprint fmt --allow-no-files" # mise appends the hook's {staged_files}; the flag keeps an empty list from exiting 14

[tasks."check:format"]
description = "Check config and markup formatting (dprint)"
run = "dprint check" # non-zero exit on drift

Gotchas

  • Prefer npm: plugin references: npm:@dprint/markdown@<version> over https://plugins.dprint.dev/...wasm URLs; both resolve, and the npm form makes the current version one npm view <plugin> version away.
  • Plugin order is precedence: the plugins array order decides which plugin claims a file; keep specialized plugins before generic ones.
  • Load plugins for embedded code: the Markdown plugin formats fenced JSON, TOML, and YAML only when those plugins are loaded too.
  • Format staged, check the whole tree: format:dprint takes {staged_files} from the hook, which restages fixes; check:format always runs on the whole tree. Outside a hook, dprint fmt --staged or --dirty selects the staged or uncommitted files itself.

Read the full file on GitHub · 50 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. 14d ago Changed 87972c91390a
  2. 15d ago Changed · -6 lines · +5 tokens per session 5a305220b691
  3. 26d ago Changed 0534f648d4b3
  4. 29d ago Changed 131bfbf6f36d
  5. 1mo ago Changed · +1 lines · -21 tokens per session 66a088a75fcd
  6. 1mo ago Changed · +1 lines 60bc8a20444c
  7. 1mo ago Changed 9734c662bc14
  8. 1mo ago Changed · +1 lines abcb568f8a26
  9. 1mo ago First seen · 53 lines · 33 tokens per session scan A bbef5a3a2b97

Subscribe to this mod's changes

dprint is a skill published in the GitHub repository fmind/dot (12 stars, last pushed today), licensed MIT. It adds 17 tokens to every session and 720 once invoked, about $0.0001 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-03.

Related

Other skills, from other repositories

google-workspace-cli

Use gws across Workspace APIs with schema-first calls, profile isolation, bounded reads, and verified Drive, Docs, Sheets, Gmail, Calendar, or Chat writes.

fmind/dotfiles · 38 tokens

handover

Write a self-contained follow-up prompt carrying this session's decisions, constraints, and verified findings into a fresh agent session. Use when handing unfinished work to a new context window.

fmind/dotfiles · 38 tokens

dotfiles-bootstrap

Bootstrap a workstation with the dotfiles framework. Takes a GitHub user / owner+repo / explicit clone URL and runs dot init (which shells out to chezmoi) with the right safety prompts. Honors the active agent profile (ask / plan / apply / audit) so it defaults to dry-run in safer modes and full apply in apply.

sebastienrousseau/dotfiles · 88 tokens

vibe

Delegate a coding task to a cheap AI model (Mistral Vibe by default, but any provider Vibe knows about — DeepSeek, Gemini Flash, etc.) and supervise the result via git diff. Claude orchestrates, the cheap model codes. Claude consumes 500-1500 tokens per delegation regardless of how many file reads the delegate does…

sebastienrousseau/dotfiles · 137 tokens

telegram

Send notifications, interactive questions, or multiple-choice polls to the user via Telegram. Use when the user asks to be notified ("ping me", "notify me on Telegram", "ask me when..."), when a long-running task finishes and the user is likely away, when an irreversible action needs out-of-band confirmation, or when…

laurigates/dotfiles · 117 tokens

dotfiles

Chezmoi dotfiles conventions and patterns. Use when modifying dotfiles, adding new managed files, working with chezmoi templates, or syncing agent skills and subagents through agentspec. Do NOT use for installing tools, running doctor, or updating a machine through the dotfiles CLI; use manage-machine.

urmzd/dotfiles · 67 tokens