首页/ AI 技能 / @skilllib/skill-2014279422533120002
Skill站外收录 @skilllib/skill-2014279422533120002

regenerate-sdk

根据配置自动重建软件开发工具包,适用于接口定义或工作流变更后的代码生成场景,支持指定目标语言与数据源,通过命令行驱动实现持续集成环境下的自动化更新。

0.0 (0) 551 次安装 原作者 编程导航
收录于 2026-01-22
效率工具 AI 技能

Skills.MD

# regenerate-sdk Use `speakeasy run` to execute the workflow and regenerate SDKs. ## Prerequisites For non-interactive environments (CI/CD, AI agents), set: ```bash export SPEAKEASY_API_KEY="<your-api-key>" ``` See `configure-authentication` skill for details. ## Command ```bash # Run all configured targets speakeasy run # Run specific target only speakeasy run -t <target-name> # Run with specific source speakeasy run -s <source-name> # AI-friendly output mode speakeasy run --output console ``` ## When to Use - After updating the OpenAPI spec - After modifying workflow.yaml - After changing overlays - To regenerate with latest Speakeasy version ## Example Workflow ```yaml # .speakeasy/workflow.yaml workflowVersion: 1.0.0 speakeasyVersion: latest sources: my-api: inputs: - location: ./openapi.yaml targets: typescript-sdk: target: typescript source: my-api output: ./sdk/typescript ``` ## AI-Friendly Output For commands with large outputs, pipe to `grep` or `tail` to reduce context: ```bash speakeasy run --output console 2>&1 | tail -50 ``` ## Troubleshooting If `speakeasy run` fails, check: 1. Is the OpenAPI spec valid? Run `speakeasy lint openapi -s <spec>` 2. Does the source path exist? Check `inputs.location` in workflow.yaml 3. Are there blocking validation errors? See `diagnose-generation-failure` skill

评论 0

还没有评论,来抢沙发。