epic-meta-prompting
Skill94 starsChanged 7 months agoMITView on GitHub
Generate research and planning prompts for epic workflows using isolated sub-agents. Use meta-prompting to create research and planning pipelines via /create-prompt and /run-prompt, preventing context pollution through isolated execution. The create-prompt skill will: Auto-execute research prompt: Research outputs: Alternative: /meta:enforce-git-commits --phase "epic-research" The create-prompt skill will: Auto-execute plan prompt: Plan outputs: Alternative: /meta:enforce-git-commits --phase "epic-plan" If auto-mode enabled: If interactive mode: After plan review (interactive):
In this repository48 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .codex/Agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- analysis-phaseSkill
- anti-duplicationSkill
- audit-claude-mdSkill
- breaking-change-detectorSkill
- caching-strategySkill
- clarification-phaseSkill
- create-agent-skillsSkill
- create-hooksSkill
- create-meta-promptsSkill
- create-slash-commandsSkill
- create-subagentsSkill
- debug-phaseSkill
- dependency-conflict-resolverSkill
- design-tokensSkill
- domain-memorySkill
- dry-runSkill
- epic-scopingSkill
- epic-sprintsSkill
- epic-walkthroughSkill
- error-recoverySkill
- finalize-phaseSkill
- git-workflow-enforcerSkill
- hallucination-detectorSkill
- implementation-phaseSkill
- mockup-extractionSkill
- multi-agent-votingSkill
- optimization-phaseSkill
- parallel-execution-optimizerSkill
- planning-phaseSkill
- production-deployment-phaseSkill
- project-initialization-phaseSkill
- regression-test-generatorSkill
- roadmap-integrationSkill
- session-boundarySkill
- shadcn-integrationSkill
- specification-phaseSkill
- staging-deployment-phaseSkill
- staging-validation-phaseSkill
- task-breakdown-phaseSkill
- task-status-syncSkill
- theme-consistencySkill
- ultrathinkSkill
- workflow-detectionSkill
- worktree-contextSkill
- x-announcementSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 7
Use meta-prompting to create research and planning pipelines via /create-prompt and /run-prompt, preventing context pollution through …
- Distinctive: line 12
After epic specification is complete and reviewed
- Distinctive: line 24
Ask contextual questions (depth, sources, output format)
- Very specific: line 122
Update phases status automatically in state.yaml
- Very specific: line 127
Update state.yaml with approval status
- Distinctive: line 131
After plan review (interactive):
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Epic Meta-Prompting Skill
Generate research and planning prompts for epic workflows using isolated sub-agents.
Purpose
Use meta-prompting to create research and planning pipelines via /create-prompt and /run-prompt, preventing context pollution through isolated execution.
When to Invoke
- During
/epicStep 3 (Research & Planning phase) - After epic specification is complete and reviewed
- Skip if resuming past the planning phase
Research Prompt Generation
/create-prompt "Research technical approach for: [epic objective]"The create-prompt skill will:
- Detect purpose: Research
- Ask contextual questions (depth, sources, output format)
- Generate research prompt in
.prompts/001-[epic-slug]-research/ - Reference relevant project docs (@docs/project/tech-stack.md)
- Specify XML output format with metadata
Auto-execute research prompt:
/run-prompt 001-[epic-slug]-researchResearch outputs:
.prompts/001-[epic-slug]-research/research.md- Contains: findings, confidence levels, dependencies, open questions, assumptions
Copy and Commit Research
# Copy research.md to epic directory
cp .prompts/001-${EPIC_SLUG}-research/research.md epics/${EPIC_SLUG}/research.md
# Extract metadata for commit message
FINDINGS_COUNT=$(xmllint --xpath 'count(//finding)' epics/${EPIC_SLUG}/research.md)
CONFIDENCE=$(xmllint --xpath 'string(//confidence_level)' epics/${EPIC_SLUG}/research.md)
OPEN_QUESTIONS=$(xmllint --xpath 'count(//open_question)' epics/${EPIC_SLUG}/research.md)
# Commit research
git add .prompts/001-${EPIC_SLUG}-research/
git add epics/${EPIC_SLUG}/research.md
git commit -m "docs(epic-research): complete technical research for ${EPIC_SLUG}
Findings: ${FINDINGS_COUNT}
Confidence: ${CONFIDENCE}
Open questions: ${OPEN_QUESTIONS}
Next: Planning phase"Alternative: /meta:enforce-git-commits --phase "epic-research"
Planning Prompt Generation
/create-prompt "Create implementation plan based on research"The create-prompt skill will:
- Detect purpose: Plan
- Reference research.md from step above
- Generate plan prompt in
.prompts/002-[epic-slug]-plan/ - Specify plan.md output with phases, tasks, constraints
Auto-execute plan prompt:
/run-prompt 002-[epic-slug]-planPlan outputs:
.prompts/002-[epic-slug]-plan/plan.md- Contains: architecture decisions, implementation phases, dependencies, risks
Copy and Commit Plan
# Copy plan.md to epic directory
cp .prompts/002-${EPIC_SLUG}-plan/plan.md epics/${EPIC_SLUG}/plan.md
# Extract metadata for commit message
ARCH_DECISIONS=$(xmllint --xpath 'count(//architecture_decision)' epics/${EPIC_SLUG}/plan.md)
PHASE_COUNT=$(xmllint --xpath 'count(//phase)' epics/${EPIC_SLUG}/plan.md)
DEPENDENCY_COUNT=$(xmllint --xpath 'count(//dependency)' epics/${EPIC_SLUG}/plan.md)
RISK_COUNT=$(xmllint --xpath 'count(//risk)' epics/${EPIC_SLUG}/plan.md)
# Commit plan
git add .prompts/002-${EPIC_SLUG}-plan/
git add epics/${EPIC_SLUG}/plan.md
git commit -m "docs(epic-plan): create implementation plan for ${EPIC_SLUG}
Architecture decisions: ${ARCH_DECISIONS}
Phases: ${PHASE_COUNT}
Dependencies: ${DEPENDENCY_COUNT}
Risks: ${RISK_COUNT}
Next: Sprint breakdown"Alternative: /meta:enforce-git-commits --phase "epic-plan"
Auto-Mode Handling
If auto-mode enabled:
- Skip PAUSE points (spec review, plan review)
- Auto-execute
/run-promptafter/create-prompt - Update phases status automatically in state.yaml
If interactive mode:
- PAUSE: "Plan review complete. Continue to sprint breakdown? (y/n)"
- Update state.yaml with approval status
State Updates
After plan review (interactive):
manual_gates:
plan_review:
status: approved
approved_at: { ISO_TIMESTAMP }
approved_by: user
phases:
research:
status: completed
completed_at: { ISO_TIMESTAMP }
planning:
status: completed
completed_at: { ISO_TIMESTAMP }Velocity Benefit
- Research phase: 1-2 hours (vs 4+ hours manual research)
- Planning phase: 1-2 hours (vs 3+ hours manual planning)
- Total: 3-4x faster with meta-prompting
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

