baseline
01Command Cursor
Create or update an archguardian baseline for incremental adoption.
Stop AI from slowly destroying your codebase. Tool-agnostic CLI + git pre-commit hook that catches architectural violations, security issues, convention drift, and AI-specific code smells.
Command Cursor
Create or update an archguardian baseline for incremental adoption.
Command Cursor
Analyze staged git changes with archguardian before committing.
Command Cursor
Analyze function complexity metrics. Run npx archguardian scan --format json with analyzers.complexity.enabled: true in config. Filter for complexity/ rules. Explain cyclomatic and cognitive complexity scores, suggest refactoring strategies like extracting functions and simplifying branching.
Command Cursor
Integrate test coverage reports. Run npx archguardian scan --format json with analyzers.coverage.enabled: true. Reads lcov or Istanbul JSON. Flags files below minCoverage threshold and uncovered new code above minNewCodeCoverage.
Command Cursor
Detect unused exports. Run npx archguardian scan --format json with analyzers.deadCode.enabled: true. Filter for dead-code/ rules. Explain which exports are never imported. Configure entryPoints to exclude legitimate entry files.
Command Cursor
Check dependencies for known security vulnerabilities.
Command Cursor
Generate architecture diagram of project dependency structure.
Command Cursor
Dismiss a finding pattern from future archguardian scans.
Command Cursor
Auto-fix archguardian findings (unused imports, naming violations).
Command Cursor
Run scan with quality gate thresholds.
Command Cursor
Scan IaC files for security issues. Run npx archguardian scan --format json with analyzers.iac.enabled: true. Covers Dockerfiles (root user, :latest tags, secrets), Kubernetes (privileged, resource limits), and GitHub Actions (script injection, mutable refs).
Command Cursor
Show downstream impact of file changes using dependency analysis.
Command Cursor
Generate Software Bill of Materials. Run npx archguardian sbom --format cyclonedx or --format spdx. Supports npm, Go, Rust, and Java dependencies. Outputs CycloneDX 1.5 or SPDX 2.3 JSON with PURLs.
Command Cursor
Run a full archguardian project scan and help the user understand findings.
Command Cursor
Initialize archguardian in the current project.
Command Cursor
Generate visual change summary with Mermaid impact diagram.
Command Cursor
Add archguard-ignore suppression comments to silence false positives.