/agent-workflow-engineering:refining-workflows-from-artifactsfrom Agent Workflow Engineering
Refines a reusable agent workflow, prompt, or skill based on execution artifacts, reviews, or failures. Classifies problem causes before proposing minimal workflow diffs.
Ships in Agent Workflow Engineering. 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.
Improve a reusable agent workflow based on an actual execution result.
Do not use this to improve the artifact itself. Use this to improve the workflow that produced the artifact.
The goal is to make the next run more reliable through a small, evidence-based workflow change.
empirical-prompt-tuning instead)extracting-agent-skills instead)Use whatever is available:
1. Current workflow or skill
2. Task, seed, or input used
3. Artifact produced
4. Review, test result, simulation result, or human concern
5. Whether similar tasks will recur
Proceed with explicit uncertainty if inputs are incomplete. Treat missing evidence as an evaluation limitation, not as proof of workflow failure.
Do not treat every artifact failure as a workflow failure.
Classify the cause first. Only workflow-caused (C), evaluation-caused (D), and output-format-caused (F) problems should normally produce workflow changes.
For capability-boundary-caused problems (E), add a human review point, tool requirement, prototype test, or observation criterion — do not pretend the agent can verify it.
The four roles are Success Extractor, Failure Classifier, Workflow Diff Editor, and Deletion Reviewer.
Run them as a single pass for a small, localized workflow fix. Availability of subagents is not by itself a reason to dispatch them. Split the roles into independent reviewers (separate subagents, or isolated sequential passes when subagents are unavailable) when one of these holds:
In either mode, the Failure Classifier must classify causes before the Workflow Diff Editor proposes changes. The Workflow Diff Editor must not change the workflow for A (task-caused) or B (execution-caused) problems unless the same issue recurs across runs.
Classify each important issue as one of:
A. Task-caused
Input was ambiguous, excessive, contradictory, or not testable.
B. Execution-caused
The workflow said what to do, but the agent failed to follow it.
C. Workflow-caused
The workflow lacked a needed step, criterion, output field, or repair rule.
D. Evaluation-caused
The success or failure standard was unclear.
E. Capability-boundary-caused
Verification requires tools, prototypes, human testing, or external data.
F. Output-format-caused
The result existed but was hard to inspect, reuse, compare, or audit.
G. Overconstraint-caused
The workflow was too strict and damaged novelty, flexibility, or usefulness.
If unsure, classify conservatively as D or E. Do not add workflow rules from weak evidence.
Apply changes in this order:
1. Fix output format
2. Clarify inspection criteria
3. Change execution order
4. Shorten input format
5. Add repair rules
6. Split roles
7. Add constraints
8. Add human or external-tool intervention points
Constraints are a late remedy. Many failures come from poor output shape or missing cause classification, not from too few rules.
Every refinement must name at least one deletion candidate:
If deletion is risky, mark it "observe next run" rather than deleting immediately. If every candidate is deferred, state explicitly why no actual deletion was made this run.
Easier to verify: format compliance, missing fields, explicit contradictions, unresolved definitions, simple strategy comparison, test-case coverage, repeated output failures.
Harder to verify: fun, taste, feel, beauty, rhythm, persuasion, brand fit, human satisfaction.
For hard-to-verify qualities, do not pretend certainty. Add human review points, prototype tests, sample comparisons, or observation criteria instead.
Load references/improvement-log-template.md at output time.
Keep changes small, reversible, and testable in the next run.
empirical-prompt-tuning — empirical accuracy measurement of skills using subagent dispatch; use when you want to measure success rate across scenariosextracting-agent-skills — extracting reusable skills from completed or abandoned projectsWhat SKILL.md sets; muted values are Claude Code's defaults
9 skills in this plugin
/critiquing-own-responseReviews the agent's own immediately preceding response as an advisory pass, surfacing assumptions, reasoning gaps, alternatives, and unverified claims. Use ONLY when the user explicitly asks for self-critique, critical thinking, or challenges to the agent's prior answer. Do not use for normal follow-ups, someone else's work, automatic checking, or independent quality assurance./dispatching-agent-workRoutes a user's request to a separate task, subagent, automation, or current agent with an appropriate model role, reasoning effort, and workspace isolation. Use when the user or an authoritative instruction asks to dispatch, delegate, orchestrate, enter dispatch mode, run work in another session, select an execution backend, or schedule work. While dispatch mode is active, proactively send substantive execution to the host's preferred worker boundary: a new user-visible task in Codex Desktop App and a subagent on hosts without durable tasks. Do not invoke merely because ordinary work is complex, long-running, or parallelizable, or when this skill is only being mentioned, reviewed, or edited.npx claudepluginhub abagames/agentic-gamedev-skills --plugin agent-workflow-engineeringOther plugins' skills for the same job