一键导入
fixture-add
Scaffold a new YAML test fixture and register its path constant in testutil/test_constants.go
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Scaffold a new YAML test fixture and register its path constant in testutil/test_constants.go
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Run test coverage check and report per-package breakdown highlighting packages below the 72% gate and 80% new-code target
Run gremlins mutation testing on a specified Go package, following the same pattern as make test-mutation
Scaffold a new documentation theme following the project's theme registration pattern from CLAUDE.md
Run all project security scans (make security) and summarize findings by tool and severity
| name | fixture-add |
| description | Scaffold a new YAML test fixture and register its path constant in testutil/test_constants.go |
The user provides: fixture type and content description.
Steps:
Choose the correct subdirectory under testdata/yaml-fixtures/:
actions/javascript/, actions/composite/, or actions/docker/actions/invalid/ or error-scenarios/configs/dependencies/Create the YAML fixture file following the naming convention of existing fixtures in that directory. Inspect one existing fixture file first to match the YAML structure and formatting.
Add a constant to testutil/test_constants.go following the TestFixture<Name> pattern,
pointing to the path relative to testdata/yaml-fixtures/ (e.g. "actions/composite/my-fixture.yml").
Run go build ./testutil/... to verify it compiles.
Show the user the usage pattern:
testutil.WriteActionFixture(t, tmpDir, testutil.TestFixture<Name>)
// or for config fixtures:
testutil.MustReadFixture(testutil.TestFixture<Name>)