ワンクリックで
x4-bug-fix
Fix and verify tracked bugs for X4 project. Invoke /x4:bug-fix to execute reproduction, fix, and verification workflow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Fix and verify tracked bugs for X4 project. Invoke /x4:bug-fix to execute reproduction, fix, and verification workflow.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Use 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>.
| name | x4-bug-fix |
| description | Fix and verify tracked bugs for X4 project. Invoke /x4:bug-fix to execute reproduction, fix, and verification workflow. |
This skill owns /x4:bug-fix.
It executes the fix loop for a tracked bug target.
change-name (optional; supports abbreviation token such as std)x4-user-workflow "Change Name Resolution" rulesbug-description (optional quick target text)change-name using x4-user-workflow rules before any action.Resolved change: <change-name>./x4:bug-fix [change-name] [bug-description(optional)]Phase isolation:
/x4:bug-fix./x4:bug, do not execute any step in this skill; return handoff instruction only.change-name from the resolver.test_tasks.md Chapter 4./x4:bug to register bug in bugs.md/x4:test-doc for doc updatestest_tasks.md / knowledge.md in this skill./x4:test-doc.test_tasks.md (Chapter 4) and test run outcomes.bugs.md status is reference metadata only; do not use it as behavior gate.bugs.md and its corresponding Chapter 4 task in test_tasks.md/x4:test-doc to backfill unchecked ([ ]) task firsttests/e2e/<change-name>/bug-<change-name>.spec.ts that reproduces the bug.npm exec playwright test tests/e2e/<change-name>/bug-<change-name>.spec.ts)修复前 expectations only; if it asserts 修复后, treat test as invalid and fix test firsttest_tasks.mdbug-*.spec.ts into 修复后 assertions.
Rejected, stop the fix loop:
bug-*.spec.ts as 修复前 route semantics修复后 assertions into bug route (修复后 belongs to bugfix-*.spec.ts)Rejectedbugs.md status to Rejected and record concise rejection evidencebugs.md status note to Confirmed (reference only, non-gating) and implement fix in source code.npm run build before fix verification Playwright run in step 8.bugs.md status note to Fixed (reference only, non-gating).python3 skill-scripts/verify_bug_sync.py <change-name> --json
If script returns errors, route by error type before proceeding:
/x4:test-run apply flow; do not edit checklist states manually/x4:test-doc and backfill as unchecked ([ ]) tasks first, then rerun step 8 via /x4:test-run for result-applytest_tasks.md / knowledge.md in this skillbugs.md status note to Verified (reference only, non-gating).When verify_bug_sync.py fails:
/x4:test-doc with unchecked defaults ([ ]).bug-<change-name>.spec.ts covers 修复前bugfix-<change-name>.spec.ts covers 修复后/x4:test-run (not direct manual checklist edits).verify_bug_sync.py; only when clean, update reference status in bugs.md.New -> Confirmed -> Fixed -> Verified
\-> Rejected (if not a real bug)
verify_bug_sync.py before considering bug closure complete.Confirmed/Fixed/Verified/Rejected) without at least one relevant test execution in the current run./x4:test-run) may apply test run results to test_tasks.md.修复后 bug-route tests and must not be completion-applied.npm run build.test_tasks.md as the execution source of truth; bugs.md status is reference metadata only.BLOCKED and bug status must remain unchanged.