Socket
Book a DemoSign in
Socket

agnix

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

agnix

Linter for AI agent configurations. Validates SKILL.md, CLAUDE.md, hooks, MCP, and more.

latest
Source
npmnpm
Version
0.17.0
Version published
Maintainers
1
Created
Source

agnix

Linter for AI agent configurations. Validates SKILL.md, CLAUDE.md, hooks, MCP, and more.

385 rules | Real-time validation | Auto-fix | Multi-tool support

Installation

npm install -g agnix

Or run directly with npx:

npx agnix .

Usage

Command Line

# Lint current directory
agnix .

# Lint specific file
agnix CLAUDE.md

# Auto-fix issues
agnix --fix .

# JSON output
agnix --format json .

# Target specific tool
agnix --target cursor .

Node.js API

const agnix = require('agnix');

// Async lint
const result = await agnix.lint('./');
console.log(result);

// Sync run
const { stdout, exitCode } = agnix.runSync(['--version']);

// Get version
console.log(agnix.version());

Supported Files

FileTool
SKILL.mdClaude Code
CLAUDE.md, CLAUDE.local.md, AGENTS.md, AGENTS.local.md, AGENTS.override.mdClaude Code, Codex
.claude/settings.json, .claude/settings.local.jsonClaude Code
plugin.jsonClaude Code
*.mcp.json, mcp.json, mcp-*.jsonAll
.github/copilot-instructions.md, .github/instructions/*.instructions.mdGitHub Copilot
.cursor/rules/*.mdc, .cursorrulesCursor

Options

agnix [OPTIONS] [PATH] [COMMAND]

Commands:
  validate   Validate agent configs
  init       Initialize config file
  eval       Evaluate rule efficacy against labeled test cases
  telemetry  Manage telemetry settings (opt-in usage analytics)
  schema     Output JSON Schema for configuration files

Common options:
  -s, --strict
  -t, --target <generic|claude-code|cursor|codex>
  -c, --config <CONFIG>
      --fix
      --dry-run
      --fix-safe
      --format <text|json|sarif>
  -w, --watch
  -v, --verbose
  -V, --version
  -h, --help

Run agnix --help for the full command reference.

  • GitHub Repository
  • Validation Rules
  • VS Code Extension

License

MIT OR Apache-2.0

Keywords

agent

FAQs

Package last updated on 28 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts