prettier-docs

prettier-docs is a skill for Claude Code, Codex from pledgeandgrow/pledge-skills. It costs 34 tokens per session (1,156 once invoked), scanned A, original, MIT.

A guide to Prettier, a tool that automatically rewrites code into a consistent style. It covers its command line, configuration, editor use, plugins, and continuous integration.

In plain words
What is it for?
Use it to format JavaScript and TypeScript files, configure formatting rules, run formatting in editors or CI, and connect it with linters and pre-commit checks.
Why use it?
It removes arguments and manual work over formatting, making code easier to read and keeping style consistent across a project.

Skill for Claude CodeCodex

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

Good fit Use it to format JavaScript and TypeScript files, configure formatting rules, run formatting in editors or CI, and connect it with linters and pre-commit checks.

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

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 prettier-docs

README.md
[![agentmods](https://agentmods.dev/badge/skills/pledgeandgrow/pledge-skills/prettier/github.svg)](https://agentmods.dev/skills/pledgeandgrow/pledge-skills/prettier)
Your own site
<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.

agentmods 80×15 button for prettier-docs

Your own site · 80×15
<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>
Per session 34 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,156 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.00034 $0.01156
Opus 5 $0.00017 $0.00578
Sonnet 5 $0.00007 $0.00231
Haiku 4.5 $0.00003 $0.00116

Measured 9d ago against content hash 2a0481d23166, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

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.

skills/prettier/SKILL.md · 98 lines

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

Read the full file on GitHub · 98 lines

Files

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.

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. 9d ago First seen · 98 lines · 34 tokens per session scan A 2a0481d23166

Subscribe to this mod's changes

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.

Related

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.

react/react · 42 tokens

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…

kdcube/kdcube · 74 tokens

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.

htmlstreamofficial/preline · 66 tokens

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…

htmlstreamofficial/preline · 89 tokens

accessibility-champion

Professional Accessibility Champion Expert skill. Build accessible, performance-tuned, responsive UI components with clean design standards.

AtulPurohit/Antigravity-Awesome-Skills · 26 tokens

angular-enterprise

Professional Angular Enterprise Expert skill. Build accessible, performance-tuned, responsive UI components with clean design standards.

AtulPurohit/Antigravity-Awesome-Skills · 25 tokens