fix-at-the-boundary
What it does
This skill guides a search for every place a bug pattern appears before any fix is made. It applies when the cause is a repeated pattern rather than one file. It is for developers who want a fix that holds across the whole codebase.
When to use it
- βWhen a bug is caused by a repeated pattern, such as a copied helper or a common call shape.
- βWhen you have fixed a few instances and are not sure there are no others.
- βWhen the same defect may exist in other apps or templates.
Skill link
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/fix-at-the-boundary/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βCan you check whether this race condition in one save function also appears in other places, before you fix it?β
5 new skills a week. 1 minute to read.
How it works
The agent searches for every match of the pattern and lists them all before editing anything. It fixes the ones in scope and reports the others.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Fix at the Boundary
Activation guard
Use this skill when a reported bug's root cause is a pattern β a function shape, a write sequence, a device/permission check, a duplicated literal, a copy-pasted helper β rather than a fact unique to the one file named in the report.
If the bug is genuinely local (a typo, a value that only makes sense for that
one app, a one-time data fix), say so explicitly β "this is local to
<file>, no sweep needed" β and skip the rest of this skill. Don't sweep as
theater.
Do NOT skip the sweep in these situations
- "The report only names one file, I'll patch that and move on." A stale-diff write race, a mic-device resolution order, a missing scoped-access check β these are usually copy-pasted everywhere the same operation is implemented.
- "I found 3 callers and fixed those, that's probably all." Enumerate every hit from the search before editing anything β stopping at the first few you notice is how instances 4β9 survive.
- "Grepping the whole repo will take too long." A few
rgcalls take seconds; rediscovering the same fix across four more user reports doesn't. - "This looks like the same bug in an area I don't own, but that's not what I was asked to fix." Still enumerate it β just don't edit it (see below).
- "I fixed the shared helper, callers will pick it up automatically." Only true if every sibling actually calls it β confirm with the same search.
Workflow
- Derive the fingerprint from the symptom, not the file: the exact function/hook name, the anti-pattern shape (read stale state β write without re-checking), a literal string, or an import path.
- Search before editing:
Widen the pattern (drop args, add# exact call/hook, whole repo rg -n "computeDiffBase\(|stashLocalDiffBase\(" --type ts -g '!**/node_modules/**' # duplicated literal (device id, action name, config key) rg -n "'design-native-asset'" -g '*.ts' -g '*.tsx' # same shape copy-pasted across template apps rg -n "getUserMedia" templates/*/app templates/*/src 2>/dev/null-C 3, try a sibling term likediffBasevsdiff_base) until confident no caller phrases it slightly differently. - Enumerate every hit before touching any file β write the list in your response so step 5 is checkable.
- Decide where the fix lives. A shared helper some callers bypass β fix the helper and point bypassers at it. No shared helper and N β₯ 3 duplicate sites β consider extracting one instead of pasting a 4th time.
- Apply the fix to every in-scope hit.
Ownership boundaries
Enumerating isn't editing. A hit inside a path this task's DO NOT TOUCH
list assigns to another agent gets listed as found-but-out-of-scope and
flagged via spawn_task or a direct note β never silently edited or
silently dropped. See concurrent-agents.
Reporting the sweep
Report the full blast radius, not just what you changed:
Fixed the stale-diff-base race in:
- insert-design-native-asset.ts (as reported)
- insert-asset.ts, apply-a11y-fix.ts, generate-design.ts (same pattern)
Found but out of scope (owned by another agent this task): apply-visual-edit.ts
in templates/design/** β flagged via spawn_task.
No other callers of computeDiffBase().
Why this exists
- "apply-visual-edit.ts has the same stale-diff-base write-race bug that was just fixed in insert-design-native-asset.ts, insert-asset.ts, apply-a11y-fix.ts ... and generate-design.ts" β one defect, 9 files, fixed one report at a time instead of once.
- Mic-device resolution was independently fixed in four different Clips
surfaces (
useMediaDevices.ts,media-capture-constraints.ts,offscreen.ts,recorder-engine.ts). - "i want to make sure universally cmd+click works ... can we do a quick sweep of other apps" β the user had to ask for a sweep across 4 templates that should have happened proactively.
- "remember - if any other apps like in our core repo templates/ does this wrong, fix that too" β exists only because the first fix didn't already answer it.
Related Skills
- concurrent-agents β why an out-of-scope sibling gets flagged, not edited.
- adding-a-feature β the four-area checklist a proper fix should satisfy.
FAQ
Is a sweep always needed?
No. The skill says a truly local bug, such as a typo, needs no sweep, and the agent should say so.
Does it edit every match?
Not always. The skill says to list matches in other owned areas, and avoid editing code outside the task.
Why not stop after a few matches?
The skill warns that stopping early is how later copies of the same bug survive.
Details
Original description by the author
How to find every sibling instance of a reported bug before fixing it. Use whenever a bug report names one file but the defect is a call pattern, hook, duplicated literal, or copy-pasted helper that plausibly exists in other files, apps, or templates.
repo: BuilderIO/agent-native
Popularity
- GitHub stars
- 7.6k
- Ranking position
- #13160
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
design-exploration
7.6kHelps your agent explore several UI design directions side by side, let you pick one, and then refine the chosen design.
visual-edit
7.6kHelps your agent open a running local app in a visual editor so you can review and edit its real screens together.
turn-into-app
7.6kTurns a workflow, spreadsheet or project into a polished visual app, with populated screens and an agent working behind the controls.
visual-plan
7.6kTurns a plain text plan into an interactive visual plan with diagrams, file maps, code snippets and open questions.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.