agentleFS
fusebase-devfusebase-dev/fusebase-flow/.agents/skills/zoom-out/SKILL.md

zoom-out

Skill9 starsChanged 2 months agoMITView on GitHub

Use before committing a bug fix or improvement, when a fix is non-trivial, or when the same area has been patched before. Operationalizes FR-20 — zoom out to root cause before applying a narrow patch. Do NOT use for trivial typo/format edits, for net-new feature work with no prior code (nothing to zoom out from), or as a substitute for reproduce-before-fix (FR-10 / validation-and-qa).

75 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use write-a-skill, to-issues and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • kayamanSkill

    write-a-skill

    Guides creation of new agent skills with proper structure, progressive disclosure, and bundled resources. Use when user wants to create, write, or build a new skill.

    Also in 34 projects that use this

  • ninehillsSkill

    to-issues

    Break a plan, spec, or PRD into independently-grabbable issues on the project issue tracker using tracer-bullet vertical slices.

    Also in 32 projects that use this

  • kayamanSkill

    edit-article

    Edit and improve articles by restructuring sections, improving clarity, and tightening prose. Use when user wants to edit, revise, or improve an article draft.

    Also in 10 projects that use this

  • AWSSkill

    setup-matt-pocock-skills

    Configure this repo for the engineering skills: set up its issue tracker, triage label vocabulary, and domain doc layout. Run once before first use of the other engineering skills.

    Also in 29 projects that use this

  • kennethkeimSkill

    ubiquitous-language

    Extract a DDD-style ubiquitous language glossary from the current conversation, flagging ambiguities and proposing canonical terms. Saves to UBIQUITOUS_LANGUAGE.md. Use when user wants to define domain terms, build a glossary, harden terminology, create a ubiquitous language, or mentions "domain model" or "DDD".

    Also in 11 projects that use this

  • qhuang20Skill

    migrate-to-shoehorn

    Migrate test files from `as` type assertions to @total-typescript/shoehorn. Use when user mentions shoehorn, wants to replace `as` in tests, or needs partial test data.

    Also in 11 projects that use this

  • +2 more from kayaman

The file

We split this skill into the rules it gives an agent

7 rules. 0 are common, 6 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 14 edited versions we read keep these.

  • 6

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Stop patch-myopia. Before fixing a bug or making an improvement, zoom out and confirm the change addresses the root cause and stays …

    line 26
  2. Very specific:

    Before step 1, read flow-skills/zoom-out/references/karpathy-guidelines.md unless its exact body is already in context.

    line 52
  3. Distinctive:

    If the correct unit is a product question, ask it per §1.

    line 81
  4. Distinctive:

    Do not stack patch-on-patch to silence a symptom.

    line 107
  5. Distinctive:

    Do not fix at the wrong layer because it is faster.

    line 108
  6. Distinctive:

    Do not skip this for "small" fixes that touch shared logic.

    line 109
  7. Distinctive:

    Do not replace reproduce-before-fix (FR-10) — complement it.

    line 110

“Common” is measured: kept by at least 6 in 10 of the 14 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Zoom Out (FR-20)

Style: Mode-B-lite. Concise, structured, AI-consumable.

Purpose

Stop patch-myopia. Before fixing a bug or making an improvement, zoom out and confirm the change addresses the root cause and stays consistent with the bigger picture — instead of stacking a narrow patch that creates drift elsewhere. Operationalizes always-on rule FR-20.

When to invoke

  • About to commit a bug fix or behavior change that is non-trivial.
  • The same file / function / area has been patched before (repeat-patch smell).
  • A fix touches shared logic, data shape, an interface, or cross-app behavior.
  • Operator says "fix X", "why does X keep breaking", "patch", "quick fix".
  • Active phase is Implement or a post-gate fix.

Do not invoke when

  • Trivial typo / formatting / comment-only edit.
  • Pure net-new feature with no existing code to reconcile against.
  • The work is reproduce-before-fix itself (that is FR-10 / validation-and-qa) — run that first, then zoom out on the fix design.

