with one click
workflow
// Run the full minmaxing workflow end to end for one request. Use when the user wants planning, implementation, verification, and closeout to happen automatically in one command.
// Run the full minmaxing workflow end to end for one request. Use when the user wants planning, implementation, verification, and closeout to happen automatically in one command.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | workflow |
| description | Run the full minmaxing workflow end to end for one request. Use when the user wants planning, implementation, verification, and closeout to happen automatically in one command. |
| argument-hint | ["task"] |
| disable-model-invocation | true |
Run the full workflow for:
$ARGUMENTS
This command is the end-to-end executor.
/opusworkflow is the default outer route for normal build/plan work and for
mutating specialist work in this harness. It reuses this /workflow lifecycle
while adding the Claude/Opus planner-reviewer plus MiniMax-M2.7-highspeed
executor split. Use plain /workflow only when the user invokes it explicitly,
the provider split is unavailable, or the work should stay in one local
supervisor loop.
When a specialist route changes files, keep /opusworkflow as the outer route
and record the specialist as inner_contract=agentfactory|hiveworkflow|parallel|defineicp|deepretaste|demo|visualizeworkflow.
/digestflow is a sibling route that reuses this same inline lifecycle after an external report-intake prelude. Normal /workflow behavior stays unchanged when no external research reports are supplied.
SPEC.md -> Spec QA -> execute -> verify.SPEC.md.SPEC.md.Agent-Native Estimate before writing, replacing, or reusing
SPEC.md. The estimate must be agent-native wall-clock by default, not a
bare human-equivalent calendar estimate.SPEC.md is created, updated, or intentionally reused, run /specqa
before implementation. Spec QA is the SOTA/currentness and requirements
quality gate for the active spec, not a post-implementation review.scripts/harness-scorecard.sh --json,
scripts/hook-smoke.sh, scripts/codex-run-smoke.sh, and
scripts/parallel-plan-lint.sh --fixtures./parallel run artifacts, aggregate
.taste/parallel/{run_id}/packet-dag.json, ownership.json, and
worker-results/*.json with scripts/parallel-aggregate.sh before treating
worker outputs as accepted evidence.SPEC.md./autoplan, /parallel, /sprint, /verify, or /ship./workflow autonomous. Do not insert a mandatory visualization
approval pause into this command. When the user explicitly wants to see and
approve the intended product or operator experience before implementation,
route that request to /visualizeworkflow instead.Reason:
In real Claude Code sessions, nested custom skills may complete their own turn and return control to the user before the rest of the chain runs. For /workflow, execute the phases inline with Claude Code tools so the full flow actually completes.
You may still use built-in Claude Code tools, shell commands, subagents, and optional specialist skills as reference material when useful, but /workflow itself owns the whole lifecycle.
No shortcut exceptions for file-changing tasks:
Research: skipped.Code Audit: skipped.SPEC.md: not needed.Research brief is mandatory:
mcp__MiniMax__web_search is available in the tool list, you MUST use it before planning, explaining, auditing, or editing.mcp__MiniMax__web_search as the primary external research tool when it is available.WebSearch only if the MiniMax MCP is unavailable.deepresearch protocol rather than a generic search fan-out: start with a collaborative research plan, run an iterative search -> read -> refine loop, maintain a source ledger, resolve conflicting evidence, and do follow-up research before freezing the plan.MAX_PARALLEL_AGENTS as a ceiling, not a quota./claudeproduct
protocol inside the research brief first. Separate current official
Anthropic/Claude docs from local harness contracts before freezing the plan.taste.md and taste.vision exist in the project root./tastebootstraptaste.md or taste.vision from inside /workflow/workflow only after the kernel is definedtaste.md and taste.vision.bash scripts/state.sh status 2>/dev/null || true
Treat .minimaxing/state/CURRENT.md as a compact continuity handoff, then reconcile it with live git status, SPEC.md, and the latest workflow artifact before editing.
bash scripts/memory.sh recall "$ARGUMENTS" --depth medium 2>/dev/null || echo "Memory recall skipped"
bash scripts/memory-eval.sh --summary 2>/dev/null || echo "Memory freshness: unavailable; using local truth surfaces"
If memory is degraded, disabled, or unavailable, continue from local truth
surfaces (SPEC.md, workflow artifacts, docs, git status, tests, and source
files) and say that memory could not be trusted as the primary context source.
Do not claim memory captured everything unless a memory event trace or durable
memory artifact proves the relevant entry exists.
Choose the route from user intent:
| Intent | Workflow Behavior |
|---|---|
| build, implement, create, add, refactor, optimize, migrate | run full research → audit → plan → spec → execute → verify → closeout flow |
| fix, debug, investigate | research first, audit the relevant code path, then reproduce/fix/verify; create SPEC.md if files change |
| audit, analyze, understand, deepresearch, webresearch | inspect deeply, report findings, make fixes only if the user asked for them |
| deepretaste, retaste, detect intent, bootstrap taste and ICP, SOTA customer research for taste | route through /opusworkflow with inner_contract=deepretaste when files may change; preserve /deepresearch as the general research route when findings will not mutate taste |
| define ICP, ideal customer profile, tailor taste to customer, update taste.md or taste.vision from ICP | route through /opusworkflow with inner_contract=defineicp when files may change; keep proposal-first unless explicit apply approval is present |
| Claude product, Claude Code, Claude.ai, Anthropic API, connectors, plugins, skills, hooks, MCP, subagents, plan availability, limits, setup | route product facts through /claudeproduct before generic research; continue into /workflow only if files change |
| remote control, rc, continue Claude Code from phone, claude.ai/code local session | route to /remote-control; use native Claude Code RC commands only (/remote-control, /rc, claude --remote-control, claude remote-control) and never build a custom control server |
| spec QA, spec review, specification QA, SOTA spec audit | route to /specqa; review the active SPEC.md after creation/update/reuse and before implementation, using current webresearch when SOTA or time-sensitive facts matter |
| parallel, mode parallel, dense workflow, orchestrate subagents, split across instances | route through /opusworkflow with inner_contract=parallel for file-changing packet execution; run the /parallel eligibility audit and use packets only when capacity, ownership, and verification pass |
| hive, hive mind, coordinated agents, swarm, multi-agent synthesis | route through /opusworkflow with inner_contract=hiveworkflow for file-changing hive work only when roles, blackboard, dissent, ownership, capacity, and verification pass; otherwise downgrade to /workflow or /parallel fallback |
| explain | inspect and explain directly |
| review | review directly |
| qa | run focused validation directly |
| visualize, visual approval, show me first, approve before implementation | route to /visualizeworkflow for approval-first planning; after approval, continue implementation through /opusworkflow with inner_contract=visualizeworkflow; route to /visualize when the user only wants a comprehension artifact |
| SPEC.md requests generated images, edited images, hero assets, UI mockups, sprites, thumbnails, or product raster assets | keep the normal /workflow contract, but route the asset generation lane through Codex skill codex-imagegen under .agents/skills; use Codex subscription/ChatGPT auth when available, never API-key image generation unless the user explicitly changes billing route |
Default to the full build flow when the task changes files.
If a normal /workflow task has high visual or product-experience ambiguity,
you may mention that /visualizeworkflow exists for approval-first execution,
but continue autonomously unless the user asked for that approval pause.
For dense work, automatically consider /parallel even if the user did not
name it. Use it only when the eligibility audit proves independent packets,
clear ownership, host capacity, and a verification path. Downgrade to normal
inline /workflow when those conditions fail.
For hive-like work, automatically consider /hiveworkflow when the request
needs coordinated roles, a blackboard, dissent/conflict handling, synthesis, and
verified learning. Prefer /parallel when disjoint execution packets are enough;
prefer /hiveworkflow only when judgment breadth and role coordination are part
of the value. For file-changing hive work, run it under /opusworkflow as
inner_contract=hiveworkflow. Downgrade to local /workflow if role map, blackboard,
ownership/locks, capacity, or verification cannot be written clearly.
Before freezing the route for file-changing work, perform a compact
metacognitive route check. Use scripts/parallel-capacity.sh --json when
available, treat MAX_PARALLEL_AGENTS, Codex max_threads, and hardware
ceiling as ceilings, and compute the smallest useful effective budget:
effective_metacognition_budget =
min(MAX_PARALLEL_AGENTS, codex_max_threads, hardware_recommended_ceiling,
independent_questions_or_packets, supervisor_capacity, verifier_capacity)
Do not fill the parallel pool for theater. Do not claim max agents means max quality or linear speedup.
The metacognitive route is not an introspection pass. It must appear in the
workflow artifact before ## Research Brief, and the later ## Introspection
section must still record the required /introspect pre-plan and
/introspect post-implementation gates for file-changing work.
For file-changing tasks, create a durable workflow record before writing SPEC.md:
mkdir -p .taste/workflow-runs
STAMP="$(date +%Y%m%d-%H%M%S)"
WORKFLOW_ARTIFACT=".taste/workflow-runs/${STAMP}-workflow.md"
This artifact is the inspectable audit trail for the run. It must be created before SPEC.md and updated as phases complete.
Required section order:
# Workflow Run: [task]
## Task
## Taste Gate
## Metacognitive Route
## Research Brief
## Code Audit
## Introspection
## Plan
## Agent-Native Estimate
## SPEC Decision
## Spec QA
## Execution Notes
## Verification Evidence
## Outcome
Keep it concise, but do not skip sections. For non-file-changing analysis tasks, this artifact is optional.
Required content inside the sections:
## Metacognitive Route must record the task class, capacity evidence,
effective parallel budget, chosen route, evidence required, confidence
threshold, and why the full parallel ceiling was or was not used. It must
explicitly state when the route downgrades from /parallel to local
/workflow because packets overlap or verification cannot aggregate results.
It must not claim that /metacognition replaces or satisfies required
/introspect gates.## Research Brief must record the investigation mode, collaborative research plan, effective research budget, iterative search -> read -> refine loop, source ledger, conflicting evidence, and any follow-up research required before planning.## Introspection must record at least pre-plan and post-implementation entries for file-changing work, plus after-test-failure or pre-push entries when those triggers occur.## Plan must record any delegated packets, their owners, and their dependencies when parallel execution is likely.## Agent-Native Estimate must record estimate type, execution topology,
capacity evidence, effective lanes, critical path, agent wall-clock,
agent-hours, human touch time, calendar blockers, confidence, and any
human-equivalent baseline as secondary only.## Spec QA must record /specqa decision, requested reviewer model,
proven reviewer model if any, spec_qa_model_identity_status, current
webresearch source ledger when SOTA/time-sensitive claims matter, critical
finding count, improvement suggestions, artifact paths, and whether execution
is allowed.## Execution Notes must record any freshness re-checks and the final owned files touched by each delegated packet.## Execution Notes must record the
.taste/parallel/{run_id} path and scripts/parallel-aggregate.sh output,
including effective lanes, bottleneck, critical path, and any rejected worker
claim.## Verification Evidence must include Verification Metadata: executor identity/model/workspace, verifier identity/model/workspace, and isolation status. Use unknown instead of implying separation when the run cannot prove it.## Verification Evidence must include command evidence for "tests passed"
claims. Evidence-free closeout and failed-verification positive closeout are
blocked by the effectiveness scorecard and Claude Code governance hook.scripts/artifact-lint.sh before closeout.When this lifecycle is reused by /digestflow, insert ## Report Intake between ## Taste Gate and ## Research Brief. The intake section must record a report manifest, claim ledger, contradictions, injection quarantine, and the default no-persist report bodies decision. Imported claims remain report-derived until the repo's own deepresearch, live sources, repo inspection, and /specqa upgrade them to web-verified or repo-verified.
Every task gets a research-backed brief before planning or execution.
This phase is mandatory and cannot be satisfied by local repo inspection alone when the MiniMax MCP is available.
Research here should follow the repo’s own effectiveness-first deepresearch protocol, not a one-shot search batch. The goal is an inspectable investigation that plans first, then iteratively searches, reads, refines, and pressure-tests until the plan is grounded enough to act.
Choose one mode up front and record it in the brief:
standard — narrow implementation or debugging work with a small number of decisive questionscomprehensive — audits, architecture, strategic planning, high-stakes debugging, security work, or any request that explicitly asks for deep research / top-quality investigationDefault to comprehensive for audits, planning, refactors, architecture, reverse engineering, and any task where the user explicitly asks for deep research or investigation quality.
MAX_AGENTS="${MAX_PARALLEL_AGENTS:-10}"
echo "$MAX_AGENTS"
MAX_AGENTS as the ceiling0 external tracks only when the task is purely local and no current external fact materially affects the planFor file-changing tasks that depend on current external facts, Research Tracks Used must not be 0 / ... when the MiniMax MCP is available. For purely local tasks, 0 external tracks are allowed only with an explicit justification.
Create only the focused tracks that materially change the plan. Expand or narrow them based on complexity, and stop when additional tracks would be redundant.
Core track ideas:
Do the MCP searches before relying on your own prior knowledge, but do not stop at the query list. Each wave should answer a concrete branch from the collaborative research plan.
Loop expectations:
Before moving on, produce a concise brief with:
Also include:
Store important research findings in memory when they would be useful again:
bash scripts/memory.sh candidate semantic "Research [topic]: [key finding]. Source: [URL]" --verified yes --source "$WORKFLOW_ARTIFACT" --tags "research,[topic],current"
Only promote a candidate with bash scripts/memory.sh add ... after verification
proves the finding is reusable and safe for the public repo. Never store
customer memory seeds, private commercial playbooks, real credentials, private
connector details, or customer-specific Hermes/REVCLI runtime facts in tracked
public memory.
For file-changing tasks, record the research brief in WORKFLOW_ARTIFACT before continuing.
Do not create or update SPEC.md until this brief exists.
After research, audit the current codebase before planning.
For file-changing work, this phase is mandatory even when the audit is tiny. A minimal audit is still an audit:
If files will change, report Code Audit: completed, not skipped.
For the relevant files, commands, and subsystems:
Write a concise ## Code Audit section into WORKFLOW_ARTIFACT with:
Do not write SPEC.md until this code audit is captured.
Before planning, run hard-gate introspection.
Use /introspect pre-plan as the playbook, but execute inline.
Check:
SPEC.md lifecycle, or existing patternsAppend the result to ## Introspection in WORKFLOW_ARTIFACT before writing ## Plan.
Required decision:
PASS -> continue to planFIX_REQUIRED -> gather more evidence or correct the audit before planningREPLAN_REQUIRED -> change direction before writing SPEC.mdBLOCKED -> stop and explain the blockerSynthesize the research brief and code audit into an execution plan before writing SPEC.md.
The plan must answer:
For file-changing tasks:
## Plan section into WORKFLOW_ARTIFACT.SPEC.md can be derived directly from it.Do not create or update SPEC.md until this plan exists.
Before SPEC.md is written, replaced, or reused, append ## Agent-Native Estimate to WORKFLOW_ARTIFACT.
Use this stable block:
## Agent-Native Estimate
- Estimate type: agent-native wall-clock
- Execution topology: local | subagents | parallel-instances | agent-teams-experimental
- Capacity evidence: scripts/parallel-capacity.sh --json, Codex max_threads, MAX_PARALLEL_AGENTS
- Effective lanes: N of ceiling M
- Critical path: P1 -> P4 -> P7
- Agent wall-clock: optimistic / likely / pessimistic
- Agent-hours: total active work across all lanes
- Human touch time: review, approval, credentials, product decisions
- Calendar blockers: CI queue, deploy window, external account setup, rate limits, business-hours dependency
- Confidence: high | medium | low, with downgrade reason
- Human-equivalent baseline: optional secondary comparison only
Rules:
blocked/unknown instead of false precision when capacity, credentials,
CI, deploy windows, or product decisions are missingDo not create, update, or reuse SPEC.md until this estimate exists for
non-trivial file-changing work.
For file-changing work:
SPEC.md is reusable for this exact task before editing it.
SPEC.md, archive the previous active spec first:bash scripts/spec-archive.sh prepare "$ARGUMENTS" "superseded-before-new-spec" 2>/dev/null || true
SPEC.md directly in this workflow after research, audit, and planning are complete.
SPEC.md must be a real file in the working directory.WORKFLOW_ARTIFACT.# SPEC: [task name]
## Problem Statement
[1-2 sentence statement of the change]
## Codebase Anchors
- Relevant existing files, modules, or configs
- Constraints or patterns that must be preserved
## Success Criteria
- [ ] Criterion 1
- [ ] Criterion 2
## Scope
### In Scope
- ...
### Out of Scope
- ...
## Surgical Diff Discipline
- Smallest sufficient implementation: [what is the narrowest change that satisfies the request]
- No speculative abstractions: [what flexibility, configurability, or refactor is intentionally avoided]
- No drive-by refactors: [adjacent cleanup not required by the spec]
- Changed-line trace: [how changed files or sections map to success criteria]
## Agent-Native Estimate
- Estimate type: agent-native wall-clock
- Execution topology: [local|subagents|parallel-instances|agent-teams-experimental]
- Capacity evidence: [scripts/parallel-capacity.sh --json or other source]
- Effective lanes: [N of ceiling M]
- Critical path: [longest dependency path]
- Agent wall-clock: [optimistic / likely / pessimistic]
- Agent-hours: [total active work across all lanes]
- Human touch time: [review/approval/credentials/product decisions]
- Calendar blockers: [CI/deploy/account/rate-limit/business-hours blockers]
- Confidence: [high|medium|low with reason]
- Human-equivalent baseline: [optional secondary comparison only]
## Implementation Plan
1. ...
2. ...
## Verification
- Criterion 1 -> [command, test, or inspection]
- Criterion 2 -> [command, test, or inspection]
## Rollback Plan
- [how to undo safely]
If a suitable SPEC.md already exists and matches the task, reuse it instead of rewriting it.
For tiny local tasks, keep the spec intentionally small rather than inflating it, but do not omit ## Codebase Anchors.
Update the ## SPEC Decision section in WORKFLOW_ARTIFACT with whether SPEC.md was created, updated, or reused, record the file path, and record the archive path or "not needed because reused/new workspace".
Run the /specqa playbook inline immediately after the spec decision and
before implementation. Append ## Spec QA to WORKFLOW_ARTIFACT with:
claude-opus-4-7 high/xhigh when /opusworkflow policy
appliesunknownspec_qa_model_identity_status.taste/specqa/{run_id}/PASS, PASS_WITH_SUGGESTIONS, FIX_REQUIRED, or BLOCKEDIf /specqa returns FIX_REQUIRED or BLOCKED, repair the spec or report the
blocker before implementation. Do not execute from a spec with unresolved
critical findings.
Do not stop after SPEC.md is written.
Implement directly with Claude Code tools.
/parallel for dense work when the eligibility audit, hardware capacity profile, ownership matrix, and verification plan show real critical-path reduction./parallel is used, record the selected substrate (local, subagents, parallel-instances, or experimental agent-teams), effective budget, packet DAG, ownership matrix, and sync barriers in the workflow artifact or a dedicated .taste/workflow-runs/*-parallel.md artifact.SPEC.md requires it.## Execution Notes in WORKFLOW_ARTIFACT with the files changed and any notable deviations from the plan./introspect post-implementation inline and append the result to ## Introspection. Check the diff against SPEC.md, likely mistakes, missing edge cases, weak verification, speculative abstractions, drive-by refactors, and changed-line trace gaps before moving on.If the task is non-code analysis, do the work directly and skip implementation.
Verify against SPEC.md inside this same workflow.
Required verification behavior:
If verification fails:
/introspect after-test-failure inline and append the result to ## IntrospectionNever declare success without evidence.
For file-changing tasks, update ## Verification Evidence in WORKFLOW_ARTIFACT with:
proved separate, same session independent pass, or unknown)SPEC.mdstarted_at, plan_frozen_at,
implementation_started_at, verification_completed_at, closed_at,
effective lanes used, failed verification count, and human blocker minutesBefore you emit ## Workflow Complete for a file-changing task, confirm all of these are true:
Research Tracks Used shows the effective budget met, a justified local-only path, or an explicitly justified shortfall.Code Audit is completed.Introspection includes a pre-plan pass and a post-implementation or justified non-implementation pass.after-test-failure introspection entry before the next fix attempt.Plan is completed.Agent-Native Estimate exists, is agent-native by default, includes
confidence, and is not only a human-equivalent baseline.SPEC.md exists on disk as a real file.Spec QA exists for non-trivial file-changing work, records current-source
evidence when SOTA/time-sensitive claims matter, and allows execution.WORKFLOW_ARTIFACT exists and its phase sections are filled in.SPEC.md, generated output, or cleanup caused by this change.unknown instead of invented.If any item above is false, continue the workflow instead of closing out.
Close out based on what the user actually asked for.
If the user did not explicitly ask to commit, push, deploy, or publish:
.taste/workflow-runs/bash scripts/spec-archive.sh closeout "$ARGUMENTS" "verified: [short outcome]" 2>/dev/null || true
Only perform remote-facing actions when the user clearly asked for them.
If the user explicitly wants a push or ship:
/introspect pre-push inline and append the result to ## Introspection; do not push with unresolved blockersbash scripts/spec-archive.sh closeout "$ARGUMENTS" "shipped: [short outcome]" 2>/dev/null || true
The project still provides specialist commands like /autoplan, /digestflow, /deepretaste, /defineicp, /claudeproduct, /remote-control, /specqa, /deepresearch, /webresearch, /browse, /introspect, /parallel, /hive, /hiveworkflow, /sprint, /verify, /audit, /visualize, /visualizeworkflow, and /ship.
Use them like this:
/workflow execution pathWhen complete, return:
## Workflow Complete
- Task: [task]
- Taste Gate: PASS / BOOTSTRAPPED / REALIGNED
- Research: [completed with MiniMax MCP / local-only brief / fallback used / blocked]
- Research Mode: [standard / comprehensive]
- Research Tracks Used: [completed] / [effective budget] (ceiling [MAX_PARALLEL_AGENTS])
- MiniMax MCP Searches: [count]
- Follow-up Research: [not needed / completed / blocked]
- Code Audit: [completed / skipped only for non-file-changing analysis / blocked]
- Introspection: [PASS / FIX_REQUIRED / REPLAN_REQUIRED / BLOCKED]
- Plan: [completed / skipped / blocked]
- Agent-Native Estimate: [completed / blocked / not applicable for tiny direct task]
- SPEC.md: [created / updated / reused / blocked]
- Spec QA: [PASS / PASS_WITH_SUGGESTIONS / FIX_REQUIRED / BLOCKED / not applicable]
- Surgical Diff: [PASS / FIX_REQUIRED / not applicable]
- Spec Archive: [archived / already archived / not needed / blocked]
- Implementation: [done / not needed]
- Verification: ACCEPT / REJECT / BLOCKED
- Remote Actions: none / committed / pushed / deployed
- Workflow Artifact: [path or not created]
- Key Files: [important files]
- Open Blockers: [none or list]
SPEC.md/specqa reviewed the active SPEC.mdSPEC.md without archiving it to .taste/specs//review as a substitute for /introspect/workflow into a visual-approval workflow; use
/visualizeworkflow for WAITING_FOR_VISUAL_APPROVALGlob("*") exploration before the first research waveSPEC.md before the plan existsSPEC.md before ## Agent-Native Estimate
exists for non-trivial workSPEC.md was not needed for file-changing workSPEC.md was created when the only copy lives inside WORKFLOW_ARTIFACTSPEC.md reasonSPEC.md