/dev-workflows:implementation-skillfrom dev-workflows
Coordinates code changes through a Wirelog-based agent harness that decomposes requests into atomic skills (inspect, plan, implement, test, review, commit).
Ships in dev-workflows. 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.
Read when SKILL.md points to them.
Use this compatibility entrypoint for code changes that should be handled by the Wirelog-based agent workflow harness. The harness converts the request into facts, evaluates Wirelog rules through PyreWire, and emits the atomic skills that the coordinator is allowed to run for the current request.
The old monolithic procedure is now split into smaller skills:
inspect-repositoryclassify-change-riskcreate-implementation-plancritique-planimplement-atomic-changerun-focused-testsrun-broad-testsvalidate-security (when selected)validate-data-change (when selected)validate-deployment (when selected)review-diffvalidate-final-designvalidate-final-riskscommit-atomic-changereport-resultDomain ontology packs are opt-in. Discover the shipped vocabulary and select applicable packs before classifying a domain change:
agent-workflows-harness --list-ontology-packs
agent-workflows-harness --ontology-pack security --ontology-pack data-change --touches secret_handling --touches schema_migration --scope one_line
agent-workflows-harness --ontology-pack deployment --print-ontology
Repeat --ontology-pack with a built-in ID or local pack JSON path. Supply all
requires dependencies explicitly; --ontology still replaces the base.
Unknown vocabulary diagnostics preserve the selected packs: run the printed
hint to inspect that same vocabulary. --list-ontology-packs exits 0 without
a plan, like --print-ontology; do not treat either output as selected skills.
The workflow still uses four roles when the selected plan requires them:
Before editing, select the atomic skill plan with the runtime harness:
agent-workflows-harness "refactor auth workflow and add tests"
or pass explicit facts:
agent-workflows-harness --property non_trivial --property touches_shared_behavior --property needs_tests
Resolve the command without assuming the plugin host inherited an activated Python environment. Use the first available option:
agent-workflows-harness when it is on PATH.<workspace>/.venv/bin/agent-workflows-harness on POSIX or
<workspace>/.venv/Scripts/agent-workflows-harness.exe on Windows when that
file exists and is executable.python -m agent_workflows_harness.cli when the active Python can import the
package.Run the resolved command and use its JSON output. Do not declare the runtime
unavailable merely because the bare command is absent from PATH; try the
remaining installed forms first. Do not install dependencies or rewrite the
host environment implicitly.
A run that selects skills emits a machine-readable JSON plan containing request
facts, selected skills, blocked skills, and rule reasons, and exits 0. Add
--decision-log path/to/decisions.jsonl to append a durable selection record.
--print-ontology also exits 0, and selects nothing: it prints the declared
surfaces, scopes, and class hierarchy instead, so its document carries no
selected key. Exit 0 therefore means the command answered the question it
was asked, not that a plan exists.
A non-zero exit never prints a plan, and a plan is what a run without
--print-ontology produces when it exits 0. Branch on the exit code together
with the query you asked for, and never read a failure as an empty plan.
2: rejected input. Stdout is empty and the cause is on stderr, so a
caller reading only stdout sees nothing at all here. Fix the facts and run
the selector again. --touches and --scope accept only declared names, and
--print-ontology prints exactly which ones -- read it rather than guessing
a name or retreating to --property, which is the keyword path the ontology
exists to replace.3, selector_unavailable: the Wirelog runtime could not run. Fail
closed as described below.4, rule_conflict: two rules disagree about the same skill, so no
plan is deterministic. Do not fail closed to the non-trivial plan and do not
proceed. Report the conflict through report-result and stop.5, harness_error: the harness failed for a reason it does not
classify further. It is a harness defect, not a dead runtime and not bad
input. Do not fail closed to the non-trivial plan; report it through
report-result and stop.Exits 3, 4, and 5 emit an error document carrying a kind on stdout;
exit 2 does not. Every one of these exits terminates the run and still
requires report-result. Producing no plan is never a reason to stop without
responding.
Skill choice is therefore made by explicit facts and Wirelog rules instead of by free-form LLM tool selection.
If the harness runtime is unavailable in the host, fail closed: apply the non-trivial plan manually, report that the runtime selector could not execute, and do not skip planning, critique, review, or final validation gates. Do not omit the commit gate after the candidate is approved.
Determine request facts and run the Wirelog selector. Record the selected skills and their rule reasons in the final response.
Minimum facts include:
Clarify the concrete target only when it is genuinely ambiguous. Otherwise infer the smallest useful scope from the request and repository context.
Inspect the codebase before proposing implementation details:
Protect unrelated work. Do not stage, revert, or modify unrelated files.
Run this pass only when the selected skill plan includes
create-implementation-plan. Ask an independent Architect agent to produce a
short implementation plan before editing. Give it the intake findings and the
objective; do not give it a plan to confirm. Dispatch it under Agent Use and
Degraded Mode: the pass is not complete until the coordinator holds
implementation_plan. In single-judge mode the coordinator writes the plan
itself and the one agent critiques it, for the reason given there; dispatching
authorship instead would leave that agent critiquing its own plan.
Run this pass only when the selected skill plan includes critique-plan.
Before implementation, have the Critic challenge the plan, whoever wrote it.
Resolve Critic objections before implementation. This pass never goes to the
agent that produced the plan, and in single-judge mode it is the one pass the
single agent holds that the coordinator could otherwise have taken -- it is
what interrogates the plan's quality, so it is the one that must stay
independent. Dispatch it under Agent Use and Degraded Mode: the pass is not
complete until the coordinator holds critique_findings.
Run implement-atomic-change in atomic units. This creates an uncommitted
atomic commit candidate; it must not create or amend a Git commit. Each unit
should:
Do not batch unrelated fixes into the same unit.
Run run-focused-tests when selected. Run run-broad-tests when the plan
selects it because shared behavior, public workflows, persistence, network, or
cross-module code changed.
When selected, run validate-security, validate-data-change, and
validate-deployment after tests and before review, in plan order. Record
security_validation, data_change_validation, and deployment_validation
for the same approved_candidate_tree. The coordinator may execute these
checks; they do not replace independent judgment gates. Every selected domain
validation must return approved; a missing, failed or unavailable required
check is blocked, stops the commit gate, and must be reported. Selection does
not authorize production deployment, data changes or real-secret access.
Candidate fixes invalidate these results as well as the other validation.
Every code change, including documentation-only and trivial changes, selects
review-diff. The Reviewer must not have written the change under review. Give
it the raw uncommitted diff, candidate path set and digest, and the objective,
not the Implementer's account. Every gate must identify the same
approved_candidate_tree created from the base tree with a temporary index.
Dispatch it under Agent Use and Degraded Mode: the pass is not complete until
the coordinator holds review_findings. Final validation starts only after
this pass is complete for the current candidate, because the Reviewer's
findings are what final validation judges.
Every code change selects validate-final-design and validate-final-risks.
Their subject is the Reviewer's review of the Implementer's candidate, so they
run strictly after it. Do not dispatch either final gate until the coordinator
has received review_findings echoing the same approved_candidate_tree the
gate will judge. Dispatching a final gate alongside review-diff, or before
its findings arrive, is an ordering violation, not a speed-up. The two final
gates may run alongside each other. Give each the raw review_findings
together with the exact candidate. When planning or plan critique was not
selected, validate against the objective, risk classification, tests, and
exact candidate instead.
Architect and Critic adjudicate every finding the Reviewer marked blocking:
each gate records it as upheld or overruled, with a reason. An overrule must
argue from the candidate diff that the finding is wrong or not blocking;
declining to judge a finding as outside a role's focus records it as upheld.
A blocking finding clears only when both gates overrule it; otherwise the
candidate goes back through implementation and re-review. Either gate may
escalate a non-blocking finding, which then counts as upheld and clears only
through a fix. The agent that wrote review_findings must not overrule them:
a final gate held by that agent records every blocking finding as upheld, so
such a finding clears only through a fix. In single-judge mode that is every
blocking finding, because the one agent wrote them all. Only the coordinator
knows who wrote the findings: say so in that gate's dispatch, and count any
overrule it returns as upheld. The candidate can
proceed only when Architect and Critic both approve after adjudicating the
Reviewer's findings.
Each gate returns an explicit verdict of approved or blocked. A blocked
verdict stops the commit gate for that candidate; it never ends the run
silently. Report the verdict and its reasons through report-result. Dispatch
both under Agent Use and Degraded Mode: neither pass is complete until the
coordinator holds architect_validation and critic_validation echoing the
approved_candidate_tree they judged.
A final gate that received no review_findings, or findings echoing a
different approved_candidate_tree, returns blocked for that reason alone.
This block alone is a coordinator ordering defect, not a judgment of the
candidate: re-dispatch that gate once with the received review_findings, and
name the violation in the report. That re-dispatch does not spend the
failed-dispatch retry. A second such block from the same gate for the same
candidate stops the run as blocked.
Any fix invalidates prior test, review, and final validation artifacts. Repeat the selected validation, independent review, and final validation gates for the changed candidate.
Run commit-atomic-change only after all selected validation passes and
Reviewer, Architect, and Critic approve the same candidate. The Reviewer's
approval means no blocking finding stands: each was fixed and re-reviewed, or
overruled by both Architect and Critic. Require a clean real
index before staging; do not unstage or repair pre-existing entries. Stage only
the approved paths and hunks, verify the staged tree matches
approved_candidate_tree, create a new commit without bypassing hooks or
amending history, and verify the commit tree matches the approved tree.
For multiple atomic units, repeat implementation through commit for each unit.
Run report-result once on every termination of the run, not only after a
successful commit. A blocking gate verdict, a host that can provide no
independent agent to hold the judgment gates, an unavailable runtime, a rule
conflict, a harness defect, or an abandoned unit still terminates the run and
still requires the report.
Independent role passes are the normal workflow. A role that inherits another role's reasoning can merely confirm it, which defeats the critique and review gates.
No agent judges an artifact it produced. The producer of an
implementation_plan never holds critique-plan, and the coordinator is the
Implementer, so it never holds review-diff, validate-final-design, or
validate-final-risks. This binds whoever comes to hold both, by dispatch or
by degradation; it is not a property of the degradation path, and a coordinator
that sent both planning passes to one agent has broken it without degrading
anything.
Beneath that, no single agent holds both validate-final-design and
validate-final-risks, except where the selected plan and the reachable agents
admit no assignment that separates them. That exception is never taken by
choice, and the report must name the assignment that could not be constructed.
Fix the assignment before the first dispatch: choosing it pass by pass spends
the freedom that would have separated them and then reports the collapse as
unavoidable. Fixing the assignment is not dispatching: judgment passes are
dispatched in workflow order, and validate-final-design and
validate-final-risks never start before the coordinator has received
review_findings for the candidate they judge. The agent that wrote
review_findings never overrules them at final validation, by dispatch or by
degradation. So the agent holding review-diff holds neither final gate,
except where the reachable agents admit no such assignment; the report then
names that overruling a blocking finding was unavailable.
With exactly one independent agent the exception is forced -- that agent holds
every judgment gate, so it judges both design and risk at final validation.
Call that single-judge mode. Planning stays separated, because the
coordinator may hold one of create-implementation-plan and critique-plan,
neither of which judges the candidate. It takes create-implementation-plan:
critique-plan is the only pass that ever interrogates the plan's quality,
since final design validation holds the objective independently but otherwise
uses the plan as its yardstick, and a sole check must be the independent one.
single-judge mode surrenders five guarantees and the report names all five.
The design verdict and the risk verdict come from one mind. That mind validates
risks against a critique it wrote. Both final validations read review findings
it wrote. The intended design is the Implementer's own, independently critiqued
but not independently authored. And that agent cleared the plan at
critique-plan before reviewing and validating against it, so withholding the
Implementer's account from the Reviewer no longer withholds the design the
Reviewer already accepted. Three verdicts from one agent is one review with
three headings; printing three approvals while disclosing one surrender
manufactures the assurance this contract exists to withhold.
Confirm receipt before treating any dispatched pass as complete. A pass is
complete only when the coordinator holds that role's named artifact and the
artifact echoes the identifiers its skill requires, such as the
approved_candidate_tree ID a validation gate judged. Work the coordinator
never received was not delivered, and a verdict that echoes nothing it judged
is not evidence the role saw the candidate. Requiring an artifact without
requiring that substance only trades a silent loss for a rubber stamp.
Every dispatched role's skill must therefore require at least one such
identifier: a validation gate echoes the approved_candidate_tree it judged, a
plan names the repository paths it was written against, a critique names the
plan elements it examined and what it examined them for. None of these is
unforgeable, because the role is handed the inputs they come from. Their
purpose is to make an empty artifact visibly empty in the final report, not to
authenticate the work. Do not build anything on the stronger reading.
That is also why a gate that returns a verdict is held to a different standard
than a pass that returns a proposal. An invented path in a plan is a plan
defect, and the critique and the review still run against it. An invented
citation attached to an approved verdict is terminal: nothing downstream
re-checks it. Require identifiers a role already holds; do not require a gate
to produce new evidence it would be tempted to fabricate.
Artifacts do not come back the same way in every host, and hosts differ in how many independent agents they can provide. Identify how a dispatched role's output actually reaches the coordinator, and how many independent agents the host can provide, before the first dispatch, and name the return path in every dispatch prompt together with the artifact the role must return.
A run needs one independent agent to hold the judgment gates the selected plan
requires, and enough to separate that plan's final validations -- one and two
respectively for every plan the selector accepts today, and for the fail-closed
non-trivial plan when the runtime could not run. Keeping every guarantee takes
a third, which keeps review-diff apart from both final gates; without it,
overruling a blocking finding is unavailable and the report says so. With none, stop the run as blocked before editing and report it through
report-result, naming the count the host offered. With one, run in
single-judge mode. Establishing the count before the first dispatch is the
point: the same stop found one lost role at a time arrives after the work it
invalidates.
A role that ends, goes idle, or reports itself available without the coordinator holding its artifact is a failed dispatch, not a completed pass. So is a bound the coordinator set before dispatching that elapses with nothing delivered. Treat either exactly as an error; waiting on a role that already stopped is the hang this rule exists to prevent.
Re-dispatch a failed role at most once, and only when something material changes: naming a return path the lost prompt omitted, a different agent, or a synchronous dispatch. Re-sending an identical prompt carries no new information, so degrade instead.
If the re-dispatch also delivers nothing, degrade that role alone and keep
every other role independent. Degrading a role means the coordinator runs that
skill itself against the same inputs. It must not do that while it already
holds the other side of the role's gate pair -- Architect and Critic,
Implementer and Reviewer, or Implementer and final validation. When it does
hold that other side and no further agent can be reached for the role, stop the
run as blocked and report it through report-result rather than perform a
self-review. If no independent agent is available in the host at all, every
judgment gate would fall to the author of the change, so no candidate can be
approved and none can be committed. Do not begin editing to discover that: stop
the run as blocked and report it. Preserve and use every successfully returned
raw artifact; if a lost one arrives after the gate ran, use what was held at
gate time and report the duplicate.
Degrading a role weakens independence guarantees and never applies to a
judgment gate: review-diff, validate-final-design, and validate-final-risks
are neither omitted nor absorbed by the coordinator, and one with nowhere
independent to go stops the run instead. The final handoff must name every
dispatch that delivered nothing, every role that ran degraded, and why.
Before final response, verify:
single-judge mode or a degraded role was declared with its cause.review_findings for the same
candidate were received, and Architect and Critic each ruled on every
blocking review finding.In the final response, report:
error.kind and exit code when the run produced no planimplementation_plan summary and critique_findings when those skills were selectedreview_findingsarchitect_validation and critic_validation, each with its explicit verdict,
the approved_candidate_tree ID it judged, and its ruling on each blocking
review findingcoordinator, degraded when the
coordinator produced it, so a pass that never ran independently cannot be
reported as one that didsingle-judge mode, and every independence guarantee
that weakenedWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub justinjoy/agent-workflows --plugin dev-workflows17 skills in this plugin
/classify-change-riskAtomic implementation skill that classifies request risk, scope, validation needs, and whether planning/review gates are required./close-open-issues-goalSet a persistent session goal for reducing a repository's open issue count to zero with priority-first resolution and self-contained follow-up issues. Use when the user explicitly asks to create, set, or start this open-issues resolution goal; do not use to begin resolving issues without an explicit goal-creation request./commit-atomic-changeAtomic implementation skill that commits one reviewed and approved change without including unrelated work.Other plugins' skills for the same job