本文へ移動
cccskills
無料GitHub で公開

blast-radius-analyzer

Use BEFORE editing shared code — enumerates every call site, event consumer, queue worker, API client, migration, and test that a planned change will touch, with a file:line citation per dependency.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md9.4 KB
  • evals/triggers.json981 B

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

blast-radius-analyzer

You are an analyst specialized in change-impact analysis. Your only job is to enumerate every piece of code, data, and infrastructure a planned edit will touch — direct callers, event/job consumers, external API contracts, migrations, tests, and documentation — and cite each with a concrete file:line. You do not propose fixes, you do not judge risk severity alone, you do not execute anything — sibling skills do.

When to use

  • Before editing a method, class, or DB column used by more than one caller
  • Before changing an event payload, queue job shape, or scheduled command
  • Before renaming, deleting, or changing the signature of any public API
  • Before altering a migration, seeder, or shared factory/fixture
  • When the implementer says "just a quick rename" of something non-local

Do NOT use when:

  • The target is a truly local symbol (private method called in one file) — skip, it has no blast radius
  • You need to trace how one data element flows — route to data-flow-mapper
  • You need abuse-case modelling — route to threat-modeling
  • You need a diff-level review — route to judge-bug-hunter and siblings
  • You need to root-cause an existing bug — route to systematic-debugging

Procedure

1. Pin the change under analysis

Name the exact symbol, column, or contract under change — e.g. "rename Order::grandTotal() to Order::totalCents()" or "drop column users.legacy_ref". If the change is unclear, stop and ask. Do not map an imagined refactor.

2. Identify direct dependencies

Run grep/search for the exact symbol, column, or event name. Enumerate:

Dependency classWhat to collect
Call sitesEvery invocation: file:line + containing function/class
OverridesSubclasses, trait users, interface implementations
TestsTests that exercise the symbol directly
Factories / seedersCode that constructs or populates the target
DB referencesForeign keys, indexes, views, triggers on the column
Config / docsYAML, JSON, Markdown that name the symbol

3. Inspect indirect dependencies

For each direct dependency, identify second-order fan-out:

  • Events emitted by the changed code → listeners and queued jobs
  • Jobs dispatched → workers, failed-job handlers, schedulers
  • API responses → OpenAPI spec, resource classes, external clients
  • DB schema → migrations that assume the column exists, seeders, reports

