Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.
中文简介正在准备中。当前显示原文说明。
OpenAPI contract standards for API specification, versioning, and type generation.
中文简介正在准备中。当前显示原文说明。
查看安装方法安装前可以查看交给 AI 代理的指令内容。
Standards for OpenAPI contract components that define API specifications and generate TypeScript types.
Contract components are the single source of truth for API types:
components/contract[-{name}]/
├── package.json # Build scripts (generate:types, validate)
├── tsconfig.json # TypeScript config for generated types
├── openapi.yaml # OpenAPI 3.0 specification
├── .spectral.yaml # Spectral linting rules (optional)
├── .gitignore # Ignores generated/ directory
└── generated/ # Git-ignored generated output
└── api-types.ts # Generated TypeScript types
Contract components do not require application config from components/config/. They are build-time artifacts, not runtime services. The contract-scaffolding skill generates an openapi.yaml, package.json with type generation scripts, and a generated/ directory for TypeScript types.
openapi: '3.0.3'
info:
title: Project API
version: '1.0.0'
description: API description
| Pattern | Example | Use Case |
|---|---|---|
/resources | /users | Collection endpoint |
/resources/{id} | /users/{userId} | Single resource |
/resources/{id}/subresources | /users/{userId}/orders | Nested resources |
Rules:
/users, not /user)/user-profiles){userId})Operation IDs become handler function names:
paths:
/users:
get:
operationId: listUsers # -> handleListUsers
post:
operationId: createUser # -> handleCreateUser
/users/{userId}:
get:
operationId: getUser # -> handleGetUser
put:
operationId: updateUser # -> handleUpdateUser
delete:
operationId: deleteUser # -> handleDeleteUser
Rules:
get, list, create, update, deletegetUserProfile, not getProfilecomponents:
schemas:
User:
type: object
required:
- id
- email
properties:
id:
type: string
format: uuid
email:
type: string
format: email
name:
type: string
createdAt:
type: string
format: date-time
CreateUserRequest:
type: object
required:
- email
properties:
email:
type: string
format: email
name:
type: string
Error:
type: object
required:
- code
- message
properties:
code:
type: string
message:
type: string
Naming Conventions:
User, Order, TaskCreateUserRequest, UpdateOrderRequestUserListResponse, PaginatedResponseError, ValidationErrorDefine reusable error responses:
components:
responses:
BadRequest:
description: Invalid request
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
NotFound:
description: Resource not found
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Unauthorized:
description: Authentication required
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
Health check endpoints are NOT defined in the contract. They are infrastructure endpoints implemented directly in the Operator layer:
/health - Liveness probe/readiness - Readiness probeThese run on a separate port (e.g., 9090) from the main API.
<plugin-root>/fullstack-typescript/system/system-run.sh contract generate-types <component-name>
Server and webapp consume types via workspace dependency:
// In server or webapp
import type { components, paths } from '@project/contract';
// Schema types
type User = components['schemas']['User'];
type CreateUserRequest = components['schemas']['CreateUserRequest'];
// Path types (for typed API clients)
type GetUserPath = paths['/users/{userId}']['get'];
import type - Contract types are compile-time only"workspace:*" version| Strategy | When to Use |
|---|---|
URL path (/v1/users) | Breaking changes require new version |
| No versioning | Internal APIs, rapid iteration |
For most SDD projects, avoid versioning until you have external consumers.
Track changes in info.version:
info:
version: '1.0.0' # Bump on breaking changes
<plugin-root>/fullstack-typescript/system/system-run.sh contract validate <component-name>
Uses .spectral.yaml for custom rules (optional).
When adding a new endpoint:
openapi.yaml<plugin-root>/fullstack-typescript/system/system-run.sh contract validate <component-name>
<plugin-root>/fullstack-typescript/system/system-run.sh contract generate-types <component-name>
Server endpoint implementation must follow backend-standards — it defines the CMDO handler → orchestrator → repository layering that contract endpoints are built upon.
When a project has multiple contracts (e.g., public API vs internal API):
components/contracts/
├── public-api/ # External-facing API
│ └── openapi.yaml
└── internal-api/ # Service-to-service API
└── openapi.yaml
Each contract:
@project/public-api)Before committing contract changes:
contract validate)This skill defines no input parameters or structured output.
backend-standards — Delegate to this for server-side endpoint implementation. Defines the CMDO handler → orchestrator → repository layering that contract endpoints are built upon.frontend-standards — Delegate to this for webapp consumption of generated types. Defines MVVM patterns and TanStack Query hooks that use the TypeScript types generated from OpenAPI specs.还没有评价。欢迎分享你的使用感受。
无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。
还没有评论。来写第一条吧。
Standards for authoring SDD plugin agents — frontmatter, self-containment, skill references, and no-user-interaction rules.
中文简介正在准备中。当前显示原文说明。
Scaffolds Node.js/TypeScript backend components with CMDO architecture, driven by component settings.
中文简介正在准备中。当前显示原文说明。
CMDO architecture standards for Node.js/TypeScript backends with strict layer separation.
中文简介正在准备中。当前显示原文说明。
Intent-to-command mappings for fullstack-typescript tech pack features.
中文简介正在准备中。当前显示原文说明。
Create change specification and implementation plan with dynamic phase generation. Supports feature, bugfix, refactor, and epic types.
中文简介正在准备中。当前显示原文说明。
Orchestrates the full change lifecycle — routes actions to phase-specific sub-files.
中文简介正在准备中。当前显示原文说明。