Logo: Backend Architecture Impl

Backend Architecture Impl

Communautéit
LuckyOneTwoThree
backend-architecture-impl

Use when generating backend project architecture code. Implements backend architecture code from backend-architecture-spec architecture plans and service designs, generating runnable project architecture code to the project directory. This Skill owns the application entry (app.ts), integrating api-design-impl and data-architecture-impl code outputs. Built-in architecture alignment check and code self-review. Keywords: generate project scaffold, generate app.ts, generate Docker config, generate CI config, project architecture code generation.

Iwwersiicht

EditeurLuckyOneTwoThree
Repositoryvibe-skill
Skill-Nummbackend-architecture-impl
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 Impl 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-impl
  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-impl .claude/skills/backend-architecture-impl
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Backend Architecture Impl 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 Impl 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 Impl 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 Code Implementation

Code Write Boundary

Follow Engineering Boundary Protocol or the equivalent relative path from this skill.

  1. Scan first: identify framework, package manager, module layout, ORM, migration tool, validation library, auth middleware, and test conventions before implementation.
  2. Target scope: declare exact files/directories to create or modify; generated code must stay inside the target module unless integration files are explicitly required.
  3. No overwrite: preserve existing business logic, routes, models, migrations, configs, and tests unless the user explicitly asks for replacement.
  4. Consistency checks: verify OpenAPI, controller/service signatures, DTO/schema validation, ER model, migrations, repositories, and auth rules are aligned.
  5. Migration safety: generated migrations must be additive by default; destructive data changes require explicit human confirmation.
  6. Implementation report: list created/modified files, skipped files, checks run, failed checks, and residual risks.

Core Principles

  1. Design as Specification: Strictly follow backend-architecture-spec outputs
  2. Unified Entry: This Skill owns app.ts, integrating api-design-impl and data-architecture-impl code outputs
  3. Multi-Environment Support: Configuration management supports dev/staging/prod
  4. Container-Ready: Docker images with multi-stage builds, lean images
  5. Built-in CI: CI pipeline includes lint + test + build

Interaction Mode

AI->Human AI suggests, human approves

Input

Input ItemTypeRequiredSourceDescription
Architecture PlanJSONYesoutput/backend-architecture/backend-architecture-spec/architecture_decision.jsonArchitecture pattern and topology diagram
Service DesignJSONYesoutput/backend-architecture/backend-architecture-spec/service_design.jsonService division and communication scheme
ADRJSONYesoutput/backend-architecture/backend-architecture-spec/adr.jsonArchitecture Decision Records
Review ReportJSONOoutput/backend-architecture/backend-architecture-spec/review_report.jsonReview issue list
Tech Debt RegisterJSONOoutput/backend-architecture/backend-architecture-spec/tech_debt_register.jsonTechnical debt
Tech Stack DecisionJSONOoutput/backend-architecture/backend-architecture-spec/tech_stack_decision.jsonUnified tech stack, determines ORM and database connection configuration
API ContractYAMLYesoutput/backend-api-design/api-design-spec/openapi.yamlFor route mounting
Data ModelJSONYesoutput/backend-data-architecture/data-architecture-spec/er_model.jsonFor database initialization
Cache StrategyJSONOoutput/backend-data-architecture/data-architecture-spec/cache_strategy.jsonFor cache initialization
project_dirstringYesUser providedProject root directory absolute path
tech_stackstringOUser providedFallback when tech_stack_decision.json is not available

Execution Steps

Step 1: Project Entry and Configuration Generation [Core]

Generate application entry and configuration management:

Generated ContentPathDescription
Project Entrysrc/app.ts (or equivalent)Application startup entry, registers middleware, mounts api-design-impl routes, initializes data-architecture-impl database connections and cache
Configuration Managementsrc/config/Environment variables, database, cache, logging configuration

Code Quality Requirements:

  • app.ts integrates api-design-impl routes (mounted from src/routes/index.ts) and data-architecture-impl database/cache initialization
  • Configuration management supports multiple environments (dev/staging/prod)

Stage Gate: app.ts correctly mounts all routes and middleware, configuration supports multiple environments

Step 2: Service Layer and Communication Layer Generation [Core]

Generate service layer and communication layer based on service design:

Generated ContentPathDescription
Service Layer Skeletonsrc/services/coordinator/One Service directory per bounded context (cross-resource coordination logic, calls api-design-impl resource-level Services)
Communication Layersrc/clients/ (or events/)Inter-service communication (HTTP/gRPC/message queue)

Code Quality Requirements:

  • Service layer aligned with api-design-impl resource-level Services, coordinator layer calls resource layer
  • Inter-service communication method matches architecture decisions

Stage Gate: Service layer aligned with api-design-impl resource-level Services, communication method matches architecture decisions

Step 3: Infrastructure Code Generation [Core]

Generate error handling, logging, health check and other infrastructure code:

