원클릭으로
x4-doc
Update OpenSpec planning artifacts for X4 (`request/spec/design/tasks`) based on discussion conclusions, with mandatory cross-file sync.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Update OpenSpec planning artifacts for X4 (`request/spec/design/tasks`) based on discussion conclusions, with mandatory cross-file sync.
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-doc |
| description | Update OpenSpec planning artifacts for X4 (`request/spec/design/tasks`) based on discussion conclusions, with mandatory cross-file sync. |
This skill handles documentation updates for the X4 Station Calculator project.
User invokes /x4:doc <change_name> [spec_name]
Update OpenSpec planning artifacts based on discussion conclusions, and keep request/spec/design/tasks consistent in one documentation pass.
x4-doc is the single source of truth for document details used by both /x4:new and /x4:ff, including:
x4-new and x4-ff should orchestrate progression only and must not redefine these details.
<change_name>: The name of the change folder in openspec/changes/ (e.g., storage-auto-fill).[spec_name] (Optional): The sub-folder name for the spec (e.g., storage-logic). If provided, create specs/<spec_name>/spec.md. If omitted, use the change name or default location.<change_name> accepts abbreviation token and must be resolved by x4-user-workflow "Change Name Resolution" rules.change-name using x4-user-workflow rules before any action.Resolved change: <change-name>./x4:discussopenspec/changes/<change-name>/.request.md, design.md, tasks.md, specs/<feature>/spec.md when applicable.tasks.md.request.md Positioning (MANDATORY)request.md must serve two goals at the same time:
spec/design/tasks) can be generated from request.md without relying on chat history.When creating/updating request.md, it MUST contain:
目标:一句话到三句话说明本次变更要解决什么。已确认方案(审核重点):按主题列出已定方案(入口、流程、映射、异常/告警、保存策略等)。边界:In Scope 与 Out of Scope。验收标准(DoD):可验证条目(面向行为与结果)。未决项:若无,明确写“无”。request.md should be medium-granularity:
If user requirements and final discussion conclusions contain concrete details, request.md MUST preserve that level of detail.
request.md MUST include enough confirmed decisions so that a different agent can generate later artifacts using request.md alone.
Do not rely on “implicit context from previous conversation” for key requirements.
When /x4:new or /x4:ff needs to validate request.md, they must reuse Section 0 checks in this file instead of redefining local criteria.
When generating or translating spec documents (.md in openspec/), YOU MUST preserve the following headers in English:
# [Name] Specification## Purpose### Requirement: [Name]#### Scenario: [Name]## ADDED Requirements## MODIFIED Requirements## REMOVED Requirements## RENAMED Requirementsdesign.md (Architecture, Decisions, etc.) MUST be written in the user's current conversation language.SHALL, MUST) in English.**前提** (Given), **当** (When), **那么** (Then), **并且** (And).## ADDED Requirements for new features instead of ## Requirements.## MODIFIED Requirements for changes to existing logic.- FROM: ### Requirement: [Old Name] / - TO: ### Requirement: [New Name]Scenario blocks.specs/ (e.g., specs/title-as-plan-title/spec.md). Do NOT place spec files directly in specs/.When creating or updating planning artifacts:
tasks.md is implementation-only and MUST NOT include:
/x4:apply scope MUST NOT include writing tests or running tests./x4:apply must include build validation after code writing is complete:
npm run buildopenspec/ or other documentation/x4:doc storage-auto-fill
/x4:doc storage-auto-fill storage-logic