brownfield-blast
Generate a detailed blast radius report showing all files affected if you change a given file.
Run a risk assessment before editing any file in a brownfield codebase. Provides a risk card showing impact scope, danger zones, and safe-to-edit verdict.
$ 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-fixContext preview
What this command does when you run it.
Run a risk assessment before editing any file in a brownfield codebase. Provides a risk card showing impact scope, danger zones, and safe-to-edit verdict.
Run a risk assessment before editing any file in a brownfield codebase. Provides a risk card showing impact scope, danger zones, and safe-to-edit verdict.
Type: `/brownfield-fix <file-path>` (or leave empty to check currently open file)
---
If `$ARGUMENTS` is empty, assume the currently open file in the editor. If `$ARGUMENTS` is a relative path, resolve it relative to the project root.
const queries = require('./.wednesday/queries-loader.js'); // Loader helper
const fileSummary = queries.getFileSummary('.wednesday/graph.db', targetFile);
if (!fileSummary) {
console.log('File not found in graph. Run /brownfield-map first.');
return;
}This single query returns:
Daemons and adapters are included in the file summary from the DB:
**Format:**
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ FILE: <relative-path> RISK SCORE: <score>/100 [<band>] ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ IMPACT SCOPE Direct dependents: <N> files Transitive affected: <N> files CONTRIBUTING FACTORS Bug fixes in history: <N> Total commits: <N> File age: <N> days Import fanout: <N> Unresolved gaps: <N> DAEMONS & ADAPTERS <list or "None"> ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ VERDICT ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ [If SAFE or MODERATE] ✓ Safe to edit. Low blast radius. <one-line summary> [If RISKY] ⚠ HIGH RISK. Affects <N> files. Review these before committing: • <top impacted file 1> • <top impacted file 2> • <top impacted file 3> [If CRITICAL] 🛑 CRITICAL. <reason>. Do NOT edit without: 1. Talking to the maintainer 2. Running full test suite 3. Code review from <most recent author>
List top 5 transitive dependents by name (from blast-radius.json or compute manually).
---
If `.wednesday/codebase/dep-graph.json` doesn't exist, use the graph database:
sqlite3 .wednesday/graph.db " SELECT risk_score, bug_fixes, total_commits, file_age FROM files WHERE file_path = ? "
If both fail, advise the user to run `wednesday-skills map --full` first.
---
| Situation | Action | |-----------|--------| | File not in graph | "File not yet mapped. Run `wednesday-skills map --full` first." | | File doesn't exist | "File not found on disk at <path>. Check spelling." | | No JSON files, no DB | "Run `wednesday-skills map --full` to initialize analysis." | | Graph coverage < 70% | Add caveat: "Risk is based on incomplete graph — actual impact may be higher." |
---
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 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.