Логотип Backend Architecture Spec

Backend Architecture Spec

Спільнота
LuckyOneTwoThree
backend-architecture-spec

Використовуйте під час проєктування архітектури бекенду. Створює специфікації архітектури бекенду, автоматично оцінює архітектурні патерни з огляду на масштаб бізнесу, розробляє плани розподілу сервісів і проводить архітектурні перевірки. Вбудовані реєстрація ADR і технічного боргу допомагають відстежувати ухвалені рішення. Спершу враховуються архітектурні обмеження; рішення щодо відповідальності за дані сервісів і технологічного стеку готуються для подальшого використання. Ключові слова: архітектурний патерн, мікросервіси, моноліт, Serverless, проєктування сервісів, DDD, обмежений контекст, архітектурна перевірка, технічний борг, архітектурне рішення.

Огляд

ВидавецьLuckyOneTwoThree
Репозиторійvibe-skill
Назва навичкиbackend-architecture-spec
Зірки
34
Форки
8
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Видавець на GitHub: LuckyOneTwoThree. Перед установленням перегляньте вихідні файли навички.

Встановлення

Установіть навичку ШІ Backend Architecture Spec у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки на GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до розділу «Плагіни» → «Навички».
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Додати навичку → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Backend Architecture Spec в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Backend Architecture Spec, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для певного постачальника, тому навичка Backend Architecture Spec не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож поки навичка не потрібна, токени на її інструкції не витрачаються.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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

Поширені запитання

Що робить навичка ШІ Backend Architecture Spec?

Використовуйте під час проєктування архітектури бекенду. Створює специфікації архітектури бекенду, автоматично оцінює архітектурні патерни з огляду на масштаб бізнесу, розробляє плани розподілу сервісів і проводить архітектурні перевірки. Вбудовані реєстрація ADR і технічного боргу допомагають відстежувати ухвалені рішення. Спершу враховуються архітектурні обмеження; рішення щодо відповідальності за дані сервісів і технологічного стеку готуються для подальшого використання. Ключові слова: архітектурний патерн, мікросервіси, моноліт, Serverless, проєктування сервісів, DDD, обмежений контекст...

Навіщо використовувати Backend Architecture Spec у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Backend Architecture Spec — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Backend Architecture Spec у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/LuckyOneTwoThree/vibe-skill/tree/main/.codex/skills/backend-architecture-spec. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Backend Architecture Spec?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Backend Architecture Spec?

Зі скількома забажаєте. У TypingMind ви можете використовувати Backend Architecture Spec із будь-якою моделлю, яка підтримує навички, зокрема з GPT, Claude, Gemini, Grok, DeepSeek, Mistral чи Llama. Для цього ви використовуєте власні ключі API.

Чи безкоштовна навичка ШІ Backend Architecture Spec?

Так. На GitHub цю навичку публікує LuckyOneTwoThree за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це набір інструкцій для повторного використання, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти, які вона може викликати, — код, який десь виконується й повертає результат. Натомість навичка ШІ дає моделі знання й пояснює порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі
Логотип nexu-io

Replit Deck

nexu-io
ОрганізаціяПопулярне

For product and technical management work: turn PRDs, roadmaps, RFCs, architecture reviews, and retros into decision documents. Built around the core query "pm-feature-business-case-deck", with…

11.5K
98.9K
Файлів: 9
Відкрити
Логотип nexu-io

Dcf Valuation

nexu-io
ОрганізаціяПопулярне

Оцінювання публічних компаній методом дисконтованих грошових потоків і аналіз внутрішньої вартості. Використовуйте, якщо в запиті йдеться про DCF, справедливу вартість, внутрішню вартість, цільову ціну, аналіз недооціненості чи переоціненості або…

11.2K
96.7K
Файлів: 1
Відкрити
Логотип nexu-io

Html Ppt Zhangzara Block Frame

nexu-io
ОрганізаціяПопулярне

Перетворення хаотичної презентації стартапу на систему рівня ради директорів — діагностика, структура слайдів і перероблені сторінки з доказами. Створено як презентацію про дизайн і майстерність для ухвалення рішень засновниками та керівником, який презентує.

11.2K
96.7K
Файлів: 2
Відкрити
Логотип nexu-io

Html Ppt Zhangzara Cartesian

nexu-io
ОрганізаціяПопулярне

Дипломна робота з економіки про вплив підвищення місцевої мінімальної зарплати на зайнятість — стратегія ідентифікації, докази та обмеження. Створено як презентацію для захисту навчальної роботи перед дипломною комісією, щоб допомогти…

11.2K
96.7K
Файлів: 2
Відкрити

Створіть власний робочий простір зі ШІ вже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