From devflow
Use during PREVC Planning phase — combines superpowers brainstorming (9-step Socratic process) with dotcontext context enrichment and plan scaffolding
npx claudepluginhub nexuz-sys/devflow --plugin devflowThis skill uses the workspace's default tool permissions.
Searches, retrieves, and installs Agent Skills from prompts.chat registry using MCP tools like search_skills and get_skill. Activates for finding skills, browsing catalogs, or extending Claude.
Searches prompts.chat for AI prompt templates by keyword or category, retrieves by ID with variable handling, and improves prompts via AI. Use for discovering or enhancing prompts.
Dispatches parallel agents to independently tackle 2+ tasks like separate test failures or subsystems without shared state or dependencies.
Turns ideas into validated specs and implementation plans through disciplined Socratic dialogue, enriched with project context.
<HARD-GATE> Do NOT write any code, scaffold any project, or take any implementation action until you have presented a design and the user has approved it. This applies to EVERY project regardless of perceived simplicity. </HARD-GATE>Announce at start: "I'm using the devflow:prevc-planning skill for the Planning phase."
You MUST create a task for each of these items and complete them in order:
superpowers:brainstorming for the 9-step Socratic processsuperpowers:writing-planscontext({ action: "buildSemantic" })
agent({ action: "getPhaseDocs", phase: "P" })
Feed semantic context into the brainstorming process. The agent knows the codebase structure, patterns, and conventions before asking questions.
Read these files and incorporate into brainstorming:
.context/docs/project-overview.md — project description, goals.context/docs/codebase-map.json — file structure, dependencies.context/docs/development-workflow.md — existing conventions.context/docs/testing-strategy.md — testing approach.context/docs/adrs/README.md — active ADR guardrails (if exists)Explore project files, docs, and recent git commits directly.
After gathering base context, check for active ADRs:
.context/docs/adrs/README.md existsAprovado, read the Guardrails section
c. Collect all guardrails as constraints for the brainstorming process
d. Announce: "Loaded N guardrails from M active ADRs."Important: Guardrails from ADRs are treated as hard constraints during brainstorming:
Hierarchy: Project ADRs (scope: project) override Organizational ADRs (scope: organizational) for the same topic.
REQUIRED SUB-SKILL: Invoke superpowers:brainstorming
The superpowers brainstorming skill runs the full 9-step process:
DevFlow addition: When proposing approaches, annotate each with:
After brainstorming produces the spec, enrich it:
agent({ action: "orchestrate", phase: "P" })
The architect agent reviews the spec for technical feasibility.
Read .context/agents/architect-specialist.md and apply its review checklist manually.
Skip enrichment — spec stands as-is from brainstorming.
REQUIRED SUB-SKILL: Invoke superpowers:writing-plans
The plan follows superpowers format (bite-sized 2-5 minute tasks, TDD, DRY, YAGNI) but with DevFlow additions:
# [Feature Name] Implementation Plan
> **DevFlow workflow:** [workflow-name] | **Scale:** [MEDIUM] | **Phase:** P→R
**Goal:** [One sentence]
**Architecture:** [2-3 sentences]
**Tech Stack:** [Key technologies]
**Agents:** [Which agents will be involved in execution]
---
For each task group, note which agent role is best suited:
## Task Group: API Layer
**Agent:** backend-specialist
**Handoff from:** architect (after design review)
- [ ] Step 1: Write failing test for endpoint
- [ ] Step 2: Run test, confirm failure
...
After the plan is written and approved, decompose it into stories for the autonomous loop.
Source selection (in priority order):
--from-prd flag or PRD detected in Step 1.5 of prevc-flow: Convert PRD phases into stories directly (skip brainstorming for story generation, use PRD scope as source)When --from-prd is set or prevc-flow detected an active PRD:
.context/plans/*-prd.md)⏳ In Progress)id: Sequential (S1, S2, S3, ...)title: Scope item textdescription: Expand from PRD context + existing .context/docs/ (codebase map, project overview)agent: Infer from scope item content (e.g., "API endpoint" → backend-specialist, "UI component" → frontend-specialist, "migration" → database-specialist)priority: Sequential based on PRD orderblocked_by: Derive from natural dependencies (DB schema before API, API before UI)templates/stories-schema.yaml.context/workflow/stories.yamlImportant: Enrich story descriptions with existing project context. Read .context/docs/project-overview.md and .context/docs/codebase-map.json to include real file paths, existing patterns, and conventions in each story description.
id: Sequential (S1, S2, S3, ...)title: Task group titledescription: Combine the task group's steps into a concise description that fits in 1 context windowagent: Use the agent annotation from the plan (e.g., backend-specialist)priority: Sequential based on plan orderblocked_by: Derive from task dependencies (if Task 3 depends on Task 1, S3 blocked_by [S1])templates/stories-schema.yaml.context/workflow/stories.yamlReference: See templates/stories-schema.yaml for the full schema.
Important: Each story MUST fit in a single context window. If a task group is too large, split it into multiple stories. A good story is: one model, one endpoint, one component, one migration — not "build the entire API."
After writing-plans generates the plan and the user approves:
superpowers:brainstorming in Step 2, typically at docs/superpowers/specs/<file>.md)context({ action: "scaffoldPlan", planName: "<slug>", title: "<spec title>", summary: "<FULL SPEC CONTENT>", semantic: true, autoFill: true })
plan({ action: "link", planSlug: "<slug>" })
.context/plans/<slug>.mdNo conversion — execution follows superpowers workflow.
Quick check: Scan the plan for task groups. For each group:
**Tests:** unit + integration)Test: field?If any task group violates test-first ordering, fix the plan before advancing. </HARD-GATE>
The Planning phase gate requires:
When gate is met: Announce readiness to advance.
workflow-advance() # Moves to R phase
| Thought | Reality |
|---|---|
| "I already know the codebase" | Context enrichment finds what you missed. Always gather. |
| "The spec is obvious" | Obvious specs still need user approval. No exceptions. |
| "Plans are busywork" | Bite-sized plans prevent 3-hour debugging sessions. Write them. |
| "Agent annotations are overhead" | They enable parallel execution in E phase. Worth the 2 minutes. |
| "I can skip the dotcontext handoff" | Without it, agents execute blind. The handoff is the bridge. |