skillsaw-fix
БесплатноБез исполняемых скриптовНе проверенFix skillsaw lint violations — apply deterministic autofixes, then resolve the remaining violations with targeted edits guided by `skillsaw explain`. Use when…
от stbenjam★ 73 звезды на GitHubОб этом скилле
skillsaw Fix
Review and fix skillsaw lint violations in this repo. skillsaw lints agentic contextual building blocks (CLAUDE.md, skills, plugins, agents, hooks, etc.). The tool applies deterministic fixes itself; handle everything else yourself — read the violation, load the rule's how-to-fix guidance, and make a targeted edit.
Follow the steps in order. Report progress to the user at each stage.
Step 1: Install and locate skillsaw
Run skillsaw --version. If the command is missing, use uvx skillsaw as the
prefix for every command below (or pip install skillsaw if uvx is
unavailable).
Step 2: Run the lint and build an inventory
Run skillsaw (lint) from the repo root and capture the output. Each
violation line includes the severity, file path, line number, message, and
rule ID — read them all.
If the lint exits 0 with no violations, tell the user the repo is clean and stop.
Build an inventory: group the violations by rule ID and check how many files each rule touches. Review this summary with the user before making changes.
Step 3: Run deterministic autofixes
Run skillsaw fix. This applies safe, structural fixes (missing frontmatter, kebab-case names, plugin registration, and similar).
Then run skillsaw fix --suggest --dry-run to preview the suggested tier.
Suggested fixes (e.g. updating stale references after a rename) are
mechanically derived but may over-match, so review each hunk in the diff
individually: for a stale-reference rewrite, check whether the flagged text
is really a reference to the skill or just the same word used generically —
"the data-parser skill" is a reference; "our data parser" is not. If every
hunk is correct, run skillsaw fix --suggest to apply the tier. If any hunk is
wrong, skip the tier entirely, handle those violations manually in Step 5, and
keep only the edits you judged correct.
Re-run skillsaw and report how many violations the autofixer resolved.
Step 4: Read fix guidance for each remaining rule
For every rule ID still in the inventory, run:
skillsaw explain <rule-id>
Read the rule's rationale and its "How to fix" section from the output — this is the authoritative guidance for what a correct fix looks like. Read it before editing anything. Never guess at what a rule wants from its message alone.
Step 5: Review and fix the remaining violations
Handle the violations file by file. For each violation:
- Read the file and understand the context around the flagged line
- Follow the
skillsaw explainguidance with a targeted edit — change only the text that triggers the violation, and keep the author's meaning, structure, and formatting - Keep edits minimal — never rewrite a whole file to fix one line
After finishing a file, re-run skillsaw scoped to confirm the violations
are gone and your edit introduced no new ones. Always re-lint even after an edit
that looks obviously correct: wrap a path in a link, split a section,
or add a directive, and you can trip a different rule you now have to fix.
Handle common cases
- content-weak-language: remove hedges ("try to", "consider", "if possible") — use direct imperatives or explicit conditions instead.
- content-tautological: delete empty truisms ("follow best practices"), or write the specific, actionable instruction the author meant instead.
- content-negative-only: keep the prohibition, add what to do instead.
- content-unlinked-internal-reference: wrap the path in
[path](path)only when it resolves relative to the flagged file's own directory. Links resolve from the file, not the repo root — so never link a repo-root path mentioned in a doc nested under a subdirectory, since it does NOT resolve from there and a link to it tripscontent-broken-internal-reference(a warning, strictly worse than the info you started with). Keep those bare and suppress the rule instead (see "Suppressing violations you cannot fix in content"). Verify a path exists before you link it — never link stale paths that become broken links. - agentskill-rename-refs: single-word skill names are flagged but never
rewritten automatically — the word is too ambiguous. Check each flagged
line yourself: rewrite it only if the mention actually refers to the skill
(
/nameinvocations,skills/name/paths, "the name skill"), and keep generic uses of the word unchanged. - Missing or invalid frontmatter fields: derive names from directory names, and write descriptions from the body content.
- content-embedded-secrets: replace the secret with an environment variable placeholder, and always tell the user to rotate the credential — removing it from the file does not remove it from git history.
Handle violations you cannot fix in content
Some violations are correct signal but the
Установить skillsaw-fix в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл skillsaw-fix?
Fix 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-fix?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл skillsaw-fix запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
patterns
Find patterns worth sharing from recent PRs and repo history, both repeats to fix and good practices worth spreading. Use when a champion wants to know what…
от Anthropiccopilot-cli-quickstart
Use this skill when someone wants to learn GitHub Copilot CLI from scratch. Offers interactive step-by-step tutorials with separate Developer and…
от GitHubvardoger-analyze
Use when the user asks to personalize the GitHub Copilot CLI assistant, adapt Copilot to their style, use vardoger, or analyze their Copilot CLI conversation…
от GitHubpolicy-lookup
Find and explain company policies in plain language. Trigger with "what's our PTO policy", "can I work remotely from another country", "how do expenses work"…
от Anthropic