Agnix 技能验证
- 作者仓库星标 264
- 作者仓库 agnix
agnix
Lint agent configurations before they break your workflow. Validates Skills, Hooks, MCP, Memory, Plugins across Claude Code, Cursor, GitHub Copilot, and Codex CLI.
When to Use
Invoke when user asks to:
- "Lint my agent configs"
- "Validate my skills"
- "Check my CLAUDE.md"
- "Validate hooks"
- "Lint MCP configs"
- "Fix agent configuration issues"
Supported Files
| File Type | Examples |
|---|---|
| Skills | SKILL.md |
| Memory | CLAUDE.md, AGENTS.md |
| Hooks | .claude/settings.json |
| MCP | *.mcp.json |
| Cursor | .cursor/rules/*.mdc |
| Copilot | .github/copilot-instructions.md |
Execution
1. Check if agnix is installed
agnix --version
If not found, install:
cargo install agnix-cli
2. Validate
agnix .
3. If issues found and --fix requested
agnix --fix .
4. Re-validate to confirm
agnix .
CLI Reference
| Command | Description |
|---|---|
agnix . |
Validate current project |
agnix --fix . |
Auto-fix issues |
agnix --strict . |
Treat warnings as errors |
agnix --target claude-code . |
Only Claude Code rules |
agnix --target cursor . |
Only Cursor rules |
agnix --watch . |
Watch mode |
agnix --format json . |
JSON output |
Output Format
CLAUDE.md:15:1 warning: Generic instruction 'Be helpful' [fixable]
help: Remove generic instructions. Claude already knows this.
skills/review/SKILL.md:3:1 error: Invalid name [fixable]
help: Use lowercase letters and hyphens only
Found 1 error, 1 warning (2 fixable)
Common Issues & Fixes
| Issue | Solution |
|---|---|
| Invalid skill name | Use lowercase with hyphens: my-skill |
| Generic instructions | Remove "be helpful", "be accurate" |
| Missing trigger phrase | Add "Use when..." to description |
| Directory/name mismatch | Rename directory to match name: field |
Links
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @agent-sh · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 When to Use
Invoke when user asks to: "Lint my agent configs" "Validate my skills"
Supported Files
File Type · Examples Skills · SKILL.md Memory · CLAUDE.md, AGENTS.md
Execution
Execution
1. Check if agnix is installed
If not found, install:
2. Validate
2. Validate
3. If issues found and --fix requested
3. If issues found and --fix requested
# agnix
Lint agent configurations before they break your workflow. Validates Skills, Hooks, MCP, Memory, Plugins across Claude Code, Cursor, GitHub Copilot, and Codex CLI.
## When to Use
Invoke when user asks to:
- "Lint my agent configs"
- "Validate my skills"
- "Check my CLAUDE.md"
- "Validate hooks"
- "Lint MCP configs"
- "Fix agent configuration issues"
## Supported Files
| File Type | Examples |
|-----------|----------|
| Skills | `SKILL.md` |
| Memory | `CLAUDE.md`, `AGENTS.md` |
| Hooks | `.claude/settings.json` |
| MCP | `*.mcp.json` |
| Cursor | `.cursor/rules/*.mdc` |
| Copilot | `.github/copilot-instructions.md` |
## Execution
### 1. Check if agnix is installed
```bash
agnix --version
```
If not found, install:
```bash
cargo install agnix-cli
```
### 2. Validate
```bash
agnix .
```
### 3. If issues found and --fix requested
```bash
agnix --fix .
```
### 4. Re-validate to confirm
```bash
agnix .
```
## CLI Reference
| Command | Description |
|---------|-------------|
| `agnix .` | Validate current project |
| `agnix --fix .` | Auto-fix issues |
| `agnix --strict .` | Treat warnings as errors |
| `agnix --target claude-code .` | Only Claude Code rules |
| `agnix --target cursor .` | Only Cursor rules |
| `agnix --watch .` | Watch mode |
| `agnix --format json .` | JSON output |
## Output Format
```
CLAUDE.md:15:1 warning: Generic instruction 'Be helpful' [fixable]
help: Remove generic instructions. Claude already knows this.
skills/review/SKILL.md:3:1 error: Invalid name [fixable]
help: Use lowercase letters and hyphens only
Found 1 error, 1 warning (2 fixable)
```
## Common Issues & Fixes
| Issue | Solution |
|-------|----------|
| Invalid skill name | Use lowercase with hyphens: `my-skill` |
… 证据边界与执行链路
作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> When to Use → Supported Files → Execution → 1. Check if agnix is installed → 2. Validate → 3. If issues found and --fix requested
要点 -> Lint agent configurations before they break your workflow. · | Command | Description | |---------|-------------| | agnix .
文件/命令 -> CLAUDE.md · AGENTS.md · .claude/settings.json · .mcp.json · .cursor/rules/.mdc · .github/copilot-instructions.md · agnix . · agnix --fix .
内容 SHA-256 -> 58447c42a84c
原文结构
适用与边界
原文中的明确线索
CLAUDE.md、AGENTS.md、.claude/settings.json、.mcp.json、.cursor/rules/.mdc、.github/copilot-instructions.md、agnix .、agnix --fix .