| name | agnix:agnix |
| description | This skill should be used when the user asks to "lint AI assistant config", "check AGENTS.md", "validate SKILL.md", "agnix lint", or wants to detect and fix best-practice violations in Claude Code / agent configuration files. |
agnix
AI コーディングアシスタント設定ファイルのリンター。/agnix:lint で検証、/agnix:setup でインストール。
サブコマンド
/agnix:lint
設定ファイルを lint する。
agnix --target claude-code .
agnix --target claude-code CLAUDE.md
agnix --target claude-code --fix .
agnix --target claude-code --fix-safe .
agnix --dry-run --show-fixes --target claude-code .
agnix --target claude-code --strict .
引数:
--target <tool> — 対象ツール(claude-code, cursor, copilot, mcp, agents-md, agent-skills, gemini-cli)
--fix — HIGH + MEDIUM confidence の自動修正を適用
--fix-safe — HIGH confidence のみ修正
--fix-unsafe — 全 confidence レベルの修正を適用
--dry-run --show-fixes — 修正のプレビュー(差分表示)
--strict — 警告をエラーとして扱う
--target 未指定時は全ターゲットが対象になる。Claude Code プロジェクトでは --target claude-code を推奨。
/agnix:setup
agnix をインストールする。
npm install -g agnix
brew tap avifenesh/agnix && brew install agnix
cargo install agnix-cli
インストール確認:
agnix --version
対象ファイル
agnix が検証する設定ファイル:
CLAUDE.md, AGENTS.md, SKILL.md
hooks.json, plugin.json, settings.json
*.mcp.json
.claude/rules/*.md
ルール数
169 ルール(Claude Code: 53, Agent Skills: 31, AGENTS.md: 13, MCP: 12, Cursor: 10, Copilot: 6, Gemini CLI: 3 等)
CI
GitHub Actions で CI に組み込める:
- uses: avifenesh/agnix@v0
with:
target: claude-code