一键导入
contract-synchronization
Playbook for managing API contract schemas, generating client code, and verifying backend/frontend synchronization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Playbook for managing API contract schemas, generating client code, and verifying backend/frontend synchronization.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Playbook for capturing design alignment from /grill-me, generating issue specifications, and managing task boards.
Playbook instructing agents how to dynamically formulate, design, bootstrap, and register new workspace skills when facing skill gaps.
Playbook for translating natural language requests about tasks, profiles, locking, and validation into CLI helper executions.
Playbook for writing safe database migrations, managing schema evolutions, executing reversible rollbacks, and avoiding table lock contention in enterprise environments.
Guidelines for CPU profiling, identifying database query bottlenecks (N+1 queries), diagnosing memory leaks, and optimizing resource execution speeds.
Guidelines for containerization (Dockerfile best practices), release versioning, blue-green deployment, feature flag rollouts, and post-deployment smoke verification.
| name | contract-synchronization |
| description | Playbook for managing API contract schemas, generating client code, and verifying backend/frontend synchronization. |
This playbook defines the standards and workflows for maintaining absolute contract compliance and synchronization between backend and frontend sub-projects in a monorepo workspace.
To prevent API contract mismatch and runtime integration errors:
openapi.yaml, schema.json, or shared Type Definitions) in a shared directory at the root of the workspace or in the backend's public docs directory (e.g., docs/openapi.yaml).To synchronize changes instantly from Backend $\rightarrow$ Frontend:
openapi-generator-cli, orval, or custom typescript generators) to regenerate types and fetching hooks inside the frontend directory (e.g. app/frontend/src/api/).Validation must happen on both ends of the interface boundary:
schemathesis run docs/openapi.yaml --base-url http://localhost:8000/api
npm run build or tsc --noEmit in the frontend directory serves as the final gate to verify that all API components, arguments, and data shapes match the backend payload.When validation is run, the agent must check all projects. The root validation script validate.py reads .agents/projects.json to automatically run tests in each sub-directory (e.g., app/backend and app/frontend), ensuring that changes in one module do not break the tests in the other.