一键导入
plan-2b-v2-prep-issue
Generate terse, industry-standard issue text from specs and plans for Azure DevOps, GitHub Issues, or any tracker. Domain-aware v2.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate terse, industry-standard issue text from specs and plans for Azure DevOps, GitHub Issues, or any tracker. Domain-aware v2.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Brief pre-work alignment for any stage. Use before planning, coding, editing, reviewing, or delegating when the user asks you to understand the thesis, vibe, intent, current position, or direction of a request or existing thing. Returns 2–4 bold-labelled one-sentence observations and one short synthesis, then stops.
The single front door to the SDD pipeline (docs/plans/): research → plan → workshop → ADR → phase tasks → implement → progress → review → ship. Use when the user wants to plan, research, explore, specify or architect (now one atomic 'plan' step → one document: business spec + implementation plan), clarify, workshop, write an ADR, break a phase into tasks, implement or build a phase (optionally with a live review companion), update progress, code-review, or ship a plan (push + PR + watch checks) — or types /the-flow (or a legacy /plan-N command), or asks to start, resume, or adopt a plan flow. Guided mode (no args) coaches from durable on-disk state; direct jump runs one stage: /the-flow <id> <verb> [flags] — 1a explore, 1b plan (spec + plan in one doc; incl. clarify), 2c workshop, 3a adr, 5 tasks, 6 implement (--companion for live review), 6a progress, 7 review, 8 ship, 8c reconcile. Ids and verbs resolve alone; printed commands carry both.
Adaptive, high-signal post-action validation for whatever was just produced — unified plan, tasks, code change, workshop, legacy spec, or any artifact. Proves the claims that matter, reports only findings likely to change action, and adds independent critics only when risk or uncertainty earns them. Thesis- and consumer-aware; read-only through adjudication; compact verdict.
Pre-task token discipline. Use before any task when every read, tool call, line of reasoning, and output token must materially advance the stated goal or thesis, without weakening correctness or safety.
FlowSpace-first codebase research agent for parallel subagent exploration with structured output for parent orchestrator synthesis. Domain-aware v2.
Establish or refresh the project constitution and align the supporting norms documents before any planning phases begin. Re-entrant command that preserves user customizations during updates. Domain-aware v2.
| name | plan-2b-v2-prep-issue |
| description | Generate terse, industry-standard issue text from specs and plans for Azure DevOps, GitHub Issues, or any tracker. Domain-aware v2. |
Please deep think / ultrathink as this is a complex task.
Generate concise, well-structured issue text from the feature specification and plan artifacts. This command creates terse, actionable issue content suitable for any issue tracker (GitHub, Azure DevOps, Jira, etc.).
Purpose: Extract clarity from complex specs. The issue is a signpost, not a replacement for the spec.
Use Complexity Score (CS 1-5) only — no hours, days, or story points.
User input:
$ARGUMENTS
# Optional flags:
# --phase N # Generate Story/Task level issue for phase N (requires /the-flow 5 output)
# --type TYPE # Override auto-detected type: feature|story|task
## Workflow
1) **Resolve plan folder and artifacts**:
- Parse user input for plan folder path or feature slug
- PLAN_DIR = `docs/plans/<ordinal>-<slug>/`
- Locate available artifacts:
* SPEC_FILE = `${PLAN_DIR}/<slug>-spec.md` (REQUIRED)
* PLAN_FILE = `${PLAN_DIR}/<slug>-plan.md` (optional)
* TASKS_DIR = `${PLAN_DIR}/tasks/` (optional)
- If SPEC_FILE not found: ERROR "Spec not found. Run /the-flow 1b first."
2) **Load domain context** (additive — skip if no domains):
- If `docs/domains/registry.md` exists → read registered domains
- If `docs/domains/domain-map.md` exists → read domain topology
- Read `## Target Domains` from SPEC_FILE (if present) → DOMAIN_LIST
- If PLAN_FILE exists → read `## Target Domains` and `## Domain Manifest` tables
- For each domain in DOMAIN_LIST → read `docs/domains/<slug>/domain.md` for:
* Concepts, contracts, dependencies
- Identify CROSS_DOMAIN_DEPS: domains that depend on each other per domain map
- HAS_DOMAINS = true if any domain info found, false otherwise
3) **Determine issue type** (auto-detect or use --type flag):
- If --phase N provided AND `${TASKS_DIR}/phase-N-*/tasks.md` exists:
* TYPE = story (or task if --type task)
* PHASE_DOSSIER = the tasks.md file
- Else if PLAN_FILE exists:
* TYPE = feature (plan context available)
- Else:
* TYPE = feature (spec-only)
4) **Extract content from artifacts**:
**From SPEC_FILE** (always read):
- TITLE = H1 heading text
- SUMMARY = ## Summary section (2-3 sentences)
- GOALS = ## Goals section (bullet points)
- NON_GOALS = ## Non-Goals section (bullet points)
- AC = ## Acceptance Criteria section (numbered list)
- COMPLEXITY = ## Complexity section (CS score and breakdown)
- RISKS = ## Risks & Assumptions section (key risks only)
- TARGET_DOMAINS = ## Target Domains section (if present)
**From PLAN_FILE** (if exists and TYPE = feature):
- CRITICAL_FINDINGS = top 3 from Key Findings section
- PHASE_COUNT = number of Implementation Phases
- ADR_REFS = any ADR references
- DOMAIN_MANIFEST = ## Domain Manifest table (file → domain mapping)
**From PHASE_DOSSIER** (if TYPE = story/task):
- PHASE_TITLE = Phase heading
- PHASE_OBJECTIVE = from context brief / Purpose
- PHASE_TASKS = task count from tasks table
- PHASE_AC = derive from task Success Criteria column (observable outcomes)
- PHASE_DOMAIN = Domain column from task table (primary domain for this phase)
5) **Generate issue content**:
**For TYPE = feature**:
```markdown
# [TITLE]
**Type**: Feature
**Complexity**: [COMPLEXITY score] ([S,I,D,N,F,T breakdown])
[If HAS_DOMAINS:]
**Domain**: [primary domain from TARGET_DOMAINS, or "multiple — see Domain Impact"]
## Objective
[SUMMARY - 2-3 sentences on WHAT and WHY]
## Acceptance Criteria
[AC - numbered, testable criteria from spec]
## Goals
[GOALS - bullet points]
## Non-Goals
[NON_GOALS - bullet points, keep terse]
## Context
[If PLAN_FILE exists: "[PHASE_COUNT] implementation phases planned. See plan for details."]
[If CRITICAL_FINDINGS: Brief mention of top constraint/finding]
[If ADR_REFS: "Key decisions documented in: [ADR links]"]
[If HAS_DOMAINS AND CROSS_DOMAIN_DEPS:]
### Cross-Domain Dependencies
[List domain pairs with dependency direction and contract type, one line each.
Example: "`billing` → `auth` (consumes: user identity contract)"]
[If HAS_DOMAINS:]
## Domain Impact
| Domain | Status | Relationship | Changes |
|--------|--------|-------------|---------|
[From TARGET_DOMAINS table — one row per domain touched]
[If DOMAIN_MANIFEST exists: "See plan Domain Manifest for full file mapping."]
## Key Risks
[Top 2-3 risks from RISKS section, one line each]
## Labels
[If HAS_DOMAINS: Suggest domain labels, e.g., `domain:auth`, `domain:billing`]
[Always suggest type label: `type:feature`]
[If COMPLEXITY: suggest complexity label, e.g., `complexity:cs-3`]
## References
- Spec: `[relative path to SPEC_FILE]`
[If PLAN_FILE exists:]
- Plan: `[relative path to PLAN_FILE]`
---
*Generated from spec. See referenced documents for implementation details.*
For TYPE = story:
# [PHASE_TITLE]
**Type**: Story
**Parent**: [TITLE] (Feature)
**Phase**: [N] of [PHASE_COUNT]
[If HAS_DOMAINS:]
**Domain**: [PHASE_DOMAIN — primary domain for this phase]
## Objective
[PHASE_OBJECTIVE from context brief]
## Acceptance Criteria
[PHASE_AC - derived from task success criteria, numbered]
## Scope
- Tasks: [PHASE_TASKS count]
- [Brief scope from phase deliverables]
## Non-Goals (This Phase)
[From phase brief Non-Goals section if exists]
[If HAS_DOMAINS AND phase touches multiple domains:]
## Cross-Domain Notes
[Which other domains this phase touches and why — one line each]
## Labels
[If HAS_DOMAINS: `domain:[PHASE_DOMAIN]`]
`type:story`, `phase:[N]`
## References
- Spec: `[relative path to SPEC_FILE]`
- Plan: `[relative path to PLAN_FILE]`
- Phase Dossier: `[relative path to PHASE_DOSSIER]`
---
*Generated from phase dossier. See referenced documents for task details.*
For TYPE = task:
# [Task description from tasks table]
**Type**: Task
**Parent**: [PHASE_TITLE] (Story)
**Task ID**: [T00N]
[If HAS_DOMAINS:]
**Domain**: [domain from task table Domain column]
## Objective
[Task description with context]
## Done When
[Success criteria from tasks table]
## Dependencies
[From Dependencies column, or "None"]
[If HAS_DOMAINS and task depends on another domain's contract:]
⚠️ Cross-domain: depends on `[other-domain]` contract — coordinate changes.
## Labels
[If HAS_DOMAINS: `domain:[task-domain]`]
`type:task`
## References
- Phase Dossier: `[relative path to PHASE_DOSSIER]`
---
*Generated from task dossier.*
Save issue file:
${PLAN_DIR}/issues/ directory if not exists${PLAN_DIR}/issues/feature-[ISSUE_SLUG].md${PLAN_DIR}/issues/story-phase-[N]-[ISSUE_SLUG].md${PLAN_DIR}/issues/task-[TASK_ID]-[ISSUE_SLUG].mdPresent output:
✅ Issue generated: [relative path to issue file]
Type: [feature|story|task]
Title: [TITLE]
Complexity: [CS score]
[If HAS_DOMAINS: "Domains: [list]"]
[If HAS_DOMAINS: "Suggested labels: [domain labels]"]
[Display generated issue content]
---
Copy the above to your issue tracker, or:
- Run again with --phase N for story-level issues
- Request additional issues for other phases