com um clique
epic
Create a multi-phase epic plan with TDD structure for large features
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Menu
Create a multi-phase epic plan with TDD structure for large features
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Baseado na classificação ocupacional SOC
Create or update the project security baseline, profile, suppressions file, and gitignore entries for security scans
Fix or guide remediation for a specific security finding from the latest scan report
Run a security assessment using deterministic static analysis tools with LLM-powered triage
Inspect and optionally install security scanning tools for the security plugin
Query ctx memory and inject results into context
Show ctx memory status (node counts, types, tiers, tokens)
| name | epic |
| description | Create a multi-phase epic plan with TDD structure for large features |
| argument-hint | <topic> [--no-tdd] |
| when_to_use | Large features spanning multiple phases, multi-session work, TDD-driven development |
| allowed-tools | ["Read","Write","Edit","Grep","Glob","Bash","Bash(${CLAUDE_PLUGIN_ROOT}/scripts/*.sh:*)","LSP","Agent","AskUserQuestion","mcp__mdv__list_contexts","mcp__mdv__navigate_to","mcp__mdv__scroll_to_element","mcp__mdv__get_document_outline","mcp__mdv__add_annotation"] |
Create a multi-phase epic plan. Produces epic.md (full plan) and epic.json (state machine). Do the work directly.
Extract topic from $ARGUMENTS. If missing, show usage and STOP.
--no-tdd skips the tests-first structure.
If .devloop/epic.json exists:
"complete": archive to .devloop/archive/. Continue."in_progress": Report progress. AskUserQuestion: "Archive and replace" or "Cancel".Spawn an Explore agent with run_in_background: true to scan the codebase for context on the topic. Let it report back: tech stack, testing framework, affected areas, existing patterns, risks.
The agent should use LSP.workspaceSymbol to find topic-related symbols and LSP.documentSymbol to map affected file structure. If LSP errors or is unavailable, fall back to Grep + Glob for pattern-based discovery.
Token efficiency: Instruct the Explore agent to cap its report at ~500 words. It should report findings as concise bullet points (file paths + one-line description), not raw file contents. Filter out files unrelated to the epic topic before reporting. This keeps the exploration context lean so the planning phase receives signal, not noise.
AskUserQuestion: "What does 'done' look like for this epic? What should the user/system be able to do when it's complete?"
AskUserQuestion truncates long content -- users cannot scroll inside it. Never embed full content in the question.
Call mcp__mdv__list_contexts. If it succeeds, mdv is available -- remember this for all subsequent reviews. If the tool errors or is not found, mdv is unavailable -- skip all mdv calls for the rest of the session.
.devloop/draft/<name>.md (create .devloop/draft/ if needed)mcp__mdv__navigate_to to open the draft file. Use scroll_to_element or add_annotation to highlight areas needing attention if useful..devloop/draft/<name>.md -- open it in your editor to review."Draft 3-6 user stories from the end state description:
As a [role], I want to [action], so that [benefit].
- Acceptance: [measurable criteria]
Write the full user stories to .devloop/draft/user-stories.md. Output a one-line-per-story summary (role + action only). Follow the Review Pattern above. AskUserQuestion: "Add, remove, or modify any? (Or 'looks good')"
By now the explorer should have returned. Combine codebase context with user stories.
Identify:
Write the full threat model to .devloop/draft/threat-model.md. Output a bullet-per-category summary (category name + count of items). Follow the Review Pattern. AskUserQuestion: "Anything to add, correct, or flag as out of scope?"
If the scope is large, also ask about priorities and constraints.
The human-readable plan. Include these sections:
The state machine. Required fields:
{
"title": "...",
"created": "YYYY-MM-DD",
"status": "planning",
"current_phase": 1,
"test_command": "detected or null",
"end_state": "...",
"user_stories": ["..."],
"invariants": ["..."],
"negative_cases": ["..."],
"phases": [
{"number": 1, "name": "...", "status": "pending", "tasks": N, "committed": null}
]
}
Detect test_command from project files (package.json, Makefile, go.mod, pyproject.toml). Use null if unclear.
Each phase has two sections:
[parallel:A] for independent tests, [model:haiku] for simple ones.[depends:N.M] to link to test tasks.User stories, invariants, and negative cases should inform what gets tested. Each user story should map to at least one test. Invariants become assertions. Negative cases become "should reject" tests.
/clear if context grows heavy)Run ${CLAUDE_PLUGIN_ROOT}/scripts/promote-phase.sh to load Phase 1 into plan.md.
Output a brief summary: title, phase count, total tasks, test command. If mdv is available, navigate to .devloop/epic.md for the full view. Otherwise tell the user the file path.
AskUserQuestion:
/devloop:run-epic./devloop:run-epic when ready."Now: Parse input and begin.