.agentconf/skills/api-skill/SKILL.md
Build or modify API endpoints in this repository by driving changes from openapi.yaml, regenerating API models, implementing routes manually, and wiring validation/auth/timing correctly. Use when creating new APIs, changing existing APIs, or updating API request/response models.
npx skillsauth add 6529-collections/6529seize-backend api-skillInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Follow this workflow for any API change in this repository.
src/api-serverless/openapi.yaml.Api.openapi.yaml, run:
cd src/api-serverless && npm run generate
src/api-serverless/src/generated as generated-only.
.routes.ts.openapi.yaml (paths, params, payloads, responses).src/api-serverless/src/app.ts.getValidatedByJoiOrThrow (getValidatedByJoi) and a schema (typically defined in the route file).needsAuthenticatedUser() when authentication is required.maybeAuthenticatedUser() when authentication is optional.getAuthenticationContext(req) after auth middleware when auth context is needed.const timer = Timer.getFromRequest(req);
timer to downstream service calls and use it to time work as needed.Keep routes thin:
Do not place heavy business logic in routes.
src/api-serverless/openapi.yaml first.Api.cd src/api-serverless && npm run generate.src/api-serverless/src/generated/*..routes.ts file(s) manually.getValidatedByJoiOrThrow.needsAuthenticatedUser/maybeAuthenticatedUser) correctly.getAuthenticationContext(req) where needed.const timer = Timer.getFromRequest(req); and passed timer onward.src/api-serverless/src/app.ts.openapi.yaml exactly.development
Create new identity notification types by adding enum values, type definitions, notifier methods, push handlers, and API integration. Use when adding new notification types, creating notifications, or extending the notification system.
data-ai
Implement database-related changes in this repository, including schema changes via entities, repository/query patterns, transactions, and data migrations. Use when working on migrations, DB schema updates, or app logic that touches the database.
development
Create new community metrics by adding enum values, recording functions, wiring, backfill migrations, and API integration. Use when adding new community metrics, creating metrics, or tracking community activity.
development
Maintainer-only workflow for handling GitHub Secret Scanning alerts on OpenClaw. Use when Codex needs to triage, redact, clean up, and resolve secret leakage found in issue comments, issue bodies, PR comments, or other GitHub content.