skillsaw-lint
Skill68 starsChanged 4 months agoApache-2.0View on GitHub
Use when modifying agentic contextual building blocks like skills (SKILL.md), slash commands, agents, hooks, plugins, marketplaces, and instruction files (CLAUDE.md, AGENTS.md, GEMINI.md, QWEN.md, Cursor, Copilot, Cline, or Kiro rules), tool configuration such as an OpenCode `opencode.json`, Muse Code hooks (`.muse/hooks.json`), a Grok Build `.grok/` project layer or a Google Antigravity customization root (`.agents/`, `.agent/`, `_agents/`, `_agent/` — hooks, MCP config, rules, registries and plugins), and committed project memory (`.agents/memory/`). Run skillsaw on the files you touched, apply autofixes, resolve remaining violations with `skillsaw explain` guidance, and re-lint until clean before considering the work complete.
- Installs packages
In this repository38 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .github/copilot-instructions.mdCopilot instructions
- .cursor/rules/development.mdcCursor rule
- .cursor/rules/python.mdcCursor rule
- .cursor/rules/testing.mdcCursor rule
- skillsaw-create-pluginSkill
- skillsaw-ecosystem-scoutSkill
- skillsaw-fixSkill
- skillsaw-issueSkill
- skillsaw-issue-solverSkill
- skillsaw-issue-triageSkill
- skillsaw-lintSkill
- skillsaw-maintenanceSkill
- skillsaw-onboardSkill
- skillsaw-pr-followupSkill
- skillsaw-release-readySkill
- skillsaw-releaseSkill
- skillsaw-review-panelSkill
- skillsaw-updateSkill
- skillsaw-create-pluginSkill
- skillsaw-ecosystem-scoutSkill
- skillsaw-fixSkill
- skillsaw-issueSkill
- skillsaw-issue-solverSkill
- skillsaw-issue-triageSkill
- skillsaw-lintSkill
- skillsaw-maintenanceSkill
- skillsaw-onboardSkill
- skillsaw-pr-followupSkill
- skillsaw-release-readySkill
- skillsaw-releaseSkill
- skillsaw-review-panelSkill
- skillsaw-updateSkill
- skillsaw-create-pluginSkill
- skillsaw-fixSkill
- skillsaw-issueSkill
- skillsaw-onboardSkill
- skillsaw-updateSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 4 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 22
Run the skillsaw CLI for every step below.
- Very specific: line 27
Run skillsaw --version. If the command is missing, check the project for a pinned version before installing — look in the Makefile, …
- Distinctive: line 35
Run the linter scoped to the files or directories you created or edited:
- Distinctive: line 41
Read each violation line: it carries the severity, file path, line number, message, and rule ID.
- Distinctive: line 46
If the lint exits 0 with no violations, your work is clean — stop here and report done.
- Distinctive: line 69
Read the rule's rationale and its "How to fix" section, then apply that guidance with a targeted edit.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
skillsaw Lint
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.
Step 1: Locate skillsaw
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).
Step 2: Lint what you wrote
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.
Step 3: Apply deterministic autofixes
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.
Step 4: Resolve the remaining violations
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.
Step 5: Re-lint until clean
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.
When to escalate
- Many violations across many files: hand off to the
skillsaw-fixskill, which runs a deeper inventory, fix, and verify loop across a whole repository. - A violation that needs a decision only the user can make (two contradictory instructions, a reference that looks stale but is intentional): present it to the user with your recommendation instead of inventing an answer.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

