一键导入
godark-create-scenarios
Generate scenario spec files for a phase or individual issue
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate scenario spec files for a phase or individual issue
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Analyze an existing project and populate godark.yaml with modules, codegen, CI, and env configuration
Create GitHub issues from a phase planning doc
Create a project roadmap and GitHub milestones through conversation
Generate a practical overview with real-world examples for a completed roadmap phase
Create a detailed planning doc for a roadmap phase
Compress and organize CLAUDE.md into a minimal directory of pointers
| name | godark-create-scenarios |
| description | Generate scenario spec files for a phase or individual issue |
| argument-hint | <phase-number> or <issue-number> |
| disable-model-invocation | true |
Generate scenario spec files for all issues in a phase, or for a single issue.
Determine scope — If the argument looks like a phase number (small integer, or matches a planning doc), treat it as a phase and generate specs for all issues in that phase. If it looks like a larger issue number, generate a spec for that single issue.
Gather issues — For a phase:
godark.yaml to get the repo and planning_dir
(default: docs/planning/).<planning_dir>/phase-<N>-*.md.gh issue list --milestone "<Phase Name>" --repo <repo> --state all --limit 200 to get issue numbers if not already in the planning doc.For a single issue:
gh issue view <issue-number> --json title,body,milestone to get the
issue details.Check existing specs — List files in tests/scenarios/ and its
subdirectories. Skip any issue that already has a scenario spec file
(matching by Relates to: Issue #N). Report which issues are skipped.
Read existing specs for reference — Read one or two existing specs to understand the project's scenario spec style and conventions.
Confirm with user — Present the list of issues, noting which will get new specs and which are being skipped. Ask the user to confirm before generating.
Generate spec files — For each issue that needs a spec, create a new
file in the appropriate phase subdirectory under tests/scenarios/
(e.g., tests/scenarios/phase-3/), creating the subdirectory if needed.
The filename must be kebab-case derived from the scenario title
(e.g., config-loading.md).
Print summary — List each created file path and any skipped issues.
The canonical scenario spec format is defined in prompts/spec_generator.txt.
Follow that file exactly when generating specs.
The structure is: # Scenario: header, Relates to: Issue #N line, ## Setup
section with fixture prerequisites, and ## Cases section with one or more
### <Case name> subsections each containing a description and outcome bullets.
Relates to: Issue #N line.## Setup section is required even if minimal (e.g., a single bullet
describing the test environment). Never omit it.### Case must have at least one - outcome bullet. A case
without expected outcomes is not testable. If the outcome seems obvious,
state it explicitly anyway — agents need concrete expectations..md.