Skip to content

feat: vajra audit — one command to analyze any GitHub repo#40

Merged
copyleftdev merged 1 commit into
mainfrom
feat/audit-command
Apr 10, 2026
Merged

feat: vajra audit — one command to analyze any GitHub repo#40
copyleftdev merged 1 commit into
mainfrom
feat/audit-command

Conversation

@copyleftdev

Copy link
Copy Markdown
Owner

Summary

The capstone feature. One command does everything:

vajra audit github.com/facebook/react --output react-report.html

What it does:

  1. Ingest — clones repo, fetches PRs/issues/releases via gh CLI
  2. Analyze — runs stats, anomalies, invariants, governance, score, temporal windowing
  3. Report — generates self-contained HTML report

Implementation:

  • 329 lines in vajra-cli/src/main.rs
  • parse_repo_url() accepts owner/repo, github.com/owner/repo, https://github.com/owner/repo
  • Three-phase pipeline with graceful error handling (analysis failures are logged and skipped)
  • Uses tempfile for temp directory management
  • Chains: ingest_githubStatsAnalyzerAnomalyAnalyzerdiscover_relationshipsgovernance_analysiscompute_health_scorewindowed_analysisgenerate_html

9 tests for URL parsing

Closes #31

🤖 Generated with Claude Code

Implements `vajra audit github.com/owner/repo` which chains ingestion,
analysis (stats, anomalies, invariants, governance, score, temporal),
and HTML report generation into a single command. Includes URL parser
with tests for various input formats and graceful per-step error handling.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@copyleftdev copyleftdev merged commit 484daab into main Apr 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One-command audit: vajra audit github.com/owner/repo

1 participant