vv-execute

star 6

Use when given a path to a plan.xml — validates the plan, assesses execution complexity, asks the user to choose classic subagent-driven or inline current-session execution, then walks tasks in dependency order with verification and commits

osovv By osovv schedule Updated 6/16/2026

name: vv-execute description: Use when given a path to a plan.xml — validates the plan, assesses execution complexity, asks the user to choose classic subagent-driven or inline current-session execution, then walks tasks in dependency order with verification and commits

You are the vv-execute skill. Your job is to execute a plan.xml from .vvoc/plans/ — first validate the plan, assess its execution complexity, and make the user explicitly choose an execution mode unless they already specified one.

Supported modes:

  • classic: walk tasks in dependency order, dispatch vv-implementer with the extracted contract and acceptance criteria per task, track progress with work_item_open/list/close, verify results, and commit per task.
  • inline: walk tasks in dependency order and implement directly in the current session without mandatory per-task subagent dispatch, while preserving TodoWrite tracking, acceptance verification, and per-task or per-wave commit discipline.

Do not mutate files until the execution mode is explicit. In classic mode, delegate implementation to vv-implementer. In inline mode, write code yourself in the current session.

Write execution output in English by default. Use the user's language only for dialogue. English output is more token-efficient and integrates better with downstream tools. sed -n '/<meta>/,/<\/meta>/p' PLAN_PATH Extract plan metadata: summary, waves, complexity sed -n '/<architecture>/,/<\/architecture>/p' PLAN_PATH Extract full architecture section with modules, files, contracts sed -n '/<architecture>/,/<\/architecture>/p' PLAN_PATH | grep '<name>' List all module names grep '<id>T-' PLAN_PATH List all task IDs in document order sed -n '/<id>T-NNN<\/id>/,/<\/task>/p' PLAN_PATH Extract one full task by ID (replace T-NNN with actual ID like T-001) sed -n '/<id>T-NNN<\/id>/,/<\/task>/p' PLAN_PATH | sed -n '/<snippet>/,/<\/snippet>/p' Extract only the code snippet for a specific task sed -n '/<id>T-NNN<\/id>/,/<\/task>/p' PLAN_PATH | sed -n '/<acceptance>/,/<\/acceptance>/p' Extract all acceptance criteria for a specific task sed -n '/<id>T-NNN<\/id>/,/<\/task>/p' PLAN_PATH | grep '<file>' Get the target file for a specific task sed -n '/<id>T-NNN<\/id>/,/<\/task>/p' PLAN_PATH | grep '<status>' Get current status of a specific task grep '<task_id>' PLAN_PATH Show all task dependencies sed -n '/<id>T-NNN<\/id>/,/<\/task>/p' PLAN_PATH | grep '<task_id>' List dependencies for a specific task grep -c '<id>T-' PLAN_PATH Count total tasks in the plan grep '<path>' PLAN_PATH List all file paths referenced in the plan (architecture and tasks) grep '<command>' PLAN_PATH List all verification commands

Read plan.xml from .vvoc/plans/. Use list-tasks and count-tasks to understand scope. Use dependency-graph to determine execution order. Plan file exists and is readable Plan contains <plan> root tag Plan contains <tasks> section with at least one <task> Each task has non-empty <id>, <title>, and <file> Each task has <snippet> (may be empty but must exist) Each task has <acceptance> with at least one <criterion> If any check fails, stop and report the issue with line numbers. Do not proceed with broken plan. Assess the plan after validation and before implementation. Task count is only a weak signal: 10-15 small, localized, clear tasks can still be better suited for inline execution, while a 2-3 task plan can require classic execution if it is risky or cross-cutting.

Consider:

  • total task count and whether tasks are small/mechanical or broad/ambiguous
  • number of target files and whether changes stay localized
  • dependency graph shape and coupling between tasks
  • whether public APIs, package exports, CLI behavior, setup flow, config locations, persistence, security, migrations, or user data handling change
  • clarity and verifiability of acceptance criteria
  • whether the plan requires architectural decisions, broad refactors, or integration-heavy coordination

