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 | $0.00017 | $0.00578 |
| Sonnet 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 9d 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.
- 9d 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 1mo ago), licensed MIT. It adds 34 tokens to every session and 1,156 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-08-31.
Other skills, from other repositories
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.
pdf-press
Teaches agents how to generate Markdown, HTML (with embedded SVG), and Mermaid content that renders beautifully to multi-page PDF via writepdf, with proper page breaks, compact professional layouts, brand and domain-adaptive color schemes, multi-column support for scientific papers, magazine-style editorial documents…
preline-mcp
Add, integrate, or build Preline UI components and blocks into HTML files via the Preline MCP server. Use when the user mentions "preline", says "/preline", asks to add a UI component, or requests a Preline block (a ready-made page section) using Preline UI.
preline-theme-generator
Generate, preview, save, or validate Preline theme CSS using the bundled local generator in this skill. Use when the user asks to create a new Preline theme, match a brand color, translate a mood into a theme, generate light and dark theme CSS, preview theme output without writing files, or review and fix generated…
accessibility-champion
Professional Accessibility Champion Expert skill. Build accessible, performance-tuned, responsive UI components with clean design standards.
angular-enterprise
Professional Angular Enterprise Expert skill. Build accessible, performance-tuned, responsive UI components with clean design standards.