/training:designing-ai-workflowsfrom training
Interviews users to design AI-enabled workflows, then scaffolds them as skills with a visual flow map. Guides decisions on subagents, context resets, and parallel agents phase by phase.
Ships in training. 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.
Interview the user through the design of a new AI-enabled workflow, then scaffold it as one or more skills. Draft early and refine iteratively with the user. Ask the high-level questions, show a draft skeleton, then sharpen each part in context. Don't gather everything up front: users react better to a draft than to a long list of abstract questions.
Before starting, read references/design-questions.md. It holds the trade-offs, recommendation heuristics, and examples behind each design area.
Terms are tool-neutral. Project instructions is the always-loaded file (AGENTS.md, CLAUDE.md, or your tool's equivalent). A fresh session is a cleared context or a new chat (/clear in Claude Code). A structured question is your tool's multiple-choice prompt (AskUserQuestion in Claude Code). Where there is none, ask in plain conversation.
Copy this checklist and check off steps as you complete them:
Design Progress:
- [ ] Step 1: Get the topic
- [ ] Step 2: Frame the workflow
- [ ] Step 3: Draft the skeleton
- [ ] Step 4: Refine phase by phase, then resolve the seams
- [ ] Step 5: Confirm verification and feedback
- [ ] Step 6: Design summary checkpoint
- [ ] Step 7: Scaffold the skill(s)
- [ ] Step 8: Update the design summary
- [ ] Step 9: Dry run and refine
Ask for the topic or use case in plain conversation, one question. Do not plan, batch, or ask anything else until you have it.
With the topic known, ask only what shapes the workflow (structured questions fit here, since these are real decision points):
Recap the frame in a few lines.
From the frame, propose a draft structure rather than interviewing your way to it:
Mark the seams explicitly. A seam is a boundary where the context window resets. Walk the phases in order and say, for each boundary, whether the window carries on or resets and what crosses it. Each boundary either carries on in the same thread (no seam) or resets through one of three mechanisms: a script or hook that removes the need for a window at all, an in-skill subagent the model spawns mid-run, or a separate skill the user invokes on its own.
A checkpoint is not a seam. "The user approves the plan" is a -> STOP inside one window, not a boundary. Splitting there separates two phases that share their context. Keep Plan and Implement in one window unless someone else approves the plan later.
State the reset in the skeleton: "Discover, then Plan" and "Discover in its own window, hand over a findings doc, then Plan" are different designs. Mark each boundary as a seam or not. Which mechanism fills it is settled at the close of Step 4, once the phases have real steps.
-> STOP. Share the skeleton and iterate until the user agrees the shape is right. Every later question is asked against this draft, so do not proceed on a skeleton the user hasn't reacted to.
Walk the agreed skeleton one phase at a time. For each phase, infer what you can and ask only what you can't. Cover:
assets/). Sub-steps code could do go to scripts/, or to hooks where the tool supports them.One-line recap per phase before moving to the next. Update the skeleton as decisions land, so the user always sees the current draft.
Close the walk: resolve every seam at once. The choice is comparative: three skills with two handoffs is a different design from one skill with two in-skill subagents. Answering phase by phase gives each seam a sensible answer and the set an incoherent one. Propose all the seams together and let the user move rows. First, account for the delegable side work: if a subagent already takes the heavy reading off a phase, judge its seam on what the phase does after that, not on what it used to read. Then, per boundary, in order:
scripts/, and the seam disappears rather than being managed. Partly: carve the deterministic half out first, then keep going with what's left. Semi-structured output (an observability query, a stack trace, a flaky test run) is where a script narrows the payload and an agent still judges the remainder.Default to staying in the thread unless a gate moved it. That default doesn't cover the side work flagged per phase, since a subagent inside a phase adds only its summary to the main thread. The gates give a starting design, and Step 9's dry run corrects it. One-line recap of the resolved structure before Step 5.
These usually fall out of the Step 4 walk. Confirm and fill gaps rather than re-ask:
references/, a docs system, or a runbook.Fill in assets/design-summary-template.html with every decision, chosen and inferred, and save it as design-summary.html in the project. Mark inferred answers with (inferred). Open it for the user, or give them the path if your tool can't open files.
The summary's sections follow the design areas, in this order: The task → Structure (the visual flow: skills as columns, subagents as detached boxes, steps with freedom levels, handoff artifacts, checkpoints) → Context → Alignment → Verification → Feedback → Files to generate. This file is the workflow's living design document, and Step 8 updates it after scaffolding.
-> STOP. Present the completed summary and get explicit approval before scaffolding. Changes cost less now than after scaffolding.
Read references/skill-authoring.md and follow it. The seams resolved at the close of Step 4 determine how many skills to create, one directory per skill. Generate only what the design called for:
SKILL.md per skill: frontmatter, checklist workflow, and the checkpoints from Step 4 as explicit -> STOP markersreferences/: one stub per some-runs context item, each with a note on what to fill in and an example of the expected detailassets/ templates and scripts/ stubs, only where the design chose medium or low freedom or determinismreferences/agent-prompts.md-> STOP. Walk the user through the generated files, mapping each file back to the design decision that created it.
Update design-summary.html to match what was actually scaffolded: renamed skills, moved files, decisions that shifted during drafting. The Structure section's flow must show every skill, its steps in order, subagent and fan-out blocks, handoff artifacts, checkpoints, and freedom levels as built. The Files section must list exactly the generated files.
-> STOP. Open the updated summary for the user and confirm it matches the scaffolded skills.
Suggest running the new skill on one real unit of work from Step 2 in a fresh session. Tell the user what to watch for: Did checkpoints fire where expected? Did it read the right references? Did verification catch anything? Offer to refine the skill based on what they observe.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub devclarityai/devclarity-marketplace --plugin training9 skills in this plugin
/api-playwright-testingGuides the creation of Playwright API tests from exploration through implementation. Covers API discovery, test plan creation, helper/data factory development, and test writing with human checkpoints at each stage./context-coverageAudit how agent context (CLAUDE.md, AGENTS.md, GitHub Copilot instructions, Cursor/Windsurf rules, rules directories, skills) lines up with the code across a set of repositories and generate a self-contained HTML report. The report leads with a short list of specific "things to check" (context behind the code, thin coverage for the codebase, oversized files, no per-area context), then per-repo raw metrics and a folder tree comparing folder LOC to context coverage, and can show what changed since an earlier run. Use when the user wants to audit context coverage across repos, "which repos are missing CLAUDE.md", "which repos have no Copilot instructions", "where is our agent context thin or stale", "context coverage across my org / projects folder", "track context coverage week over week", or "/context-coverage". Works on a local folder of clones, a whole GitHub org via the gh CLI, or a single monorepo scoped to just the areas one team owns./context-managementSorts the lines in your agent context (CLAUDE.md, .claude/rules/, docs/, skill files) with five questions and moves each one to where it belongs: lint or CI, a ticket, CLAUDE.md, a path-scoped rule, a doc, or nowhere. Use when auditing or trimming a CLAUDE.md, when context files have grown long and noisy, when deciding where a new convention should live, or when promoting recurring review feedback into standing context. Trigger terms: context cleanup, audit CLAUDE.md, prune context, where does this line go, what belongs in CLAUDE.md, context is too long, /context-management./e2e-testingGuides the creation of Playwright E2E tests from planning through implementation. Covers test plan creation, data seeding, Page Object Model development, and test writing with human checkpoints at each stage./finding-skill-opportunitiesUse when asked to find skill opportunities in a codebase, audit a repo for automatable workflows, decide what skills to write, or mine git history, existing automation, and recent Claude Code session transcripts for recurring multi-step procedures worth turning into agent skills./managing-locatorsExplores features to discover stable locators and fixes broken locators in Playwright tests. Two modes — explore (proactive discovery) and fix (reactive repair) — both using Playwright MCP for live browser interaction.