Логотип Api Design Orchestrator

Api Design Orchestrator

Спільнота
LuckyOneTwoThree
api-design-orchestrator

Use when designing API interfaces, formulating interface specifications, or designing authentication and authorization schemes. API design commander, orchestrating the complete flow of api-design-spec (design) and api-design-impl (implementation), ensuring API design is secure and compliant, with design outputs reviewed by humans before code generation. Keywords: API design, interface contract, API security, authentication, interface design, API specification, interface documentation, code generation.

Огляд

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

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

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

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

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

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

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

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

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

Установіть навичку ШІ Api Design Orchestrator у 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/api-design-orchestrator
  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/api-design-orchestrator .claude/skills/api-design-orchestrator
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

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

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

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

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

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

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

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

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

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

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

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

API Design Orchestrator

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

Contract-driven development, security built-in not bolted-on. Design first, review then implement.

  1. Contract First: Design API contracts first, frontend and backend develop in parallel based on contracts
  2. Security Built-in: Security policies designed alongside contracts, not patched afterward
  3. Unified Authentication: Unified authentication scheme, not handled per-interface
  4. Design Review: Design outputs must be reviewed and confirmed by humans before entering code implementation
  5. Version Management: APIs support version management from day one

Orchestration Protocol

Protocol source: 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

  1. Explicit Invocation: Use the Skill tool to invoke sub-Skills, passing input data and receiving output results
  2. No Proxy Execution: Do not read sub-Skill SKILL.md to substitute execution, do not self-infer sub-Skill internal logic
  3. Contract-Driven: Only focus on sub-Skill input contracts, output contracts, and validation conditions, not internal implementation
  4. State Transfer: Pass current stage output as next stage input, transfer data via file paths
  5. Validate Before Proceeding: Only advance to next stage after current stage output validation passes
  6. Stage Summary (Mandatory): After all Pipeline stages complete, must immediately execute the post_pipeline defined stage summary action to generate summary document. This is not optional; if stage summary is not generated, orchestrator execution is considered incomplete.
  7. 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 TypeValidation ContentExample
Output ExistenceOutput files generated and non-empty"api-design-spec output files generated"
Top-level Structure IntegrityJSON top-level required fields exist"prd.json contains features/pages/entities"
Human Decision ConfirmationKey decision points have human confirmation"Design review human confirmation passed"

General Exception Handling

Exception TypeHandling Strategy
Stage summary generation failedGenerate partial summary based on completed sub-Skill outputs, mark missing items as "data missing", do not block orchestrator completion
Key decision point lacks human confirmationPause orchestration, output pending confirmation list, wait for human confirmation before continuing
Upstream data missingMark missing data items, fill with reasonable assumptions (mark confidence ≤0.3), continue execution and highlight in output
All upstream data missingMark "all data missing" status, output minimal template, set overall confidence to 0.3, force human confirmation whether to continue

Pipeline Definition

yaml
pipeline: api-design-orchestrator
version: 5.0

post_pipeline:
  - action: stage-summary
    output: output/phase-reports/backend/api-design-orchestrator.md

stages:
  - id: phase-1
    name: "API Design Specification"
    skills:
      - api-design-spec
    gate:
      condition: "api-design-spec output files generated and non-empty + human review passed"
      fail_action: "Missing any item blocks"

  - id: phase-2
    name: "API Code Implementation"
    depends_on: [phase-1]
    skills:
      - api-design-impl
    gate:
      condition: "api-design-impl output files generated and non-empty + human confirmation passed"
      fail_action: "Missing items supplemented then re-validated"

Stage Execution Plan

Stage 1: API Design Specification
Invoke api-design-spec
Skill: api-design-spec
Input:
  PRD: output/pm-design/design-prd/prd.md
  PRD Structured Data: output/pm-design/design-prd/prd.json
  Data Model: output/backend-data-architecture/data-architecture-spec/er_model.json
  Business Data Dictionary: output/backend-data-architecture/data-architecture-spec/data_dictionary.json (optional)
  Architecture Plan: output/backend-architecture/backend-architecture-spec/architecture_decision.json
  Service Design: output/backend-architecture/backend-architecture-spec/service_design.json
  Tech Stack Decision: output/backend-architecture/backend-architecture-spec/tech_stack_decision.json (optional)
  Business Process: output/pm-design/design-userflow/userflow.json (optional)
  Security Level: User provided
  Compliance Requirements: User provided (optional)
  Multi-tenant Requirements: User provided (optional)
  Frontend Page Data Requirements: output/ui-frontend/page-builder/pages.json (optional)
  PRD Page Data Requirements: output/pm-design/design-prd/prd.json -> pages[].data_requirements (optional)
