gap-analysis
Compare current state to target state architecture. Scoped to technical options - requires business context for complete analysis.
What this skill does
# Gap Analysis
## When to Use This Skill
Use this skill when you need to:
- Document current (as-is) architecture
- Define target (to-be) architecture
- Identify gaps between current and target states
- Explore technical migration options
**Keywords:** gap analysis, current state, target state, as-is, to-be, roadmap, migration, baseline, transition
## Scope Warning
> **IMPORTANT:** This analysis covers **technical migration options** based on code structure.
>
> Complete migration planning requires business context including:
>
> - Budgets and timelines (external to code)
> - Organizational structure (external to code)
> - Technical debt priorities (partially in code)
> - Resource availability (external to code)
>
> Use this as **input to broader planning discussions**, not as a complete migration strategy.
## Gap Analysis Workflow
### 1. Document Current State (As-Is)
What can be extracted from code (Zachman rows 4-6):
| Aspect | Source | Analysis |
| --- | --- | --- |
| Technology stack | package.json, pom.xml, etc. | Frameworks, libraries, versions |
| Architecture patterns | Code structure | Monolith, microservices, layers |
| Data storage | Config files | Databases, caches, queues |
| Integration points | API definitions | REST, GraphQL, messaging |
| Infrastructure | IaC files | Cloud resources, networking |
What requires human input (Zachman rows 1-3):
| Aspect | Source Needed |
| --- | --- |
| Business capabilities | Business documentation |
| Process flows | Stakeholder interviews |
| Strategic alignment | Strategy documents |
### 2. Define Target State (To-Be)
Target state should include:
- **Vision statement**: What does success look like?
- **Technology targets**: Specific technologies, versions
- **Architecture targets**: Patterns, structures
- **Quality attributes**: Performance, scalability, security targets
- **Constraints**: Budget, timeline, compliance requirements
### 3. Identify Gaps
For each architecture dimension:
| Dimension | Current | Target | Gap |
| --- | --- | --- | --- |
| Compute | VM-based | Containerized | Container adoption |
| Data | Monolithic DB | Service-per-DB | Database decomposition |
| Integration | Point-to-point | Event-driven | Event mesh implementation |
| ... | ... | ... | ... |
### 4. Categorize Gaps
Classify each gap by:
**Type:**
- Technical debt
- Missing capability
- Scalability limitation
- Security vulnerability
- Compliance gap
**Complexity:**
- Low: Configuration change
- Medium: Code modification
- High: Architectural change
- Very High: Platform migration
**Risk:**
- Low: Isolated change
- Medium: Cross-component impact
- High: System-wide impact
### 5. Explore Options
For each gap, document:
```markdown
## Gap: [Gap Name]
### Current State
[Description of current situation]
### Target State
[Description of desired situation]
### Technical Options
#### Option A: [Name]
- **Approach**: [Description]
- **Pros**: [List]
- **Cons**: [List]
- **Technical complexity**: [Low/Medium/High]
- **Dependencies**: [List]
#### Option B: [Name]
- **Approach**: [Description]
- **Pros**: [List]
- **Cons**: [List]
- **Technical complexity**: [Low/Medium/High]
- **Dependencies**: [List]
### Recommendation
[Technical recommendation with rationale]
### Business Context Required
[What business input is needed to finalize decision]
```
## Gap Analysis Output Structure
```markdown
# Gap Analysis: [System Name]
**Date**: YYYY-MM-DD
**Scope**: [What's included/excluded]
## Scope Limitations
This analysis covers technical migration options based on code structure analysis.
Complete migration planning requires additional business context:
- Budget constraints and approval processes
- Team capacity and skill availability
- Business timeline requirements
- Risk tolerance and compliance needs
These options should inform broader planning discussions, not replace them.
## Current State Summary
[Overview of as-is architecture]
## Target State Summary
[Overview of to-be architecture]
## Gap Inventory
| ID | Gap | Type | Complexity | Priority |
| --- | --- | --- | --- | --- |
| G1 | ... | ... | ... | TBD |
| G2 | ... | ... | ... | TBD |
## Detailed Gap Analysis
### G1: [Gap Name]
[Detailed analysis per template above]
## Technical Dependencies
[Dependency graph showing which gaps must be addressed first]
## Recommended Sequencing
[Technical sequencing based on dependencies]
## Business Decisions Required
[List of decisions that require business input]
```
## Integration with Other Skills
- **architecture-documentation**: Generate current state documentation
- **zachman-analysis**: Ensure gaps cover all relevant perspectives
- **togaf-guidance**: Align with TOGAF Phase E (Opportunities & Solutions)
- **adr-management**: Create ADRs for gap resolution decisions
## Repository Location
Gap analysis documents should be stored at:
```text
/architecture/
gap-analysis.md
/transitions/
transition-1.md
transition-2.md
```
## Version History
- **v1.0.0** (2025-12-05): Initial release
- Current/target state analysis workflow
- Gap categorization (type, complexity, risk)
- Technical options exploration
- Explicit scope limitations (requires business context)
---
## Last Updated
**Date:** 2025-12-05
**Model:** claude-opus-4-5-20251101
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.