JSPM

  • Created
  • Published
  • Downloads 288
  • Score
    100M100P100Q75292F
  • License AGPL-3.0

The intelligent nervous system for AI coding agents — 1,955 checks across 8 platforms, 10 languages, and 62 domain packs. Audit, align, and amplify.

Package Exports

  • @nerviq/cli
  • @nerviq/cli/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@nerviq/cli) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Nerviq

The intelligent nervous system for AI coding agents — audit, align, and amplify every platform on every project.

npm version License: AGPL-3.0 Checks: 1955 Nerviq Certified Gold


8 Platforms Supported

Nerviq v1.0 ships with full audit, setup, governance, and benchmark support for 8 AI coding platforms:

Platform Checks Status
Claude Code 309 Full
Codex (OpenAI) 225 Full
Gemini CLI (Google) 219 Full
GitHub Copilot 218 Full
Cursor 267 Full
Windsurf 265 Full
Aider 249 Full
OpenCode 251 Full

10 Stack-Specific Languages

Language Checks Key Areas
Python 26 pyproject, typing, pytest, linting, async, security
Go 21 go.mod, vet, fmt, error wrapping, interfaces
Rust 21 Cargo, clippy, unsafe docs, editions, cross-compile
Java/Spring 21 Maven/Gradle, JUnit, Spring Boot, migrations
Ruby 16 Gemfile, RSpec, Rubocop, Rails
PHP 16 Composer, PHPUnit, Laravel, PSR
.NET 16 csproj, NuGet, xUnit, EF Core
Flutter 15 pubspec, analysis, state management, l10n
Swift 10 SPM, SwiftLint, async/await, doc comments
Kotlin 10 Gradle, ktlint, coroutines, Compose, KMP

What Nerviq Does

Nerviq scores your AI coding agent setup from 0 to 100, finds what's missing, and fixes it — with rollback for every change.

  nerviq audit
  ═══════════════════════════════════════
  Detected: React, TypeScript, Docker

  ████████████████░░░░ 78/100

  ✅ CLAUDE.md with architecture diagram
  ✅ Hooks (PreToolUse + PostToolUse)
  ✅ Custom skills (3 skills)
  ✅ MCP servers configured

  ⚡ Top 3 Next Actions
     1. Add verification commands to CLAUDE.md
     2. Configure deny rules for dangerous operations
     3. Add path-specific rules in .claude/rules/

  Next: nerviq setup

Quick Start

npx @nerviq/cli audit              # Score your project (10 seconds)
npx @nerviq/cli audit --lite       # Quick top-3 scan
npx @nerviq/cli setup              # Generate starter-safe baseline
npx @nerviq/cli augment            # Improvement plan, no writes
npx @nerviq/cli governance         # Permission profiles + policy packs
npx @nerviq/cli benchmark          # Before/after in isolated copy

No install required. Zero dependencies.

1,955 Checks Across 83 Categories

Category Group Checks Examples
Stack-Specific (10 languages) 172 Python, Go, Rust, Java, Ruby, PHP, .NET, Flutter, Swift, Kotlin
Platform Config & Instructions ~150 CLAUDE.md, AGENTS.md, rules, managed blocks
Security & Trust ~80 permissions, deny rules, secrets, trust posture
Quality & Testing ~70 verification loops, lint/test/build, coverage
Automation & Hooks ~60 PreToolUse, PostToolUse, notification hooks
Workflow & Commands ~50 skills, commands, agents, snapshots
Git & Hygiene ~40 .gitignore, env protection, changelog
Tools & MCP ~40 .mcp.json, multi-server, Context7
Governance & Compliance ~30 permission profiles, audit trails
DevOps & Infrastructure ~30 Docker, CI, Terraform, monitoring
Cross-Platform Intelligence ~25 harmony, synergy, drift detection
Enterprise & Freshness ~20 freshness tracking, deprecation, SBOM
Memory & Context ~15 context management, compaction, @path
Prompting & Design ~10 XML tags, constraints, frontend patterns

Harmony — Cross-Platform Alignment

Harmony detects drift between your AI coding platforms and keeps them in sync.

npx @nerviq/cli harmony-audit      # Cross-platform DX audit (0-100 harmony score)
npx @nerviq/cli harmony-sync       # Sync shared config across platforms
npx @nerviq/cli harmony-drift      # Detect drift between platform configs
npx @nerviq/cli harmony-advise     # Cross-platform improvement advice
npx @nerviq/cli harmony-watch      # Live monitoring for config drift
npx @nerviq/cli harmony-governance # Unified governance across platforms
npx @nerviq/cli harmony-add <platform>  # Add a new platform to your project

Synergy — Multi-Agent Amplification

Synergy analyzes how your platforms work together and finds amplification opportunities.

npx @nerviq/cli synergy-report     # Multi-agent synergy analysis

