amagi-skill-lint
The amagi-skill-lint CLI checks Claude Code SKILL.md files and subagent .md files for broken frontmatter, missing or truncated descriptions, descriptions with no "use when" cue, oversized bodies, links to files that do not exist, duplicate names, and descriptions that overlap enough to make the wrong skill fire. Use when the user wants to lint, audit or clean up a skills or agents folder, find out why a skill does not load or triggers wrongly, or add a skill check to CI.
- License 许可
- MIT
- 最近更新
- 2026-11-03
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- amagi-skill-lint
- description
- The amagi-skill-lint CLI checks Claude Code SKILL.md files and subagent .md files for broken frontmatter, missing or truncated descriptions, descriptions with no "use when" cue, oversized bodies, links to files that do not exist, duplicate names, and descriptions that overlap enough to make the wrong skill fire. Use when the user wants to lint, audit or clean up a skills or agents folder, find out why a skill does not load or triggers wrongly, or add a skill check to CI.
02 资源文件 26
- 其他.gitattributes32 B
- 参考文档.github/workflows/ci.yml898 B
- 参考文档.github/workflows/publish.yml891 B
- 其他.gitignore85 B
- 资产文件assets/demo.gif197.2 KB
- 许可证LICENSE1.1 KB
- 其他pyproject.toml1.2 KB
- 参考文档README.md10.0 KB
- 脚本src/amagi_skill_lint/__init__.py68 B
- 脚本src/amagi_skill_lint/__main__.py48 B
- 脚本src/amagi_skill_lint/cli.py4.6 KB
- 脚本src/amagi_skill_lint/discover.py2.4 KB
- 脚本src/amagi_skill_lint/frontmatter.py3.3 KB
- 脚本src/amagi_skill_lint/overlap.py3.8 KB
- 脚本src/amagi_skill_lint/refs.py3.9 KB
- 脚本src/amagi_skill_lint/report.py4.7 KB
- 脚本src/amagi_skill_lint/rules.py21.1 KB
- 脚本tests/conftest.py1.2 KB
- 参考文档tests/fixtures/clean_pack/agents/test-writer.md309 B
- 参考文档tests/fixtures/demo_pack/agents/code-reviewer.md321 B
- 参考文档tests/fixtures/demo_pack/agents/security-reviewer.md152 B
- 脚本tests/test_cli.py3.7 KB
- 脚本tests/test_discover.py2.2 KB
- 脚本tests/test_frontmatter.py1.6 KB
- 脚本tests/test_refs_overlap.py3.4 KB
- 脚本tests/test_rules.py13.8 KB
03 SKILL.md 正文
amagi-skill-lint
When to use
- A skill or subagent does not show up, never triggers, or fires when another one should have.
- The user wants a whole
~/.claude/skills,.claude/agentsor plugin repo checked before sharing or committing it. - The user wants a CI step that fails on broken skills.
It reads files only. No network, no LLM calls, no API keys.
How to invoke
amagi-skill-lint [PATH ...] [--format text|json|github] [--fail-on error|warning|info|never]
[--ignore IDS] [--select IDS] [--overlap 0.4] [--max-lines 500]
[--max-tokens 5000] [--min-description 40] [--quiet] [--list-rules]
PATH can be a skills folder, an agents folder, one .md file or a repo root.
Any SKILL.md counts as a skill; any .md directly inside a folder named
agents counts as a subagent. With no PATH it scans the current folder.
Examples:
amagi-skill-lint ~/.claude/skills ~/.claude/agents
amagi-skill-lint . --format github
amagi-skill-lint skills --ignore SL026 --fail-on warning
amagi-skill-lint --list-rules
What to read afterward
- One block per file with problems: line number, severity, rule ID, message.
- "Overlapping descriptions": pairs of skills (or of agents) whose descriptions share most of their distinctive words, with the score and the shared words. Make each description name what sets it apart.
- The summary line: how many tokens all names and descriptions cost in every session, the three largest bodies, then the error/warning/info counts.
- Exit codes: 0 clean, 1 findings at or above
--fail-on(default error), 2 usage error or no files found.
Fixing common findings
- SL002 yaml-invalid: a value contains
:. Wrap the whole description in quotes. - SL020 description-truncated: description plus when_to_use is over 1,536 characters, so Claude Code cuts it. Move detail into the body.
- SL023 no-trigger-cue: add a sentence like "Use when the user asks to ...".
- SL040 / SL041: the body points at a file the skill does not ship.
- SL050 duplicate-name: two files declare the same name. Rename or delete one.
- To silence a rule in one file, put
<!-- skill-lint-disable SL041 -->in it.
Notes
- Token counts are estimates (characters / 4), not a real tokenizer.
- The overlap score is TF-IDF cosine over description words. 0.4 is the
default; raise
--overlapto see fewer pairs.
04 同仓库更多 Skills
release-notes
Writes release notes from the git log since the last tag. Run it by hand with /release-notes before tagging a release.
pdf-tables
Extract tables and form fields from PDF files and fill PDF forms. Use when the user mentions a PDF form, PDF tables, or wants fields pulled out of a PDF.
pdf-forms
Fill, inspect and flatten fillable PDF forms (W-9, vendor onboarding, permit applications). Use when the user wants to fill a PDF form, list its fields, or check which fields are still empty.
Meeting_Notes
I can help you with meeting notes and various other stuff.
invoice-chaser
暂无简介
csv-cleaner
Cleans messy CSV exports by trimming whitespace, fixing dates to ISO 8601 and dropping duplicate rows. Use when the user hands over a CSV that will not import cleanly into a spreadsheet or database.