Logo: Backend Architecture Spec

Backend Architecture Spec

Communautéit
LuckyOneTwoThree
backend-architecture-spec

Use when designing backend architecture. Produces backend architecture design specifications, automatically evaluating architecture patterns based on business scale, designing service division plans, executing architecture reviews, with built-in ADR and tech debt registration for decision traceability. Architecture constraints first, producing service data ownership and tech stack decisions for downstream consumption. Keywords: architecture pattern, microservices, monolithic, Serverless, service design, DDD, bounded context, architecture review, tech debt, architecture decision.

Iwwersiicht

EditeurLuckyOneTwoThree
Repositoryvibe-skill
Skill-Nummbackend-architecture-spec
Stären
34
Forks
8
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    LuckyOneTwoThree huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Backend Architecture Spec an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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 nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Backend Architecture Spec an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Backend Architecture Spec automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Backend Architecture Spec net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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

Heefeg gestallte Froen

Wat mécht de KI-Skill Backend Architecture Spec?

Use when designing backend architecture. Produces backend architecture design specifications, automatically evaluating architecture patterns based on business scale, designing service division plans, executing architecture reviews, with built-in ADR and tech debt registration for decision traceability. Architecture constraints first, producing service data ownership and tech stack decisions for downstream consumption. Keywords: architecture pattern, microservices, monolithic, Serverless, service design, DDD, bounded context, architecture review, tech debt, architecture decision.

Firwat Backend Architecture Spec op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Backend Architecture Spec besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Backend Architecture Spec an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Backend Architecture Spec benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Backend Architecture Spec benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Backend Architecture Spec domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Backend Architecture Spec gratis?

Jo. LuckyOneTwoThree huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