一键导入
x4-seed
Create X4 test seeds in YAML under tests/seeds based on user description. Use when the user asks to generate or update a seed file for fixture generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Create X4 test seeds in YAML under tests/seeds based on user description. Use when the user asks to generate or update a seed file for fixture generation.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | x4-seed |
| description | Create X4 test seeds in YAML under tests/seeds based on user description. Use when the user asks to generate or update a seed file for fixture generation. |
Create or update a seed YAML file in tests/seeds/ for later fixture generation.
This skill is meta: the concrete seed schema and contents are defined by the user task.
Seeds MUST be generated by a script that reads from src/assets/x4_game_data/8.0-Diplomacy/**.
The seed MUST contain only the minimal information needed to generate fixtures.
All derivable fields MUST be omitted.
User asks to create/update a seed, or mentions seed generation for fixture creation.
tests/seeds/<seed-name>.yaml.scripts/seed/<seed-name>.tsx.wares.json -> X4Waremodules.json -> X4Modulemodule_groups.json -> X4ModuleGroupres.json -> X4Resourceconsumption.json -> X4Consumptionlanguages.json -> X4LanguagewareId/moduleId via search and write ids directly into the script.tests/fixtures/**.yaml package from package.json for serialization; do not hand-build YAML strings.Use this template to confirm scope; remove items the user says are not needed.
namename, category, subCategory, isLocked, lockedLineagemoduleId | wareId, isIsolatedResolved store: <store>.src/types/x4.ts to understand the JSON type structures listed above.scripts/seed/<seed-name>.tsx that reads src/assets/x4_game_data/8.0-Diplomacy/** JSON and generates the seed.tests/seeds/<seed-name>.yaml, and show the generated content in output while writing the file.npx tsx scripts/seed/<seed-name>.tsxtsx is unavailable or blocked:
npx tsc --target ES2022 --module NodeNext --moduleResolution NodeNext --outDir .tmp/seed-compile scripts/seed/<seed-name>.tsxnode .tmp/seed-compile/<seed-name>.js# comments.name field to seed but hardcoded name: '' in db_fixture scriptUse when x4-e2e-test-doc-details needs fixture patch rules or helper guidance for X4 E2E test data.
Use when refining X4 `e2e_tests.md` into detailed E2E task, fixture, and implementation knowledge documents before Playwright implementation.
Use when creating or updating only the high-level X4 E2E test plan `e2e_tests.md` before detail expansion.
Review X4 E2E test documentation draft and gate x4-e2e-test-doc completion. Must run in a dedicated isolated subagent. Trigger with /x4:e2e-test-doc-viewer <change-name>.
Implement Playwright E2E tests for X4 changes from `e2e_test_tasks.md` and validate task-to-test mapping. Trigger with /x4:e2e-test-impl <change-name>.
Run change-scoped X4 Playwright E2E tests and validate implementation coverage against `e2e_test_tasks.md`. Trigger with /x4:e2e-test-run <change-name>.