flow-plan
Skill0 starsChanged 3 months agoMITView on GitHub
Create a reviewable implementation plan from a concept, path, or request, with consultation only for relevant risks.
In this repository12 other files it gives its agents.
- AGENTS.mdAGENTS.md
- bare-bonesSkill
- flow-ideateSkill
- flow-implementSkill
- git-commitSkill
- git-hooksSkill
- githubSkill
- golangci-lintSkill
- goSkill
- pythonSkill
- rustSkill
- typescriptSkill
The file
We split this skill into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 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.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 10
Create a plan in .opencode/plans/.
- Very specific: line 14
Use $1 as the feature name when supplied.
- Distinctive: line 32
Every fresh-agent prompt must include the role, exact question, allowed files, requirements, evidence, minimal-scope rule, expected output, …
- Distinctive: line 36
Before resuming an old plan, show mappings and get confirmation before execution:
- Distinctive: line 63
Before a pause, save consulted task IDs, evidence, decisions, blockers, and the next action.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 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
Flow Plan
Create a plan in .opencode/plans/. Planning can inspect the repository and write the plan, but it must not implement the work.
Locate Context First
Use $1 as the feature name when supplied. Before asking questions, inspect user-supplied paths, .opencode/concepts/$1.md, and .opencode/plans/$1.md. If $1 is absent, look for a clear matching brief or plan. Do not guess between matches.
Reuse the supplied name. Read relevant repository files and current version-control state with available tools. Reuse prior exploration and evidence when still current. Treat brief decisions as requirements unless the user reopens them. Ask only about unresolved intent, missing acceptance criteria, or material conflicts.
An existing plan is saved state. It is not approved. Preserve its approval status and never infer approval from its existence.
Define The Work
Record the goal, scope, exclusions, decisions and reasons, acceptance criteria, blockers, and open questions. Split implementation into task IDs with dependencies, sole-writer file ownership, required behavior tests, and verification commands. Default to a failing behavior test before implementation. State a different sequence only when the work or reviewed plan requires it.
Address these topics when relevant: architecture, interfaces, data and migration, security, performance, infrastructure, observability, tests, compatibility, rollout, and rollback. Omit empty boilerplate sections. Principal architecture covers system strategy, service boundaries, and cross-component design.
Consult By Risk
Consult only when repository evidence is insufficient or a material domain risk exists. Use principal-architect for all architecture, database-architect for data risk, security-expert for security risk, performance-engineer for measured performance risk, ui-ux-designer for interaction risk, and code-analyst for unfamiliar code surfaces.
Consultants and planning analysts are read-only. They think, advise, and review. Their prompt must deny edits, shell commands, and delegation. For infrastructure or testing analysis, assign that domain to a retained read-only analyst. Do not dispatch a mandatory panel. Run consultations in a bounded parallel batch only when their domains do not overlap. Reconcile conflicts in the plan.
Every fresh-agent prompt must include the role, exact question, allowed files, requirements, evidence, minimal-scope rule, expected output, verification needs, and stop conditions. Fresh agents do not inherit skills or repository instructions.
Legacy Preflight
Before resuming an old plan, show mappings and get confirmation before execution:
solution-architectconsultation maps toprincipal-architect.devops-engineerplanning maps to a retained read-only analyst with an infrastructure assignment.test-engineerplanning maps to a retained read-only analyst with a testing assignment.devops-engineerimplementation maps to built-ingeneralwith infrastructure-only files.test-engineerimplementation maps to built-ingeneralwith test-only files and no production-code changes.
Unknown names, including developer-prime and developer-fast, require plan revision. A task that edits a retired file also requires revision. Do not rewrite old plans or create aliases automatically. Preserve task IDs, acceptance criteria, and completion state.
Plan Format
Write .opencode/plans/<kebab-name>.md. Include:
- status and explicit approval state
- goal, scope, and exclusions
- repository context and relevant decisions
- architecture and domain sections only when relevant
- ordered tasks with IDs, dependencies, allowed files, tests, and verification
- acceptance criteria and integration checks
- migration, rollout, and rollback when relevant
- blockers, open questions, checkpoint evidence, and next action
Mark unresolved intent or authorization as a blocker. A plan can be ready for review only when implementation can proceed without guessing. Saving does not approve it. Ask the user to review it. Record approval only after an explicit user statement.
Checkpoint And Completion
Before a pause, save consulted task IDs, evidence, decisions, blockers, and the next action. On resume, reconcile the checkpoint with current files and agent results.
Report the exact plan path, approval state, blockers, and checks used to validate the plan. Offer /flow-implement <name> only after explicit approval. Never implement from this workflow.
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.

