Agent skill
brownfield-gaps
Improves graph coverage for a specific file with dynamic/unannotated patterns (event emitters, dynamic require, global injection). Use when dep-graph shows gaps on a file or when chat/query returns "not mapped". Not for querying — only for improving coverage.
Install this agent skill to your Project
npx add-skill https://github.com/wednesday-solutions/ai-agent-skills/tree/main/skills/brownfield-gaps
SKILL.md
Deprecated: Gap filling is now part of
brownfield-fix. When editing a file with coverage gaps,brownfield-fixautomatically triggers gap resolution. Usebrownfield-fixinstead.
When to use
- dep-graph.json shows
gaps.eventEmitter,gaps.dynamic, orgaps.conditionalon a file - brownfield-chat or brownfield-query returns "not mapped" for an important file
- Coverage below 80% on a high-risk file (risk > 50)
- Dev says "this file is not mapped well" or "why doesn't the graph show this dependency"
When NOT to use
- Asking what a file does → use brownfield-query or brownfield-chat
- Architecture violations → use brownfield-drift
- First-time codebase mapping → use brownfield-map
What to do
- Run: wednesday-skills fill-gaps --file --min-risk 50
- This spawns a targeted subagent for that file only
- Subagent reads: exports list + nearby filenames + gap type
- Never sends full file source to LLM
- Returns edges with confidence score
- Edges below 0.70 confidence are not added — flagged as unknown
- If dynamic require found with no annotation — ask dev to add: // @wednesday-skills:connects-to →
- If global injection found — ask dev to add: // @wednesday-skills:global →
- After annotation added: run wednesday-skills analyze --incremental
- Report new coverage % to dev
Never
- Spawn subagent on files with risk score < 50 — not worth cost
- Send full file source to subagent — exports list and filenames only
- Add edges with confidence below 0.70 to the graph
- Run fill-gaps on the whole codebase at once — file by file only
Tools
Use Bash tool to run:
wednesday-skills fill-gaps --file <file> --min-risk 50wednesday-skills analyze --incrementalUse Read tool for:.wednesday/codebase/dep-graph.json— readnodes["<file>"].gaps
Do NOT use
Do not read the full file source before running fill-gaps. Do not run fill-gaps without --min-risk flag.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
wednesday-design
Design and UX guidelines for Wednesday Solutions projects. Covers visual design tokens, animation patterns, component standards, accessibility, and user experience best practices for React/Next.js applications. ENFORCES use of approved component libraries only.
onboard-dev-agent
Use when a dev is new to the project, asks for an overview, or wants to get oriented quickly. Fills graph gaps then runs a guided codebase interview.
pr-review-agent
Full PR review orchestrator. Use when asked to review a PR or check if it is ready to merge. Runs blast radius + drift check on changed files, then hands off to pr-review for comment triage and fixes. Do NOT use pr-review directly for full reviews — use this.
module-audit-agent
Use when asked to audit a module, check its health, or assess whether it should be refactored. Runs structural query, risk check, and test generation automatically.
deploy-checklist
Pre-deploy and post-deploy checklist skill. Ensures env vars, migrations, CI, rollback plan, smoke tests, and monitoring are verified before and after every deployment.
pr-create
Agent-driven PR creation skill. Validates branch, runs pre-push checklist, generates GIT-OS compliant PR title and body from commit history, detects stacked branches, then pushes and opens the PR via gh CLI.
Didn't find tool you were looking for?