Logo van Backend Architecture Spec

Backend Architecture Spec

Community
LuckyOneTwoThree
backend-architecture-spec

Gebruik dit bij het ontwerpen van backendarchitectuur. Genereert specificaties voor backendarchitectuur en beoordeelt automatisch architectuurpatronen op basis van de bedrijfsschaal. Ontwerpt plannen voor de verdeling van services, voert architectuurreviews uit en registreert ADR's en technische schuld voor traceerbare besluitvorming. Architectuurbeperkingen staan voorop. De resultaten bevatten beslissingen over data-eigenaarschap per service en de tech stack, bedoeld voor vervolgprocessen. Trefwoorden: architectuurpatroon, microservices, monolithisch, Serverless, serviceontwerp, DDD, bounded context, architectuurreview, technische schuld, architectuurbesluit.

Overzicht

UitgeverLuckyOneTwoThree
Repositoryvibe-skill
Skillnaambackend-architecture-spec
Sterren
34
Forks
8
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door LuckyOneTwoThree op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Backend Architecture Spec in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/LuckyOneTwoThree/vibe-skill.git /tmp/vibe-skill
mkdir -p .claude/skills
cp -r /tmp/vibe-skill/.codex/skills/backend-architecture-spec .claude/skills/backend-architecture-spec
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Backend Architecture Spec in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Backend Architecture Spec automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Backend Architecture Spec niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

Backend Architecture Design Specification

Core Principles

  1. Appropriate Architecture: Architecture serves business, not technical advancement
  2. Evolutionary Architecture: Start simple, evolve as needed, not all at once
  3. Traceable Decisions: Every architecture decision has clear rationale and context, ADR auto-generated
  4. Visible Tech Debt: Technical debt explicitly registered and managed, not hidden
  5. Architecture Constraints First: Architecture decisions constrain subsequent data models and API design; service data ownership and tech stack decisions must be explicit

Interaction Mode

AI->Human AI suggests, human approves

Input

Input ItemTypeRequiredSourceDescription
PRDmarkdownYesoutput/pm-design/design-prd/prd.mdBusiness domain and processes
PRD Structured DataJSONYesoutput/pm-design/design-prd/prd.jsonMachine-consumable PRD version for architecture review alignment check
Business ScaleJSONYesUser providedUser count, QPS, data volume, team size
Technical ConstraintsJSONOUser providedTech stack, ops capability, budget

Execution Steps

Step 1: Architecture Pattern Evaluation and Selection [Core]

Evaluate and recommend architecture patterns (Monolithic/Microservices/Serverless) based on multiple dimensions, generate system topology diagram.

Architecture Evaluation Quantitative Matrix:

Score each candidate architecture pattern across the following dimensions (1-5 points), quantitatively compare and recommend the optimal solution.

Evaluation Dimension1 Point2 Points3 Points4 Points5 Points
ScalabilityNo horizontal scaling, single point bottleneckLimited scaling, requires downtime for capacity expansionSupports vertical scaling, limited horizontal scalingGood horizontal scaling capabilityUnlimited horizontal scaling, automatic elastic scaling
MaintainabilityTightly coupled, changes have wide impactPartially decoupled, core modules coupledModular design, clear boundariesWell decoupled, independently modifiableFully decoupled, services independently deployable and evolvable
Performance ExpectationObvious single-point performance bottleneckMeets low-load requirements basicallyMeets medium load, pressure during peaksMeets high load, locally optimizableMeets extremely high load, full-chain optimizable
SecurityNo isolation, large attack surfaceBasic isolation, blurry boundariesService-level isolation, clear boundariesFine-grained isolation + independent security policiesZero-trust architecture + defense in depth
Deployment ComplexityExtremely simple deployment, single processSimple deployment, few dependenciesModerately complex, needs orchestration toolsComplex, needs complete DevOps systemExtremely complex, needs professional ops team (lower score is better for this dimension)
Team FitnessTeam cannot manageNeeds extensive training to get startedTeam has partial experienceTeam has rich experienceTeam is proficient, has best practices