Generated ContentPathDescription
Error Handlingsrc/errors/Unified error classes and error handling middleware
Loggingsrc/utils/logger.tsStructured logging configuration
Health Checksrc/health//health endpoint + dependency checks (database + cache + external services)

Code Quality Requirements:

  • Unified error handling, no swallowed exceptions
  • Structured logging with request ID tracing
  • Health check covers all dependencies

Stage Gate: Error handling is unified, health check endpoint is accessible

Step 4: Containerization and CI/CD Generation [Core]

Generate Docker and CI/CD configuration:

Generated ContentPathDescription
DockerDockerfile + docker-compose.ymlContainerization configuration
CI/CD.github/workflows/ (or equivalent)Basic CI pipeline (lint + test + build)
Package Managementpackage.json (or equivalent)Dependency declaration + scripts + version locking

Code Quality Requirements:

  • Docker image with multi-stage builds, lean images
  • CI pipeline includes lint + test + build

Stage Gate: Docker image can be built, CI pipeline is complete

Step 5: Architecture Alignment Check and Code Self-Review [Core]

Architecture Alignment Check:

  • Project directory structure consistent with bounded context division
  • Inter-service communication method matches architecture decisions
  • Middleware configuration matches security policy
  • app.ts correctly mounts all routes and middleware
  • Unified Alignment Check: Perform structured comparison based on metadata files, ensuring correct integration between api-design-impl and data-architecture-impl. Execution: Read api-design-impl/impl-report.json alignment_check.repository_call_chain and data-architecture-impl/impl-report.json repositories field, cross-compare Repository method signatures with Service calls for matching; Read er_model.json entity fields and openapi.yaml resource fields, compare API-Model mapping completeness

Code Self-Review:

  • Check app.ts correctly integrates api-design-impl routes and data-architecture-impl database/cache initialization
  • Check Service layer alignment with api-design-impl Services
  • Check configuration management supports multiple environments
  • Check Docker image can be built
  • Check CI pipeline is complete (lint + test + build)
  • Auto-fix discovered issues, P0 issues block output

Stage Gate: Project can start (npm run dev succeeds or equivalent command verification), health check endpoint accessible (/health returns 200), architecture decisions 100% reflected in code, unified alignment check passed, code self-review P0 issues=0

Step 6: Architecture Test Code Generation [Core]

Generate test code for the architecture layer:

  • Generate integration tests for health check endpoint
  • Generate contract test skeletons for inter-service communication
  • Generate build verification tests for CI pipeline
  • Test files output to src/tests/integration/

Stage Gate: Health check and inter-service communication have test skeletons

Output

Adopts dual output mode:

  1. Code Files -> Directly written to user-specified {project_dir}/ project directory
  2. Metadata Files -> Written to output/ directory for downstream Skill consumption

Code File Output: {project_dir}/ (project entry, configuration, service layer, Docker, CI/CD directly written to project directory)

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

Metadata Output Files:

  • impl-report.json -- Code implementation report (generated file list + alignment check results + self-review results)
  • architecture-coverage.json -- Architecture alignment coverage report

impl-report.json Schema:

json
{
  "type": "object",
  "required": ["skill_name", "version", "generated_files", "architecture_alignment", "self_audit"],
  "properties": {
    "skill_name": { "type": "string" },
    "version": { "type": "string" },
    "generated_files": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["path", "type", "description"],
        "properties": {
          "path": { "type": "string" },
          "type": { "type": "string", "enum": ["entry", "config", "service", "client", "infrastructure", "docker", "ci", "test"] },
          "description": { "type": "string" }
        }
      }
    },
    "architecture_alignment": {
      "type": "object",
      "required": ["api_model_mapping", "repository_service_chain", "architecture_decision_coverage"],
      "properties": {
        "api_model_mapping": { "type": "object", "properties": { "passed": { "type": "boolean" }, "unmapped_fields": { "type": "array", "items": { "type": "object", "properties": { "api_field": { "type": "string" }, "model_entity": { "type": "string" } } } } } },
        "repository_service_chain": { "type": "object", "properties": { "passed": { "type": "boolean" }, "missing_links": { "type": "array", "items": { "type": "object", "properties": { "service_method": { "type": "string" }, "repository_method": { "type": "string" } } } } } },
        "architecture_decision_coverage": { "type": "object", "properties": { "passed": { "type": "boolean" }, "unimplemented_decisions": { "type": "array", "items": { "type": "string" } } } }
      }
    },
    "self_audit": {
      "type": "object",
      "required": ["p0_count", "p1_count", "passed", "items"],
      "properties": {
        "p0_count": { "type": "integer" },
        "p1_count": { "type": "integer" },
        "passed": { "type": "boolean" },
        "items": { "type": "array", "items": { "type": "object", "properties": { "severity": { "type": "string" }, "check": { "type": "string" }, "result": { "type": "string" }, "detail": { "type": "string" } } } }
      }
    }
  }
}

Decision Rules

