poly-lint-and-format

poly-lint-and-format is a skill for Claude Code from Goldziher/poly. It costs 42 tokens per session (1,598 once invoked), scanned A, original, MIT.

Instructions for running poly’s code linters and formatter. Linters look for source-code problems, while the formatter standardizes code layout and can either preview or write changes.

In plain words
What is it for?
Checking or fixing code, formatting files, limiting runs to selected paths, excluding files, reading JSON results, handling exit codes, and repeating checks after changes.
Why use it?
It explains the commands, safety modes, output formats, exclusions, and the check-then-fix process needed to use poly correctly.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the poly plugin — 5 skills, 3 commands shipped together

Good fit Checking or fixing code, formatting files, limiting runs to selected paths, excluding files, reading JSON results, handling exit codes, and repeating checks after changes.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/goldziher/poly/poly-lint-and-format
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 Goldziher/poly --skill poly-lint-and-format
Clone the repo
git clone --depth 1 https://github.com/Goldziher/poly

Made for: Claude Code.

Or install poly, the plugin that ships this one along with the rest of its 5 skills, 3 commands.

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 poly-lint-and-format

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/goldziher/poly/poly-lint-and-format"><img src="https://agentmods.dev/badge/skills/goldziher/poly/poly-lint-and-format.svg" alt="Reviewed on agentmods" width="80" 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 1,598 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.01598
Opus 5.5 $0.00017 $0.00639
Sonnet 5.5 $0.00008 $0.00320
Haiku 4.5 $0.00004 $0.00160

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

Security

Grade A, and why

poly-lint-and-format 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 11d 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.

plugin/.ai-rulez/skills/poly-lint-and-format/SKILL.md · 110 lines

How it starts

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

poly Lint and Format

Commands

  • poly lint [PATHS]… — run the linters. poly applies no fixes without --fix; --fix applies autofixes (and the whole-project fix phase). --no-workspace restricts to the per-file tier — and is also what makes a run read-only: without it, plain poly lint still executes the configured whole-project tools against the live worktree, and their own side effects (a refreshed lock file, a populated build or type-checker cache) are not poly's to control. Naming paths that narrow the run skips that phase by default (poly lint . names the repo root, so it does not narrow and the phase still runs); --workspace opts back in, and the tools then cover the whole repository regardless of the named paths and of [discovery] exclude.
  • poly fmt [PATHS]… — dry run by default: reports what would change and writes nothing. --fix writes changes; --check is the explicit form of the default dry run and conflicts with --fix. poly fmt is a pure formatter — it never runs the whole-project lint phase.

Flags

  • --format pretty|json|toon — pretty (the default) is the colored, human-oriented output; json and the compact toon variant are machine-readable. Under --format json/toon, poly lint's whole-project section and every note (discovery, skips, errors) go to stderr so stdout stays a single valid document — a machine consumer must check the exit code, not just the payload.
  • --exclude <glob> — skip paths on top of .gitignore (repeatable; merged with [discovery] exclude). Gitignore-style: a glob without a leading / matches a directory of that name at any depth (e2e/** also prunes src/test/java/io/xberg/e2e/), while a leading / anchors it to the config directory (/e2e/**). poly doctor warns when a rule matches at more than one depth.
  • --include-excluded — check explicitly named files or directory roots even when they match the exclude set. Exclusions below an included directory stay active. Applying the exclude set to explicitly named paths is already the default, so --force-exclude is accepted only as a compatibility no-op — the flag is parsed and never read.
  • --config <path> — point at a specific poly.toml.
  • --no-cache — bypass the blake3 content-hash result cache.
  • -j <N> — parallelism; --no-color — plain output; --verbose — extra per-finding detail in pretty output; --debug — per-engine cache hit/miss and timing, plus debug-level logs on stderr.
  • --fix-generated — let --fix rewrite files marked DO NOT EDIT / @generated, which it otherwise reports on but leaves alone.
  • --deny-skips / --max-skips <N> — strict coverage. A skipped file is one nothing inspected: a path named on the command line that no engine covers (App.csproj), or a file every routed backend declined (Go-templated YAML, a hash-stamped generated file). A skip the caller instructed — --only/--skip narrowing an engine out, or enabled = false in config — is not charged against the budget, since it names itself in the report rather than losing coverage silently; only a poly limitation counts. Skips are always reported and named; these flags make a chargeable skip fail the run (exit 2), naming every file it fired on. --verbose lists every skip in pretty output; --format json/toon carries the full set both as a top-level skipped array and as synthetic results entries — summary.skipped is the authoritative count, so read it first and use the set only to name the files.

Read the full file on GitHub · 110 lines

Files

What ships with it

1 file 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. 11d ago Changed · +4 lines 59d994b828d2
  2. 14d ago Changed · +6 lines ac1810c5ce5c
  3. 1mo ago Changed · +6 lines 6aabba70745e
  4. 1mo ago First seen · 94 lines · 42 tokens per session scan A 6757a7754a59

Subscribe to this mod's changes

poly-lint-and-format is a skill published in the GitHub repository Goldziher/poly (20 stars, last pushed 6d ago), licensed MIT. It adds 42 tokens to every session and 1,598 once invoked, about $0.0002 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.

Related

Other skills, from other repositories

ruff-docs

Ruff — fast Python linter and formatter in Rust. 900+ rules, Black-compatible formatter, LSP, CI/CD.

pledgeandgrow/pledge-skills · 31 tokens

ESLint for Test Quality

Enforce test quality with ESLint - eslint-plugin-jest, eslint-plugin-playwright, and eslint-plugin-testing-library rules in flat config, blocking focused tests, missing assertions, and flaky waits via a CI lint gate.

PramodDutta/qaskills · 50 tokens

ux

Dual-mode UX quality skill — runs a heuristic/accessibility/motion audit on the current codebase, or validates implementation against design mockups. Fixes all issues found and commits.

skillmds/skillmd · 38 tokens

research-paper-figure-skill-factory

Use when the user wants a research-paper figure Skill Factory: build, patch, package, or use reusable specialized paper-figure-making skills from lawful literature/corpus evidence. Generated skills must use a specialized-skill-first workflow, full-feasible local PDF coverage where available, startup-plan-only first…

skillmds/skillmd · 169 tokens

refine-live

In-chat fallback for the Timeline Inspector Refine agent. Use when the user runs /refine live, asks to "refine live", "go live", or answer refine jobs — but ONLY when no persistent agent is wired (no npx transitions-refine live). Prefer npx transitions-refine live for run-and-forget (relay spawns agent per click, no…

skillmds/skillmd · 103 tokens

bpmn-generator

Enterprise BPMN 2.0 diagram generator — converts natural language process descriptions into OMG-compliant BPMN 2.0 XML files and SVG previews via a 4-phase pipeline: Intent Extraction (LLM → JSON Logic-Core) → Validation (deadlock detection, structural soundness) → ElkJS Auto-Layout → BPMN XML + SVG output. Supports…

skillmds/skillmd · 202 tokens