ysfAskri/archguardian

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.

4Stars on the repository
42Mods indexed here, across every type
6mo agoLast push, which is what freshness is scored on
MITLicence, which decides whether bodies are shown

baseline

01

ysfAskri/archguardian

Command Cursor

Create or update an archguardian baseline for incremental adoption.

4 6mo ago A 0 tokens original MIT

check

02

ysfAskri/archguardian

Command Cursor

Analyze staged git changes with archguardian before committing.

4 6mo ago A 0 tokens original MIT

complexity

03

ysfAskri/archguardian

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.

4 6mo ago A 0 tokens original MIT

coverage

04

ysfAskri/archguardian

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.

4 6mo ago A 0 tokens original MIT

dead-code

05

ysfAskri/archguardian

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.

4 6mo ago A 0 tokens original MIT

deps

06

ysfAskri/archguardian

Command Cursor

Check dependencies for known security vulnerabilities.

4 6mo ago A 0 tokens original MIT

diagram

07

ysfAskri/archguardian

Command Cursor

Generate architecture diagram of project dependency structure.

4 6mo ago A 0 tokens original MIT

dismiss

08

ysfAskri/archguardian

Command Cursor

Dismiss a finding pattern from future archguardian scans.

4 6mo ago A 0 tokens original MIT

fix

09

ysfAskri/archguardian

Command Cursor

Auto-fix archguardian findings (unused imports, naming violations).

4 6mo ago A 0 tokens original MIT

gate

10

ysfAskri/archguardian

Command Cursor

Run scan with quality gate thresholds.

4 6mo ago A 0 tokens original MIT

iac

11

ysfAskri/archguardian

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).

4 6mo ago A 0 tokens original MIT

impact

12

ysfAskri/archguardian

Command Cursor

Show downstream impact of file changes using dependency analysis.

4 6mo ago A 0 tokens original MIT

sbom

13

ysfAskri/archguardian

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.

4 6mo ago A 0 tokens original MIT

scan

14

ysfAskri/archguardian

Command Cursor

Run a full archguardian project scan and help the user understand findings.

4 6mo ago A 0 tokens original MIT

setup

15

ysfAskri/archguardian

Command Cursor

Initialize archguardian in the current project.

4 6mo ago A 0 tokens original MIT

summarize

16

ysfAskri/archguardian

Command Cursor

Generate visual change summary with Mermaid impact diagram.

4 6mo ago A 0 tokens original MIT

suppress

17

ysfAskri/archguardian

Command Cursor

Add archguard-ignore suppression comments to silence false positives.

4 6mo ago A 0 tokens original MIT