AgentSkillsCN

ei-regenerate-clients

为 ei-agentic-claude 重新生成已生成的 API 客户端与 CLI 命令,刷新完整性哈希值,并运行验证测试。

SKILL.md
--- frontmatter
name: ei-regenerate-clients
description: "Regenerate generated API clients/CLI commands, refresh integrity hashes, and run verification tests for ei-agentic-claude."
user-invocable: true

Regenerate Clients + Integrity Gate

Purpose

When the Studio API evolves, the generated clients and CLI commands need to be regenerated and verified.

Workflow

  1. Clean install + build

    • npm ci
    • npm run build
  2. Regenerate generated sources

    • Run the repo’s Postman/OpenAPI generation workflow used to produce:
      • generated API clients
      • generated CLI command wrappers
  3. Refresh integrity hashes

    • npm run generate-integrity
  4. Verify

    • npm test
    • npm run docker:test

Acceptance criteria

  • Generated outputs land only in expected generated directories.
  • integrity.json updates to match regenerated outputs.
  • Tests pass before opening a PR.

Output (recommended)

Create a PR description that includes:

  • what changed in the upstream definition
  • regeneration commands executed
  • test commands executed