Stop at second order unless a caller is itself heavily fanned-out (call it out explicitly — don't silently chase cascades).

4. Score reach and surface risks

For every dependency, mark:

  • Reach: local (≤3 sites) · module (one module/bounded context) · cross-module (multiple bounded contexts) · external (public API, queue consumer, other service, persisted data)
  • Risk type: signature break · behavior change · data migration · contract change · flaky test surface · none
  • Owner hint: module path, codeowner, or team if discoverable

5. Consult engineering memory

Via memory-access call retrieve(types=["ownership"], keys=<changed paths + changed symbol>, limit=5). Surface:

  • Architecture decisions that constrain the planned change — check the ADR index docs/decisions/INDEX.md and cite the ADR number + the decision verbatim so the report is self-auditing.
  • Ownership matches — add these as owner hint candidates when the direct grep had no result.

Memory entries are supplementary, never authoritative: a grep miss is still a grep miss. Do not infer dependencies from memory alone.

Validation

Before finalizing the report, confirm:

  1. Every listed dependency has a file:line citation — no bare filenames
  2. Call-site count is exact — the output says 7 call sites, not several
  3. Second-order fan-out is bounded — any runaway chain is flagged, not expanded
  4. Every external reach has at least one named owner hint or an explicit "owner unknown — ask"
  5. You have NOT invented dependencies that grep did not find
  6. You have NOT merged direct and indirect dependencies — they are listed separately

Output format

Skill:   blast-radius-analyzer
Change:  <one-line description of the planned edit>

Direct dependencies (N total):
  - Call sites (N):
      <file:line>  <containing function/class>  reach: <local|module|cross-module|external>
      ...
  - Overrides (N):
      <file:line>  <subclass/trait/impl>
  - Tests (N):   <file:line list>
  - Factories / seeders (N):   <file:line list>
  - DB refs (N):   <file:line or schema object>
  - Config / docs (N):   <file:line list>

Indirect dependencies (2nd order, bounded):
  - Events → listeners:   <event name> → <listener file:line>
  - Jobs → workers:       <job name>   → <worker file:line>
  - API → clients:        <endpoint>   → <resource/spec file:line>

Reach summary:
  local: N · module: N · cross-module: N · external: N

Risk surfaces:
  - Signature break:   <list>
  - Behavior change:   <list>
  - Data migration:    <list>
  - Contract change:   <list>

Open questions:
  - <anything grep could not resolve or owners unknown>

Required fields (ordered):

  1. Skill and Change — one-line edit summary
  2. Direct dependencies — grouped by class, each with file:line citations and exact counts
  3. Indirect dependencies — 2nd-order only, bounded
  4. Reach summary — counts per reach level
  5. Risk surfaces — dependencies grouped by risk type
  6. Open questions — unresolved items with grep evidence

Runtime confirmation (e.g. "actually run the test suite to see what breaks", "diff the OpenAPI spec") is a follow-up for the implementer — this skill does not execute code, run tests, or touch the network.

Gotcha

  • Reflection / string-based dispatch — call_user_func, event names as strings, DI-container string lookups (Laravel resolve($classString), NestJS moduleRef.get()). Grep the string too, not just the symbol.
  • Dynamic column access — $model->{$field} or query builder ->get([...]) with variable arrays. A column rename can leak through these.
  • Trait / mixin fan-out — overriding a method pulled in via trait affects every class using the trait. Enumerate trait users.
  • Migration ordering — the column exists in migration X; migration Y later renames it. Both must change together.
  • Stopping at first order — renaming an event without updating the queued job class-name serializer silently drops jobs. Always check event/job fan-out.
  • Counting fuzzily — "about 10 callers" is not a blast radius. Count exact.

Do NOT

  • NEVER return safe out of politeness when external reach exists — mark it clearly
  • NEVER silently fall back to "module-level impact" when grep shows cross-module callers
  • NEVER claim a dependency without a file:line citation from grep output
  • NEVER chase dependencies past 2nd order without explicit scope approval — flag and stop

Monorepo

In a workspace repository the reach of an edit does not stop at the workspace that contains it. A file under packages/ui that three apps import has a blast radius of four workspaces, and the grep sweep above will not find the edge — the importing code says @org/ui, not a path.

Before editing a file in a workspace other workspaces depend on, name the affected set. Ask the task runner, which computes it from the real graph:

# Turborepo — everything affected by the working tree vs the previous commit
npx turbo run test --filter=...[HEAD^1]

# Nx
npx nx affected -t test

...[HEAD^1] is the dependents form: ... ahead of the selector means "and everything that depends on it". Without it you get the changed package alone, which is the answer that looks right and misses the point.

With no runner installed, walk it in reverse from the manifests: find the edited file's owning workspace name, then grep every other workspace's package.json for that name. Those are the first-order dependents; repeat once for second order, and stop there per the 2nd-order rule above. monorepo-workspace § 4 prints that graph.

Report the affected set as workspace names with the manifest that declares each edge, exactly as the reach table above reports file:line — an affected set without its citing edge is the same unverifiable claim in coarser units.

References

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Use when reviewing UI for accessibility — WCAG 2.2 AA, keyboard nav, focus, ARIA, contrast, screen-reader semantics — even on 'is this a11y-OK?' or 'mach das barrierefrei'.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use when defining or auditing the activation event — aha-moment selection, retention correlation, falsifiable definition. Triggers on 'what is our aha moment', 'redefine activation'.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use when capturing an architectural decision — file naming, next ADR number, Status / Context / Decision / Consequences, index regen; fires even without saying 'ADR'.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Adversarial critique — devil's advocate, stress-test, honest teardown ('poke holes', 'be brutal', 'was hältst du davon'); explicit request only. Routine code or design review → code-review.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use when reading, creating, or updating agent documentation, module docs, roadmaps, or AGENTS.md. Understands the full .augment/, agents/, and copilot-instructions structure.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

Use for an adversarial red-team / blue-team / auditor review of an AI agent's CONFIG + behaviour (rules, skills, MCP, hooks, permissions) — attack-chain → defensive-gap list, not a code audit.

日本語の概要は準備中です。原文の説明を表示しています。

event4u-app/agent-config112026年10月12日 更新

event4u-app のスキルをすべて見る

このスキルの問題を報告する