Synergy evaluates compound audit results, discovers compensation patterns (where one platform covers another's gaps), and ranks recommendations by cross-platform impact.

SDK — @nerviq/sdk

Programmatic access to all Nerviq capabilities:

const { audit, harmonyAudit, synergyReport, detectPlatforms } = require('@nerviq/sdk');

const result = await audit('.', 'claude');
console.log(`Score: ${result.score}/100`);

const platforms = detectPlatforms('.');
console.log(`Active platforms: ${platforms.join(', ')}`);

const harmony = await harmonyAudit('.');
console.log(`Harmony score: ${harmony.harmonyScore}/100`);

MCP Server — nerviq serve

Nerviq ships with a built-in MCP-compatible HTTP server for integration with AI agents:

npx @nerviq/cli serve --port 3000

Endpoints:

  • GET /api/health — Server health check
  • GET /api/catalog — Full check catalog
  • POST /api/audit — Run audit on a directory
  • GET /api/harmony — Cross-platform harmony data

Plugin System — nerviq.config.js

Extend Nerviq with custom checks via a config file in your project root:

// nerviq.config.js
module.exports = {
  plugins: [
    {
      name: 'my-company-checks',
      checks: {
        internalDocs: {
          id: 'internalDocs',
          name: 'Internal docs present',
          check: (dir) => require('fs').existsSync(`${dir}/docs/internal.md`),
          impact: 'medium',
          category: 'Quality',
          fix: 'Add docs/internal.md with team-specific guidelines',
        },
      },
    },
  ],
};

See docs/plugins.md for full plugin API reference.

GitHub Action

Add Nerviq to your CI pipeline:

# .github/workflows/nerviq.yml
name: Nerviq Audit
on: [push, pull_request]

jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: nerviq/nerviq@v1
        with:
          threshold: 60

The action outputs score, passed, and total for use in downstream steps. Fails the workflow if the score is below the configured threshold.

Certification

Earn a Nerviq certification badge for your project:

npx @nerviq/cli certify            # Run certification and display badge

Levels:

  • Gold — Harmony score >= 80, all platforms >= 70
  • Silver — Harmony score >= 60, all platforms >= 50
  • Bronze — Any platform >= 40

All Commands

Command What it does
nerviq audit Score 0-100 against 1,955 checks
nerviq audit --lite Quick top-3 scan
nerviq setup Generate starter-safe CLAUDE.md + hooks + commands
nerviq augment Repo-aware improvement plan (no writes)
nerviq suggest-only Structured report for sharing
nerviq plan Export proposal bundles with previews
nerviq apply Apply proposals with rollback
nerviq governance Permission profiles, hooks, policy packs
nerviq benchmark Before/after in isolated temp copy
nerviq deep-review AI-powered config review (opt-in)
nerviq interactive Step-by-step guided wizard
nerviq watch Live monitoring with score delta
nerviq history Score history from snapshots
nerviq compare Compare latest vs previous
nerviq trend Export trend report
nerviq feedback Record recommendation outcomes
nerviq badge shields.io badge for README
nerviq certify Certification level + badge
nerviq scan dir1 dir2 Compare multiple repos
nerviq harmony-audit Cross-platform DX audit
nerviq harmony-sync Sync config across platforms
nerviq harmony-drift Detect platform drift
nerviq harmony-advise Cross-platform advice
nerviq harmony-watch Live drift monitoring
nerviq harmony-governance Unified platform governance
nerviq synergy-report Multi-agent synergy analysis
nerviq catalog Show check catalog for all 8 platforms
nerviq doctor Self-diagnostics
nerviq convert Convert config between platforms
nerviq migrate Migrate platform config versions
nerviq serve Start local MCP-compatible HTTP API

Options

Flag Effect
--threshold N Exit 1 if score < N (for CI)
--json Machine-readable JSON output
--out FILE Write output to file
--snapshot Save audit snapshot for trending
--lite Compact top-3 quick scan
--dry-run Preview apply without writing
--auto Apply without prompts
--verbose Show all recommendations
--format sarif SARIF output for code scanning
--platform NAME Target platform (claude, codex, gemini, copilot, cursor, windsurf, aider, opencode)

Backed by Research

Nerviq is built on the CLAUDEX knowledge engine — the largest verified catalog of AI coding agent techniques:

  • 448+ research documents covering all 8 platforms
  • 332+ experiments with tested, rated results
  • 1,955 checks across 8 platforms and 10 languages, each with sourceUrl and confidence level (0.0-1.0)
  • Every check is traceable to primary documentation or verified experiment
  • 90-day freshness cycle: stale findings are re-verified or pruned

Privacy

  • Zero dependencies — nothing to audit
  • Runs locally — audit, setup, plan, apply, governance, benchmark all run on your machine
  • Deep review is opt-in — only deep-review sends selected config for AI analysis
  • AGPL-3.0 Licensed — open source

Previously claudex-setup

Nerviq was previously published as claudex-setup. If you were using it:

# Old
npx claudex-setup

# New
npx @nerviq/cli audit

All features are preserved and expanded.