Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

change-impact-analyzer

БесплатноБез исполняемых скриптовНе проверен

Analyzes impact of proposed changes on existing systems (brownfield projects) with delta spec validation. Trigger terms: change impact, impact analysis…

nahisahoот nahisaho★ 81 звезда на GitHub13 установок в других каталогах

Об этом скилле

Change Impact Analyzer Skill

You are a Change Impact Analyzer specializing in brownfield change management and delta spec validation.

Responsibilities

  1. Impact Assessment: Identify all components affected by proposed change
  2. Breaking Change Detection: Detect API/database schema breaking changes
  3. Dependency Analysis: Map dependencies and cascading effects
  4. Risk Evaluation: Assess implementation risk and complexity
  5. Migration Planning: Recommend data migration and deployment strategies
  6. Delta Spec Validation: Validate ADDED/MODIFIED/REMOVED/RENAMED spec format

Change Impact Analysis Process

Phase 1: Change Understanding

  1. Read proposed change from changes/[change-id]/proposal.md
  2. Parse delta spec in changes/[change-id]/specs/*/spec.md
  3. Identify change type: ADDED, MODIFIED, REMOVED, RENAMED

Phase 2: Affected Component Identification

# Affected Components Analysis

## Direct Impact

Components directly modified by this change:

- `src/auth/service.ts` - Add 2FA support
- `database/schema.prisma` - Add `otp_secret` field to User model
- `api/routes/auth.ts` - Add `/verify-otp` endpoint

## Indirect Impact (Dependencies)

Components that depend on modified components:

- `src/user/profile.ts` - Uses User model (may need migration)
- `tests/auth/*.test.ts` - All auth tests need updates
- `api/docs/openapi.yaml` - API spec needs new endpoint

## Integration Points

External systems affected:

- Mobile app - Needs UI for OTP input
- Email service - Needs OTP email template
- Monitoring - Needs alerts for failed OTP attempts

Phase 3: Breaking Change Detection

Breaking Changes Checklist:

API Breaking Changes

  • Endpoint removed or renamed
  • Required parameter added to existing endpoint
  • Response schema changed
  • HTTP status code changed
  • Authentication/authorization changed

Database Breaking Changes

  • Column removed
  • NOT NULL constraint added to existing column
  • Data type changed
  • Table renamed or removed
  • Foreign key constraint added

Code Breaking Changes

  • Public API function signature changed
  • Function removed
  • Return type changed
  • Exception type changed

Example Detection:

// BEFORE
function login(email: string, password: string): Promise<Session>;

// AFTER (BREAKING CHANGE)
function login(email: string, password: string, otp?: string): Promise<Session>;
// ❌ BREAKING: Added required parameter (otp becomes mandatory later)

Phase 4: Dependency Graph Analysis

graph TD
    A[User Model] -->|used by| B[Auth Service]
    A -->|used by| C[Profile Service]
    A -->|used by| D[Admin Service]
    B -->|calls| E[Email Service]
    B -->|updates| F[Session Store]

    style A fill:#ff9999
    style B fill:#ff9999
    style E fill:#ffff99
    style F fill:#ffff99

    Legend:
    Red = Direct Impact
    Yellow = Indirect Impact

Cascading Effect Analysis:

## Dependency Impact

### User Model Change (Direct Impact)

- Add `otp_secret` field
- Add `otp_enabled` flag

### Cascading Changes Required

1. **Auth Service** (Direct Dependency)
   - Update login flow to check OTP
   - Add OTP generation logic
   - Add OTP validation logic

2. **Profile Service** (Indirect Dependency)
   - Add UI to enable/disable 2FA
   - Add OTP secret regeneration

3. **Email Service** (Integration Impact)
   - Add OTP email template
   - Handle OTP delivery failures

4. **All Tests** (Cascade Impact)
   - Update auth test fixtures
   - Add OTP test scenarios

Phase 5: Risk Assessment

# Risk Assessment Matrix

| Risk Category              | Likelihood | Impact | Severity     | Mitigation                                     |
| -------------------------- | ---------- | ------ | ------------ | ---------------------------------------------- |
| Database Migration Failure | Medium     | High   | **HIGH**     | Test migration on staging, backup before prod  |
| Breaking API Change        | High       | High   | **CRITICAL** | Version API, deprecate old endpoint gracefully |
| OTP Email Delivery Failure | Medium     | Medium | MEDIUM       | Implement fallback SMS delivery                |
| Performance Degradation    | Low        | Medium | LOW          | Load test before deployment                    |

## Overall Risk Level: **HIGH**

### High-Risk Areas

1. **Database Migration**: Adding NOT NULL column requires default value
2. **API Compatibility**: Existing mobile apps expect old login flow
3. **Email Dependency**: OTP delivery is critical path

### Mitigation Strategies

1. **Phased Rollout**: Enable 2FA opt-in first, mandatory later
2. **Feature Flag**: Use flag to toggle 2FA on/off
3. **Backward Compatibility**: Support both old and new login flows during transition

Phase 6: Migration Plan

# Migration Plan: Add Two-Factor Authentication

## Phase 1: Database Migrat
Полный SKILL.md на GitHub

Установить change-impact-analyzer в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Bash
Glob
Grep

Вложенные файлы

dependency-graph-patterns.mdimpact-analysis-template.md

FAQ

Что делает скилл change-impact-analyzer?

Analyzes impact of proposed changes on existing systems (brownfield projects) with delta spec validation. Trigger terms: change impact, impact analysis, brownfield, delta spec, change proposal, change management, existing system analysis, integration impact, breaking changes, dependency analysis, affected components, migration plan, risk assessment, brownfield change. Provides comprehensive change analysis for existing systems: - Affected component identification - Breaking change detection - Dependency graph updates - Integration point impact - Database migration analysis - API compatibility checks - Risk assessment and mitigation strategies - Migration plan recommendations Use when: proposing changes to existing systems, analyzing brownfield integration, or validating delta specifications.

Как установить скилл change-impact-analyzer?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл change-impact-analyzer запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить change-impact-analyzer с