Ai-agent-skills brownfield-fix
Use before editing any file in a brownfield project. Runs risk check and blast radius before making any change.
install
source · Clone the upstream repo
git clone https://github.com/wednesday-solutions/ai-agent-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/wednesday-solutions/ai-agent-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/brownfield-fix" ~/.claude/skills/wednesday-solutions-ai-agent-skills-brownfield-fix && rm -rf "$T"
manifest:
skills/brownfield-fix/SKILL.mdsource content
When to use
- About to edit, refactor, rename, or delete any file
- About to change a function signature or exported value
- Dev asks "is it safe to change X"
- The file you're about to edit has gaps in dep-graph.json (dynamic require, event emitters, global injection)
What to do
- Run: wednesday-skills score <file>
- Score 0–30: proceed
- Score 31–60: tell dev the score, proceed with care
- Score 61–80: tell dev, list direct dependents, ask confirmation
- Score 81–100: stop, tell dev, require explicit approval
- Run: wednesday-skills blast <file>
- Include dependent count in your response
- Cross-language dependents flagged separately
- Check .wednesday/codebase/MASTER.md danger zones section
- If file listed there: read the warning before proceeding
3a. If the file shows gaps in
, run.wednesday/codebase/dep-graph.json
first — ensures blast radius is completewednesday-skills fill-gaps --file <file> --min-risk 50
- If file listed there: read the warning before proceeding
3a. If the file shows gaps in
- Make the change
- Read git-os skill before writing commit message
- After committing: post-commit hook updates graph automatically
Never
- Skip the score check — even for "small" changes
- Modify a file with risk score > 80 without explicit dev confirmation
- Bundle fixes to multiple high-risk files in one commit
- Ignore danger zones section warnings
Tools
Use Bash tool to run:
— get risk scorewednesday-skills score <file>
— get blast radius Use Read tool for:wednesday-skills blast <file>
— check danger zones section.wednesday/codebase/MASTER.md
Do NOT use
Do not skip score check for any file edit. Do not read raw source to assess risk — use the graph only.