Dual Static AST & Specification Verification

AI Invariant Auditor & AST Code Linter

Verify both your AI prompt specifications (.cursorrules, CLAUDE.md) and actual codebase files (.ts, .py, .sql, Dockerfile) against the verified industrial invariant standards matrix.

Live AST Pattern Matching
Test Invariant Bugs:
app/dashboard/page.tsx(10 lines)
324 chars•2 AST flags
AST Invariant Linter Active
CLI & Pre-Commit Integration

Scan local project files with npx agentrules check to automatically fail CI and pre-commit on invariant breaks.

npx agentrules check src/ --fix
Golden Iron Triangle Automation

Discovered an invariant violation? AgentRules coordinates with mcp-serverlist.com (protocol tools) and askills.dev (autonomous codemods) to self-heal your codebase.

C
AST Invariant Health50 / 100

Moderate Drift & Breaking API Risk

Detected 2 code invariant violations (2 critical runtime blockers).

2 Critical
0 Warnings
1 Rules Linked

Unawaited cookies() Call

cookies() returns Promise<ReadonlyRequestCookies> in Next.js 15 and MUST be awaited.

Violating AST Code (Line 6):
const session = cookies().get("session_token");
Verified Industrial Remediation:
const session = (await cookies()).get("session_token");

Legacy next/router Import

App Router components MUST import navigation hooks from 'next/navigation'.

Violating AST Code (Line 2):
import { useRouter } from "next/router";
Verified Industrial Remediation:
import { useRouter } from "next/navigation";