lint

lint is a skill for Claude Code, Codex from open-gsd/gsd-pi. It costs 41 tokens per session (1,808 once invoked), scanned A, original, MIT.

A code-checking and formatting tool that finds problems in changed files or a chosen path, then can apply safe fixes. It detects common JavaScript, TypeScript, and language-specific tools such as ESLint, Biome, and Prettier.

In plain words
What is it for?
Use it to check changed files, lint a directory, format code, and automatically fix issues where supported.
Why use it?
It catches code issues and inconsistent formatting before they cause review or build problems. It also avoids manually choosing the right checker for each project.

Skill for Claude CodeCodex

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

Good fit Use it to check changed files, lint a directory, format code, and automatically fix issues where supported.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/open-gsd/gsd-pi/lint
About the project

GSD Pi is a command-line coding agent and project workflow system that plans, implements, verifies, and tracks software work through milestones, tasks, Git worktrees, and stored project notes. It is for developers who want structured, longer-running agent sessions using different model providers. The catalogue entries extend GSD Pi with skills and agents.

open-gsd/gsd-pi · 1,205 stars · on GitHub · opengsd.net

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 open-gsd/gsd-pi --skill lint
Clone the repo
git clone --depth 1 https://github.com/open-gsd/gsd-pi

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 lint

README.md
[![agentmods](https://agentmods.dev/badge/skills/open-gsd/gsd-pi/lint.svg)](https://agentmods.dev/skills/open-gsd/gsd-pi/lint)
Your own site
<a href="https://agentmods.dev/skills/open-gsd/gsd-pi/lint"><img src="https://agentmods.dev/badge/skills/open-gsd/gsd-pi/lint.svg" alt="Measured on agentmods" height="20"></a>
Per session 41 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,808 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 warn 7 Sept 2026
SkillSpector: 5 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 31
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 32
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 36
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 42
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 43
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00041 $0.01808
Opus 5 $0.00020 $0.00904
Sonnet 5 $0.00008 $0.00362
Haiku 4.5 $0.00004 $0.00181

Measured 8d ago against content hash 83cd4522e31a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

lint 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 8d 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.

src/resources/skills/lint/SKILL.md · 146 lines

How it starts

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

<working_directory_awareness> Before running any git or build command: check whether your dispatch context specifies a working directory (look for "Working directory:" in your initial prompt). If it does and pwd does not match it, prefix every git invocation with -C <that path> (e.g. git -C /path/to/worktree diff --name-only) and run linters/formatters with the explicit path argument. Linting the wrong directory is a silent failure mode. </working_directory_awareness>

  • No arguments: Lint only files changed in the current working tree (git diff --name-only and git diff --cached --name-only).
  • A file or directory path: Lint only that specific path (e.g., /lint src/utils).
  • --fix: Automatically apply safe fixes. Can be combined with a path (e.g., /lint src/ --fix).
  • --fix without a path: Auto-fix changed files only.

Parse the arguments before proceeding. If --fix is present, set fix mode. If a non-flag argument is present, treat it as the target path.

JavaScript/TypeScript Linters:

  1. Biome — Look for biome.json or biome.jsonc in the project root.

    • Lint command: npx @biomejs/biome check . (or --apply with --fix)
    • Format command: npx @biomejs/biome format . (or --write with --fix)
    • Biome handles both linting and formatting. No need for a separate formatter if Biome is detected.
  2. ESLint — Look for .eslintrc, .eslintrc.* (js, cjs, json, yml, yaml), eslint.config.* (js, mjs, cjs, ts, mts, cts), or an "eslintConfig" key in package.json.

    • Lint command: npx eslint . (or --fix with --fix)
    • Check package.json for the installed version. ESLint 9+ uses flat config (eslint.config.*).

JavaScript/TypeScript Formatters (only if Biome was NOT detected):

  1. Prettier — Look for .prettierrc, .prettierrc.*, prettier.config.*, or a "prettier" key in package.json.
    • Format check: npx prettier --check .
    • Format fix: npx prettier --write .

Rust:

  1. rustfmt — Look for rustfmt.toml or .rustfmt.toml, or Cargo.toml in the project root.
    • Format check: cargo fmt -- --check
    • Format fix: cargo fmt
    • Lint: cargo clippy (if available)

Go:

  1. Go tools — Look for go.mod in the project root.
    • Format check: gofmt -l .
    • Format fix: gofmt -w .
    • Lint: golangci-lint run (if installed), otherwise go vet ./...

Python:

  1. Ruff — Look for ruff.toml or a [tool.ruff] section in pyproject.toml.

    • Lint command: ruff check . (or --fix with --fix)
    • Format command: ruff format . (or --check without --fix)
  2. Black — Look for a [tool.black] section in pyproject.toml, or black in requirements files.

    • Format check: black --check .
    • Format fix: black .

If no linter or formatter is detected, inform the user and suggest common options for their project type based on the files present.

Step 1: Determine target files

  • If a path argument was provided, use that path.
  • If no path argument, get changed files:
    git diff --name-only
    git diff --cached --name-only
    
    Filter to files that still exist on disk. If no files are changed, inform the user and offer to lint the entire project instead.

Step 2: Run the detected tools

Run the linter and/or formatter against the target files or directory.

  • Without --fix: Run in check/report mode only. Do NOT modify any files.
  • With --fix: Run with auto-fix flags enabled.

Read the full file on GitHub · 146 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. 8d ago First seen · 146 lines · 41 tokens per session scan A 83cd4522e31a

Subscribe to this mod's changes

lint is a skill published in the GitHub repository open-gsd/gsd-pi (1,205 stars, last pushed yesterday), licensed MIT. It adds 41 tokens to every session and 1,808 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-30.