A linter for the files that steer AI coding agents.
Agent instructions behave like code, but most teams still review them like
prose. skillsaw gives them a linter. It validates structure across every major
AI coding ecosystem, guards against many supply-chain attacks, and applies content
and context rules backed by research and frontier lab guidance.
It understands Agent Skills,
Agent Plugins v1, Claude Code
plugins, OpenAI Codex plugins and marketplaces, CLAUDE.md, AGENTS.md,
GEMINI.md, QWEN.md, Cursor plugins and marketplaces, Copilot, Cline, Devin, Kiro, OpenCode, Goose recipes, Muse Code, Pi,
Grok Build, ZCode, Google Antigravity, native OpenClaw plugins, hooks, agent configuration, MCP Registry
server.json publisher metadata,
Vercel skills CLI lockfiles, and eval formats. Safe structural fixes can be applied
automatically; everything else comes with precise, agent-friendly guidance.
Kiro support includes steering (nested files too, which an
agent's resources can load), native JSON/Markdown agents, and workspace/agent MCP,
with explicit CLI 2.x and V3 compatibility boundaries.
Paste this into your coding agent to onboard skillsaw now:
Read and follow the instructions at
https://raw.githubusercontent.com/stbenjam/skillsaw/refs/heads/main/skills/skillsaw-onboard/SKILL.md
to onboard this repo to skillsaw.
Or install the onboarding skill for regular use (recommended). Run this from
the repository you want to lint:
npx skills add stbenjam/skillsaw
Select skillsaw-onboard and your coding agent, then ask the agent to use
that skill to onboard the repo. See Onboard with AI
for plugin installation alternatives.
Or run it yourself. No installation is required with
uvx:
uvx skillsaw tree # See what skillsaw detects
uvx skillsaw # Lint the current repository
uvx skillsaw fix # Apply safe, deterministic fixes
uvx skillsaw baseline # Accept existing findings and fail only on new ones
For lint --fail-on info, use baseline --include-info to accept existing
INFO findings too. A configured fail-on: info includes them automatically.
Goose recipes under .goose/recipes/ receive shared content and MCP security
checks. Enable the optional recipe checks for standalone recipe directories with:
Ruler .ruler/ and Rulesync .rulesync/rules/ sources are discovered
automatically. Generate explicitly, then lint the native consumer files with
skillsaw. See the generator workflow for
source checks, verified-copy attribution, and Rulesync's ownership opt-in.
What it catches
Multi-ecosystem structure & compatibility: schema, frontmatter, and manifest validation for Agent Skills (SKILL.md), Claude Code, OpenAI Codex (project config, plugins & marketplaces), Cursor plugins & marketplaces, Grok Build (project config, plugins & marketplaces), Z.ai ZCode (.zcode/ agents, commands, skills and config.json hooks & MCP, plugins & marketplaces), Google Antigravity (configuration in any customization root — .agents/, .agent/, _agents/, _agent/ — its rules/ and agents/ prose, plugins, hooks, MCP servers and registries), Agent Plugins v1 (plugin.json, mcp.json), GitHub Copilot & VS Code custom agents (.github/agents/), OpenCode configuration, Pi packages and project resources, native OpenClaw plugins (including optional theme and artwork declarations), APM packages, MCP server maps, and MCP Registry metadata.
Pi packages and .pi/ project resources are supported, including native skills,
prompt templates, manifest globs, local package references, and first-party
.pi/mcp.json servers. Shared MCP credential and policy checks cover these
servers; enable pi-mcp-valid for Pi 1.5 field validation, including
oauth.authServerMetadataUrl, and pi-settings-schema to check
.pi/settings.json against Pi's published 1.5.0 settings schema. See
Pi configuration checks,
Pi settings schema checks, and
Pi MCP checks.
Built for real workflows
skillsaw works locally, in CI, and inside coding-agent workflows. It provides
line-level findings, explanations for every rule, deterministic autofixes,
baselines for gradual adoption, GitHub and GitLab integration, and text, JSON,
SARIF, HTML, and Code Climate output. Rules are configurable, and projects can
add local rules or install rule plugins. Typo'd or wrong-typed rule options
in .skillsaw.yaml are reported with did-you-mean suggestions instead of
being silently ignored.
Updating from 0.20? See the 0.21 upgrade guide
for removed commands and rules, new opt-in checks, and Pi skill validation.
Codex portable plugins can place OpenAI metadata and hooks in
plugin.json under extensions.com.openai. Skillsaw follows that overlay's
precedence over .codex-plugin/plugin.json, validates its declared resources,
and checks portable skills/ and mcp.json through the Agent Plugins rules.
The optional extensions.com.openai.onboardingSkill must reference a bundled
skill's SKILL.md, relative to the plugin root (with or without ./). The
manifest rule checks its
type, effective skill membership, and containment, including symlink escapes.
Project .codex/config.toml files also get a targeted warning
when an HTTP MCP server uses the ignored headers field instead of
http_headers or env_http_headers.
Measure the result
Every run produces a letter grade based on weighted violation density. The
same data can be rendered as a self-contained report card for a README or
project dashboard.
skillsaw's own report card, generated with skillsaw badge --large.
Questions and bug reports belong in GitHub
Issues. For a shareable diagnostic
bundle, run skillsaw feedback in the affected repository and review the ZIP
before attaching it to an issue. Files selected with --include or --config
are copied verbatim, including BOMs and line endings. Selections default to
4 MiB per file and 16 MiB total across distinct ZIP members; use positive byte
values with --max-file-bytes and --max-total-bytes to override these limits.
An oversized selection stops before diagnostic lint and creates no bundle.
These limits cover selected file bytes only, not diagnostic output or total
process memory. skillsaw is licensed under the Apache License 2.0.
Thank you to our contributors
skillsaw is better because people contribute code, bug reports, and ideas. Thank
you!