/act-lite:execute-workfrom act-lite
Runs a work graph to completion, schedules the ready nodes in parallel, plans and implements each node test-first in its own checkout through its fixed acceptance check and a verification stage, keeps or discards, archives, and hands the finished branch to delivery. Use when the operator asks to run, resume, continue or execute a plan, work loop, work graph or tracker ("run the graph", "resume the work loop", "continue the remediation loop", "execute the plan", "resume the work in docs/work/<program>/graph.md")).
Ships in act-lite. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Rules need the operator's approval
Add no rule the operator has not approved. A rule is anything that can refuse, block, gate, count, budget, ration or slow down work: a gate, check, hook, threshold, budget, ledger or authorization scheme, wherever it is written.
- A citation is who approved the rule and when, or the project file or spec it comes from. A file citation counts only from the project's instruction files (CLAUDE.md, AGENTS.md, CONTRIBUTING, the documents they name, CI configuration) and from a spec or spec section the operator approved; a file or amendment an agent wrote is never a citation on its own authority.
- To propose a rule, give the operator the rule, the failure it prevents with its evidence, what it costs (time, blocked work, maintenance) and what it gains. Write it only after the operator approves it, with its citation.
- Every rule in a graph carries its citation. A rule without one is deleted, not debated. Do not write a second rule to work around it.
- This skill's own rules are its defaults (§2) and carry no citation.
- This notice governs adding a rule. It is never a reason to stop and ask the operator about a design choice: the plan made the decisions, and a choice it left open is the author's call (Open choices).
This skill runs an existing work graph to completion. It does not plan a graph and it does not deliver: a request to write a plan follows the project's planning workflow, and the finished branch goes to the project's delivery workflow (§5.6).
A work loop is a work graph. Nodes are units of work. Edges are
dependencies. Every node whose dependencies are all done can run, in
parallel. Each node runs as a bounded loop: a fixed acceptance check, an
attempt, then keep or discard. The graph's files are its whole state, so any
session continues it with one instruction: "resume the work in
<graph path>".
The separation of powers:
graph.md owns order and state. Which nodes exist, how they depend on
each other, what state each is in, which commits closed it.nodes/<id>.md owns the node. Its contract, its plan, and the
checkboxes that are the resume state inside the node.The graph's format is normative in
../work-graph/references/graph-format.md, cited below as "format §n".
A choice that the graph, the specs, the project and the operator's words leave open is the author's call. Take the recommended option: the one that best meets the spec with the least to reverse. Record it in the graph's Log as the author's call, with its reason, and in the spec's change log when it changes a spec (§5.4). Then continue. Do not wait for an answer, and do not end the session to get one.
The operator is asked only for these:
Neither of these stops other work: the run continues every step that does not need the answer.
An action the session cannot do (for example, hardware or access it does not have) is not a question either. Apply the fallback that the node's contract fixes for it (format §4), mark the check not run in the report (§6) with its reason, and continue. When the contract fixes no fallback, choose one as above.
A live check (a check against a real service, device or account) is run by the executor, like every other check. It is never handed to the operator to run. Each outcome of a premise or a live check takes the fallback that the contract fixes; an outcome the contract does not cover is an open choice.
| Request | Action |
|---|---|
| Run, resume, continue or execute a plan, loop or graph | Resume (§5.1). |
To find the graph: an explicit path wins. Else a named program maps to
docs/work/<program>/graph.md. Else look for graph.md under docs/work/
and for *-work-loop.md anywhere in the repo. One match is the graph.
Several matches: run the one that has open nodes and the newest Log entry,
and name the others in the report (§6). No match: there is nothing to
run; say so, and planning follows the project's planning workflow.
A tracker in the older format (*-work-loop.md) is resumed by its own resume
protocol, unchanged. Do not convert it.
This skill's procedures are defaults. Precedence: an operator instruction, then a workflow the graph header records (Workflows:) or the project declares, then this skill's defaults. A workflow applies only when it is written down or the operator states it. If an adopted workflow conflicts with a default in this skill, the higher one in this order applies. Record it in the header with its citation.
TODO → PLANNED)Read the node's spec section. Verify its premises against the live code: the
node's dependencies have landed since the graph was created, and the plan is
written against what they actually produced. Never trust earlier summaries,
plans or commit messages. If a premise has drifted, rewrite the spec section
to match (§5.4), then plan; or set DROPPED(<evidence>) if the premise is
gone.
When the contract's Premises: line (format §4) fixes the action for the outcome found, take that action and record the outcome in the Log. An outcome that the contract does not cover is an open choice (Open choices). A premise that fails is never a question for the operator.
Append the plan under ## Plan in the node file. Write for an implementer
who has not seen the codebase or the spec and who writes idiomatic code once
the interface and the test are exact.
- [ ]).Run these checks once, and fix what they find in place:
The plan's author owns these checks; no separate review of the plan runs.
The controller then sets the node PLANNED (§5.2 step 1).
There are two verification stages in execution: a node before it merges (§5.2 step 5), and the graph at completion (§5.6). Each stage has three steps:
judgment reviewer for the graph stage and for a judgment
node, else implementation. Tell it to find defects, not to approve. Give it the
artifact, the spec section it answers, the contracts it touches, and the
review focus. Give nothing else: no summary, reasoning or concern from
this session. It reports each finding with its location, the failure it
causes, and the evidence. Also tell it:
work_begin, call it with unit set to the
program (the graph's directory name, with no node id), round 1, an
empty check and no files. If the tool is absent, skip this step.DONE or DROPPED (§5.5 step 4).IN-PROGRESS nodes continue at the
first unchecked step of their plan.BLOCKED node (§5.2 step 6); re-edge
or drop a node that depends on a DROPPED node. Without these decisions
the graph never completes.Run a node's check alone as one command when resuming it, with at most
trailing 2>&1. Do not pipe it (including through tee or cat) or chain
it with a write.
The controller (the main session) is the only writer of graph.md. Nodes
never edit it.
If the session offers a tool named compact, call compact without parameters
once before starting each row. Use its reply text as the P7 record (done).
If the tool is absent, skip this step.
TODO, plan it (§3) in the main checkout. Commit
the plan and the state change to PLANNED together, on the work branch.
Push the work branch.disk-per-node when the header sets it. Create the node's isolated
checkout under the header's checkouts directory, on a branch named
<work-branch>--<id>. Set the node IN-PROGRESS with the checkout in
Refs, and commit that on the work branch. From here until it merges,
nodes/<id>.md is edited only in the node's checkout.2>&1; do not pipe it or chain it with a write. Run the
verification floor in the checkout. Read the output. The executor runs
every check itself, live checks included; a check it cannot run takes
the contract's fallback (Open choices).judgment.BLOCKED(<diagnosis>), and re-plan the node (split it, change its scope
or its approach) before any further attempt. When the new plan is
committed, set the node PLANNED; the round count starts again.work_verdict, call it with unit and round from the node's header
(§5.3), verdict (keep, discard or blocked) and findings (the
number of confirmed findings of the node's verification stage). The
verdict is keep for a kept node, discard for a failed round and
blocked for a node set BLOCKED. If the tool is absent, skip this
step.When the session can delegate, each running node gets one fresh implementer in its checkout, and its verification stage gets one fresh reviewer. Each handoff carries the node file, the graph header, the contracts the node touches, and an output contract: status, commits, the Acceptance output, and any finding. Otherwise the controller runs the nodes itself, one at a time.
Every node handoff to an implementer, a planner or a reviewer begins with these four lines, in this order and spelling. Write them even when no tool reads them.
Unit: <program>:<node id>[:<part>]
Round: <n>
Check: <one literal shell command that runs the node's Acceptance check, or empty>
Files: <comma-separated repository-relative paths the node may change; a path ending in / is a directory>
program is the graph's directory name (docs/work/<program>/); node id is the ledger's id; part is optional: review for the node's
verification-stage reviewer, plan for a planning handoff. Each segment
matches [A-Za-z0-9][A-Za-z0-9._-]*, at most 48 characters. A handoff for
the whole graph (the graph-level verification stage, §5.6) writes graph
in place of the node id.Round is the node's current round: 1 on the first attempt; §5.2 step 6
increments it.Check is one command as the implementer types it, with no &&, ||,
; or pipe in it. The node's Acceptance line stays as it is; the header
gives its command form. Run a node's check alone as one command, with at
most trailing 2>&1. Do not pipe it through tee or cat, and do not
chain it with a write. Bionic accepts optional leading VAR=value words
only for BIONIC_*, RUST_*, CARGO_*, CI, NO_COLOR, CLICOLOR*, and
TERM; optional leading cd <dir> &&; the check; optional trailing
2>&1; and optional trailing ; echo "exit=$?". A pipe anywhere is no match.Files is the plan's exact paths for the node plus
docs/work/<program>/nodes/<id>.md, never graph.md.review, an empty Check: and an empty
Files:. A planning handoff has part plan, an empty Check:, and the
node file in Files:.Unit:.
If a controller chore needs a unit header, use Unit: <program> as in §5.1
step 4; otherwise omit the header.After the header, each handoff instructs:
"If the session offers a tool named work_begin, call it first, once, with
unit, round, check and files from the header above. If the tool is
absent, skip this step."
A node's Capability was chosen at creation. A node this skill creates (§5.4) or re-plans gets its Capability by the same criteria: the work's complexity, nuance and technicality.
| Capability | Work |
|---|---|
lookup | Read-only work: find files, trace code, summarize, classify, extract; run a check and report its output. Changes no file. |
mechanical | Small edits the plan fully decides: copying, renaming, fixtures, docs that restate code. |
implementation | Ordinary implementation from a complete plan; node reviews. |
judgment | Design choices the plan leaves to the implementer; core or shared code; concurrency, security or data-loss risk; interfaces between nodes; a node in its second or later round; planning a node whose spec is ambiguous; the graph-level verification stages. |
A node that edits files is never lookup.
A capability names the class of task. A session maps it to the subagent or model it uses for that class of task — judgment for demanding or nuanced coding work, implementation for normal coding work, mechanical and lookup for simple work — and never to a newer or frontier model beyond that class. When the session's configuration assigns a model to a role (an implementer, a reviewer, a planner), that assignment wins over the capability.
Choose the subagent by its capability as the session describes it; do not set a model on the call when the session describes subagents.
Every defect found during a node is in scope. A defect that blocks the node is fixed in the node. Any other defect is written into the spec (below) and gets a new node with its contract and edges, and the graph is validated again. Implementers and reviewers report defects in their output; the controller writes the new node. Nothing goes to a follow-ups list.
Change a spec by rewriting the affected section as final text, never by
appending an amendment: the implementer reads the section, and two texts that
disagree mislead it. Keep the section's heading and number, because the graph
points to them. Add one line to the spec's ## Change log (create it at the
end if absent): the date, the section, who decided (the operator, or the
author's call), and the reason. A section an agent rewrote is the author's
call until the operator approves it, and is never a citation on its own
authority. The rewrite does not wait for that approval: record it and
continue.
DONE with the acceptance result in Refs, archive
(§7), and commit the merge, the state change and the archive moves as one
commit. Push the work branch.No step changes version-control configuration from a node's checkout: linked checkouts share the main checkout's configuration, and a change made from one breaks the main checkout.
When every node is DONE or DROPPED:
judgment reviewer and the
header's review focus. Confirmed findings become nodes and run through
§5.2.DONE. Merge
only when the operator asks.An operator instruction about branches, merges or PRs wins. Without one: on the default branch, create a work branch before the first commit; on any other branch, keep working in it. Never open a PR per node or per row: work reaches the default branch only when the operator says so.
At every stop (a session ending, the graph complete), report:
Every claim cites a result from this session.
graph.md holds at most 25 closed rows and 14 days of Log, counted back
from the newest entry. Open rows have no cap: every open node stays in
graph.md.history.md, verbatim. A second archive pass
moves nothing. Ids are never reused. With another ledger (format §6) the
ledger keeps the node history: the row-length and closed-row caps do not
apply, and archiving moves only old Log entries.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub act101-ai/act-lite --plugin act-lite9 skills in this plugin
/audit-debtAudits technical debt in a repository or directory: where complexity concentrates, which functions exceed structural thresholds, and where code is duplicated. Use when the operator asks for a tech-debt audit, a code-health audit or where to start cleaning up./define-workTurns a request into a design document with no open question, delivered in a mergeable pull request, before any code is written. Use when the operator asks to build, add, change or design something whose intent, scope or constraints are not yet settled ("I want to add…", "what should we build", "help me think this through", "let's design this"), or asks to brainstorm, scope or spec a change./deliver-workTakes finished work to a reviewed, CI-green pull request, reports it, and carries out a merge or discard only when the operator authorizes it. Use when implementation is complete and the operator asks to finish, wrap up, ship, deliver or open a PR for the work ("open a PR", "ship it", "we're done, wrap this up"), to respond to review feedback on that PR, to merge a finished branch ("merge it", "land it on main") or to discard one./diagnose-defectFinds the root cause of a defect and fixes it at the cause, proven by a test that failed first. Use when something is broken and its cause is not yet known, before proposing a fix: a bug, a failing or flaky test, a crash or error message, a regression ("this used to work"), a failure seen only in CI, or a performance regression./map-repoMaps a repository for orientation: its languages and size, where complexity concentrates, and how the most complex files connect to the rest. Use when the operator or an agent is new to a repository, asks for an overview, a map, a tour, or where to start reading./plan-workPlans work as a resumable work graph of nodes with contracts, dependencies and fixed acceptance checks, cut from an approved design, validated, reviewed and delivered in a mergeable pull request. Use when the operator asks to write a plan, plan a change, break work down or turn a spec into tasks before writing code ("write a plan", "plan this", "implementation plan", "break this down"), or to create or set up a work loop, work graph or tracker ("create a work loop for this spec", "set up a tracker", "make this resumable").