Output: output/backend-api-design/api-design-spec/
Validation: API contract + security policy + authentication scheme complete, compliance check has no P0 issues
Mode: AI->Human
Internal Steps:
  1. Resource identification and modeling: Map API resources directly from ER model, fields precisely projected from Model
  2. Interface and specification design: Design CRUD interfaces + error codes + version strategy + service boundary grouping
  3. Interface security design: L1-L4 classification + rate limiting + data security
  4. Authentication and authorization design: Authentication scheme + permission model + session management
  5. Compliance check: Privacy compliance assessment

Design Review Gate: API contract + security policy + authentication scheme complete -> Human reviews design output -> After review passes, enter code implementation

Stage 2: API Code Implementation
Invoke api-design-impl
Skill: api-design-impl
Input:
  OpenAPI Specification: output/backend-api-design/api-design-spec/openapi.yaml
  Security Policy: output/backend-api-design/api-design-spec/security-policy.json
  Authentication & Authorization Scheme: output/backend-api-design/api-design-spec/auth-scheme.json
  Compliance Checklist: output/backend-api-design/api-design-spec/compliance-checklist.json (optional)
  PRD: output/pm-design/design-prd/prd.md
  PRD Structured Data: output/pm-design/design-prd/prd.json
  Data Model: output/backend-data-architecture/data-architecture-spec/er_model.json
  Data Layer Implementation Report: output/backend-data-architecture/data-architecture-impl/impl-report.json
  Frontend Page Data Requirements: output/ui-frontend/page-builder/pages.json (optional)
  Tech Stack Decision: output/backend-architecture/backend-architecture-spec/tech_stack_decision.json (optional)
  project_dir: User provided
  tech_stack: User provided (optional, used when tech_stack_decision.json not available)
Output: output/backend-api-design/api-design-impl/ + code written to {project_dir}/src/
Validation: Code compiles, PRD feature points 100% covered, mappers fully implemented, Service calls real Repository, code self-review P0=0
Mode: AI->Human
Internal Steps:
  1. Code skeleton generation: routes/controllers/validators/types/mappers complete implementation
  2. Service business logic implementation: Business logic + transaction management + real Repository calls (code compiles)
  3. Middleware and security implementation: Authentication/rate limiting/CORS/error handling
  4. Alignment check and code self-review: PRD alignment + frontend alignment + security self-review + Repository call chain verification
  5. API test code generation: Integration test skeletons

Stage Summary (post_pipeline)

After all sub-Skills complete, must generate stage summary document, written to output/phase-reports/backend/api-design-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
ParameterValue
Sub-Skill output pathoutput/backend-api-design/
Summary output pathoutput/phase-reports/backend/api-design-orchestrator.md
Approval record pathoutput/approvals/{orchestrator-name}/{stage-id}.approval.json

Downstream handoff: primary: backend-architecture-orchestrator (After API code implementation completes, enter architecture layer code integration and project assembly) alternatives: - target: ui-orchestrator reason: API contracts can be consumed by UI frontend for parallel development condition: Frontend and backend parallel development + need API contracts to support frontend - target: data-architecture-orchestrator reason: When API design finds data model doesn't meet requirements, backtrack to adjust data architecture condition: API design phase finds ER model missing or incomplete + need to supplement data architecture special_cases: - target: api-design-spec reason: Only need API design specification, no code implementation needed condition: Only need to design interface contracts, no full orchestration flow needed

Stage Gates

GateConditionFailure Handling
API design specification completeapi-design-spec output files generated and non-empty + human review passedMissing any item blocks
API code implementation completeapi-design-impl output files generated and non-empty + human confirmation passedMissing items supplemented then re-validated
Stage summary generatedoutput/phase-reports/backend/api-design-orchestrator.md generated and all 6 structures non-emptySupplement missing structure items then regenerate

Human Decision Points

Decision PointTrigger ConditionDecision Content
API resource and data entity mapping confirmationDuring api-design-spec executionConfirm each API resource has corresponding ER model entity, fields 100% have Model field support
API style selectionDuring api-design-spec executionRESTful vs GraphQL, human confirmation
Security level confirmationDuring api-design-spec executionStandard vs high security, affects rate limiting/encryption/audit strategy
Permission model selectionDuring api-design-spec executionRBAC vs ABAC, affects permission management complexity
Multi-tenant strategyDuring api-design-spec executionIsolation level affects cost and security, human confirmation
API version strategy confirmationDuring api-design-spec executionSemantic versioning vs URL versioning, affects compatibility and client upgrade strategy
Design review confirmationAfter api-design-spec completesReview whether API design meets requirements, confirm before entering code implementation

Exception Handling

