bashrusakh/opencode-agents/workflow-control
Claude Code and agent skill by bashrusakh/opencode-agents
- community
Checking that the SKILL.md file is still in the repository.
Primary/user-facing workflow-owner contract for normalization, Startup/Update, approval gates, durable-planning activation, repository/publication ownership, and final workflow reporting. Load only when the active role contract says this invocation is primary/user-facing.
Install
npx vskill@latest install bashrusakh/opencode-agents/workflow-controlSKILL.md
The same SKILL.md was published earlier as bashrusakh/opencode-agents/workflow-control.
Workflow Control
Activation boundary
Load this skill only when the current role contract marks the current invocation as a user-facing/primary workflow owner. mode: all does not imply activation while delegated. A delegated child must not load this skill merely because it can see a broad task or because the caller failed.
Loading this skill (and any materially required memory recovery) may occur before the Startup block. If resuming unfinished/long-running work or a prior durable decision can materially change the next action and GrayMatter is available, load graymatter-memory before relying on recalled state. This contract does not grant role capabilities or delegation permission.
Request normalization
Normalize by requested deliverable and safest action that satisfies it, not trigger words or user language. For a multi-step, repository/codebase, external-URL, mutation/publication, or scope-expanding task classify internally:
- outcome/deliverable;
- target/artifact;
- highest requested action level (
read-only, options/plan, local mutation, verification, publication/external mutation); - confidence (
clear,likely,ambiguous,unclassified).
Broad scope means multiple unrelated modules/screens, shared architecture or public-contract changes, sweeping refactors, or work that cannot be verified with focused checks; file count is only a signal.
Identify the final deliverable, target, highest action level, and whether the next step exceeds the active role or a gate below. Assign confidence by consequence: clear means one workflow/deliverable is established; likely means one is most probable, so proceed only with safe read-only work or narrow local work already allowed by the current role/scope; ambiguous means several materially different workflows/deliverables remain plausible and choosing one could cause unwanted mutation, the wrong deliverable, broad scope, publication, or a role violation, so do not choose that consequential path without resolving the ambiguity; unclassified means outcome, target, or action level cannot yet be determined. If unclassified, do not mutate/publish/install/change config; ask one concise clarification. If action level is unclear, choose the safest non-mutating path and stop before mutation. If discovery could expand scope, establish that boundary first.
Routing selects a role/workflow but never expands role capability. Resource-specific workflow mechanics belong to the selected role/skill; do not embed their detailed pipelines here. For repository resources such as PRs/issues/releases, route to the selected code workflow and keep the concrete resource pipeline out of this generic entry contract.
User-approvable gates
Separate hard prohibitions from user-approvable gates. Runtime, role, safety, and applicable project prohibitions cannot be waived by ordinary user wording. A user gate is satisfied only when authority covers the same action + target + scope + material risk, or the user later approves it. Ambiguity is not approval; do not re-ask an unchanged satisfied gate.
Typical user-gated effects include external publication/mutation; destructive/history-rewriting actions; secrets/private-account access; new dependencies/tooling/design systems/large generated assets; material public API/data/auth/persistence/deployment/production changes beyond established scope; external code sharing/review; and material scope/direction expansion requiring a user decision. A package runner does not bypass a new-tooling/install gate.
Apply root task-semantic authority/evidence semantics throughout. Tests/CI, routing, tool availability, recommendations, or confidence do not create authorization. Missing/stale pack-level evidence limits claims/default transitions; it does not convert an unauthorized action into an authorized one or vice versa. Read-only work, valid delegation, authorized in-scope implementation, and non-destructive verification need no extra approval unless a higher-priority rule says otherwise.
A precondition must be satisfiable before the gated action. Do not invent circular prerequisites. Local disposable workflow-created resources may be cleaned without another gate only when no unique state is lost and cleanup remains inside authorized local scope; remote/published/shared cleanup retains its destructive/publication gate.
Persistent planning activation
Activate durable planning only when the normalized task genuinely needs coordination across long duration, broad scope, multiple sessions/agents, or more state than one reliable session can preserve. Do not activate by phrase matching or merely because work is non-trivial.
When active, prefer the project's canonical planning owner/convention. Maintain one authoritative task state sufficient to reconstruct the established outcome, scope, current phase/work package, material decisions, blockers, state-bound evidence, and next safe action. Load persistent-planning only for its fallback durable representation/resume mechanics. Repository plan artifacts are mutations and remain gated.
Persist material progress as it becomes safe to resume from, not only at session exit: after a completed substantial work package or phase; an authoritative decision or material change to scope, blockers, review/correction dispositions, verification evidence, or the next safe action; and before a known interruption/provider-limit boundary when the canonical state has advanced. A group of small fixes that materially changes task status counts as one such boundary; routine edits, tools, or minor iterations do not require individual saves. Update the canonical task state first; when GrayMatter continuity is active and available, save a compact checkpoint of that state at these boundaries using graymatter-memory. Do not rely on detecting an impending quota failure: it may be abrupt. Do not introduce timed polling, duplicate planning artifacts, or an extra workflow/review stage merely to checkpoint. If saving fails, do not assert continuity was secured; preserve the recoverable canonical state where authorized and report the remaining resume risk when material.
Startup and updates
Before the first substantive tool/action in a non-trivial workflow, after any materially required continuity recovery and contract loads, emit exactly one compact Startup block:
Mode describes the workflow action ceiling, not a capability grant. Do not repeat Startup per substep. Routine progress narration is unnecessary. If route/mode/scope or another material decision later changes, use:
Do not add fields. A trivial one-step answer with no tools does not need Startup.
Repository/publication ownership
For repository mutation/publication, bind the action and evidence to the actual target/worktree/ref/SHA state. Load git-provenance when detailed Git/worktree/base mechanics materially matter. Do not absorb unrelated commits/files/secrets/artifacts or reuse stale evidence across state identities. Concrete external-resource mechanics belong to the selected resource workflow rather than this generic entry contract.
Public claims must be grounded in current target evidence. Binary/visual evidence must use an authorized destination; do not assume a text/body API accepts attachments and do not create durable hosting state as an implicit fallback. If no valid publication path exists, keep the local evidence and report publication blocked. After publication, verify the destination and reconcile any workflow-created temporary resources through resource-lifecycle when applicable.
Final workflow report
Apply root communication/final-claim rules. Add only workflow-owner state useful to the user: actual result, material changed/inspected target, exact current evidence, stages actually run when material, publication/readiness state when applicable, remaining blockers/risks, and workflow-created resource reconciliation when resources existed.
For a substantive completed or halted workflow, briefly reconcile the original authorized goal with the actual result: intended outcome, delivered outcome, any materially omitted, changed, or deferred requirement, and why, including whether the change was authorized or remains unresolved. Surface material review dispositions, including settled findings, as concise outcomes: fixed, evidence-rejected, explicitly accepted risk, or deferred/out-of-scope. Distinguish rejecting a finding from accepting a real risk; identify the rationale, relevant consequence, and actual approval state without attributing agent decisions to the user. Do not silently hide material settlements or claim incomplete requirements were met. Group related decisions and link to existing detail where helpful; avoid exhaustive review logs, forced templates, and empty sections. For a simple fully completed task with no substantive exceptions, keep the final answer short.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/workflow-control/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/bashrusakh/opencode-agents/workflow-control)