/d3nexus:impact-analysisfrom d3nexus
Performs 4-layer impact, blast radius, bridge contract, and upstream git conflict analysis before editing code (Shift-Left) and at final quality check (Shift-Right Bookend).
Ships in d3nexus. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
In multi-module mobile architectures (Flutter, Android Native, iOS Native), source code changes frequently cause unforeseen side effects:
<base_ref> causes merge collisions.MethodChannel strings breaks native Android (Kotlin) or iOS (Swift) integrations at runtime.This skill provides the operational procedure and automated tooling (check_code_impact.py) to analyze and eliminate these risks through a Double-Check (Bookend Verification) mechanism.
Core principle: Check early to design safely (Shift-Left); check before editing to prevent conflicts; check finally before merge to verify real-world diffs (Shift-Right).
Announce at start: "I'm using the impact-analysis skill to evaluate code impact and blast radius."
Single-point verification fails in autonomous agentic workflows:
The Double-Check Architecture clamps the development lifecycle between two synchronized bookends:
flowchart LR
subgraph STAGE1["Stage 1: Design-Time (Shift-Left Bookend)"]
direction TB
CHECK1["Check 1: Static AST & Predictive Blast Radius\n(dev-brainstorming & dev-designer)"]
CHECK1 --> SCOPE["Freeze Contract & Map Callers"]
end
subgraph STAGE2["Stage 2: Implementation (Just-In-Time)"]
direction TB
STEP0["Phase 2 Step 0: Pre-Edit Git Divergence Check\n(check_code_impact.py)"]
STEP0 --> TDD["TDD Red-Green-Refactor"]
end
subgraph STAGE3["Stage 3: Merge-Time (Shift-Right Bookend)"]
direction TB
CHECK2["Check 2: Cumulative Diff & Coverage Audit\n(quality_check Gate 4)"]
CHECK2 --> AUDIT["Verify 4 Audits vs Coverage Matrix"]
end
STAGE1 ==> STAGE2
STAGE2 ==> STAGE3
| Dimension | Check 1 (Design-Time / Shift-Left) | Check 2 (Merge-Time / Shift-Right) |
|---|---|---|
| Trigger Point | dev-brainstorming & dev-designer | quality_check (Gate 4) |
| Inspection Target | Architectural files & symbol definitions | Cumulative git diff <base_ref>...HEAD |
| Primary Goal | Expose blast radius, native bridges, and missing test files before writing tasks. | Verify real-world test coverage matches the 4-Audit Category thresholds. |
| Decision Output | Enriches Kanban tasks with ### Impact Analysis & Blast Radius. | Grants 🟢 LGTM or rejects PR with concrete line coverage gaps. |
dev-brainstorming and dev-designer (Check 1) to inspect proposed architectural changes.dev-implementation immediately before editing any source file.quality_check (Check 2) to evaluate the cumulative diff against the upstream <base_ref>.Don't use when: running simple documentation formatting, fixing Markdown typos, or working on standalone tasks with no code dependencies.
The CLI engine check_code_impact.py evaluates code health across 4 distinct layers:
flowchart LR
L1["Layer 1: Upstream Divergence\n(git merge-base + log)"] --> L2["Layer 2: Blast Radius\n(ripgrep symbol callers)"]
L2 --> L3["Layer 3: Cross-Platform Bridge\n(MethodChannel matcher)"]
L3 --> L4["Layer 4: Test Safety Net\n(TIA & coverage reports)"]
Execute the analyzer tool from the skill directory or repository root:
python3 skills/impact-analysis/resources/scripts/check_code_impact.py \
--files <path/to/target/file1> <path/to/target/file2> \
--symbols <TargetClassName> <targetFunctionName> \
--base-ref develop \
--format markdown
For machine-readable JSON output (ideal for subagent automation):
python3 skills/impact-analysis/resources/scripts/check_code_impact.py \
--files <path/to/target/file1> \
--symbols <TargetClassName> \
--format json
When check_code_impact.py produces output, the agent MUST follow these decision rules:
🔴 DIVERGENCE DETECTED (Layer 1)develop or main) contains unmerged commits that touched the target file.git fetch && git rebase origin/<base_ref>. Verify that the local branch contains upstream commits before proceeding.⚠️ NATIVE BRIDGE DETECTED (Layer 3)MethodChannel("channel_name") with matching native Android Kotlin or iOS Swift implementations.⚠️ UNPROTECTED CODE (0% Coverage) (Layer 4)lcov.info / JaCoCo / xccov.check_code_impact.py reports 🔴 DIVERGENCE DETECTED.MethodChannel strings in Dart without inspecting paired Kotlin/Swift files.quality_check.check_code_impact.py.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub danhdue/ai-agent-tools --plugin d3nexus72 skills in this plugin
/android-api-integrationGenerates a standardized Network Module, API Interface, Remote Data Source, Repository, UseCase, Models, and ViewModel updates for Android using the Hybrid Network Architecture and MVI Pattern./android-quality-checkRead-only Android quality assurance provider implementing the common quality contract. Executes project-configured Gradle, Spotless, Detekt, and Konsist capabilities from .agents/quality/android-quality.json, enforces BCV and architecture policies, and outputs structured results bound to repository SHA./android-ui-auditAudits Jetpack Compose and Android UI code for recomposition stability, state hoisting, Material3 design system adherence, and modifier best practices.Other plugins' skills for the same job