agent-sh/agnix
The missing linter and lsp for AI coding assistants. Validate CLAUDE.md, AGENTS.md, SKILL.md, hooks, MCP. Plugin for all major IDEs included, with autofixes.
What is agnix?
agnix is a linter for AI agent configuration files. If you use coding tools like Claude Code, Cursor, or GitHub Copilot, those tools read config files (like CLAUDE.md, SKILL.md, or .mcp.json) to know how to behave. When those files have mistakes, the AI tools often silently ignore them — no error, no warning, your skill just never triggers. agnix scans those files and tells you what's broken, and can often fix it automatically.
The problem it solves
The README makes a few concrete claims about why this matters:
- Skills don't trigger. Research cited in the README found skills invoke at 0% without correct syntax. One wrong field and your skill is invisible.
- "Almost right" is the worst outcome. A survey cited in the README says 66% of developers call this their biggest AI frustration.
- Multi-tool stacks fail silently. Cursor, Claude Code, and Copilot each want different config formats. A config that works in one tool breaks in another.
- Bad patterns get amplified. AI assistants don't ignore wrong configs — they learn from them.
What it does
- Validates agent config files using 760 rules across tools like Claude Code, Codex CLI, OpenCode, Cursor, Copilot, and more. Rules come from official specs, academic research, and real-world breakage patterns.
- Auto-fixes problems. You can apply only safe fixes (
--fix), or all fixes including lower-confidence ones (--fix-unsafe). - Explains rules.
agnix explain MCP-018shows why a rule exists and its evidence. - Targets specific tools.
agnix --target claude-code .checks only Claude Code rules plus generic ones. - Runs in your browser. A playground lets you paste any config and see diagnostics instantly, no install.
Quick example
Running npx agnix . in a project might output something like:
CLAUDE.md:15:1 warning: Generic instruction 'Be helpful and accurate' [fixable]
.claude/skills/review/SKILL.md:3:1 error: Invalid name 'Review-Code' [fixable]
Found 1 error, 1 warning
2 issues are automatically fixable
How to install and use it
Install via npm, Homebrew, pip, Cargo, or pre-built binaries. Then run commands like:
agnix .— validate the current directoryagnix --fix .— apply safe fixesagnix --strict .— treat warnings as errorsagnix --format github .— output GitHub Actions annotations
There are also editor extensions for VS Code, JetBrains, Neovim, and Zed, plus a GitHub Action for CI pipelines.
Supported tools
The README lists maintenance priorities by tier:
| Tier | Tools |
|---|---|
| S | Claude Code, Codex CLI |
| A | Kiro, OpenCode, Pi |
| B | Antigravity CLI, Grok Code |
| C | Muse Code, Kimi Code |
| D | GitHub Copilot, Cline, Cursor, legacy Gemini CLI |
Rule counts range from 13 (AGENTS.md) to 170 (Claude Code). Some tools (Continue, Aider, Amazon Q, Tabnine, Codeium, Devin/Windsurf, Amp) are explicitly outside active support; Roo Code support was removed in version 0.59.0.
How it's built
agnix is a Rust workspace with several crates:
agnix-rules— rule metadataagnix-core— the shared validation engineagnix-cli— the command-line toolagnix-lsp— a language server for editor integrationagnix-mcp— an MCP serveragnix-wasm— WebAssembly bindings so it can run in browsers
License
MIT OR Apache-2.0 (dual licensed).
Related
- Project
- Project
- Project
- Project
- Project