Install
openclaw skills install api-push-frontend推送后端 API 接口定义到前端数据接口平台。
openclaw skills install api-push-frontend将后端 API 接口定义(请求方法、路径、参数、响应结构)推送到前端数据接口平台,实现前后端接口文档同步。
https://jffe.techgp.cn/md/api/uploadV4POSTapplication/jsonprdId (产品需求 ID), apis (接口定义数组)references/push-history.md自然语言(推荐):直接告诉我需求,我引导你完成推送
脚本方式:
python3 scripts/push_api_to_frontend.py --prdId "PRD-2026-001" --file ./api-definitions.json
直接 API:参考 references/frontend-api-docs.md
支持:
详细格式规范见 references/api-definition-standard.md
常见错误码:
400: 参数格式错误 → 检查 JSON 格式和必填字段401: 认证失败 → 检查认证 token404: prdId 不存在 → 确认产品需求 ID500: 服务器错误 → 联系平台管理员推送前验证、网络错误重试(最多 3 次)、记录详细错误日志。
详细实践见 references/frontend-api-docs.md
支持 CI/CD 集成和 Git Hook 集成,配置示例见 references/frontend-api-docs.md