Composite Score Formula:

Composite Score = Scalability x W1 + Maintainability x W2 + Performance Expectation x W3 + Security x W4 + (6 - Deployment Complexity) x W5 + Team Fitness x W6

Default Weights (adjustable by business type):

Business TypeW1 (Scalability)W2 (Maintainability)W3 (Performance)W4 (Security)W5 (Deployment)W6 (Team)
General/SaaS0.250.200.200.100.100.15
E-commerce0.300.150.250.100.100.10
Finance0.150.150.200.250.100.15

Score Interpretation:

Composite ScoreRecommendation Strategy
>=4.0Recommended, low risk
3.0-3.9Acceptable, monitor low-scoring dimensions and develop compensating measures
2.0-2.9Not recommended, adjust solution or supplement capabilities before re-evaluation
<2.0Rejected, solution not viable

Stage Gate: Architecture pattern and evolution path human-confirmed

Step 2: Architecture Decision Records [Core]

Generate ADR for each architecture decision:

  • Decision background and drivers
  • Alternative options and evaluation
  • Decision result and rationale
  • Impact scope and consequences

ADR Template:

json
{
  "id": "ADR-001",
  "title": "Decision title",
  "status": "proposed | accepted | deprecated | superseded",
  "date": "2025-01-01",
  "context": "Decision background: describe drivers, constraints, and problem statement",
  "alternatives": [
    {
      "name": "Option name",
      "description": "Option description",
      "pros": ["Advantage 1", "Advantage 2"],
      "cons": ["Disadvantage 1", "Disadvantage 2"],
      "evaluation_scores": {
        "scalability": 0,
        "maintainability": 0,
        "performance": 0,
        "security": 0,
        "deployment_complexity": 0,
        "team_fitness": 0
      }
    }
  ],
  "decision": "Final decision result",
  "rationale": "Decision rationale: why this option was chosen over others",
  "consequences": {
    "positive": ["Positive impact 1"],
    "negative": ["Negative impact 1"],
    "risks": ["Risk 1"]
  },
  "affected_services": ["List of affected services"],
  "related_adrs": ["ADR-000"],
  "supersedes": null,
  "superseded_by": null
}

ADR Numbering Rule: Increment in architecture decision order (ADR-001, ADR-002, ...), core architecture decisions are numbered first.

ADR Status Transitions: proposed -> accepted -> (deprecated / superseded), status changes require human confirmation.

Stage Gate: Core architecture decisions 100% have ADR

Step 3: Service Design [Core]

Identify bounded contexts based on Domain-Driven Design, design service division and communication scheme.

Bounded Context Identification Method:

Identify bounded contexts following the three rules below, in descending priority:

Identification RuleDivision BasisIdentification SignalExample
Business DomainEntities within the same business domain aggregate togetherEntities in the same business process, same business rules and invariantsOrder domain (Order/OrderItem/Payment), User domain (User/Profile/Role)
Data OwnershipSame data can only be owned and modified by one contextSame entity has different attribute subsets and lifecycles in different contextsProduct catalog context owns product base info, inventory context owns inventory quantities
Change FrequencyEntities with same change frequency and reason grouped into same contextModules always modified together when requirements changeMarketing rules change frequently, separated from stable product base info

Bounded Context Mapping Template:

json
{
  "contexts": [
    {
      "name": "Context name",
      "description": "Context responsibility description",
      "core_entities": ["List of owned core entities"],
      "ubiquitous_language": ["List of ubiquitous language keywords"],
      "incoming_relations": [
        {
          "from_context": "Upstream context",
          "relationship_type": "Upstream-Downstream|Customer-Supplier|Conformist|Open Host Service|Anti-Corruption Layer",
          "data_flow": "Data flow direction description"
        }
      ]
    }
  ],
  "context_map_summary": "Context mapping overview description"
}

