Agnix 技能验证
- 作者仓库星标 264
- 作者仓库 agnix
agnix
Lint agent configurations before they break your workflow. Validates Skills, Hooks, MCP, Memory, Plugins across 10+ AI tools including Claude Code, Cursor, GitHub Copilot, Codex CLI, OpenCode, Gemini CLI, Cline, Windsurf, Kiro, and Amp.
Parse Arguments
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const targetPath = args.find(a => !a.startsWith('--')) || '.';
const fix = args.includes('--fix');
const strict = args.includes('--strict');
let target = args.find(a => a.startsWith('--target='))?.split('=')[1];
if (!target) {
const idx = args.indexOf('--target');
if (idx !== -1 && args[idx + 1]) target = args[idx + 1];
}
target = target || 'claude-code';
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"
- "Check if my SKILL.md is correct"
Prerequisites
agnix must be installed. Check with:
agnix --version
If not installed:
cargo install agnix-cli
Execution
1. Validate Project
agnix .
2. If Issues Found and Fix Requested
agnix --fix .
3. 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 - re-validate on changes |
agnix --format json . |
JSON output |
agnix --format sarif . |
SARIF for GitHub Code Scanning |
Supported Files
| File Type | Examples |
|---|---|
| Skills | SKILL.md |
| Memory | CLAUDE.md, AGENTS.md |
| Hooks | ${STATE_DIR}/settings.json |
| MCP | *.mcp.json |
| Cursor | .cursor/rules/*.mdc |
| Copilot | .github/copilot-instructions.md |
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)
Exit codes:
0- No errors (warnings allowed)1- Errors found2- Invalid arguments
Rule Categories
| Prefix | Category | Examples |
|---|---|---|
| AS-* | Agent Skills | Name format, triggers, description |
| CC-* | Claude Code | Hooks, memory, plugins |
| MCP-* | MCP Protocol | Server config, tool definitions |
| PE-* | Prompt Engineering | Generic instructions, redundancy |
| XP-* | Cross-Platform | Compatibility across tools |
| AGM-* | AGENTS.md | Structure, sections |
| COP-* | GitHub Copilot | Instructions format |
| CUR-* | Cursor | MDC format, rules |
Common Issues & Fixes
| Issue | Solution |
|---|---|
| Invalid skill name | Use lowercase with hyphens: my-skill |
| Directory/name mismatch | Rename directory to match name: field |
| Generic instructions | Remove "be helpful", "be accurate" |
| Missing trigger phrase | Add "Use when..." to description |
Integration
This skill is standalone and can be invoked directly via /agnix.
For CI integration, see the GitHub Action.
Links
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @agent-sh · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- Shell 执行
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Parse Arguments
Invoke when user asks to: "Lint my agent configs" "Validate my skills"
agnix must be installed. Check with: If not installed:
Execution
1. Validate Project
2. If Issues Found and Fix Requested
# agnix
Lint agent configurations before they break your workflow. Validates Skills, Hooks, MCP, Memory, Plugins across 10+ AI tools including Claude Code, Cursor, GitHub Copilot, Codex CLI, OpenCode, Gemini CLI, Cline, Windsurf, Kiro, and Amp.
## Parse Arguments
```javascript
const args = '$ARGUMENTS'.split(' ').filter(Boolean);
const targetPath = args.find(a => !a.startsWith('--')) || '.';
const fix = args.includes('--fix');
const strict = args.includes('--strict');
let target = args.find(a => a.startsWith('--target='))?.split('=')[1];
if (!target) {
const idx = args.indexOf('--target');
if (idx !== -1 && args[idx + 1]) target = args[idx + 1];
}
target = target || 'claude-code';
```
## 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"
- "Check if my SKILL.md is correct"
## Prerequisites
agnix must be installed. Check with:
```bash
agnix --version
```
If not installed:
```bash
cargo install agnix-cli
```
## Execution
### 1. Validate Project
```bash
agnix .
```
### 2. If Issues Found and Fix Requested
```bash
agnix --fix .
```
### 3. 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 - re-validate on changes |
| `agnix --format json .` | JSON output |
| `agnix --format sarif .` | SARIF for GitHub Code Scanning |
## Supported Files
| File Type | Examples |
|-----------|----------|
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Parse Arguments → When to Use → Prerequisites → Execution → 1. Validate Project → 2. If Issues Found and Fix Requested
要点 -> Lint agent configurations before they break your workflow. · agnix must be installed. · | Command | Description | |---------|-------------| | agnix . · This skill is standalone and can be invoked directly via /agnix. · For CI integration, see the [GitHub Action](https://github.com/agent-sh/agnixgithub-action).
文件/命令 -> agnix . · agnix --fix . · agnix --strict . · agnix --target claude-code . · agnix --target cursor . · agnix --watch . · agnix --format json . · agnix --format sarif .
内容 SHA-256 -> 3caea9588933
原文结构
适用与边界
原文中的明确线索
agnix .、agnix --fix .、agnix --strict .、agnix --target claude-code .、agnix --target cursor .、agnix --watch .、agnix --format json .、agnix --format sarif .