Receber por email
← Voltar para o catálogo

impact-analysis

Use when you need to analyze cascade impact of changing a component.

8estrelas
Atualizado há 3 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add seokan-jeong/team-shinchan

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/impact-analysis-seokan-jeong/svg)](https://www.skillteca.com.br/skills/impact-analysis-seokan-jeong)

Alerta por categoria

Receba novas skills de Design e Frontend toda segunda

1 email curto, só com as skills novas de Design e Frontend. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

Impact Analysis Skill

Analyze the cascade impact of modifying a component using the project ontology's dependency graph.

Usage

/team-shinchan:impact-analysis <target> [options]

Parameters

  • <target> — Entity name, ID, or file path to analyze
  • --depth <N> — Traversal depth (default: 2, max: 5)
  • --direction outgoing|incoming|both — Direction of analysis (default: both)

Process

1. Locate Target Entity

  1. Check if .shinchan-docs/ontology/ontology.json exists
  2. If not: "No ontology found. Run /team-shinchan:ontology scan first."
  3. Search for target by:
  4. Exact entity ID match
  5. Entity name substring match
  6. File path match (for Component entities)
  7. If multiple matches, list them and ask user to clarify

2. Cascade Analysis

Run node ${CLAUDE_PLUGIN_ROOT}/src/ontology-engine.js related <entityId> with the specified depth.

Analyze the result:

  • Direct dependencies (depth 1): Components that directly depend on target
  • Indirect dependencies (depth 2+): Cascade through transitive relations
  • Test coverage: TESTED_BY relations for affected components
  • Pattern compliance: FOLLOWS_PATTERN relations that may be affected

3. Risk Assessment

Calculate risk level based on:

  • HIGH: 10+ affected entities OR target has 5+ incoming DEPENDS_ON
  • MEDIUM: 5-9 affected entities OR target has 3-4 incoming DEPENDS_ON
  • LOW: 1-4 affected entities OR target has 0-2 incoming DEPENDS_ON

4. Output Format

Display:

Impact Analysis: {target name}
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

Risk Level: {HIGH|MEDIUM|LOW}

Direct Dependencies ({N}):
  - {component name} ({file_path}) — {relation type}
  ...

Indirect Dependencies ({N}):
  - {component name} ({file_path}) — via {intermediate}
  ...

Test Coverage:
  - {test suite name} ({file_path}) — covers {component}
  ...

Affected Modules:
  - {module name} ({N} components affected)
  ...

Recommendations:
  - {recommendation based on risk level}

Graceful Degradation

If ontology doesn't exist or target not found, suggest running scan first.

Compartilhar X LinkedIn