Exception TypeHandling Strategy
PRD feature points unclearMark "feature points pending confirmation", generate TODO interfaces, human supplements
Data model missingInfer data entities from PRD, mark "data model pending confirmation"
API style disputeProvide RESTful and GraphQL dual-plan comparison, human decision
Security policy conflictMark conflict items, human decision on trade-offs
Authentication scheme incompatibleProvide compatible solution, human confirmation
Design review not passedAdjust design based on human feedback, re-review
Code self-review P0 issuesAuto-fix then re-review, block output if unfixable
Stage summary generation failedGenerate 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 API interfaces" or "formulate API specifications"
  • Triggered as an independent skill by external systems
  • Upstream orchestrator not executed, but user only needs API design capability

Required Input Acquisition Strategy

Required InputPriority: Read from output/Fallback: Get from user conversationLast Resort: AI knowledge base inference
PRD (prd.md)Read output/pm-design/design-prd/prd.mdAsk user for PRD document or verbal requirementsInfer requirements document from user description (low confidence, mark "PRD is AI-inferred")
PRD Structured Data (prd.json)Read output/pm-design/design-prd/prd.jsonAsk user for structured requirementsExtract structured data from PRD document (low confidence)
Data Model (er_model.json)Read output/backend-data-architecture/data-architecture-spec/er_model.jsonAsk user for data modelInfer data entities and relationships from PRD (low confidence, mark "data model pending confirmation")
Architecture Plan (architecture_decision.json)Read output/backend-architecture/backend-architecture-spec/architecture_decision.jsonAsk user for architecture planDefault monolithic architecture (low confidence, mark "architecture plan pending confirmation")
Service Design (service_design.json)Read output/backend-architecture/backend-architecture-spec/service_design.jsonAsk user for service divisionDefault single service (low confidence, mark "service design pending confirmation")
Security Level—Ask user to specify security level requirementsDefault standard security level (low confidence, mark "security level pending confirmation")
project_dir—Ask user for project directory pathCannot infer, user must provide
tech_stack—Ask user for tech stackRead tech_stack_decision.json or default to common tech stack (low confidence)

Upstream Orchestrator Auto-Backtracking

When critical required inputs are missing, suggest user execute upstream orchestrators in the following priority:

Missing InputSuggested Upstream OrchestratorDescription
PRD + PRD Structured Datapm-design related orchestratorPRD is the business source for API design, missing will result in interface design without basis
Architecture Plan + Service Designbackend-architecture-orchestratorArchitecture plan determines API service boundaries and communication methods, missing will result in API design lacking architecture constraints
Data Modeldata-architecture-orchestratorER model is the basis for API resource mapping, missing will result in API resources not aligned with data entities

Backtracking suggestion output format:

Critical input missing detected, suggest executing upstream orchestrator first:
1. [Priority] backend-architecture-orchestrator -> Produces architecture plan and service design
2. [Priority] data-architecture-orchestrator -> Produces data model
3. [Recommended] pm-design related orchestrator -> Produces PRD
Continue with AI-inferred values? (Inferred values confidence <=0.3, outputs require additional human review)

Standalone Usage Gate

When triggered standalone, must pass the following additional checks before executing Pipeline:

Gate ItemCheck ContentFailure Handling
PRD existenceprd.md or equivalent requirements document availableBlock execution, suggest user execute pm-design orchestrator or provide PRD
Data model existenceer_model.json available or inferableDegraded execution, mark "data model missing, API resource mapping based on PRD inference"
Architecture plan existencearchitecture_decision.json available or inferableDegraded execution, default monolithic architecture, mark "architecture plan missing, using default monolithic architecture"
project_dir validityUser provided valid project directory pathBlock execution, user must provide valid project_dir
Input confidence assessmentAll required input acquisition methods determined, overall confidence >=0.5When confidence <0.5, force human confirmation whether to continue execution

Gate execution order: PRD existence -> project_dir validity -> Data model existence -> Architecture plan existence -> Input confidence assessment

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

Що робить навичка ШІ Api Design Orchestrator?

Use when designing API interfaces, formulating interface specifications, or designing authentication and authorization schemes. API design commander, orchestrating the complete flow of api-design-spec (design) and api-design-impl (implementation), ensuring API design is secure and compliant, with design outputs reviewed by humans before code generation. Keywords: API design, interface contract, API security, authentication, interface design, API specification, interface documentation, code generation.

Навіщо використовувати Api Design Orchestrator у TypingMind?

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

Як встановити Api Design Orchestrator у TypingMind?

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

Які моделі ШІ можуть використовувати Api Design Orchestrator?

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

Зі скількома моделями ШІ можна використовувати Api Design Orchestrator?

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

Чи безкоштовна навичка ШІ Api Design Orchestrator?

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

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

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

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

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

Усі

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

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