fix-at-the-boundary
Ce qu’il fait
Cette compétence guide une recherche de tous les endroits où un motif de bug apparaît, avant toute correction. Elle s'applique lorsque la cause est un motif répété plutôt qu'un seul fichier. Elle s'adresse aux développeurs qui veulent une correction valable pour toute la base de code.
Quand l’utiliser
- ✓Quand un bug est causé par un motif répété, comme une fonction copiée ou une forme d'appel commune.
- ✓Quand vous avez corrigé quelques occurrences et ne savez pas s'il n'en reste pas d'autres.
- ✓Quand le même défaut risque d'exister dans d'autres applications ou modèles.
Lien du skill
https://github.com/BuilderIO/agent-native/blob/main/.agents/skills/fix-at-the-boundary/SKILL.mdCopiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.
Comment l’utiliser
Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.
Message prêt à coller
Pour Claude Code, Codex ou Cursor : lancez-la dans le dossier du projet et le skill est installé.
Téléchargez le SKILL.md et placez-le dans le dossier de skills de votre agent.
Exemple de demande à votre IA
“Peux-tu vérifier si cette condition de course dans une fonction de sauvegarde existe aussi ailleurs, avant de la corriger ?”
5 nouveaux skills par semaine. 1 minute de lecture.
Comment ça marche
L'agent recherche toutes les occurrences du motif et les liste toutes avant de modifier quoi que ce soit. Il corrige celles qui relèvent du périmètre et signale les autres.
Contenu technique (SKILL.md original)
Texte original de l’auteur, en anglais, directement depuis 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.
Questions fréquentes
Faut-il toujours une recherche exhaustive ?
Non. La compétence indique qu'un bug réellement local, comme une faute de frappe, n'a pas besoin de recherche, et que l'agent doit le dire.
Corrige-t-il toutes les occurrences ?
Pas toujours. La compétence demande de lister les occurrences dans les autres zones dont on est responsable, et d'éviter de modifier du code hors du périmètre.
Pourquoi ne pas s'arrêter après quelques occurrences ?
La compétence avertit que s'arrêter tôt est la manière dont les copies restantes du bug survivent.
Détails
Description originale de l’auteur
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
Popularité
- Étoiles GitHub
- 7.6k
- Position au classement
- #13160
- Licence
- MIT
- Mis à jour
- 02/11/2026
Commentaires
- …
Autres skills de ce dépôt
design-exploration
7.6kAide votre agent à explorer plusieurs directions de conception d'interface côte à côte, à vous laisser en choisir une, puis à affiner la version retenue.
visual-edit
7.6kAide votre agent à ouvrir une application locale en cours d'exécution dans un éditeur visuel, pour que vous en examiniez et modifiiez ensemble les écrans réels.
turn-into-app
7.6kTransforme un flux de travail, un tableur ou un projet en application visuelle soignée, avec des écrans remplis et un agent qui travaille derrière les commandes.
visual-plan
7.6kTransforme un plan écrit en plan visuel interactif, avec diagrammes, cartes de fichiers, extraits de code commentés et questions ouvertes.
Skills similaires
diffs
394kPermet à votre agent de produire un diff réel et partageable de vos modifications, sous forme de lien ou d'image, plutôt qu'un résumé écrit à la main.
coding-agent
394kAide votre agent à confier une tâche de programmation plus importante à Codex, Claude Code ou OpenCode comme travailleur en arrière-plan, puis à suivre sa progression.
gh-issues
394kAide votre agent à trouver des tickets GitHub, choisir ceux à traiter et ouvrir des pull requests avec des correctifs, y compris le suivi des commentaires de relecture.