一键导入
exec
Execute the next incomplete step (or full phase with --phase), ship the result, and prepare the next step
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Execute the next incomplete step (or full phase with --phase), ship the result, and prepare the next step
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Provision workflow orchestration and agent conventions into project CLAUDE.md and AGENTS.md
Provision workflow orchestration and agent conventions into project CLAUDE.md and AGENTS.md
Provision workflow orchestration and agent conventions into project CLAUDE.md and AGENTS.md
Provision workflow orchestration and agent conventions into project CLAUDE.md and AGENTS.md
Manage the portfolio of product paths — review, activate, archive, restore, promote, fork, and check revisit triggers across the product-path manifest
Manage the portfolio of product paths — review, activate, archive, restore, promote, fork, and check revisit triggers across the product-path manifest
| name | exec |
| description | Execute the next incomplete step (or full phase with --phase), ship the result, and prepare the next step |
| type | execution |
| version | v0.7 |
| argument-hint | [--phase] [--execute-approved] |
| invocation | orchestrator |
Invoke as $exec.
Identify the next incomplete unit of work from the phased plan, build an execution plan, implement it, ship the result, and prepare the next step. By default, executes only the next single incomplete step. If $ARGUMENTS contains --phase, execute the next full phase and ship once at the end.
tasks/roadmap.md does not exist but tasks/todo.md contains multiple ## Phase headers, migrate: copy tasks/todo.md → tasks/roadmap.md, then trim tasks/todo.md to just the current phase (first phase with unchecked steps). Commit with chore: migrate to roadmap.md + todo.md split.tasks/todo.md — this contains the current phase's steps. Reference tasks/roadmap.md only if cross-phase context is needed.CLAUDE.md for project conventions.
3a. Read docs/codex-accountable-agent-workflow.md and act as Sol for every non-trivial mutation.
3b. If tasks/record-todo.md or tasks/recurring-todo.md exists, count unchecked advisory items for status only. Do not select them as next work.$ARGUMENTS contains --phase, scope the full next incomplete phase.- [ ] step within that phase.### Tests First or ### Implementation section): invoke $plan-phase for this phase to generate implementation steps and file-level detail before proceeding.tasks/manual-todo.md (if it exists) for unchecked items with _(blocks: Step N.X)_ matching the current step. If a blocking external human-only manual task is found, stop and tell the user: "Manual task blocking this step: [task]. Complete it before proceeding, or run $guide for step-by-step instructions." Do NOT execute the step unless the manual task is completed or the user explicitly overrides the blocker. If the unchecked item is task-doc bookkeeping, reconciliation, or agent-executable work (repo edits, SDK wiring, local commands, tests, audits, generated assets, or authenticated CLI/API work), do not route it to $guide; route it to $reconcile-dev-docs fix tasks, promote it to tasks/todo.md, or handle it as a direct dev-doc audit./experiments/<variant> over one merged implementation. Record the deferred infrastructure and the evidence needed to promote it later.
6b. Read the current phase's ### Execution Profile from tasks/todo.md if present:
serial.Parallel mode is agent-team, stop before implementation unless the active workflow can run branch-backed isolated worktrees or a dedicated agent team. Each write lane must have a non-primary GitHub Branch: value and the phase must include a consolidation/PR review step before final validation or shipping.Accountability topology independently. Default non-trivial mutations to sol-terra; use sol-luna-terra only for one to three decision-complete, disjoint Luna write lanes; reserve sol-only-trivial for the convention's trivial exemption.
6c. --execute-approved branch (if $ARGUMENTS contains --execute-approved):--execute-approved --phase — approved packets target one step, not a full phase.scripts/approved-plan.sh check.ok: run scripts/approved-plan.sh consume, log Approved packet consumed: Phase X / Step Y (approved_at=…)., then skip steps 7 and 8 and jump to step 9 (execute).scripts/approved-plan.sh mark-stale, then fall through to steps 7–8 (standard plan + implicit approval). Never auto-retry.jq for the write path. If jq is absent, scripts/approved-plan.sh consume dies with ERROR: jq required for write operations. Install with: brew install jq (macOS) or apt install jq (Debian/Ubuntu). (see require_jq_write at scripts/approved-plan.sh:21); check may surface the same message via its write-path preflight. Relay the message verbatim and stop — no jq-free fallback exists. If the check prints a mode-mismatch reason (resolved mode is claude-only), treat it as a user error and stop.agent-team: the planned lane branches and the consolidation/PR review gateupdate_plan to track the proposed work, then execute by default. Do not ask for routine approval after presenting a $exec plan; the user's $exec invocation is implicit approval for the next planned step or scoped phase. Ask a concise confirmation question only when the work requires a separate safety decision: destructive commands, production deploys, paid/external account actions, credential or secret handling beyond the project contract, accepting an execution-profile downgrade, proceeding despite a blocker, or materially changing the planned scope.serial: execute normally.research-only: launch read-only subagent lanes first when the active environment permits subagents, synthesize their findings, then implement in the main agent.review-only: implement in the main agent, then launch review subagent lanes before final validation.implementation-safe: launch write subagent lanes only when every write lane has disjoint Owns paths and explicit Must not edit boundaries; otherwise downgrade to research-only or serial and report the downgrade.agent-team: do not execute in one shared local tree. Use separate GitHub branches for every write lane, require branch + commit SHA + PR URL deliverables, and run the planned consolidation/PR review step before integration. If branch push or PR review cannot be performed, stop and report the blocker.$expert-review --adversarial-diff --read-only. Record every structured finding and give it exactly one Sol disposition: accepted, rejected, or deferred. Remediate accepted findings, rerun relevant checks, and run a fresh focused Terra re-audit when remediation affects security, authentication, billing, persistence, migrations, concurrency, privacy, data loss, or broad cross-package contracts. Finish with final Sol acceptance.tasks/todo.md:--phase mode: check off the completed steps and any acceptance criteria satisfied by the phase work.CLAUDE.md, Makefile/Justfile (check/lint/typecheck/test/build targets), package.json (lint/typecheck/check/test/build scripts), pyproject.toml/setup.cfg, Cargo.toml. If none found and no prior output exists, skip.docs/quality-gate-contract.md when the completed step changes source code, scripts, configuration, schemas, generated runtime assets, deploy behavior, workflow policy, validation rules, command surfaces, or multiple files.SKILL.md or PACK.md, refresh the public skills catalog export before shipping: run node scripts/generate-skills-catalog-export.mjs and scripts/validate-skills-catalog-export.sh; include changed exports/skills-catalog/v1/** artifacts in the shipping boundary.agentic-skills-showcase repository and imports the public catalog export. Do not run Showcase app generators, Next.js builds, or website asset refreshes during normal agentic-skills shipping. If a skill change needs curated website copy, record the follow-up for the Showcase repo instead of editing app files here.quality-sweep audit, $expert-review, configured review lane, or explicitly justified equivalent adversarial review before commit/push. Fix findings or record accepted residual concerns in the manifest.Skipped tests and explain the residual risk. Do not write "not run" without a rationale.tasks/lessons.md update for the current correction. Treat the correction as repeatable unless the manifest proves otherwise. If it exposes a workflow failure, also include the relevant skill contract, validation script, fixture, or test enforcement update in the same shipping boundary, or include Correction enforcement: with the blocker or not-applicable rationale and the concrete follow-up file/command when needed.tasks/history.md with a brief record of what was accomplished. Create it if needed.$commit-and-push-by-feature workflow. That workflow must land the resulting commits on main or master, not on an existing feature branch.deploy.md or tasks/deploy.md.Deploy skipped: no explicit manual deploy contract (deploy.md or tasks/deploy.md).spec.md, CLAUDE.md, tasks/roadmap.md, tasks/todo.md, Makefile/Justfile, package.json, deploy//infra//scripts/, docker-compose*.yml..github/workflows/ — this project does not use GitHub Actions.aws sso login preemptively from stale context, old logs, or assumptions. If the deploy method uses an AWS profile and auth status is uncertain, first run aws sts get-caller-identity --profile <profile> using the profile from the deploy contract or deploy command.aws sso login.aws sso login --profile <profile> command, using the profile from the deploy contract, deploy command, or error output.aws sso login prints a browser URL, device code, or verification instructions, relay them to the user and tell them to navigate to the provided URL and complete the login in their browser. Keep the login command running until it succeeds, fails, or times out.tasks/todo.md to identify the next uncompleted step in the current phase.tasks/todo.md → tasks/phases/phase-N.md (create tasks/phases/ if needed). Fill in the "On Completion" section.
1b. If tasks/manual-todo.md exists, inspect unchecked items before advancing phases:
_(blocks: Step N.X)_ items still apply to the completed phase, stop. Do NOT archive the manual task file, mark the phase complete, or advance to the next phase unless the user explicitly overrides the blocker._(after: Step N.X)_ items are non-blocking follow-up tasks. Archive them with the phase and warn the user that they remain incomplete.tasks/roadmap.md.tasks/roadmap.md → overwrite tasks/todo.md.
3b. Extract the next phase's manual tasks (from **Manual Tasks:** in roadmap) into a fresh tasks/manual-todo.md. If the next phase has no manual tasks, delete the file.$commit-and-push-by-feature, landing them on main or master, then run $research-roadmap to recommend the next action based on project state. Then stop.$plan-phase for the new phase. This generates implementation steps and file-level detail using the full context of what was learned during prior phases.Files: no source changes expected) and the current session already has passing validation evidence for the same scope, mark it complete with a review note and continue to the next substantive item. Do not write a fresh execution plan for a step whose expected result is "no source changes".tasks/todo.md, complete enough for a fresh session to execute from tasks/todo.md alone.tasks/todo.md, tasks/roadmap.md, tasks/manual-todo.md, tasks/record-todo.md, tasks/recurring-todo.md (when they exist), and tasks/phases/ (if created) via $commit-and-push-by-feature, landing them on main or master.tasks/manual-todo.md (if it exists)tasks/record-todo.md and tasks/recurring-todo.md if they existBefore handing back, identify the next concrete work item from project state, then recommend the executor and invocation.
Output exactly two lines beyond the normal report:
Rules:
tasks/todo.md, tasks/manual-todo.md, deploy status, validation gaps, smoke-test gaps, phase-transition output, or completion of the current queues. Do not use agent mode itself as the next work item.Recommended next command: none unless the latest user request explicitly asks to pause, park, archive, or wait. If implementation phases, documentation work, and promotable advisory items are all exhausted, route to new-phase discovery: **Next work:** discover candidate next phase or explicitly park the project. $brainstorm is owned by the product-design pack — check .agents/project.json.enabled_packs for product-design (or enabled_skills.brainstorm); if absent, recommend npx skillpacks install product-design from the project shell first, then **Recommended next command:** $brainstorm (tell the user to start a fresh Codex CLI session if $brainstorm is still unavailable after install); if present, recommend **Recommended next command:** $brainstorm directly.$research-roadmap scan reports documentation current with no missing or stale work, do not stop at documentation completeness; recommend $brainstorm as the next route for candidate phase discovery, applying the same product-design pack-availability check above../scripts/agent-mode.sh only to choose command text. If it is missing, unset, or non-zero, infer routing from the current invocation and task type instead of asking the user to select a mode by default.tasks/todo.md, tasks/roadmap.md, benchmark reports, or prior handoffs contain Claude slash commands for base skills (for example /exec, /ship, /roadmap, /guide, /reconcile-dev-docs), treat them as task identifiers, not final command text. Convert the final Recommended next command to the equivalent Codex $... command unless the next action is explicitly a Claude-only handoff, /delegate, or a human-guided Claude workflow.$exec, $ship, $ship-end, or $exec --execute-approved) → recommend the matching $... command.$... command unless the next action is explicitly a cross-agent handoff or human-guided Claude workflow.$guide or a Claude-guided manual step rather than $exec.tasks/manual-todo.md, task-doc bookkeeping, stale tasks/manual-todo.md cleanup, or reconciliation against repo/history reality → recommend $reconcile-dev-docs fix tasks, promotion to tasks/todo.md, or a direct dev-doc audit, not $guide.$exec --execute-approved unless the resolved mode is explicitly claude-only..agents/project.json enabled_packs. If not installed, include npx skillpacks install <pack-name> from the project shell as the prerequisite.PoketoWork kanban packs are hibernated while Poketo.work is being rebuilt. Do not substitute $exec-kanban, $ship-kanban, or $ship-end-kanban for base-default recommendations. If .agents/project.json still lists a hibernated kanban pack, keep recommending the base default command and mention scripts/pack.sh remove <kanban-pack> only when cleanup of stale pack designation is directly relevant.
.agents/project.json (or non-zero exit from list-packs) -> silent fallback to the base-default recommendation with a single inline comment pack-lookup: skipped (no project.json) appended to the recommendation line.$exec --execute-approved still consumes .agents/approved-plan.json verbatim regardless of pack routing — the approval-packet contract is unchanged.--phase. Then stop and let the user decide what is next.--execute-approved consumes an approved packet at .agents/approved-plan.json (contract in docs/operating-modes.md § "Approval packet"). --execute-approved --phase is rejected — packets target one step. In claude-only mode the flag is a user error; Codex is not the executor. Requires jq on PATH.EnterPlanMode or clear-context accept flow exists.tasks/todo.md and stop.tdd phases.### Execution Profile annotated on each phase. If subagents are unavailable in the active environment, execute serially and report the downgrade.tasks/todo.md, tasks/roadmap.md, tasks/history.md, shipping commits, or deploy steps. Those remain main-agent responsibilities.Owns paths are disjoint. When in doubt, downgrade to research-only or serial.$commit-and-push-by-feature to move the work onto main or master and push it there, or stop and report a blocker if that cannot be done safely. Temporary agent-team lane branches are allowed only for parallel write isolation and must pass consolidation/PR review before landing.tasks/manual-todo.md. Bookkeeping or agent-executable items that were misfiled there should be reconciled through $reconcile-dev-docs or promoted into tasks/todo.md, not routed to $guide.tasks/record-todo.md or tasks/recurring-todo.md unless the item has first been promoted into tasks/todo.md.exec ships by default in Codex. Use $ship only when there is already finished work in the tree or unpushed commits that need packaging without running a new step.Follow the shared shipping contract convention in CLAUDE.md.