Required inputs

InputWhere it livesIf missing
The observed symptom / bugoperator report, logs, test outputrun reproduce-before-fix (FR-10) first
Spec / decisions (if under a ticket)docs/specs/<slug>/proceed; note no spec to check against
North Star (if present)docs/north-star.mdskip the North-Star check silently (absent-by-default)

Procedure

Before step 1, read flow-skills/zoom-out/references/karpathy-guidelines.md unless its exact body is already in context; apply it through the fix plan.

  1. Name the symptom vs the cause. State the visible failure, then the underlying cause. If you can only name the symptom, investigate before patching.
  2. Layer check. Is this the right place to fix it? (UI symptom caused by a data/API bug → fix the source, not the surface.)
  3. Consistency check. Does the fix contradict the spec, locked decisions, or docs/north-star.md (if present)? If yes → stop, raise it.
  4. Drift check. Will this patch create inconsistency elsewhere (other apps, shared logic, future edits)? Prefer the change that reduces total inconsistency.
  5. Repeat-patch check. Has this area been patched before? Two+ patches in one spot = treat as a design problem, not another patch.
  6. Decide — and emit the Required output block below. Either (a) produce a root-cause fix plan, or (b) justify a deliberate narrow patch ("symptom-level fix is correct here because …"). Never an unexamined patch.
  7. Ambiguous bigger picture → apply flow-skills/zoom-out/references/karpathy-guidelines.md §1 in chat text (FR-19); route unresolved root-cause/design conflicts through § Escalation path.

Required output — zoom-out verdict (5 lines)

Emit before the fix lands — in chat, and verbatim into the gate/handoff note when one is written. The block is the checkable evidence FR-20 ran; a zoom-out claim without it is unverifiable.

Symptom:    <visible failure, one clause>
Root cause: <underlying cause, one clause — "unknown" forces investigation (FR-10), not a patch>
Layer:      <UI | API | data | shared logic | config> — fixing there? <yes | no + why>
Drift risk: <none | what becomes inconsistent elsewhere>
Decision:   <root-cause fix | justified narrow patch because <reason> | escalate (design problem / Architect)>

Worked example

Bug: an invoice total is off by 100×; ui/totals.ts already carries one rounding patch.

  1. Symptom: wrong total · cause: the API mapper returns cents, the UI assumes units. 2–4. Layer = API mapper, not UI; a UI-only fix leaves the CSV export wrong (drift).
  2. Prior patch in the same area → fix the source this time.
  3. Verdict Decision: root-cause fix in the mapper; the edit stays surgical per flow-skills/zoom-out/references/karpathy-guidelines.md §3.
  4. If the correct unit is a product question, ask it per §1.

Output: the 5-line verdict block in chat, then the fix.

Output artifacts

ArtifactPath or locationMode
Zoom-out verdict block (5 lines, above)chat (Mode A) or gate/handoff noteMode A / Mode-B-lite
Root-cause fix plan or justified-patch noteticket artifact when applicableMode B

Failure cases

Failure modeDetectionResponse
Only the symptom is understoodcannot state root causeinvestigate / reproduce before patching
Fix contradicts spec/decisions/North Starstep 3 finds conflictstop; surface to operator (FR-11/FR-19)
Third patch to same areastep 5escalate to a design/refactor decision, not another patch

Escalation path

  • Root cause spans >10 files / cross-cutting → Architect escalation (workflows/architect-escalation.md).
  • Recurring problem → capture in docs/problem-catalog/ (knowledge-curation).

Anti-patterns

  • Do not stack patch-on-patch to silence a symptom.
  • Do not fix at the wrong layer because it is faster.
  • Do not skip this for "small" fixes that touch shared logic.
  • Do not replace reproduce-before-fix (FR-10) — complement it.

Clean-room note

The FR-20 procedure in this SKILL.md is original Fusebase Flow content, designed after reviewing public AI coding workflow patterns. references/karpathy-guidelines.md is the attributed MIT import; provenance: docs/source-map.md#karpathy-guidelines.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.