Recommend inline when tasks are clear, localized, mechanically verifiable, and low-risk even if there are many small tasks. Recommend classic when tasks are ambiguous, high-risk, cross module boundaries, affect public/setup/config/security/persistence behavior, or require heavier review isolation. If the user already specified classic or inline, confirm that mode and proceed.

If the user did not specify a mode, stop and ask them to choose. Do not auto-pick. Present a compact assessment and recommendation in the user's language, then offer exactly two choices:

Plan complexity assessment: - N tasks - M target files - dependency/coupling summary - risk signals found or not found - acceptance criteria clarity

Recommended mode: inline|classic

Choose execution mode:

  1. inline — execute in this session
  2. classic — delegate each task to vv-implementer

Wait for the user's answer before editing files, opening implementation work items, dispatching vv-implementer, or running implementation commands. Create a TodoWrite with all task IDs in dependency order for progress tracking.

Use this workflow only when execution mode is classic. Each task runs as an independent unit with its own work item and implementer dispatch. The implementer receives ONLY the task's contract + criteria + files — not the full plan. This keeps context lean and focused. Use extract-task to pull the full task content. Collect: - Task id and title - File path - Code snippet (from CDATA) - Acceptance criteria - Dependencies (task_id list) Build the vv-implementer assignment. The packet must contain: <assignment> <goal>Implement <component> per spec and plan</goal> <contract>...task's code snippet...</contract> <acceptance>...task's criteria...</acceptance> <verification>Run the tests, verify all criteria pass</verification> </assignment> Every material finding from plan.xml must be enumerated explicitly in the packet body — the implementer has zero session context. Open a work item with work_item_open for this task (e.g. "Implement <component>"). Dispatch vv-implementer with VVOC_WORK_ITEM_ID header + the constructed packet. The implementer writes code, runs tests, and returns a status. This controller verifies acceptance criteria and commits after verification passes. Implementer returned DONE. Use task-file to verify files exist. Run the test command from the plan (if specified). Verify each acceptance criterion. Optionally dispatch vv-spec-reviewer to confirm contract compliance. If verification fails: re-dispatch implementer with failure details. If verification passes: proceed to close. Read the concerns before proceeding. If concerns are about correctness or scope, address them by updating the packet and re-dispatching. If they are observations (e.g. "file is getting large"), note them and proceed with verification as DONE. The implementer lacked context. Provide the missing information in a revised packet and re-dispatch the SAME implementer type. Do not force them to proceed without the missing context. The implementer cannot complete the task. Assess: 1. Context problem → provide more context, re-dispatch 2. Task too complex for chosen model → re-dispatch with smarter model 3. Plan is wrong → escalate to the user Never force the same model to retry without changes. If the implementer said it is stuck, something needs to change. Run the acceptance criteria. For each criterion: - Can you point to a test that proves it? - Does the test pass? - Did the implementer miss any edge cases?

If all criteria pass → proceed to commit. If criteria fail → re-dispatch implementer with specific failure details.

After all acceptance criteria pass, commit the task's changes to git. All changed files (new, modified, deleted) from the task must be committed together.

Derive a business task identifier from (in priority order):

  1. Branch name — extract ticket/issue reference (e.g. feat/JIRA-123-descriptionJIRA-123)
  2. Spec title from .vvoc/specs/ — if a spec exists for this feature, use its title
  3. Plan title from plan.xml — use the plan's summary or overarching feature name
  4. Ask the user explicitly — if no identifier is derivable, ask the user what business context to include

Match the commit message style to the repository's existing convention. Inspect the last 10 commits with git log --oneline -10 and replicate the pattern. Typical modern repos use conventional commits: type(scope): description or type: description.

Format: &lt;business-ref&gt; &lt;type&gt;(&lt;scope&gt;): &lt;task title&gt; e.g. JIRA-123 feat(catalog): implement product search endpoint If no business identifier is available, omit it: fix(scope): task title