Inter-Context Communication Pattern Selection:

Communication PatternApplicable ScenarioConsistencyComplexityExample
Synchronous Call (HTTP/gRPC)Needs real-time response, low call frequencyStrong consistencyLowUser service queries order service for order list
Asynchronous Message (MQ)No real-time response needed, needs decouplingEventual consistencyMediumOrder creation notifies inventory service for deduction
Event-Driven (Event Sourcing)Needs complete audit trail, multiple downstream consumersEventual consistencyHighPayment completion triggers order status change + notification + points
Shared DatabaseSmall team size, strong data dependency between servicesStrong consistencyLow (short-term)Shared database between modules within monolithic architecture
CQRSLarge read-write model difference, reads far exceed writesEventual consistencyHighProduct list query and product detail use different models

Stage Gate: Each bounded context has clear entity ownership and communication pattern

New Outputs:

  • Service Data Ownership (service_data_ownership.json): Explicitly defines data entities owned by each service/bounded context, for data-architecture-spec to partition data models by service boundaries
  • Tech Stack Decision (tech_stack_decision.json): Unified tech stack decision (language/framework/ORM/database/cache), for all impl Skills to consume uniformly, avoiding each defaulting to different tech stacks

Stage Gate: No circular dependencies between services, data ownership explicit, tech stack decision complete

Step 4: Backend Review [Core]

Review performance, security, maintainability, and scalability, output issue list and fix recommendations.

Note: This stage does not review API and data model alignment (they are not yet designed); focus on reviewing the reasonableness of architecture pattern selection and service boundary division.

Stage Gate: P0 issues=0, architecture decision records complete

Step 5: Tech Debt Registration [Core]

Identify and register technical debt:

  • Extract tech debt from review issues
  • Assess impact scope and fix priority
  • Generate tech debt register
  • Recommend fix pace

Stage Gate: P0 tech debt=0, tech debt register generated

Output

Metadata Output: output/backend-architecture/backend-architecture-spec/

Output Files:

  • architecture_decision.json -- Architecture plan + topology diagram
  • adr.json -- Architecture Decision Records
  • service_design.json -- Service division + context mapping
  • service_data_ownership.json -- Data entities owned by each service/bounded context, for data-architecture-spec consumption
  • tech_stack_decision.json -- Unified tech stack decision (language/framework/ORM/database/cache), for all impl Skills consumption
  • review_report.json -- Review issue list + fix recommendations
  • tech_debt_register.json -- Tech debt register

service_data_ownership.json Schema:

json
{
  "type": "object",
  "required": ["services"],
  "properties": {
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "bounded_context", "owned_entities"],
        "properties": {
          "name": { "type": "string" },
          "bounded_context": { "type": "string" },
          "owned_entities": { "type": "array", "items": { "type": "string" } },
          "database_strategy": { "type": "string", "enum": ["shared", "separate"] }
        }
      }
    }
  }
}

tech_stack_decision.json Schema:

json
{
  "type": "object",
  "required": ["language", "framework", "orm", "database", "cache"],
  "properties": {
    "language": { "type": "object", "required": ["name", "version"], "properties": { "name": { "type": "string" }, "version": { "type": "string" } } },
    "framework": { "type": "object", "required": ["name", "version"], "properties": { "name": { "type": "string" }, "version": { "type": "string" } } },
    "orm": { "type": "object", "required": ["name", "version"], "properties": { "name": { "type": "string" }, "version": { "type": "string" } } },
    "database": { "type": "object", "required": ["name", "version"], "properties": { "name": { "type": "string" }, "version": { "type": "string" } } },
    "cache": { "type": "object", "required": ["name", "version"], "properties": { "name": { "type": "string" }, "version": { "type": "string" } } },
    "message_queue": { "type": "object", "properties": { "name": { "type": "string" }, "version": { "type": "string" } } }
  }
}

Decision Rules

