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.
npx skills add pledgeandgrow/pledge-skills --skill prettiergit clone --depth 1 https://github.com/pledgeandgrow/pledge-skillsWrote 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/pledgeandgrow/pledge-skills/prettier)<a href="https://agentmods.dev/skills/pledgeandgrow/pledge-skills/prettier"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/prettier/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/pledgeandgrow/pledge-skills/prettier"><img src="https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/prettier.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.00034 | $0.01156 |
| Opus 5.5 | $0.00014 | $0.00462 |
| Sonnet 5.5 | $0.00007 | $0.00231 |
| Haiku 4.5 | $0.00003 | $0.00116 |
Grade A, and why
prettier-docs 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.
How it starts
The opening of the file, as written. The whole thing — 98 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Prettier — Code Formatter
Opinionated code formatter that enforces a consistent style across your entire codebase.
Version: 3.9.5 | Language: JavaScript/TypeScript | License: MIT
Quick Reference
| Topic | File |
|---|---|
| About, Philosophy & Rationale (What is Prettier, Why Prettier, Prettier vs Linters, Option Philosophy, Rationale) | about.md |
| Getting Started (Install, Ignoring Code, Editor Integration, Watching For Changes) | getting-started.md |
| CLI, API, Browser & CI (CLI commands & flags, JavaScript API, Browser standalone, CI with GitHub Actions) | cli-api.md |
| Options & Configuration (All format options, Configuration files, Sharing configurations, EditorConfig) | options-config.md |
| Integrations & Plugins (Linters integration, Pre-commit hooks, Plugins API, Related projects) | integrations.md |
| Technical Details & Enterprise (Printer algorithm, IR/Doc, Tidelift subscription) | technical.md |
Core Concepts
- Opinionated formatting: Prettier removes all original styling and reprints code from scratch, taking line length into account.
- AST-based: Parses code into an AST, then re-prints with its own rules. Formatting won't affect the AST.
- Supported languages: JavaScript, JSX, Angular, Vue, Flow, TypeScript, CSS/Less/SCSS, HTML, Ember/Handlebars, JSON, GraphQL, Markdown/GFM/MDX, YAML, LWC, MJML.
- Options are frozen: No new formatting options will be added. The existing set is final.
- Use Prettier for formatting, linters for bugs: Prettier handles formatting rules; linters handle code-quality rules.
Official Documentation
- What is Prettier? — Introduction
- Why Prettier? — Motivation
- Prettier vs. Linters — Comparison
- Option Philosophy — Why options are frozen
- Rationale — Design decisions
- Install — Getting started
- Ignoring Code — .prettierignore & inline comments
- Editor Integration — VS Code, Vim, Emacs, etc.
- WebStorm Setup — JetBrains IDEs
- Vim Setup — vim-prettier, Neoformat, ALE, coc-prettier
- Watching For Changes — File watcher setup
- CLI — Command-line usage
- API — Programmatic usage
- Browser — Standalone browser build
- Run Prettier on CI — GitHub Actions
- Options — All format options
- Configuration File — Config files & overrides
- Sharing configurations — Shareable configs
- Integrating with Linters — ESLint/Stylelint
- Pre-commit Hook — Git hooks
- Plugins — Plugin API & development
- Related Projects — Ecosystem
- Technical Details — Printer algorithm
- For Enterprise — Tidelift subscription
What ships with it
6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 1mo ago First seen · 98 lines · 34 tokens per session scan A 2a0481d23166
prettier-docs is a skill published in the GitHub repository pledgeandgrow/pledge-skills (10 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 1,156 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-08-31.
Other skills, from other repositories
hero-diff-highlight
A dark code editor reveals a red deletion then a green addition with a soft pulse. Function: PR / code-change explainer.
triage-contributor-pr
Triage open pull requests from external contributors to prisma/orm and produce a per-PR verdict with evidence. Use when a maintainer asks to triage, evaluate, assess, or review the queue of incoming contributor PRs, to decide whether a fork PR is safe to run CI on, to check whether a PR is in scope for its version…
review-implement-phase
Implements triaged review actions, commits focused fixes, and posts Done plus resolves threads. Use when the user wants only the implementation phase of the review-framework workflow.
review-triage-phase
Produces canonical review actions from fetched review state and renders action markdown. Use when the user wants only triage/action-planning for the review-framework workflow.
compiler-commit
Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits with the [compiler] or [rust-compiler] prefix.
review
Comprehensive security and correctness audit. Use for review, deep review, thermo nuclear, or thermonuclear requests and branch or PR diff audits.