缺少用于 AI 编码助手的 linter 和 lsp。验证 Claude.md、AGENTS.md、SKILL.md、hooks 和 MCP。包含用于所有主流 IDE 的插件,并提供自动修复。
缺少用于 AI 编码助手的 linter 和 lsp。验证 Claude.md、AGENTS.md、SKILL.md、hooks 和 MCP。包含用于所有主流 IDE 的插件,并提供自动修复。
⚡ Running this agent 24/7? tiyuvta inference — hosted LLM inference built for always-on agents, OpenAI/Anthropic-compatible APIs.
Catch broken agent configs before your AI tools silently ignore them. 456 rules across Claude Code, Codex CLI, OpenCode, Cursor, Copilot, and more - validating CLAUDE.md, SKILL.md, hooks, MCP configs, and other agent files.
Auto-fix | GitHub Action | VS Code + JetBrains + Neovim + Zed
New rules and tool support ship constantly. Follow for real-time updates:
Your skills don't trigger. Vercel's research found skills invoke at 0% without correct syntax. One wrong field and your skill is invisible.
"Almost right" is the worst outcome. 66% of developers cite it as their biggest AI frustration. Misconfigured agents produce exactly this.
Multi-tool stacks fail silently. Cursor + Claude Code + Copilot each want different 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.
agnix validates all of it - 456 rules sourced from official specs, academic research, and real-world breakage patterns. Auto-fix included.
Want to try it first? Open the playground - paste any agent config, see diagnostics instantly. No install, runs in your browser.
$ npx agnix .
Validating: .
CLAUDE.md:15:1 warning: Generic instruction 'Be helpful and accurate' [fixable]
help: Remove generic instructions. Claude already knows this.
.claude/skills/review/SKILL.md:3:1 error: Invalid name 'Review-Code' [fixable]
help: Use lowercase letters and hyphens only (e.g., 'code-review')
Found 1 error, 1 warning
2 issues are automatically fixable
hint: Run with --fix, --fix-safe, or --fix-unsafe to apply fixeshttps://github.com/user-attachments/assets/72d5fe7c-476f-46ea-be64-5785cf6d5600
# npm (recommended, all platforms)
npm install -g agnix
# Homebrew (macOS/Linux)
brew tap agent-sh/agnix && brew install agnix
# pip (or `uvx agnix .` to run without installing)
pip install agnix
# Cargo
cargo install agnix-cliPre-built binaries | All install options
| Editor | Install |
|---|---|
| VS Code | VS Code Marketplace |
| JetBrains | JetBrains Marketplace |
| Neovim | { "agent-sh/agnix", config = function() require("agnix").setup() end } |
| Zed | Search "agnix" in Extensions |
- name: Validate agent configs
uses: agent-sh/agnix@v0
with:
target: 'claude-code'…Full CLI reference | Full rules reference
| Tool | Rules | Count | Config Files |
|---|---|---|---|
| Agent Skills | AS-*, CC-SK-* | 31 | SKILL.md |
| Claude Code | CC-* | 53 | CLAUDE.md, hooks, agents, plugins |
| GitHub Copilot | COP-* | 6 | .github/copilot-instructions.md, .github/instructions/*.instructions.md |
| Cursor | CUR-* | 16 | .cursor/rules/*.mdc, .cursorrules, .cursor/hooks.json, .cursor/agents/**/*.md, .cursor/environment.json |
| Kiro | KIRO-*, KR-SK-*, KR-AG-*, KR-HK-*, KR-PW-*, KR-MCP-* | 53 | .kiro/steering/**/*.md, .kiro/skills/**/SKILL.md, .kiro/agents/**/*.{json,md}, .kiro/hooks/*.kiro.hook, .kiro/settings/mcp.json, .kiro/powers/*/POWER.md |
| MCP | MCP-* | 12 | *.mcp.json |
| AGENTS.md | AGM-*, XP-* | 13 | AGENTS.md, AGENTS.local.md, AGENTS.override.md |
| Cline | CLN-* | 4 | .clinerules, .clinerules/*.md, .clinerules/*.txt |
| Gemini CLI | GM-* | 9 | GEMINI.md, GEMINI.local.md, .gemini/settings.json (hooks), gemini-extension.json (extensions), .geminiignore |
Rust workspace crates:
agnix-rules - rule metadata generated from knowledge-base/rules.jsonagnix-core - shared validation engine libraryagnix-cli - command-line interface binaryagnix-lsp - language server binaryagnix-mcp - MCP server binaryagnix-wasm - WebAssembly bindings for browser/runtime integrationsContributions welcome. See CONTRIBUTING.md for the development guide.
Report a bug | Request a rule | Good first issues
MIT OR Apache-2.0
Star this repo to help other developers find agnix.
暂无开放 Issues,或尚未同步最近议题。