Claude-skill-registry enterprise-patterns

Apply enterprise architecture patterns for integration and governance

install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/enterprise-patterns" ~/.claude/skills/majiayu000-claude-skill-registry-enterprise-patterns && rm -rf "$T"
manifest: skills/data/enterprise-patterns/SKILL.md
source content

Enterprise Patterns Skill

Purpose

Apply enterprise architecture patterns including TOGAF, integration patterns, governance frameworks, and portfolio management for large-scale systems.


Parameters

ParameterTypeRequiredValidationDefault
context
stringmin: 50 chars-
pattern_type
enumintegration|governance|portfolio|togaf
integration
scope
enumenterprise|domain|capability
enterprise
current_state
objectvalid JSON
{}
output_format
enumpattern|roadmap|governance
pattern

Execution Flow

┌──────────────────────────────────────────────────────────┐
│ 1. VALIDATE: Check context and pattern type              │
│ 2. ASSESS: Current state and maturity                    │
│ 3. SELECT: Appropriate enterprise pattern                │
│ 4. APPLY: Pattern to context                             │
│ 5. MAP: To TOGAF phases if applicable                    │
│ 6. ROADMAP: Create transition plan                       │
│ 7. DOCUMENT: Return pattern application                  │
└──────────────────────────────────────────────────────────┘

Retry Logic

ErrorRetryBackoffMax Attempts
VALIDATION_ERROR
No-1
PATTERN_MISMATCH
Yes1s2
SCOPE_UNCLEAR
Yes-2

Logging & Observability

log_points:
  - event: pattern_requested
    level: info
    data: [pattern_type, scope]
  - event: pattern_applied
    level: info
    data: [pattern_name, maturity_level]
  - event: roadmap_generated
    level: info
    data: [phases_count, timeline]

metrics:
  - name: patterns_applied
    type: counter
    labels: [pattern_type]
  - name: application_time_ms
    type: histogram
  - name: maturity_score
    type: gauge

Error Handling

Error CodeDescriptionRecovery
E601
Missing enterprise contextRequest org structure
E602
Pattern not applicableSuggest alternatives
E603
Scope too broadNarrow to domain
E604
TOGAF phase unclearClarify ADM phase

Unit Test Template

test_cases:
  - name: "Integration pattern selection"
    input:
      context: "E-commerce integrating with ERP for inventory"
      pattern_type: "integration"
      scope: "enterprise"
    expected:
      has_pattern: true
      pattern_includes: ["Event-Driven", "CDC"]
      has_rationale: true

  - name: "Governance model"
    input:
      context: "5 business units, 200+ applications"
      pattern_type: "governance"
    expected:
      has_governance_model: true
      has_decision_rights: true
      has_review_process: true

  - name: "Portfolio rationalization"
    input:
      context: "Legacy modernization initiative"
      pattern_type: "portfolio"
    expected:
      has_time_analysis: true
      categories_include: ["Tolerate", "Invest", "Migrate", "Eliminate"]

Troubleshooting

Common Issues

SymptomRoot CauseResolution
Pattern mismatchWrong scopeAlign scope with pattern
Governance ignoredToo rigidBalance agility/control
Integration sprawlNo strategyImplement API gateway

Debug Checklist

□ Is enterprise context documented?
□ Is pattern type appropriate?
□ Is scope clearly defined?
□ Are stakeholders identified?
□ Is TOGAF phase mapped?

Pattern Catalog

Integration Patterns

PatternUse Case
Event-DrivenLoose coupling, async
API GatewayCentralized entry
SagaDistributed transactions
CDCReal-time sync

Governance Models

ModelUse Case
CentralizedStrict standards
FederatedDomain autonomy
HybridCore + flexibility

Portfolio Categories (TIME)

CategoryAction
TolerateMaintain minimally
InvestEnhance actively
MigrateMove to new platform
EliminateSunset/decommission

Integration

ComponentTriggerData Flow
Agent 03Pattern requestReceives context, returns pattern
Agent 01Solution alignmentEnterprise constraints

Quality Standards

  • Standards-based: TOGAF, EIP references
  • Practical: Implementable patterns
  • Scalable: Supports growth

Version History

VersionDateChanges
2.0.02025-01Production-grade: pattern catalog, TOGAF mapping
1.0.02024-12Initial release