/skillsaw:skillsaw-lintfrom skillsaw
Lints agentic context files (skills, slash commands, agents, hooks, plugins, instruction files, and tool configs) using the skillsaw CLI. Apply autofixes and resolve violations before reporting work complete.
Ships in skillsaw. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You just authored or edited agentic context — a skill, slash command, agent,
hook, plugin, marketplace, or instruction file (CLAUDE.md, AGENTS.md,
GEMINI.md, Cursor/Copilot/Cline/Kiro rules), or the configuration that
loads it (an OpenCode opencode.json). That content feeds an agent's
context window, and defects in it — weak language, contradictions,
placeholder text, instructions buried in attention dead zones — degrade
every future session that loads it. Lint it with skillsaw and improve
it before you report the work as done.
Run the skillsaw CLI for every step below; it is the interface for linting, fixing, and explaining — replace any hand-rolled check with it.
Run skillsaw --version. If the command is missing, check the project for a
pinned version before installing — look in the Makefile, pyproject.toml, or
an existing .venv (e.g. .venv/bin/skillsaw --version). Use that version
with uvx skillsaw==<version> as the prefix for every command below (or
pip install skillsaw==<version> if uvx is unavailable).
Run the linter scoped to the files or directories you created or edited:
skillsaw lint <path>
Read each violation line: it carries the severity, file path, line number,
message, and rule ID. If the repository defines its own lint entry point (a
Makefile lint target that runs skillsaw, for example), run that instead —
it may pin a version or pass flags like --strict.
If the lint exits 0 with no violations, your work is clean — stop here and report done.
skillsaw fix <path>
This applies safe, structural fixes (missing frontmatter, kebab-case names,
and similar). Run skillsaw fix --dry-run first to inspect the diff before
anything is written. Run skillsaw fix --suggest for a second tier of
mechanically derived fixes (stale-reference updates after a rename, for
example) — review each hunk in that tier before applying it.
For each rule ID still reported, load its guidance:
skillsaw explain <rule-id>
Read the rule's rationale and its "How to fix" section, then apply that
guidance with a targeted edit. Change only the text that triggers the
violation and keep the meaning you intended when you wrote it. Do not guess
a fix from the violation message alone; run skillsaw explain and follow
its guidance.
Re-run skillsaw lint <path> after your edits and repeat Steps 3–4 until it
exits 0. Then run skillsaw from the repository root to confirm your changes
introduced no violations elsewhere. The lint output ends with a letter grade
for the repository's agentic content — leave it the same or better than you
found it.
skillsaw-fix
skill, which runs a deeper inventory, fix, and verify loop across a whole
repository.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub stbenjam/skillsaw --plugin skillsaw6 skills in this plugin
/skillsaw-create-pluginCreate a skillsaw rule plugin — a pip-installable Python package that adds custom lint rules to skillsaw. Walks through scaffolding the package, writing rules against the lint tree, testing, and publishing to PyPI. Use when a user wants to share skillsaw rules across repositories or publish them for others./skillsaw-fixFix skillsaw lint violations — apply deterministic autofixes, then resolve the remaining violations with targeted edits guided by `skillsaw explain`. Use when skillsaw reports violations, when asked to clean up lint findings, or after `skillsaw fix` leaves violations behind./skillsaw-issueUse when skillsaw reports a likely false positive, misses an edge case, behaves incorrectly, or needs an RFE. Gather a safe report and, only with explicit user permission, create a feedback bundle or open a GitHub issue./skillsaw-onboardOnboard a repository to skillsaw — run the linter, triage the findings by rule, apply autofixes, manually fix what remains, set up CI, and create a baseline. Use when adopting skillsaw on a new or existing project./skillsaw-updateUpdate a repository to the newest skillsaw — upgrade the install, report new rules and their findings in your repo, and bump version pins (GitHub Action SHAs, Makefile targets, pre-commit hooks). Use when a new skillsaw release is out and you want its latest checks.Other plugins' skills for the same job