资源
1安装
npx skillscat add hushh-labs/hushh-research/backend-api-contracts 通过 SkillsCat registry 安装。
技能简介
用于变更后端API契约、Next.js代理到后端的契约或路由级别的请求/响应边界时使用。触发于API契约变更并确保文档和测试保持一致。
SKILL.md
Hussh Backend API Contracts Skill
Purpose and Trigger
- Primary scope:
backend-api-contracts - Trigger on backend API contract changes, Next.js proxy alignment, and route-level request/response boundary work.
- Avoid overlap with
backend-runtime-governanceandfrontend-architecture.
Coverage and Ownership
- Role:
spoke - Owner family:
backend
Owned repo surfaces:
consent-protocol/api/routeshushh-webapp/app/apidocs/reference/architecture/api-contracts.md
Non-owned surfaces:
backendfrontendsecurity-audit
Do Use
- Backend route contract changes.
- Next.js proxy-to-backend request and response alignment.
- API-doc and proxy-contract updates tied to runtime behavior.
Do Not Use
- Broad backend intake where the correct spoke is still unclear.
- Service-layer placement or runtime ownership work without a contract change.
- Native plugin contract work.
Read First
docs/reference/architecture/api-contracts.mddocs/guides/new-feature.mdconsent-protocol/api/routes
Workflow
- Treat the backend route and the Next.js proxy as one contract surface.
- Keep docs and tests aligned with any wire-shape or endpoint change.
- Route trust/IAM-specific authorization policy questions into
security-audit.
Handoff Rules
- If the request is still broad or ambiguous, route it back to
backend. - If the task becomes route/service ownership instead of API contract work, use
backend-runtime-governance. - If the task becomes frontend route architecture rather than proxy contract alignment, use
frontend.
Required Checks
cd hushh-webapp && npm run typecheck
cd consent-protocol && python3 -m pytest tests/test_developer_api_routes.py -q