brownfield-chat
Answer any structural, historical, or architectural question about the codebase without…
Generate a detailed blast radius report showing all files affected if you change a given file.
$ 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-blastContext preview
What this command does when you run it.
Generate a detailed blast radius report showing all files affected if you change a given file.
Generate a detailed blast radius report showing all files affected if you change a given file.
Type: `/brownfield-blast <file-path>`
---
If `$ARGUMENTS` is empty, use the currently open file. Resolve relative paths to project root. Verify the file exists in the graph.
const queries = require('./.claude/query-helpers.js');
const blastData = queries.getBlastRadius(targetFilePath);Returns:
const summary = queries.getFileSummary(targetFilePath);
Provides:
**Format:**
# Blast Radius — <file-path> ## File Summary [Summary from dep-graph] **Role:** <role> **Risk Score:** <score>/100 **Bug Fixes:** <count> --- ## Direct Dependents <N> files directly import this: - <file 1> - <file 2> - ... --- ## Transitive Dependents <N> files would be affected if this changes: - <file 1> (distance: 1 hop) - <file 2> (distance: 1 hop) - <file 3> (distance: 2 hops) - ... [Show up to 20; note if more exist] --- ## Cross-Language Hits [If any] - <swift file> imports this JS file (iOS build may break) - <go file> depends on exported JSON schema --- ## Recommended Action [If transitive dependents < 5] ✓ Safe to change. Low blast radius. Run tests in dependent files. [If transitive dependents 5-20] ⚠ Moderate impact. Affects <N> files. Ensure tests pass for: • <top 3 dependent files> [If transitive dependents > 20] 🛑 CRITICAL impact. <N> files depend on this. Before changing: 1. Ensure changes are backwards compatible 2. Update all dependent imports 3. Run full test suite 4. Notify team (@owner)
Flag them prominently — changing a JS file that's imported by Swift code can break the iOS build.
If any transitive dependent has risk score > 60, flag it: > "⚠ Dependent `auth.js` is high-risk (score: 78). Changes here cascade through auth, which is already fragile."
---
If the graph.db query fails, the codebase must be mapped first:
wednesday-skills map --full
Once mapped, the DB will be populated and queries will work. If DB is locked, kill any running processes:
pkill -f 'wednesday-skills'
---
| Situation | Action | |-----------|--------| | File not in graph | "File not yet mapped. Run `wednesday-skills map --full`." | | File exists but has 0 dependents | "✓ This file is not imported by anything. Safe to delete or change freely." | | Blast radius > 50% of codebase | "⚠ This is a core infrastructure file. Changes affect the entire system." | | Cross-language hits detected | "⚠ WARNING: This file is imported by non-JS code (Swift/Go). Mobile build may break." |
---
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
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…
Run a complete brownfield analysis on the codebase and generate MASTER.md, summaries, risk…
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.