ConditionDecision
Team size <5Monolithic architecture preferred
Team size 5-20Microservices architecture
QPS <1000Monolithic or Serverless
Core business entities cross sub-domainsSplit services by bounded context
Review P0 issues >0Block release, must fix
Tech debt affects core functionalityP0 priority, fix this iteration

Quality Checks

  • Architecture pattern matches business scale
  • Architecture evaluation quantitative matrix completed, composite score >=3.0
  • Core architecture decisions 100% have ADR
  • ADR includes alternative option evaluation scores
  • Bounded contexts identified by business domain/data ownership/change frequency three rules
  • Each bounded context has clear entity ownership and communication pattern
  • No circular dependencies between services
  • P0 issues=0
  • Tech debt register generated
  • Each service has clear data ownership

Degradation Strategy

Missing Upstream InputDegradation PlanOutput ImpactData Acquisition Note
PRD missingCannot design architectureOutput is emptyRequire user to provide PRD, or extract minimal PRD from user's verbal business requirements
Business scale not specifiedDefault medium scale (10K users, QPS 100, 10GB data, team of 5)Architecture pattern may not match actual scalePrompt user to provide business scale, or annotate "scale pending confirmation" in architecture decisions
API design missingArchitecture design does not depend on API design, derive service interaction requirements from PRDService communication scheme may need subsequent adjustmentNormal case, API not yet designed; after architecture design, api-design-spec consumes architecture outputs
Data architecture missingDerive core data entities from PRD, annotate "data ownership pending data-architecture-spec confirmation"Entity ownership in service_data_ownership.json based on derivationNormal case, data architecture not yet designed; after architecture design, data-architecture-spec consumes service data ownership
Non-functional requirements missingDerive default non-functional metrics from business scale (availability 99.9%, response time <500ms, RTO <1h)Performance and reliability design may not meet actual requirementsPrompt user to provide non-functional requirements, or record assumptions and pending items in ADR
Technical constraints missingDo not limit tech stack selection, recommend based on team fitness score optimal solutionRecommended tech stack may not meet organizational constraintsPrompt user to provide technical constraints (tech stack preferences, ops capability, budget), or annotate "technical constraints pending confirmation" in architecture decisions

Upstream Change Response

Upstream ChangeImpact ScopeResponse Strategy
PRD business domain changeService divisionMark affected service boundaries, assess whether re-division is needed
PRD business scale changeArchitecture patternRe-evaluate whether architecture pattern matches
Change TypeImpact ScopeNotification Method
Architecture plan changedata-architecture-spec, api-design-spec, all impl SkillsMark affected downstream Skills, update architecture_decision.json
Service design changedata-architecture-spec, api-design-spec, backend-architecture-implMark affected service boundaries, update service_design.json
Tech stack decision changeall impl SkillsMark affected code generation, update tech_stack_decision.json
Service data ownership changedata-architecture-specMark affected data entity ownership, update service_data_ownership.json

Veelgestelde vragen

Wat doet de AI-skill Backend Architecture Spec?

Gebruik dit bij het ontwerpen van backendarchitectuur. Genereert specificaties voor backendarchitectuur en beoordeelt automatisch architectuurpatronen op basis van de bedrijfsschaal. Ontwerpt plannen voor de verdeling van services, voert architectuurreviews uit en registreert ADR's en technische schuld voor traceerbare besluitvorming. Architectuurbeperkingen staan voorop. De resultaten bevatten beslissingen over data-eigenaarschap per service en de tech stack, bedoeld voor vervolgprocessen. Trefwoorden: architectuurpatroon, microservices, monolithisch, Serverless, serviceontwerp, DDD, bound...

Waarom Backend Architecture Spec gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Backend Architecture Spec bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Backend Architecture Spec in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Backend Architecture Spec gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Backend Architecture Spec gebruiken?

Zoveel als je wilt. Je kunt Backend Architecture Spec gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Backend Architecture Spec gratis?

Ja. Deze skill is door LuckyOneTwoThree op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