anclax-develop-feature

📁 cloudcarver/anclax 📅 10 days ago
1
总安装量
1
周安装量
#42885
全站排名
安装命令
npx skills add https://github.com/cloudcarver/anclax --skill anclax-develop-feature

Agent 安装分布

opencode 1
codex 1
claude-code 1

Skill 文档

Anclax Development Workflow

Use Anclax generated types as the contract between layers and keep specs/SQL as the source of truth.

Core flow

  1. Inspect anclax.yaml to learn generation paths and enabled generators.
  2. Update sources first:
    • OpenAPI: api/v1.yaml
    • Tasks: api/tasks.yaml
    • DB schema: sql/migrations
    • Queries: sql/queries
  3. Run anclax gen after any spec/SQL/Wire changes.
  4. Implement code against generated interfaces and types.
  5. Add unit tests for service logic with mocks.

Layering rules

  • Handler: parse HTTP, call service, map errors to HTTP responses.
  • Service: implement business logic, accept and return apigen types.
  • Model: use pkg/zcore/model and sqlc-generated queries.
  • Async tasks: define in api/tasks.yaml, implement taskgen.ExecutorInterface, enqueue via taskgen.TaskRunner.

References and Examples