Logo di Backend Architecture Spec

Backend Architecture Spec

Community
LuckyOneTwoThree
backend-architecture-spec

Usalo per progettare l’architettura backend. Produce specifiche di progettazione dell’architettura backend, valutando automaticamente i pattern architetturali in base alle dimensioni dell’attività, progettando la suddivisione dei servizi e svolgendo revisioni architetturali. Include la registrazione di ADR e debito tecnico per tracciare le decisioni. Dà priorità ai vincoli architetturali e definisce la proprietà dei dati dei servizi e le scelte dello stack tecnologico per le fasi successive. Parole chiave: pattern architetturale, microservizi, monolitico, Serverless, progettazione dei servizi, DDD, bounded context, revisione architetturale, debito tecnico, decisione architetturale.

Panoramica

Pubblicato daLuckyOneTwoThree
Repositoryvibe-skill
Nome della skillbackend-architecture-spec
Stelle
34
Fork
8
File inclusi
Solo istruzioni
LicenzaMIT
Link
  • Istruzioni in Markdown

    Un file SKILL.md che il modello carica quando serve, consumando token solo quando una richiesta è effettivamente pertinente.

  • Funziona con qualsiasi LLM

    Le skill IA sono in semplice Markdown, non in codice specifico di un fornitore, quindi funzionano con GPT, Claude, Gemini, Grok o un modello locale.

  • Tutto nelle istruzioni

    Tutto ciò che serve al modello è nelle istruzioni: nessun file aggiuntivo da sincronizzare.

  • Open source

    Pubblicata da LuckyOneTwoThree su GitHub. Leggi i sorgenti prima di installarla.

Installazione

Installa la skill IA Backend Architecture Spec in TypingMind per usarla con qualsiasi LLM, oppure copiala in un altro agente in grado di leggere SKILL.md.

1

Installa in TypingMind

TypingMind installa una skill direttamente dalla sua cartella GitHub: legge SKILL.md, raccoglie i file delle risorse e salva il risultato in locale.

  1. Apri l'app e vai su Plugin → Skill.
  2. Scegli "Installa da GitHub".
  3. Incolla l'URL della cartella della skill riportato qui sotto e conferma.
    https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec
  4. Attiva la skill in ogni chat in cui vuoi averla a disposizione.
Plugin → Skill → Aggiungi skill → Da URL GitHub, poi incolla l'URL della cartella e premi Continua.
2

Installa in un altro agente

Qualsiasi agente che legge il formato Agent Skills può usare questa skill: copia la cartella della skill nella directory delle skill di quell'agente.

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
Dopo la copia, riavvia Claude Code per caricare la nuova skill.

Usala in TypingMind

Attiva Backend Architecture Spec in qualsiasi chat di TypingMind e al resto pensa il modello. Il nome e la descrizione della skill sono nel prompt di sistema e, non appena arriva una richiesta pertinente, il modello carica da solo le istruzioni complete: non devi mai richiamarla manualmente e non consuma token finché non viene effettivamente usata.

Il modello carica automaticamente Backend Architecture Spec non appena riceve una richiesta pertinente.

Funziona con qualsiasi modello IA

Le skill IA sono semplici istruzioni in Markdown, non codice specifico di un fornitore, quindi Backend Architecture Spec non è vincolata al modello per cui è stata scritta. Installala una sola volta in TypingMind e usala con GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama o un modello locale che esegui tu, sempre con le tue chiavi API.

  • Caricata solo quando serve

    Il prompt di sistema contiene solo il nome e la descrizione. Le istruzioni vengono recuperate alla prima richiesta pertinente, quindi una skill inutilizzata non costa nulla.

  • Cambia modello durante la chat

    Poiché la skill è composta da istruzioni e non da codice, continua a funzionare anche se cambi modello: il nuovo modello legge lo stesso file SKILL.md.

Istruzioni della skill

Questo è il contenuto di SKILL.md che il modello carica. Leggilo prima dell'installazione: una skill è un insieme di istruzioni che il tuo modello seguirà.

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

Domande frequenti

Cosa fa la skill IA Backend Architecture Spec?

Usalo per progettare l’architettura backend. Produce specifiche di progettazione dell’architettura backend, valutando automaticamente i pattern architetturali in base alle dimensioni dell’attività, progettando la suddivisione dei servizi e svolgendo revisioni architetturali. Include la registrazione di ADR e debito tecnico per tracciare le decisioni. Dà priorità ai vincoli architetturali e definisce la proprietà dei dati dei servizi e le scelte dello stack tecnologico per le fasi successive. Parole chiave: pattern architetturale, microservizi, monolitico, Serverless, progettazione dei servi...

Perché usare Backend Architecture Spec su TypingMind?

Perché la installi una volta e la usi con qualsiasi modello. Backend Architecture Spec è scritta in semplice Markdown anziché in codice specifico di un fornitore, quindi la stessa skill funziona con GPT-5, Claude, Gemini, Grok o un modello locale, e puoi cambiare modello durante la chat senza che la skill smetta di funzionare. TypingMind usa le tue chiavi API, quindi paghi direttamente i fornitori anziché un abbonamento per posto utente, e le tue skill e chat restano nel tuo spazio di archiviazione.

Come installo Backend Architecture Spec in TypingMind?

Apri Plugin → Skill → Installa da GitHub in TypingMind e incolla https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec. TypingMind legge il file SKILL.md e installa la skill, che puoi abilitare per ogni singola chat.

Quali modelli IA possono usare Backend Architecture Spec?

Qualsiasi modello che colleghi a TypingMind. Le skill IA sono semplici istruzioni in Markdown anziché codice specifico di un fornitore, quindi GPT, Claude, Gemini, Grok e i modelli locali possono tutti caricare questa skill quando una richiesta corrisponde al suo scopo.

Quanti modelli IA posso usare con Backend Architecture Spec?

Quanti ne vuoi. Se un modello supporta le skill, puoi usarlo con Backend Architecture Spec: GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama e molti altri, tutti su TypingMind con le tue chiavi API.

La skill IA Backend Architecture Spec è gratuita?

Sì. È pubblicata su GitHub da LuckyOneTwoThree con licenza MIT. Paghi solo il tuo fornitore IA per i token che usi.

Cosa sono le skill IA?

Una skill IA è un pacchetto di istruzioni riutilizzabili che insegna a un modello IA come svolgere un'attività specifica. Segue il formato aperto Agent Skills: un file SKILL.md con un nome e una descrizione, più eventuali script, template o file di riferimento di cui il modello potrebbe aver bisogno. Il modello legge le istruzioni solo quando la tua richiesta corrisponde alla skill, quindi una skill installata non comporta costi finché non viene usata.

In cosa si differenziano le skill IA dai plugin o dai server MCP?

Un plugin o un server MCP fornisce a un modello nuovi strumenti da richiamare: codice che viene eseguito da qualche parte e restituisce un risultato. Una skill IA, invece, fornisce al modello conoscenze e procedure: come affrontare un'attività, quali passaggi seguire e quali caratteristiche deve avere un buon output. Le skill sono semplici istruzioni in Markdown, quindi non richiedono server, chiavi API né ambienti di esecuzione e funzionano con qualsiasi modello.

Elenco completo

Crea subito il tuo spazio di lavoro AI

Iscriviti alla nostra newsletter per ricevere aggiornamenti sulle nuove funzionalità e sulle prossime iniziative a premi 👇