一键导入
codegen-pipeline
Run and troubleshoot the SDK code generation pipeline (./codegen.sh) and the generated-artifact drift gate
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Run and troubleshoot the SDK code generation pipeline (./codegen.sh) and the generated-artifact drift gate
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Pick the fastest build/verify command for the change at hand, from cargo check to the full verify gate
How versioning and releases work via release-please, version.txt, and the version pins across the workspace
Build and debug the WASM browser target and the TypeScript web SDK, including the wasm-pack path and the debugger WebSocket relay
Dependency flow audit and layer validation for GoudEngine's 5-layer hierarchy
Discover and list available skills in the repository
12-area audit checklist adapted for Rust game engine projects
| name | codegen-pipeline |
| description | Run and troubleshoot the SDK code generation pipeline (./codegen.sh) and the generated-artifact drift gate |
| user-invocable | true |
All ten language SDKs are generated from one source of truth: codegen/goud_sdk.schema.json
plus the FFI manifest that the Rust build extracts. ./codegen.sh regenerates every SDK,
and CI fails the build if the checked-in generated files drift from what the pipeline
would produce.
Run this whenever you change any of:
goud_engine/src/ffi/ (or the WASM exports under goud_engine/src/wasm/)codegen/goud_sdk.schema.json (the universal SDK schema)codegen/ffi_mapping.json (maps schema entries to FFI symbols)codegen/ or the C header templateIf you touched none of those, you do not need to run codegen.
Files ending in .g.rs, .g.cs, .g.ts, .g.hpp, and the copied goud_engine.h
headers are output. Editing them directly is always wrong — the next ./codegen.sh
run overwrites the change and the drift gate rejects it in between. Change the Rust
FFI, the schema, and ffi_mapping.json together, then regenerate.
./codegen.sh. The pipeline (16 stages) builds the Rust
engine to extract a fresh codegen/ffi_manifest.json and C header, validates FFI
coverage (codegen/validate_coverage.py), checks layer dependencies
(cargo run -p lint-layers), then regenerates C, C++, C#, Python, Go, TypeScript
(node + web), Swift, Lua, and Kotlin..agents/rules/sdk-development.md), e.g.
python3 sdks/python/test_bindings.py, dotnet test sdks/csharp.tests/,
cd sdks/typescript && npm test.scripts/check-generated-artifacts.sh reproduces the CI drift gate: it confirms every
expected generated artifact is present, revalidates the C header, and runs
git diff --exit-code over the tracked generated paths. A clean exit means no drift.codegen-drift step
(scripts/verify.sh, lane codegen)../codegen.sh. Rerun it and commit the output.codegen.sh aborts at stage 2 — the Rust build failed, so no fresh manifest was
produced. Fix the compile error first (cargo build -p goud-engine-core -p goud-engine).codegen/ffi_mapping.json.
Add the mapping, then rerun.codegen/validate.py found the schema and
generated output disagree; reconcile goud_sdk.schema.json with the FFI change.