ワンクリックで
workflows-deepen-plan
Enhance a plan with dynamic skill/agent discovery and targeted research
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Enhance a plan with dynamic skill/agent discovery and targeted research
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Generate clean, minimal technical SVG diagrams in a consistent Cloudflare-inspired style. Use when creating architecture diagrams, flow diagrams, or component diagrams for blog posts and documentation.
Guides creation and improvement of best-practice agent skills following the open format specification. Covers frontmatter, directory structure, progressive disclosure, reference files, rules folders, degrees of freedom, content patterns, executable scripts, MCP tool references, evaluations, cross-model testing, and a ten-dimension audit protocol for existing skills. Use when creating a new skill, authoring SKILL.md, setting up a rules-based audit skill, structuring a skill bundle, writing scripts inside a skill, evaluating a skill, improving or rewriting an existing skill, or asking "how to write a skill", "improve this skill", "audit my skill", or "review this SKILL.md".
Diagnoses Erivault application behavior across product docs, repo code, Cloudflare, Neon Postgres, queues, Durable Objects, R2 assets, AI Gateway, media workflows, browser, and mobile capture state. Use when investigating Erivault bugs, asking "what happened", checking logs, verifying deploys, debugging capture evidence, or designing testable diagnostics.
Design a new product module's full screen set in the Erivault `erivault-web` Paper file, reusing the established design system (tokens, shell, components) and grounded in the module's ADR + implementation plan. Covers researching the existing system, extracting authoritative tokens, planning the state×role×platform matrix, building screens via duplicate-and-adapt, and tying into existing surfaces. Use when designing a new module or surface (tenancies, inspections, renewals, capture, packs...) in Paper, extending the erivault-web design file, building all states/roles for a feature on web and mobile, or when the user says "design the X module", "design a new flow", "design X in the Paper board", "add the screens for X", or "make it consistent with our design system".
View and edit cmux settings in ~/.config/cmux/cmux.json. Use when the user wants to change cmux preferences (appearance, sidebar, notifications, automation, browser, shortcuts), set a value by JSON path, validate the file, open it in an editor, or look up which keys cmux recognizes. Triggers on '/cmux-settings', 'change cmux setting', 'set <something> in cmux', 'cmux config', 'cmux.json', or 'rebind a cmux shortcut'.
Perform exhaustive code reviews using multi-agent analysis and dynamic skill discovery
| name | workflows-deepen-plan |
| description | Enhance a plan with dynamic skill/agent discovery and targeted research |
When this skill needs user questions, todo/progress tracking, subagents, or another skill, use the active runtime equivalents in RUNTIME_TOOLS.md.
Enhance an existing plan with dynamic skill/agent discovery and targeted research.
<plan_path> $ARGUMENTS </plan_path>
If empty: Check ls docs/plans/ and ask user which plan to deepen.
Read the plan folder contents:
spec.md - Human-readable planprd.json - Machine-executable storiesbrainstorm.md - Optional contextParse and identify:
Scan all skill paths:
# Shared user skills
find ~/.agents/skills -name "SKILL.md" 2>/dev/null
# Runtime/plugin skills when exposed by the active agent runtime
find ~/.codex/plugins ~/.claude/plugins ~/.config/opencode/plugins -name "SKILL.md" 2>/dev/null
Extract skill metadata from each SKILL.md:
for skill_file in $(find ~/.agents/skills ~/.codex/plugins ~/.claude/plugins ~/.config/opencode/plugins -name "SKILL.md" 2>/dev/null); do
# Extract frontmatter
name=$(sed -n '/^---$/,/^---$/p' "$skill_file" | grep "^name:" | cut -d: -f2- | xargs)
description=$(sed -n '/^---$/,/^---$/p' "$skill_file" | grep "^description:" | cut -d: -f2-)
echo "SKILL|$name|$description"
done
Build skill registry:
| Skill | Triggers On |
|---|---|
| (dynamically populated from SKILL.md descriptions) |
Scan agent paths:
# User agents by runtime
find ~/.claude/agents -name "*.md" 2>/dev/null
find ~/.codex/agents -name "*.toml" 2>/dev/null
find ~/.config/opencode/agents -name "*.md" 2>/dev/null
# Plugin agents when exposed by the active agent runtime
find ~/.codex/plugins ~/.claude/plugins ~/.config/opencode/plugins -path "*/agents/*" 2>/dev/null
Extract agent metadata from each runtime file:
for agent_file in $(find ~/.claude/agents ~/.config/opencode/agents ~/.codex/agents ~/.codex/plugins ~/.claude/plugins ~/.config/opencode/plugins -path "*/agents/*" 2>/dev/null); do
# Markdown agents use YAML frontmatter; Codex agents use TOML.
name=$(sed -n '/^---$/,/^---$/p' "$agent_file" | grep "^name:" | cut -d: -f2- | xargs)
[ -z "$name" ] && name=$(grep '^name = ' "$agent_file" | cut -d= -f2- | tr -d '" ' | xargs)
description=$(sed -n '/^---$/,/^---$/p' "$agent_file" | grep "^description:" | cut -d: -f2-)
[ -z "$description" ] && description=$(grep '^description = ' "$agent_file" | cut -d= -f2- | xargs)
category=$(dirname "$agent_file" | xargs basename)
echo "AGENT|$name|$category|$description"
done
Agent paths:
~/.claude/agents/*.md → Claude user agents
~/.codex/agents/*.toml → Codex user agents
~/.config/opencode/agents/*.md → OpenCode user agents
runtime plugin agent paths → plugin agents when exposed
Build agent registry from discovery:
| Agent | Category | Use When |
|---|---|---|
| (dynamically populated from agent .md descriptions) |
For each story in prd.json:
For story in prd.stories:
matched_skills = []
matched_agents = []
# Match by category
if story.category == "ui":
matched_skills += ["frontend-design", "emil-design-engineering", "web-design-guidelines"]
matched_agents += ["design-implementation-reviewer"]
if story.category == "performance":
matched_agents += ["performance-oracle"]
if story.category == "integration":
matched_agents += ["security-sentinel", "silent-failure-hunter"]
if story.category == "edge-case":
matched_agents += ["silent-failure-hunter"]
# Match by breadboard presence
if spec_has_breadboard:
matched_agents += ["breadboard-reflection"]
# Match by keywords in title/acceptance_criteria
keywords = extract_keywords(story.title + story.acceptance_criteria)
for skill in discovered_skills:
if skill.triggers_match(keywords):
matched_skills.append(skill.name)
# Match by tech stack (detected from spec.md)
if "react" in tech_stack or "next" in tech_stack:
matched_skills += ["vercel-react-best-practices"]
if "component" in keywords:
matched_skills += ["vercel-composition-patterns"]
if "animation" in keywords or "transition" in keywords:
matched_skills += ["web-animation-design"]
if "stripe" in keywords or "payment" in keywords:
matched_skills += ["stripe-best-practices"]
matched_agents += ["security-sentinel"]
if "form" in keywords or "input" in keywords:
matched_skills += ["emil-design-engineering"]
# Update story
story.skills = dedupe(matched_skills)
story.validation_agents = dedupe(matched_agents)
For each unique skill matched to any story:
load skill `skill-name` with the active runtime skill loader
Extract concrete recommendations for the plan.
Gate: Only run if spec.md contains breadboard affordance tables (UI Affordances, Code Affordances).
Validation checks:
Output: Add validation results to spec.md Enhancement Summary section.
Also: Add breadboard-reflection to the agent discovery registry so it can be matched to stories that reference breadboard affordances.
Use Context7 for frameworks/libraries detected:
mcp__plugin_context7_context7__resolve-library-id: Find ID for [framework]
mcp__plugin_context7_context7__query-docs: Query specific patterns
Only run 2-3 agents most relevant to plan content.
Select based on:
Task [agent-name]: "Review this plan: [spec.md content]"
Run matched agents in parallel.
For relevant sections, add:
### Research Insights
**Best Practices:**
- [Concrete recommendation from skill/agent]
**Implementation Details:**
```typescript
// Code example from framework docs
Edge Cases:
References:
### 9. Update prd.json
Update each story with discovered skills and agents:
```json
{
"id": 1,
"title": "User can create account form",
"category": "ui",
"skills": ["frontend-design", "emil-design-engineering", "vercel-react-best-practices"],
"validation_agents": ["design-implementation-reviewer", "code-reviewer"],
...
}
At top of spec.md:
## Enhancement Summary
**Deepened:** YYYY-MM-DD
**Skills discovered:** [count] available, [count] matched
**Agents consulted:** [list]
### Key Improvements
1. [Improvement]
2. [Improvement]
### Skills Applied to Stories
| Story | Skills | Validation Agents |
|-------|--------|-------------------|
| #1 Create account form | frontend-design, emil-design-engineering | design-implementation-reviewer |
~/.agents/skills/*/SKILL.md
runtime plugin skill paths when exposed
~/.claude/agents/*.md
~/.codex/agents/*.toml
~/.config/opencode/agents/*.md
runtime plugin agent paths when exposed
Plugin agents include:
pr-review-toolkit: code-reviewer, silent-failure-hunter, code-simplifier, comment-analyzer, pr-test-analyzer, type-design-analyzerfeature-dev: code-explorer, code-architectplugin-dev: agent-creator, skill-reviewer, plugin-validatorhookify: conversation-analyzer---
name: skill-or-agent-name
description: When to use this. Triggers on: keyword1, keyword2, ...
---
The description field contains trigger keywords - use these for matching.
| Category | Default Skills | Default Agents |
|---|---|---|
functional | (tech-stack based) | code-reviewer |
ui | frontend-design, emil-design-engineering, web-design-guidelines | design-implementation-reviewer |
integration | (service-specific) | security-sentinel, silent-failure-hunter |
edge-case | - | silent-failure-hunter |
performance | vercel-react-best-practices | performance-oracle |
| Tech Detected | Skills |
|---|---|
| React, Next.js | vercel-react-best-practices |
| Component architecture | vercel-composition-patterns |
| Animation, transition, motion | web-animation-design |
| Stripe, payments | stripe-best-practices |
| Form, input, validation | emil-design-engineering |
| Browser automation | agent-browser |
| Code search, AST | ast-grep |
Ask user:
/workflows-work - Begin implementationNEVER CODE! Just research and enhance the plan.