submit-epic
Use when the user asks Pi to submit, create, or draft a new HEPHA EPIC directly from a registered project workspace, preserving the useful legacy DevCycle MCP submit-epic command, for example "submit-epic for HEPHA build observability projection hooks" or "create a HEPHA EPIC titled Runtime Approval Gates".
- License 许可
- MIT
- 最近更新
- 2026-10-31
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- submit-epic
- description
- Use when the user asks Pi to submit, create, or draft a new HEPHA EPIC directly from a registered project workspace, preserving the useful legacy DevCycle MCP submit-epic command, for example "submit-epic for HEPHA build observability projection hooks" or "create a HEPHA EPIC titled Runtime Approval Gates".
- agent_action
- submit-epic
03 SKILL.md 正文
Submit Epic
Model Authority
This procedure is model-neutral. When invoked directly, execution is
direct_host and remains in the current Pi, Codex, or Claude Code session; that
active host owns model selection. Do not query Hepha routing policy, request a
model switch, automatically hand off, choose a fallback model, or fabricate
route-policy evidence. Direct execution does not fabricate an orchestrated
receipt. Only an explicit Hepha launcher or dashboard dispatch creates a
separate orchestrated worker, whose route is injected outside this skill.
You are executing the HEPHA submit-epic workflow directly from Pi.
This skill adapts the useful contract from the legacy DevCycle MCP
submit-epic command to HEPHA's current portable MemoryBank workflow.
Persona
Act as a Strategic Product Architect: vision-oriented, thorough, practical, and alignment-focused. Think in terms of business outcomes, user value, dependencies, strategic sequencing, and implementation posture.
Objective
Create a new EPIC folder under MemoryBank/Features/00_EPICS/ with a complete
EpicDescription.md, assign the next EPIC-XXX id, update
NEXT_EPIC_ID.txt, and report the created location and recommended next steps.
Required Inputs
Accept these from the user's message:
- EPIC description or initiative idea; required;
- optional title;
- optional external reference or issue id;
- optional owner;
- optional priority:
Critical,High,Medium, orLow; - optional project name or alias, such as
HEPHA,Hepha, orAgenticDevelopmentProcess; - optional MemoryBank path override.
If the EPIC description is missing, ask one concise question. Otherwise infer safely. If no project is named, default to HEPHA / AgenticDevelopmentProcess when the workspace contains that child project or the current directory is inside it.
Workspace And Project Resolution
- Treat the current directory as the workspace starting point.
- Resolve the active project named by the user and locate its repository root.
- Read the project
AGENTS.mdand project brief or MemoryBank overview when present before editing. - Resolve the active project:
HEPHA,Hepha, andAgenticDevelopmentProcessmap to<workspace root>/AgenticDevelopmentProcess.- If the user names another project, use
docs/projects.mdor the nearest child repo folder matching that name.
- Read the child project
AGENTS.mdandREADME.mdwhen present. - Run project git and file commands from the child project root, not from the parent workspace.
MemoryBank Resolution
Resolve the MemoryBank in this order:
- User-supplied MemoryBank path, if present.
.hepha/projects.jsonin the child project, matching projectname,id, or child root path.<child project root>/MemoryBankwhen it containsFeatures/.- A direct search under the child root for
MemoryBank/Features.
If no MemoryBank can be resolved, ask the user for the MemoryBank path. Do not create a new MemoryBank unless the user explicitly requests initialization.
Required Context Reads
Before creating the EPIC, read enough context to avoid duplicates and align the new EPIC:
- project
README.mdwhen present; MemoryBank/Overview/when present;MemoryBank/Architecture/when present;- existing
MemoryBank/Features/00_EPICS/*/EpicDescription.mdfiles; - existing FEAT folders under
MemoryBank/Features/01_SUBMITTED,02_READY_TO_DEVELOP,03_IN_PROGRESS,04_COMPLETED, and05_CANCELLEDwhen useful for duplicate detection and relationship hints.
If these folders are empty or missing, note that this appears to be an early-stage project and continue.
Duplicate And Scope Check
Before assigning the id:
- Compare the requested initiative against existing EPIC titles, summaries, problem statements, and feature breakdowns.
- If an existing EPIC clearly covers the same scope, stop and report the likely duplicate path instead of creating a new EPIC.
- If the scope overlaps but is distinct, create the EPIC and include the
relationship or boundary in
Out of Scope,Risks and Mitigations, orNext Steps. - If the description is vague but still points to a strategic initiative, generate the EPIC anyway and add a note that Deep-Dive should clarify the unknowns.
ID And Folder Creation
- Ensure
MemoryBank/Features/00_EPICS/exists. - Read or create
MemoryBank/Features/00_EPICS/NEXT_EPIC_ID.txt:- if missing, create it with
1and use1; - if present, read the integer and use it;
- after successful EPIC creation, increment and write the next integer.
- if missing, create it with
- Format the id as
EPIC-XXX, zero-padded, for exampleEPIC-011. - Generate the title:
- use the user-supplied title when provided;
- otherwise generate a 3-8 word strategic, outcome-oriented title;
- avoid punctuation and special characters in the title.
- Generate the folder slug:
- lowercase;
- hyphen-separated;
- no special characters;
- max about 50 characters;
- format:
EPIC-XXX-slug.
- If the target folder already exists, stop and report the conflict. Do not overwrite.
EpicDescription.md Required Structure
Create EpicDescription.md in the new folder with this structure, adapted to
project context and the user's description:
# EPIC-XXX: {Title}
| Field | Value |
|-------|-------|
| Epic ID | EPIC-XXX |
| State | NotStarted |
| Created | {YYYY-MM-DD} |
| Target Completion | TBD - define during planning |
| Owner | {owner or TBD} |
| Priority | {Critical / High / Medium / Low} |
| External Reference | {external reference or N/A} |
## Executive Summary
{What are we building? Why? Who benefits?}
## Problem Statement
{Current pain points, impact of not solving, missed opportunities.}
## Success Criteria
- [ ] {Measurable outcome 1}
- [ ] {Measurable outcome 2}
- [ ] {Measurable outcome 3}
## Implementation Posture
State whether this EPIC is expected to be:
- audit-only;
- audit-and-hardening; or
- formal new implementation for missing behavior.
If the answer is uncertain, say what Deep-Dive must clarify. For Hepha platform
work, do not label an EPIC as audit-only when the requested behavior is known to
be missing or visibly broken.
## Features Breakdown
| Feature ID | Title | Status | Dependencies | Priority |
|------------|-------|--------|--------------|----------|
| TBD | {Suggested feature 1} | SUBMITTED | None | P1 |
| TBD | {Suggested feature 2} | SUBMITTED | {Feature 1 or TBD} | P1 |
| TBD | {Suggested feature 3} | SUBMITTED | {TBD} | P2 |
> Feature IDs are assigned when created via the future `create-epic-features`
> or `submit-feature` workflow.
## Epic Progress
**State:** NotStarted
**Progress:** 0% (0/{N} features complete)
| Status | Count | Features |
|--------|-------|----------|
| Completed | 0 | - |
| In Progress | 0 | - |
| Ready | 0 | - |
| Submitted | {N} | TBD |
## Dependency Flow Diagram
```mermaid
flowchart TD
subgraph "EPIC-XXX: {Title}"
direction TB
F1[{Feature 1}]
F2[{Feature 2}]
F3[{Feature 3}]
F1 --> F2
F1 --> F3
end
classDef notStarted fill:#6c757d,color:white,stroke:#495057
classDef designed fill:#6c757d,color:white,stroke:#17a2b8
classDef ready fill:#6c757d,color:white,stroke:#28a745
classDef inProgress fill:#ffc107,color:black,stroke:#e0a800
classDef completed fill:#28a745,color:white,stroke:#1e7e34
classDef cancelled fill:#dc3545,color:white,stroke:#c82333
class F1,F2,F3 notStarted
```
## Feature Details
### Feature 1: {Title}
**User Story:** As a {user}, I want {capability} so that {benefit}.
**Scope:**
- {scope item}
**Dependencies:** None
### Feature 2: {Title}
**User Story:** As a {user}, I want {capability} so that {benefit}.
**Scope:**
- {scope item}
**Dependencies:** Feature 1
### Feature 3: {Title}
**User Story:** As a {user}, I want {capability} so that {benefit}.
**Scope:**
- {scope item}
**Dependencies:** Feature 1
## Out of Scope
- {Explicit boundary}
## Risks and Mitigations
| Risk | Impact | Likelihood | Mitigation |
|------|--------|------------|------------|
| {risk} | H/M/L | H/M/L | {strategy} |
## Progress Tracking
| Feature ID | Status | Started | Completed | Notes |
|------------|--------|---------|-----------|-------|
| TBD | SUBMITTED | - | - | {Feature 1} |
| TBD | SUBMITTED | - | - | {Feature 2} |
| TBD | SUBMITTED | - | - | {Feature 3} |
**Overall Progress:** 0/{N} features complete (0%)
## Next Steps
1. Run `deep-dive` to validate assumptions and answer open questions.
2. Extract or create child FEATs from the Features Breakdown.
3. Refine the first child FEAT before implementation.
Content Rules
- Use practical product language, not hype.
- Keep feature suggestions discrete and deliverable.
- Prefer 3-7 child feature suggestions unless the user explicitly asks for a smaller/larger EPIC.
- Include dependencies that make sequencing clear.
- Include an Implementation Posture section so future Deep-Dive/refinement does not mistake formal new implementation for a simple audit.
- Mark uncertain details as assumptions or Deep-Dive questions, not as facts.
- Do not create child FEAT folders in this skill. This skill creates only the EPIC and updates the EPIC counter.
- Do not move board state directly beyond creating the new EPIC under
00_EPICS. - Do not edit unrelated EPICs or FEATs unless needed to prevent a duplicate and the user explicitly approves.
Completion Checklist
This skill is done when:
- workspace and project context were read;
- MemoryBank path was resolved;
- existing EPICs were checked for duplicates;
NEXT_EPIC_ID.txtwas read/created and incremented after successful creation;- EPIC folder was created under
MemoryBank/Features/00_EPICS/; EpicDescription.mdwas written with the required structure;- a concise submission summary was presented.
Confirmation Response
After creation, respond with:
Epic Submitted Successfully
- Epic ID: EPIC-XXX
- Title: {title}
- Location: {MemoryBank}/Features/00_EPICS/{folder}/
Next Steps:
1. Run `deep-dive` for EPIC-XXX.
2. Create child FEATs from the Features Breakdown.
3. Refine the first child FEAT before implementation.
Error Recovery
| Scenario | Action |
|---|---|
| Folder already exists | Report conflict and do not overwrite. |
| Counter is invalid | Inspect existing EPIC folders, choose max existing id + 1, then rewrite NEXT_EPIC_ID.txt after creation. |
| Cannot write files | Report the failing path and step. |
| Existing EPIC appears duplicate | Stop and report duplicate candidate path. |
| Description is vague | Generate the EPIC with explicit assumptions and Next Steps requiring Deep-Dive. |
04 同仓库更多 Skills
serialized-build-commands
Agents should invoke this skill before running build, test, lint, or format commands that use shared caches, file locks, build directories, or package manager state. Use especially before Rust Cargo commands such as cargo check, cargo test, cargo clippy, cargo fmt, cargo build, or any shell command containing cargo.
start-feature
Use when the user asks Pi to start a HEPHA FEAT implementation, run start-feature, or run start-implementing for a READY FEAT from a registered project workspace, for example "use the start-feature skill for FEAT-003".
refine-feature
Use when the user asks Pi to run refine-feature, refine a HEPHA FEAT, create FeatureTasks and phase files, or move a clarified FEAT to Ready To Develop, for example "refine-feature FEAT-004" or "Use the refine-feature skill for HEPHA FEAT-004".
design-feature
Use when the user asks Pi to run design-feature, design a HEPHA FEAT, create UI requirements, or prepare UX/design artifacts for a FEAT, for example "design-feature FEAT-004" or "Use the design-feature skill for HEPHA FEAT-004".
deep-dive
Use when the user asks Pi to run a HEPHA Deep-Dive for an EPIC or FEAT, gather Deep-Dive questions, or apply saved Deep-Dive answers to a MemoryBank document, for example "use the deep-dive skill for HEPHA FEAT-004".
continue-implementation
Use when the user asks Pi to continue implementation, continue-implementing, resume implementation, or run a HEPHA FEAT implementation such as "use the skill continue implementation for FEAT-002" from a registered project workspace.