Install
$ agentstack add skill-luckyonetwothree-vibe-skill-backend-architecture-orchestrator ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
Backend Architecture Orchestrator
Code Write Boundary
Follow [Engineering Boundary Protocol](../../../codex-templates/engineering-boundary-protocol.md) or the equivalent relative path from this skill.
- Scan first: identify framework, package manager, module layout, ORM, migration tool, validation library, auth middleware, and test conventions before implementation.
- Target scope: declare exact files/directories to create or modify; generated code must stay inside the target module unless integration files are explicitly required.
- No overwrite: preserve existing business logic, routes, models, migrations, configs, and tests unless the user explicitly asks for replacement.
- Consistency checks: verify OpenAPI, controller/service signatures, DTO/schema validation, ER model, migrations, repositories, and auth rules are aligned.
- Migration safety: generated migrations must be additive by default; destructive data changes require explicit human confirmation.
- Implementation report: list created/modified files, skipped files, checks run, failed checks, and residual risks.
Core Principles
Architecture serves business, simple solutions first, evolve as needed. Design first, review then implement.
- Pattern First: Determine architecture pattern first, then design services
- Domain-Driven: Service boundaries determined by business domains
- Review Loop: If review doesn't pass, go back and fix
- Evolutionary: Start simple, evolve as needed
- Design Review: Design outputs must be reviewed and confirmed by humans before entering code implementation
Orchestration Protocol
> Protocol source: [orchestrator-protocol.md](../../../codex-templates/orchestrator-protocol.md) (for maintainers tracking only, this file has the complete protocol inlined and can be used independently)
You are an orchestrator, responsible for dispatching sub-Skills by stage, not proxy-executing sub-Skill logic. Strictly follow the protocol below:
Invocation Rules
- Explicit Invocation: Use the
Skilltool to invoke sub-Skills, passing input data and receiving output results - No Proxy Execution: Do not read sub-Skill SKILL.md to substitute execution, do not self-infer sub-Skill internal logic
- Contract-Driven: Only focus on sub-Skill input contracts, output contracts, and validation conditions, not internal implementation
- State Transfer: Pass current stage output as next stage input, transfer data via file paths
- Validate Before Proceeding: Only advance to next stage after current stage output validation passes
- Stage Summary (Mandatory): After all Pipeline stages complete, must immediately execute the
post_pipelinedefined stage summary action to generate summary document. This is not optional; if stage summary is not generated, orchestrator execution is considered incomplete. - Cross-Sub-Skill Validation: When consistency constraints exist between outputs of multiple sub-Skills, the orchestrator may perform cross-validation between stages (reading multiple outputs to compare consistency). This is the orchestrator's coordination responsibility, not proxy-executing sub-Skill logic. Cross-validation rules are explicitly defined in the orchestrator SKILL.md.
Context Management
- After each sub-Skill invocation completes, only retain output file paths and key conclusion summaries
- Detailed outputs written to
output/{domain-path}/{skill-name}/directory - If context approaches limits, prioritize retaining current stage content and pending stage sub-Skill names
Stage Gate Standards
The orchestrator's stage gates only validate the following 3 categories of conditions, not sub-Skill internal fields:
| Gate Type | Validation Content | Example | |-----------|-------------------|---------| | Output Existence | Output files generated and non-empty | "backend-architecture-spec output files generated" | | Top-level Structure Integrity | JSON top-level required fields exist | "prd.json contains features/pages/entities" | | Human Decision Confirmation | Key decision points have human confirmation | "Design review human confirmation passed" |
General Exception Handling
| Exception Type | Handling Strategy | |---------------|-------------------| | Stage summary generation failed | Generate partial summary based on completed sub-Skill outputs, mark missing items as "data missing", do not block orchestrator completion | | Key decision point lacks human confirmation | Pause orchestration, output pending confirmation list, wait for human confirmation before continuing | | Upstream data missing | Mark missing data items, fill with reasonable assumptions (mark confidence Human Internal Steps:
- Architecture pattern evaluation and selection: Monolithic/Microservices/Serverless, generate topology diagram
- Architecture Decision Records: Generate ADR for each decision
- Service design: DDD bounded contexts + service division + communication scheme + service data ownership
- Backend review: Performance/security/maintainability/scalability review
- Tech debt registration: Identify and register technical debt
**Design Review Gate**: Architecture pattern + service design + review report + tech debt register complete + P0 issues=0 -> Human reviews design output -> After review passes, enter code implementation
#### Stage 2: Backend Architecture Code Implementation
#### Invoke backend-architecture-impl
Skill: backend-architecture-impl Input: Architecture Plan: output/backend-architecture/backend-architecture-spec/architecturedecision.json Service Design: output/backend-architecture/backend-architecture-spec/servicedesign.json ADR: output/backend-architecture/backend-architecture-spec/adr.json Review Report: output/backend-architecture/backend-architecture-spec/reviewreport.json (optional) Tech Debt Register: output/backend-architecture/backend-architecture-spec/techdebtregister.json (optional) Tech Stack Decision: output/backend-architecture/backend-architecture-spec/techstackdecision.json (optional) API Contract: output/backend-api-design/api-design-spec/openapi.yaml Data Model: output/backend-data-architecture/data-architecture-spec/ermodel.json Cache Strategy: output/backend-data-architecture/data-architecture-spec/cachestrategy.json (optional) projectdir: User provided techstack: User provided (optional, used when techstackdecision.json not available) Output: output/backend-architecture/backend-architecture-impl/ + code written to {projectdir}/ Validation: Project can start, /health returns 200, architecture decisions 100% reflected in code, unified alignment check passed, code self-review P0=0 Mode: AI->Human Internal Steps:
- Project entry and configuration generation: app.ts + config (integrating api-design-impl routes + data-architecture-impl database/cache)
- Service layer and communication layer generation: services + clients
- Infrastructure code generation: errors + logger + health
- Containerization and CI/CD generation: Docker + CI + package.json
- Architecture alignment check and code self-review: app.ts integration + Service alignment + multi-environment config + Docker buildable + CI complete + unified alignment check
- Architecture test code generation: Health check + contract tests + build verification tests
### Stage Summary (post_pipeline)
After all sub-Skills complete, must generate stage summary document, written to `output/phase-reports/backend/backend-architecture-orchestrator.md`, containing the following 6 structures (none can be empty):
1. **Execution Overview**: Orchestrator name and version, execution time, sub-Skill execution status (success/failure/degraded)
2. **Key Findings**: Core output summary for each sub-Skill (1-3 items), cross-sub-Skill insights
3. **Decision Records**: Human decision points and decision results, AI automatic decisions and basis
4. **Output Inventory**: All output file paths and content summaries, output quality assessment (whether validation passed)
5. **Risks and TODOs**: Items that failed validation, items executed with degradation, recommended follow-up items
6. **Downstream Handoff**: Which downstream orchestrators can consume this orchestrator's outputs, recommended next orchestrator
| Parameter | Value |
|-----------|-------|
| Sub-Skill output path | output/backend-architecture/ |
| Summary output path | output/phase-reports/backend/backend-architecture-orchestrator.md |
| Approval record path | output/approvals/{orchestrator-name}/{stage-id}.approval.json |
Downstream handoff:
primary: data-architecture-orchestrator (After architecture plan is determined, enter data architecture design)
alternatives:
- target: release-orchestrator
reason: After architecture implementation completes, enter quality acceptance and release
condition: Only executing architecture module + no data layer and API layer needed
- target: ui-orchestrator
reason: After backend is ready, start UI frontend development and integration
condition: Frontend not yet developed + need backend API support
special_cases:
- target: backend-architecture-spec
reason: Only need architecture design evaluation, no code implementation needed
condition: Only need to evaluate architecture pattern and service design, no full orchestration flow needed
## Stage Gates
| Gate | Condition | Failure Handling |
|------|-----------|-----------------|
| Backend architecture design complete | backend-architecture-spec output files generated and non-empty + human review passed | P0 issues must be fixed before passing |
| Backend architecture code implementation complete | backend-architecture-impl output files generated and non-empty + human confirmation passed | Missing items supplemented then re-validated |
| Stage summary generated | output/phase-reports/backend/backend-architecture-orchestrator.md generated and all 6 structures non-empty | Supplement missing structure items then regenerate |
## Human Decision Points
| Decision Point | Trigger Condition | Decision Content |
|---------------|-------------------|-----------------|
| Architecture pattern selection | During backend-architecture-spec execution | Monolithic/Microservices/Serverless, human final confirmation |
| Service division granularity | During backend-architecture-spec execution | Too fine increases complexity, too coarse loses flexibility |
| Tech stack confirmation | During backend-architecture-spec execution | Confirm unified tech stack decision, affects all subsequent implementation |
| Service data ownership confirmation | During backend-architecture-spec execution | Confirm data entities owned by each service, affects data architecture design |
| Evolution pace | During backend-architecture-spec execution | When to evolve from monolithic to microservices, human decision |
| P1 issue handling | During backend-architecture-spec execution | Fix or accept as technical debt |
| Design review confirmation | After backend-architecture-spec completes | Review whether architecture design meets requirements, confirm before entering code implementation |
| Architecture readiness confirmation | After backend-architecture-impl review passes | Code implementation complete, human confirms architecture is ready for development |
## Exception Handling
| Exception Type | Handling Strategy |
|---------------|-------------------|
| PRD missing | Cannot design architecture, output is empty |
| Business scale not specified | Default medium scale (10K users, QPS 100, 10GB data, team of 5), mark "scale pending confirmation" |
| Architecture pattern dispute | Provide monolithic + microservices dual-plan comparison, human decision |
| Service circular dependency | Auto-detect and alert, must eliminate before entering review |
| Review P0 issues | Must fix before passing design review |
| Design review not passed | Adjust design based on human feedback, re-review |
| Code self-review P0 issues | Auto-fix then re-review, block output if unfixable |
| Stage summary generation failed | Generate partial summary based on completed sub-Skill outputs, mark missing items as "data missing", do not block orchestrator completion |
## Standalone Usage Input Acquisition Strategy
### Standalone Trigger Scenario Identification
When this orchestrator is invoked directly (not through backend-orchestrator orchestration), it is considered a standalone trigger scenario. Typical trigger methods:
- User directly requests "design backend architecture" or "select architecture pattern"
- Triggered as an independent skill by external systems
- Upstream orchestrator not executed, but user only needs backend architecture design capability
### Required Input Acquisition Strategy
| Required Input | Priority: Read from output/ | Fallback: Get from user conversation | Last Resort: AI knowledge base inference |
|---------------|---------------------------|-------------------------------------|---------------------------------------|
| PRD (prd.md) | Read output/pm-design/design-prd/prd.md | Ask user for PRD document or verbal requirements | Infer requirements document from user description (low confidence, mark "PRD is AI-inferred") |
| PRD Structured Data (prd.json) | Read output/pm-design/design-prd/prd.json | Ask user for structured requirements | Extract structured data from PRD document (low confidence) |
| Business Scale | — | Ask user for business scale (user count, QPS, data volume, team size) | Default medium scale: 10K users, QPS 100, 10GB data, team of 5 (low confidence, mark "scale pending confirmation") |
| project_dir | — | Ask user for project directory path | Cannot infer, user must provide |
| tech_stack | — | Ask user for tech stack | Default common tech stack (low confidence, mark "tech stack pending confirmation") |
### Upstream Orchestrator Auto-Backtracking
When critical required inputs are missing, suggest user execute upstream orchestrators in the following priority:
| Missing Input | Suggested Upstream Orchestrator | Description |
|--------------|-------------------------------|-------------|
| PRD + PRD Structured Data | pm-design related orchestrator | PRD is the business basis for architecture design, missing will result in architecture pattern selection and service division without business foundation |
Backtracking suggestion output format:
Critical input missing detected, suggest executing upstream orchestrator first:
- [Priority] pm-design related orchestrator -> Produces PRD
Continue with AI-inferred values? (Inferred values confidence =0.5 | When confidence project_dir validity -> Business scale clarity -> Input confidence assessment
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: LuckyOneTwoThree
- Source: LuckyOneTwoThree/vibe-skill
- License: MIT
- Homepage: https://luckyonetwothree.github.io/all-skill-html/
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.