|
| 1 | +# agnix - Agent Config Linter |
| 2 | + |
| 3 | +Real-time validation for agent configuration files in VS Code. |
| 4 | + |
| 5 | +## Features |
| 6 | + |
| 7 | +- Real-time diagnostics for agent configuration files |
| 8 | +- Validates 99 rules across multiple configuration types |
| 9 | +- Status bar indicator showing validation status |
| 10 | +- Syntax highlighting for SKILL.md frontmatter |
| 11 | + |
| 12 | +## Supported File Types |
| 13 | + |
| 14 | +- `SKILL.md` - Agent skill definitions (agentskills.io spec) |
| 15 | +- `CLAUDE.md`, `AGENTS.md` - Claude Code memory files |
| 16 | +- `.claude/settings.json` - Hook configurations |
| 17 | +- `plugin.json` - Plugin manifests |
| 18 | +- `*.mcp.json` - MCP tool configurations |
| 19 | +- `.github/copilot-instructions.md` - GitHub Copilot instructions |
| 20 | +- `.cursor/rules/*.mdc` - Cursor project rules |
| 21 | + |
| 22 | +## Requirements |
| 23 | + |
| 24 | +This extension requires the `agnix-lsp` binary to be installed: |
| 25 | + |
| 26 | +```bash |
| 27 | +# From the agnix repository |
| 28 | +cargo install --path crates/agnix-lsp |
| 29 | + |
| 30 | +# Or from crates.io (when published) |
| 31 | +cargo install agnix-lsp |
| 32 | +``` |
| 33 | + |
| 34 | +## Extension Settings |
| 35 | + |
| 36 | +This extension contributes the following settings: |
| 37 | + |
| 38 | +- `agnix.lspPath`: Path to the agnix-lsp executable (default: `agnix-lsp`) |
| 39 | +- `agnix.enable`: Enable/disable agnix validation (default: `true`) |
| 40 | +- `agnix.trace.server`: Traces communication between VS Code and the language server |
| 41 | + |
| 42 | +## Commands |
| 43 | + |
| 44 | +- `agnix: Restart Language Server` - Restart the agnix language server |
| 45 | +- `agnix: Show Output Channel` - Show the agnix output channel for debugging |
| 46 | + |
| 47 | +## Configuration |
| 48 | + |
| 49 | +The extension respects `.agnix.toml` configuration files in your workspace: |
| 50 | + |
| 51 | +```toml |
| 52 | +severity = "Warning" |
| 53 | +target = "ClaudeCode" |
| 54 | + |
| 55 | +[rules] |
| 56 | +skills = true |
| 57 | +hooks = true |
| 58 | +agents = true |
| 59 | +mcp = true |
| 60 | + |
| 61 | +exclude = [ |
| 62 | + "node_modules/**", |
| 63 | + ".git/**" |
| 64 | +] |
| 65 | +``` |
| 66 | + |
| 67 | +See the [agnix documentation](https://github.com/avifenesh/agnix) for full configuration options. |
| 68 | + |
| 69 | +## Troubleshooting |
| 70 | + |
| 71 | +### agnix-lsp not found |
| 72 | + |
| 73 | +If you see "agnix-lsp not found", ensure the binary is installed and in your PATH: |
| 74 | + |
| 75 | +```bash |
| 76 | +# Check if installed |
| 77 | +which agnix-lsp # Unix |
| 78 | +where agnix-lsp # Windows |
| 79 | + |
| 80 | +# Or specify the full path in settings |
| 81 | +"agnix.lspPath": "/path/to/agnix-lsp" |
| 82 | +``` |
| 83 | + |
| 84 | +### No diagnostics appearing |
| 85 | + |
| 86 | +1. Check that the file is a supported type (see above) |
| 87 | +2. Verify the language server is running (check status bar) |
| 88 | +3. Open the output channel (`agnix: Show Output Channel`) for errors |
| 89 | + |
| 90 | +## Links |
| 91 | + |
| 92 | +- [agnix on GitHub](https://github.com/avifenesh/agnix) |
| 93 | +- [Agent Skills Specification](https://agentskills.io) |
| 94 | +- [Model Context Protocol](https://modelcontextprotocol.io) |
| 95 | + |
| 96 | +## License |
| 97 | + |
| 98 | +MIT OR Apache-2.0 |
0 commit comments