一键导入
api-scaffold
Generate a REST API endpoint with handler, route, and basic tests. Use when adding new API endpoints to the project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate a REST API endpoint with handler, route, and basic tests. Use when adding new API endpoints to the project.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Improve a SKILL.md file by applying missing or weak skill-authoring patterns (17 patterns across 7 categories). Use when a skill needs strengthening, after running skill:check to identify gaps, or when creating a new skill from scratch. Do NOT use for prompt-level improvements (use prompt:enhance instead) or for evaluation only (use skill:check instead).
Run a baseline-enhance-reeval loop on a SKILL.md to measure improvement. Generates targeted test cases for enhanced patterns to ensure the comparison reflects actual improvement in changed areas. Use when testing whether skill:enhance actually improves eval scores, measuring skill quality before and after changes, or automating the measure-enhance-measure workflow. Do NOT use for evaluation only (use /eval-run instead), for enhancement only (use skill:enhance instead), or for setting up eval infrastructure (use /eval-analyze and /eval-dataset instead).
Evaluate a SKILL.md file using three-layer linting: schema validation, 17 skill-authoring patterns, and optional substance review (--deep). Use when reviewing skill quality, checking pattern coverage, testing activation metadata, or assessing a skill before sharing. Add --deep for qualitative substance review. Do NOT use for prompt-level analysis (use prompt:skill-checker instead) or for enhancing/rewriting skills (use skill:enhance instead).
Deploy a service to the staging environment with health checks and rollback. Use when asked to deploy, push to staging, release to staging, or test a deployment. Do NOT use for production deployments (use deploy:production instead) or for CI/CD pipeline configuration.
Format source code files
Run database migrations against the target environment. Use when applying schema changes, running pending migrations, or checking migration status. Do NOT use for seed data insertion or database backups.
| name | api:scaffold |
| description | Generate a REST API endpoint with handler, route, and basic tests. Use when adding new API endpoints to the project. |
| argument-hint | <resource-name> [--method GET|POST|PUT|DELETE] |
| allowed-tools | ["Read","Write","Bash"] |
| user-invocable | true |
Create a new REST API endpoint with handler function, route registration, request/response types, and a basic test file.
Read the project's dependency file to determine which web framework is in use:
Create the handler file following the project's existing patterns. Look at existing handlers for:
Add the route to the project's router configuration. Match the existing route registration style.
Define request and response types/structs for the endpoint.
Create a basic test file with:
Run the project's test suite to confirm the new tests pass and nothing is broken.