execute
Paved command paved.execute. Take a request, or an approved plan, through to a verified and reviewed change, initializing or updating Paved when needed. Use when the user asks to execute a change or the user-approved plan is ready to implement.
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- execute
- description
- Paved command paved.execute. Take a request, or an approved plan, through to a verified and reviewed change, initializing or updating Paved when needed. Use when the user asks to execute a change or the user-approved plan is ready to implement.
03 SKILL.md 正文
<!-- Generated by Paved plugin paved@2.29.0 from paved.execute; edit Paved Core instead. -->
Paved execute command (paved.execute)
Take a request, or an approved plan, through to a verified and reviewed change, initializing or updating Paved when needed. Use when the user asks to execute a change or the user-approved plan is ready to implement.
Input: A new request, verbatim; or the run, when several are open (--run <id>). Output: Change, test and verification evidence, review document, completion, and new gardener proposals. Required lifecycle: UNINITIALIZED, INITIALIZED, RESOLVED, GENERATED, VALIDATED, READY, STALE, INCOMPATIBLE Required context: .paved/project/, .paved/rules/, the run's workflow, verification profile, tool bindings Required capabilities: testing-run Allowed side effects: .paved/ initialization or update state and managed AGENTS.md block when Paved needs it, planned application changes, durable Paved work documents under .paved/documents/, .paved/approvals/, disposable Paved evidence
Execution contract
- Invoke
node "<plugin root>/scripts/paved.mjs" execute --jsonfrom the repository root, passing the user's command inputs as supported CLI arguments. The launcher loads the pinned project-local runtime and returns the canonical structured result.<plugin root>is the installed Paved plugin directory, two directories above this SKILL.md. Always run the launcher from the repository being worked on, never from the plugin directory. - Follow the structured result's status, diagnostics, evidence, and next action. When
data.remediationnames a Paved command, run it right away, present any decisions it returns, then repeat the original command. Stop only when the runtime blocks on something it cannot remediate. - With a new request and no open run for it, run
paved execute "<request verbatim>" --json, adding--workflow <feature|bug|refactor|performance|investigation> --because "<evidence>"only when the evidence shows the kind of change. It initializes Paved when the repository has none, updates it when its state needs that, and records the request; present every decision it returns and repeat the same call with the answers. Then keep callingpaved execute --run <run-id> --advance ... --json: until the plan is approved it acts aspaved intentandpaved plan, so read the code for context and discovery, write the plan, show it to the user and, only after an explicit yes, runpaved execute --run <run-id> --approve --json. Implement the approved plan only after that. - Every step result carries
routingfor the current phase: run asubagentphase (discovery, review) in a host subagent at that capacity and reasoning effort with only a bounded brief, keep aprimaryphase in this session, and only relay acliphase;paved delegation capabilities --host <host>maps the tiers to models. - When the approved plan has several parts, record each finished part with
paved execute --run <run-id> --checkpoint --note <part> --json; implementation stays open. Once the whole change is implemented, runpaved execute --run <run-id> --auto --note <what was implemented> --json: tests, verification and the workflow evidence then run on their own until a phase needs the user. Present every returned decision with its options (in Claude Code, as a multiple-choice question) and repeat the same call with the answers. A setup diagnostic (PAVED_WORKFLOW_SETUP_INVALID) costs no attempt: fix the Tool, Check or profile and repeat. In the review phase, start a subagent with its own context (the host's subagent or task tool) and give it onlyreview.independent.brief; it writes its findings toreview.independent.record. Never review the change yourself. Then runpaved execute --run <run-id> --auto --evidence <record> --json, present any blocking findings as the returned decision, and summarize thereviewblock for the user; the preview is optional. When the approved plan must change, edit it and runpaved plan --run <run-id> --amend --note <what changed> --json. When the result listsgardenerproposals, show them to the user as advisory and namepaved gardener.
Phase Tool policies
Follow the active data.phaseContext, including its composed skills, declared Tools and bound fragment bodies. Apply each phaseContext.toolPolicies entry's effective allow, ask and deny Tool ids: deny excludes use; ask requires the host's own approval flow; allow is a workflow recommendation only and never grants execution permission or replaces host approval. Host policy can always be stricter. Policies do not add Tools to the phase's declared set. Omitted Tools retain existing host behavior, and an empty policy list preserves existing behavior.
Run autonomy
For a new intent or execute request, pass the user's explicit --autonomy <guided|balanced|autonomous> selection. It overrides the workflow's optional autonomy.default_profile; pending classification preserves the explicit selection. The recorded data.autonomy_profile is fixed on resume. If no selection or workflow default exists, leave the profile absent and keep current behavior.
For guided, stop after every completed phase and wait for the user to advance; do not immediately repeat --auto or another advance call. For balanced, continue through ready phases with execute --auto. For autonomous, use balanced continuation and automatically dispatch only ready tasks from an approved delegation plan, respecting its dependencies and bounded scope, through native host tools. The CLI creates no sessions.
Every profile preserves gates, human approvals, required input stops, failures, verification, evidence and completion requirements. Host permissions remain authoritative; an autonomy profile is never an approval or tool permission. Apply this policy to the continuation and routing guidance above.
Before asking the user
Triage every question of your own before you ask it. When the answer is observable (current behavior, output, timing, layout, whether a test fails), find it out by reading the code, running it or trying a throwaway experiment outside the repository; an experiment inside the repository follows the prototyping skill. Ask only about preferences: product, scope, priority or taste calls that no experiment settles. When you raise one with paved decision raise, set questionKind; an observable question needs an observationBlocker saying why you could not observe it. Triage never skips a human step: present every decision Paved emits, and plan approval and confirmation of destructive actions stay with the user.
Final report
When the run completes, fails or blocks, label each substantive claim in your summary by its basis: observed when a check, test run, command output or file you read shows it, naming the source ("tests pass (observed: check unit in the evidence record)"); inferred when you reasoned your way to it, with what would confirm it ("likely caused by the retry loop (inferred)"); unknown when nobody established it. Only what the evidence record or a run you saw supports is observed. Keep every gap in the summary.
Failure behavior
- Nothing is implemented before the user approves the plan.
- Failed tests or verification fail the phase; retries are bounded.
- Gardener proposals are advisory and never block completion.
- If a required ToolImplementation or runtime is unavailable, stop and explain the missing prerequisite. Never infer or execute a command from repository scripts.
- Do not edit human-owned Paved state or bypass lifecycle, ownership, approval, or verification gates.
Conversational contract
- Invoke the command. If it returns
"status": "awaiting_input", it is waiting on the user. - Present every decision in
decisions[]to the user: what Paved detected, what remains to decide, why it matters, the options, Paved's recommendation and its evidence. - Collect the user's answer. Do not answer on their behalf.
- Resume the same command with
--answer <decision-id>=<value> --answered-by <identity>, repeating--answeronce per value for a multi-choice decision. - Present the result.
Follow core.decisions.decisions for the full interaction protocol and its prohibitions.
04 同仓库更多 Skills
sample-skill
Does a sample task. Use when a sample is needed.
unexplained-contract
Does a sample task. Use when a sample is needed.
shell-block
Does a sample task. Use when a sample is needed.
project-identifier
Does a sample task. Use when a sample is needed.
oversized
Does a sample task. Use when a sample is needed.
no-activation
Does a sample task.