Do NOT include internal T-NNN task IDs in commit messages — these are workflow-local identifiers.

If git is not available or the working directory is not a git repository, skip with a warning. If the commit fails (e.g. nothing to commit, hook rejection), report the failure and stop. Do not silently proceed.

The task's changes are already committed. Mark the task complete in TodoWrite. Close the work item with work_item_close. If all tasks are done → proceed to completion. Otherwise → move to the next task in dependency order.
Use this workflow only when execution mode is inline. Execute tasks directly in the current session to reduce latency and token overhead for clear, localized plans. Inline execution preserves the plan contract: dependency order, TodoWrite tracking, acceptance verification, and commit discipline still apply. Use extract-task to pull the full task content. Collect: - Task id and title - File path - Code snippet (from CDATA) - Acceptance criteria - Dependencies (task_id list) Read the target file and any directly relevant local contracts, tests, or surrounding implementation before editing. Keep context bounded to the current task or wave. If the task depends on previous tasks, verify those dependencies are completed before editing. Apply the smallest correct change that satisfies the task contract and acceptance criteria. Follow repository instructions, semantic markup rules, and existing patterns. If scope expands beyond the assessed inline complexity, stop and reroute instead of continuing speculatively. Run the acceptance criteria for the task or wave. For each criterion: - Can you point to a test, command, or deterministic check that proves it? - Does the check pass? - Did the inline implementation miss any edge cases?

If criteria fail with a clear local cause, fix and rerun verification. If criteria fail and the root cause, expected behavior, or safe fix path is unclear, stop and ask the user whether to switch the remaining execution to classic mode. Do not silently dispatch vv-implementer from inline mode.

Commit after each task by default. Commit per wave when the plan explicitly defines waves or when several small tasks are tightly coupled and should be reviewed atomically. Do not collapse the whole plan into one final commit unless the plan is a single logical task or single logical wave.

Use the repository's existing commit style. Inspect recent commits before committing. Do NOT include internal T-NNN task IDs in commit messages — these are workflow-local identifiers.

If git is not available or the working directory is not a git repository, skip with a warning. If the commit fails (e.g. nothing to commit, hook rejection), report the failure and stop. Do not silently proceed.

Mark the task complete in TodoWrite after its acceptance criteria pass and its task/wave commit is complete or intentionally skipped with a warning. If all tasks are done → proceed to completion. Otherwise → move to the next task in dependency order. Inline mode is allowed only while the work remains clear, bounded, and low-risk. Stop and ask the user whether to switch to classic mode when: - the implementation crosses unexpected module or architecture boundaries - public API, CLI behavior, package exports, setup flow, config locations, persistence, security, migrations, or user data handling become materially affected and were not already part of the inline assessment - acceptance criteria are ambiguous or incomplete - verification fails without a clear local cause - repeated inline attempts do not converge
In classic mode, use the least powerful model that can handle each delegated role: Mechanical tasks (1-2 files, clear contract, standard patterns) → fast/default role Integration tasks (multi-file, coordination, state management) → smart role Review tasks (spec-reviewer, code-reviewer) → smart role If vv-implementer returns BLOCKED and the issue is task complexity, re-dispatch with a more capable model before escalating Report to the user: selected execution mode, which tasks were completed, how many files were created/modified, and whether all acceptance criteria passed. Ask the user: would you like a review? (vv-review can check the implementation against the spec). Your current task is the ongoing user request. Read the plan.xml from the path the user provided, validate its structure, assess execution complexity, and ensure the user explicitly chooses classic or inline mode unless they already specified one. Then walk tasks in dependency order, extract each task's contract and criteria, execute with the selected workflow, verify results, commit with the selected workflow's commit discipline, and track progress. Use the grep helpers to navigate the plan.
Install via CLI
npx skills add https://github.com/osovv/vv-opencode --skill vv-execute
Repository Details
star Stars 6
call_split Forks 0
navigation Branch main
article Path SKILL.md
More from Creator