ConditionDecision
Architecture plan conflicts with code implementationFollow architecture plan, adjust code implementation
Service design inconsistent with api-design-implFollow api-design-impl, adjust service layer
Code self-review finds P0 issuesBlock output, auto-fix then re-review
Docker build failsAdjust Dockerfile configuration
Tech stack decision conflicts with user specificationPrefer tech_stack_decision.json (architecture design output), then tech_stack parameter (user direct input), default to Node.js/Express. Mark conflicts for human confirmation

Quality Checks

  • Project can start (npm run dev succeeds or equivalent command verification)
  • Health check endpoint accessible (/health returns 200)
  • Architecture decisions 100% reflected in code
  • app.ts correctly integrates api-design-impl routes and data-architecture-impl database/cache initialization
  • Configuration management supports multiple environments
  • Error handling is unified, no swallowed exceptions
  • Docker image can be built
  • CI pipeline includes lint + test + build
  • Code self-review P0 issues=0
  • Health check and inter-service communication have test skeletons
  • API-Model mapping complete, Repository-Service call chain complete (unified alignment check)

Real Runtime Validation Strategy

Framework Identification & Adaptation Matrix:

FrameworkIdentification SignalEntry FileRoute StyleMiddleware Style
Expresspackage.json contains "express"src/app.ts or src/index.tsRouter()app.use()
NestJSpackage.json contains "@nestjs/core"src/main.ts@Controller() decorator@UseGuards() decorator
Fastifypackage.json contains "fastify"src/app.tsfastify.route()app.register()
Koapackage.json contains "koa"src/app.tsrouter.get/postapp.use()

ORM Identification & Adaptation Matrix:

ORMIdentification SignalModel StyleMigration CommandSeed Command
Prismapackage.json contains "@prisma/client"schema.prismanpx prisma migrate devnpx prisma db seed
TypeORMpackage.json contains "typeorm"@Entity() decoratornpm run typeorm migration:run—
Sequelizepackage.json contains "sequelize"sequelize.define()npx sequelize-cli db:migratenpx sequelize-cli db:seed
Mongoosepackage.json contains "mongoose"mongoose.Schema()— (Schema-first)—

Validation Command List:

Validation DimensionDiscovery StrategyExecution CommandPass CriteriaFailure Handling
Dependency Installpackage.json existsnpm install / pnpm installZero errorsMark dependency conflicts
Compile Checktsconfig.json existsnpx tsc --noEmitZero type errorsMark type errors
Build Checkpackage.json scripts.buildnpm run buildZero-error exitMark build errors
DB Migration (dry-run)After ORM identificationnpx prisma migrate status / npm run typeorm migration:showMigration status consistentMark pending migrations
Health CheckAfter framework identificationcurl /health or check after npm run startHTTP 200Mark startup failure reason
API Type Consistencyopenapi.yaml existsCompare route definitions with OpenAPI100% endpoint coverageMark uncovered endpoints
Testspackage.json scripts.testnpm run testPass rate >=80%Mark failed test cases

Validation Execution Order: Framework Identification -> Dependency Install -> Compile Check -> Build Check -> DB Migration (dry-run) -> Health Check -> API Type Consistency -> Tests

Degradation Strategy

Missing Upstream InputDegradation PlanOutput Impact
Tech stack decision missingUse tech_stack parameter (user provided), default to Node.js/Express if absentCode style may not match
Architecture plan missingDefault monolithic architectureArchitecture pattern may not match business needs
Service design missingOrganize by module directoryService division may be suboptimal
tech_stack parameter missingDefault Node.js/ExpressCode style may not match
project_dir missingCannot generate codeOnly output design documents

Upstream Change Response

Upstream ChangeImpact ScopeResponse Strategy
Architecture plan changeapp.ts + configuration + service layerMark affected code files, assess modification scope
Service design changeService layer + communication layerUpdate Service directory and communication configuration
Tech stack decision changeORM configuration + database connectionUpdate tech_stack related configuration
API contract changeRoute mountingUpdate route registration in app.ts
Data model changeDatabase initialization configurationCheck if Model files need supplementing
API implementation or data layer implementation changeUnified alignment checkCheck if API-Model mapping is still complete
Change TypeImpact ScopeNotification Method
app.ts entry changeAll generated codeMark affected startup flow, update impl-report.json
Docker/CI config changeDeployment flowMark affected build and deployment steps, update impl-report.json
Unified alignment check resultsapi-design-impl, data-architecture-implMark discovered mapping gaps, update architecture-coverage.json

Heefeg gestallte Froen

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

Use when generating backend project architecture code. Implements backend architecture code from backend-architecture-spec architecture plans and service designs, generating runnable project architecture code to the project directory. This Skill owns the application entry (app.ts), integrating api-design-impl and data-architecture-impl code outputs. Built-in architecture alignment check and code self-review. Keywords: generate project scaffold, generate app.ts, generate Docker config, generate CI config, project architecture code generation.

Firwat Backend Architecture Impl op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Backend Architecture Impl 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 Impl 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-impl 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 Impl 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 Impl benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Backend Architecture Impl 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 Impl 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 👇