brownfield-blast
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 reading raw source files.
$ 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-chatContext preview
What this command does when you run it.
Answer any structural, historical, or architectural question about the codebase without reading raw source files.
Answer any structural, historical, or architectural question about the codebase without reading raw source files.
Type: `/brownfield-chat <question>`
---
Parse the user's question to extract:
const queries = require('./.claude/query-helpers.js');
const results = queries.searchFiles(entityName);This returns top matching files with full context:
Return top 5 matching files.
const summary = queries.getFileSummary(dbPath, filePath);
Returns:
Combine the file summary + purpose + role to answer in 2-3 sentences. **Example:** "auth.js is an Entry file (confidence 85%) that validates user credentials and manages JWT tokens. Imported by 8 files (api.js, middleware, routes). Risk score: 45 (Moderate)."
Use the import graph from file summaries to trace paths. If path exists: list it step-by-step. If no direct path: show closest path or note that they're unrelated.
Answer with the blastRadius from the file summary query. **Example:** "Changing graph.js affects 34 files (transitive). Most critical: store.js (relies on query API), parser.js (relies on node structure). Risk level: CRITICAL."
Search for matching files and group by role using role classification. **Example:** "Authentication is handled by: auth.js (Entry), middleware/auth-guard.js (Infra), adapters/jwt.js (Adapter)."
State which tool was used:
---
If the graph.db doesn't exist, the codebase must be mapped first:
wednesday-skills map --full
Once mapped, the DB will contain:
The query layer will then provide fast, semantic answers to all questions.
---
| Situation | Action | |-----------|--------| | No matching files found | "No files match '<entity>'. Did you mean one of: <suggestions>" | | Entity is too broad ("what does the code do?") | "That's very broad. Can you narrow it down? Examples: 'what does auth.js do', 'how do routes reach the database'" | | Graph has low coverage (<70%) | Add caveat: "Note: graph coverage is <X>%, so some relationships may be incomplete." | | No path exists between A and B | "A and B are not directly connected. Closest path: A → C → B (3 hops)." |
---
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.
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.