impact-analysis
Analyzes how a proposed change affects existing systems, services, teams, APIs, databases, infrastructure, and workflows. Maps blast radius, identifies dependencies, flags breaking changes, and produces a detailed impact report. Saves output to project-decisions/ folder. Use when the user says "what would break if", "impact analysis", "blast radius", "what does this affect", "who is impacted", "dependency check", "what breaks if we change", "ripple effects", or "change impact".
What this skill does
# Impact Analysis Skill When analyzing the impact of a proposed change, follow this structured process. The goal is to map the full blast radius before anyone writes a line of code — catching surprises early is far cheaper than catching them in production. **IMPORTANT**: Always save the output as a markdown file in the `project-decisions/` directory at the project root. Create the directory if it doesn't exist. ## 0. Output Setup ```bash # Create project-decisions directory if it doesn't exist mkdir -p project-decisions # File will be saved as: # project-decisions/YYYY-MM-DD-impact-[kebab-case-topic].md ``` ## 1. Understand the Proposed Change ### Parse the Request Extract from the question or discussion: - **What's changing?** — specific code, system, API, database, service, or process - **Why is it changing?** — new feature, bug fix, refactor, migration, deprecation - **What's the desired outcome?** — what should be different after the change - **What's NOT changing?** — explicitly call out what stays the same ### Classify the Change Type | Change Type | Typical Blast Radius | Risk Level | |-------------|---------------------|------------| | **Config change** | Narrow — one service | 🟢 Low | | **Bug fix** | Narrow — one function/module | 🟢 Low | | **New feature (additive)** | Narrow to medium — new code, no existing changes | 🟡 Medium | | **API change (backward compatible)** | Medium — consumers may need updates | 🟡 Medium | | **API change (breaking)** | Wide — all consumers must update | 🔴 High | | **Database schema change** | Wide — queries, models, migrations, backfill | 🔴 High | | **Service migration/replacement** | Wide — integrations, config, monitoring, runbooks | 🔴 High | | **Shared library update** | Wide — all consumers of the library | 🟠 High | | **Infrastructure change** | Wide — deployment, networking, DNS, secrets | 🔴 High | | **Authentication/authorization change** | Very wide — every authenticated endpoint | 🔴 Critical | | **Data model/domain change** | Very wide — every layer of the application | 🔴 Critical | ## 2. Map the Blast Radius ### 2a. Code-Level Impact ```bash # Find all files that reference the changing code grep -rn "[changing-module-or-function]" --include="*.ts" --include="*.js" --include="*.py" --include="*.go" --include="*.java" --include="*.rb" --include="*.php" src/ app/ lib/ 2>/dev/null | grep -v "node_modules\|\.git\|test\|spec\|mock" # Find all imports of the changing module grep -rn "import.*from.*[module]\|require.*[module]\|from [module] import" --include="*.ts" --include="*.js" --include="*.py" src/ app/ 2>/dev/null | grep -v "node_modules\|\.git" # Count affected files grep -rln "[changing-module-or-function]" --include="*.ts" --include="*.js" --include="*.py" src/ app/ 2>/dev/null | grep -v "node_modules\|\.git" | wc -l # Find downstream dependencies (what uses the thing that uses the changing code) # Build a two-level dependency chain for file in $(grep -rln "[module]" --include="*.ts" --include="*.js" src/ 2>/dev/null | grep -v "node_modules"); do basename "$file" grep -rln "$(basename $file .ts)\|$(basename $file .js)" --include="*.ts" --include="*.js" src/ 2>/dev/null | grep -v "node_modules" | sed 's/^/ → /' done # Check for re-exports (the change may propagate through barrel files) grep -rn "export.*from.*[module]\|module\.exports.*require.*[module]" --include="*.ts" --include="*.js" src/ 2>/dev/null | grep -v "node_modules" # Find interface/type usages (TypeScript) grep -rn "interface\|type " [changing-file] 2>/dev/null | while read line; do typename=$(echo "$line" | grep -oP '(?:interface|type)\s+\K\w+') echo "Type: $typename" grep -rn "$typename" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | grep -v "node_modules" | wc -l echo " references" done ``` ### 2b. API Impact ```bash # Find API routes that use the changing code grep -rn "[module-or-function]" --include="*.ts" --include="*.js" --include="*.py" src/api/ src/routes/ app/api/ 2>/dev/null # List all endpoints in affected route files for file in $(grep -rln "[module]" src/api/ src/routes/ 2>/dev/null); do echo "=== $file ===" grep -n "router\.\(get\|post\|put\|delete\|patch\)\|app\.\(get\|post\|put\|delete\|patch\)\|@app\.route\|@GetMapping\|@PostMapping" "$file" 2>/dev/null done # Check for API versioning find . -path "*/api/v*" -o -path "*/v1/*" -o -path "*/v2/*" 2>/dev/null | head -20 # Check for OpenAPI/Swagger specs find . -name "openapi*" -o -name "swagger*" -o -name "*.api.yaml" -o -name "*.api.json" 2>/dev/null | head -10 # Check for API consumers (external clients, mobile apps, other services) grep -rn "fetch\|axios\|http\.\|HttpClient\|requests\." --include="*.ts" --include="*.js" --include="*.py" src/ 2>/dev/null | grep -i "[affected-endpoint]" ``` ### 2c. Database Impact ```bash # Find models/schemas related to the change grep -rn "model\|schema\|entity\|@Entity\|@Table\|class.*Model\|class.*Schema" --include="*.ts" --include="*.js" --include="*.py" --include="*.java" src/db/ src/models/ src/entities/ app/models/ 2>/dev/null | grep -i "[keyword]" # Find all queries that reference affected tables/columns grep -rn "SELECT\|INSERT\|UPDATE\|DELETE\|FROM\|JOIN\|WHERE" --include="*.ts" --include="*.js" --include="*.py" --include="*.sql" src/ 2>/dev/null | grep -i "[table-or-column]" # Find ORM queries referencing affected models grep -rn "findOne\|findMany\|findAll\|create\|update\|delete\|where\|include\|select" --include="*.ts" --include="*.js" --include="*.py" src/ 2>/dev/null | grep -i "[model]" # Check for existing migrations ls -la src/db/migrations/ db/migrations/ migrations/ prisma/migrations/ 2>/dev/null | tail -10 # Check migration history count find . -path "*/migrations/*" -name "*.ts" -o -name "*.js" -o -name "*.py" -o -name "*.sql" 2>/dev/null | wc -l # Check for views, functions, triggers that reference the table grep -rn "CREATE VIEW\|CREATE FUNCTION\|CREATE TRIGGER" --include="*.sql" . 2>/dev/null | grep -i "[table]" # Check for indexes on affected columns grep -rn "INDEX\|@@index\|add_index\|createIndex" --include="*.ts" --include="*.js" --include="*.py" --include="*.sql" --include="*.prisma" src/ prisma/ 2>/dev/null | grep -i "[column]" ``` ### 2d. Service & Integration Impact ```bash # Find external service calls related to the change grep -rn "fetch\|axios\|http\.\|requests\.\|HttpClient\|RestTemplate" --include="*.ts" --include="*.js" --include="*.py" --include="*.java" src/ 2>/dev/null | grep -i "[service-keyword]" # Find message queue producers/consumers grep -rn "publish\|subscribe\|emit\|on(\|producer\|consumer\|queue\|topic\|channel" --include="*.ts" --include="*.js" --include="*.py" src/ 2>/dev/null | grep -i "[keyword]" # Find webhook endpoints grep -rn "webhook\|callback\|notify" --include="*.ts" --include="*.js" --include="*.py" src/ 2>/dev/null # Find gRPC/protobuf definitions find . -name "*.proto" 2>/dev/null | xargs grep -l "[keyword]" 2>/dev/null # Find GraphQL schema references grep -rn "type \|input \|query \|mutation \|subscription " --include="*.graphql" --include="*.gql" . 2>/dev/null | grep -i "[keyword]" # Check for shared libraries/packages (monorepo) cat package.json 2>/dev/null | grep -E "workspace|lerna|nx|turbo" find . -name "package.json" -maxdepth 3 | xargs grep -l "[module]" 2>/dev/null ``` ### 2e. Infrastructure Impact ```bash # Check Docker configuration grep -rn "[keyword]" Dockerfile docker-compose.yml docker-compose.yaml 2>/dev/null # Check CI/CD pipelines grep -rn "[keyword]" .github/workflows/*.yml .gitlab-ci.yml Jenkinsfile bitbucket-pipelines.yml 2>/dev/null # Check environment configuration grep -rn "[keyword]" .env.example .env.sample .env.template 2>/dev/null grep -rn "[keyword]" --include="*.yaml" --include="*.yml" --include="*.toml" --include="*.ini" config/ infra/ k8s/ terraform/ 2>/dev/null # Check Kubernetes manifests grep -rn "[keyword]" --include="*.yaml" --include="*.yml" k8s/ kubernetes/ hel
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.