brownfield-blast
Generate a detailed blast radius report showing all files affected if you change a given file.
Run a complete brownfield analysis on the codebase and generate MASTER.md, summaries, risk scores, and all derived analytics.
$ npx -y skills add wednesday-solutions/ai-agent-skills --agent claude-codeHow it fires
How this command gets triggered: by you, by Claude, or both.
/brownfield-mapContext preview
What this command does when you run it.
Run a complete brownfield analysis on the codebase and generate MASTER.md, summaries, risk scores, and all derived analytics.
Run a complete brownfield analysis on the codebase and generate MASTER.md, summaries, risk scores, and all derived analytics.
Type: `/brownfield-map [--full]`
---
Check that the project root contains a recognizable project file:
If none found, stop and suggest the current directory.
If `.wednesday/config.json` exists and has an OpenRouter API key, the map will use LLM enrichment. If no key, the map proceeds with deterministic analysis only (no LLM summaries).
Output: "Running full analysis mode" or "API key not configured — skipping LLM enrichment"
wednesday-skills map --full
Wait for completion. The script will:
After the command completes, query the DB for final stats:
const queries = require('./.claude/query-helpers.js');
const stats = queries.getCodebaseStats();
const highRiskFiles = queries.getHighRiskFiles(minRisk = 60);
const deadCode = queries.getAllDeadCode();
const circularDeps = queries.getCircularDependencies();
const entryPoints = queries.getEntryPoints();**If successful:**
✓ Mapping complete FILES ANALYZED Total files: <stats.totalFiles> Languages: <stats.languages> Graph edges: <stats.totalEdges> FINDINGS High-risk files: <highRiskFiles.length> Dead files: <deadCode.totalDeadFiles> Circular deps: <circularDeps.count> Entry points: <entryPoints.length> INTELLIGENCE Daemons detected: [From MASTER.md Background processes section] Adapters found: [From MASTER.md External adapters section] OUTPUT LOCATIONS 📄 MASTER.md: .wednesday/codebase/MASTER.md 📊 Graph Database: .wednesday/graph.db Graph coverage: <stats.graphCoverage>% Generate time: <duration>
**If failed:**
✗ Mapping failed Error: <error message> Troubleshooting: • Missing API key? Set OPENROUTER_API_KEY in .env • Parse error? Check .wednesday/codebase/analysis/comments-raw.md • Graph DB locked? Kill any existing wednesday-skills processes • Out of memory? Reduce codebase scope or run on a larger machine
After a successful map, suggest:
Next steps: • Read .wednesday/codebase/MASTER.md for full intelligence • Use /brownfield-chat for Q&A • Use /brownfield-fix before editing any file • Use /brownfield-blast to see change impact
---
Check what went wrong:
# Check if wednesday-skills is installed which wednesday-skills # Check if graph DB is locked lsof .wednesday/graph.db 2>/dev/null | grep -v "^COMMAND" # Check parse errors tail -50 .wednesday/codebase/analysis/comments-raw.md
Suggest running with `--verbose` flag for detailed output:
wednesday-skills map --full --verbose
---
| Situation | Action | |-----------|--------| | wednesday-skills not installed | "Install via: npm install -g @wednesday-solutions-eng/ai-agent-skills" | | Not in a project root | "Run this command in the project root (same directory as package.json)" | | Parse error on specific file | "Run with --verbose to see which file failed" | | Graph DB locked | "Kill existing processes: pkill -f 'wednesday-skills' && sleep 2" | | API key expired | "Set a new OPENROUTER_API_KEY in .env" | | Out of memory | "This codebase is large. Try running on a machine with >8GB RAM" |
---
Transform any repository into an AI-aware, intelligent environment — a codebase that any AI agent can jump into on day one without making junior-level mistakes.
Repo: wednesday-solutions/ai-agent-skills
Generate a detailed blast radius report showing all files affected if you change a given file.
Answer any structural, historical, or architectural question about the codebase without…
Identify all dead code in the codebase: unused files and unused exports.
Run a risk assessment before editing any file in a brownfield codebase. Provides a risk card…
Detailed risk scoring breakdown for a specific file. Shows all contributing factors and…
Generate a personalized onboarding brief for a new developer joining the project.