/workflows:dev the feature, change, or bug to developfrom workflows
Guides Claude Code through test-first development: clarifies requirements, then plans and implements changes where every task has a failing-then-passing test. Use for features, bug fixes, and refactors that should ship with automated tests.
Ships in 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; scripts run unread.
work with a test-first gateWhat this skill carries — grep references/ for any subject the names below miss:
!d=${CLAUDE_SKILL_DIR}; command -v skill-toc >/dev/null 2>&1 && exec skill-toc "$d"; s=$HOME/.claude/skills/plugin-utils/bin/skill-toc; [ -x "$s" ] && exec "$s" "$d"; echo "(skill-toc unavailable: references and scripts are NOT listed here — install the plugin-utils plugin, or start a new session so its bin/ reaches PATH)"
The lifecycle is work. Read it and follow it.
This file is a delta: it supplies the domain — the CLARIFY axes, the task-row shape, the lens,
the mechanical checks, the refs, the authority text. It ships no workflow.js and restates none of
work's mechanics.
What makes a run dev rather than plain work is one thing: every implementation task carries a
redCommand (the one exception: redDisposition — see below), so work's probes execute the failing test before the implementer and the passing
test after it, and the JS reads both exit codes. A task whose acceptance cannot be expressed as one
command that fails now and passes later is not ready to plan.
work's Phase 1, on these axes. Ask them before any reconnaissance: code says how the system
works, not what the user wants.
red_probe_gate classifies a collection/import error as could-not-run
and refuses to dispatch. For a surface that does not exist yet, that means a stub — one that
exists and raises, so the failure is an assertion rather than an ImportError — and the stub is
named in the plan's scaffoldPaths so the main thread may author it while the run is armed.
Under farmOutOnly (.claude-workflows.json), main-thread writes are refused — write the
stubs and the red suite in ONE stage-0 farm-out --tasks row ("workflow": "dev", expect =
the scaffold paths) from the approved plan before work-dispatch.sh.Installing the LSP is two things, and the plugin is only one of them.
claude plugin install <lang>-lsp@claude-plugins-official --scope project
--scope project writes enabledPlugins into .claude/settings.json — a committed file, so it
enables the server for everyone who opens the repo; --scope local writes
.claude/settings.local.json instead. Official servers: pyright (py), typescript (ts/js),
gopls, rust-analyzer, clangd, jdtls, kotlin, csharp, php, ruby, lua, swift,
liquid.
The plugin declares a command, never a binary — pyright-lsp is just
{"command": "pyright-langserver"}. Enabling it while the server is absent registers something
that fails at first use with ENOENT: Executable not found in $PATH.
The binary is global, and that is not a preference. Claude Code resolves command from the
process PATH only — never the plugin root, never ${CLAUDE_PROJECT_DIR}, never a project
node_modules/.bin or pixi env. A project-local language server is unreachable by construction;
install it the way this machine installs system tools (nix here, or the distro package), not with
pixi add. What stays project-scoped is the enablement above and the server's own config —
pyrightconfig.json points a global pyright at the project interpreter, and a global
typescript-language-server still loads the project's own typescript from node_modules.
Registration is separate again: a mid-session install is inert until /reload-plugins. Self-send
it rather than asking the user to type it. Then prove it with one LSP call on a real file in
the repo — documentSymbol is enough. The install command's exit code says the plugin was
enabled, not that a server answers.
work's remaining axes are taken as work states them, with one domain binding: work axis 4
(observable success criteria) is answered with the target project's own test, lint and build
commands, and those strings become mechanicalChecks verbatim.
Then reconnoitre — a scouting Explore or Plan subagent, never a read of the whole tree into this
conversation — and return: the entry point and data flow, the integration boundaries, the existing
test harness and the files a new test extends, and the decisions code cannot answer. Re-ask only what
reconnaissance newly raised.
Before planning, present 2–3 feasible architectures with their boundaries, testing implications and trade-offs, and obtain an explicit choice. A sole viable option still needs its trade-off accepted.
work's Phase 2. The plan opens with frontmatter workflow: dev — required, so a context clear at
approval resumes here and not in work.
Three domain requirements on the table:
redCommand per implementation task — one invocation, no shell operators, failing now for the
intended missing behaviour and passing once the task is done. It goes in the plan's Run sizing
Test-first: block too, because it costs 2 agents against the fan-out ceiling.redDisposition — the only substitute for redCommand, and plan-lint (dev-red-disposition) refuses any other
text: no-behaviour: <reason> (docs, config, rename — nothing to pin) or already-covered: <test that pins it>.
A task carrying one is judged on its acceptanceCmd/verification, not on a test that went RED.refs on every task row and on the lens — required, may be empty. work's spine does not validate it;
wc-probe P7 refuses an absent key in THIS file, so a live run assembled from an approved plan is
unchecked. Write refs: [] to state "no domain rules" rather than omitting the key.writablePaths — the probe runs a command that loads code the implementer can edit, so
a wide writable set lets the implementer reach the thing proving its own RED.scaffoldPaths for greenfield only, naming files and not directories — the test suite needs
no entry (no task writes it, so the guard already allows it); the stub does, because it is the
implementer's output and a precondition of its own red gate. A scaffold as wide as a task's
writable surface is scaffold-swallows-task at plan-lint, and it is the guard turned off with
extra steps.work's Phase 3 unchanged.
The args go in the plan's <!-- work:dispatch --> arming block, and the dispatch is work's own
work-dispatch.sh — never a hand-written runner line. That script owns the TIER 1 plan-lint
gate, which refuses to dispatch on a major/critical plan finding and fails CLOSED on a verdict it
cannot count; hand-rolling the invocation silently drops it. work owns the wait, the result handling
and the return shape too, and work-result.sh reads the verdict. This run's projectDir is the
session repo, so work's own run directory is already inside it and no --run-dir override applies.
There is no built-in Workflow call — the guard at
~/.claude/hooks/main-thread-guard.sh denies that tool outright.
bash ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/work-dispatch.sh # armed plan; or pass one
bash ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/work-dispatch.sh --provider codex # "run this through codex"
Forward the provider. A provider named in this skill's $ARGUMENTS, however it is spelled —
--provider codex, --dispatch codex, "run this on gpt" — is --provider codex on the line
above. --provider is the only spelling the scripts take, and both reject the others by name.
Omitting it silently runs the user's codex request on claude.
const projectDir = /* the session repo */
const goal = /* one sentence */
const planPath = /* the approved plan's path */
const testCmd = /* the project's test command, from CLARIFY axis 3 */
const lintCmd = /* the project's lint command, or null */
const buildCmd = /* the project's build command, or null */
const taskName = /* the task's name */
const taskWork = /* what to build */
const taskPaths = /* narrow writablePaths — see Phase 2 */
const taskAcceptance = /* the criterion the verifier checks */
const taskRed = /* the exact command from CLARIFY axis 3, scoped to the first failing test */
const args = {
projectDir,
goal,
// The plan's table verbatim. Every implementation task carries redCommand and refs.
tasks: [
{ id: "T1",
name: taskName,
work: taskWork,
writablePaths: taskPaths,
acceptance: taskAcceptance,
redCommand: taskRed,
refs: ["${CLAUDE_PLUGIN_ROOT}/skills/dev/references/tdd.md",
"${CLAUDE_PLUGIN_ROOT}/skills/dev/references/writing-good-tests.md"] },
],
// The TARGET project's own commands, collected at CLARIFY. Nothing generic — a check that does
// not run this repo's suite gates nothing.
// ONE entry point; three lose one silently. A missing --test-cmd, --lint-cmd, --build-cmd or --plan is exit 2 unless --no-lint-cmd / --no-build-cmd / --no-plan declines it.
mechanicalChecks: [
{ name: "dev",
cmd: `bash ${CLAUDE_PLUGIN_ROOT}/skills/dev/scripts/check.sh --project-dir ${projectDir} --plan ${planPath} --test-cmd "${testCmd}"${lintCmd ? ` --lint-cmd "${lintCmd}"` : ' --no-lint-cmd'}${buildCmd ? ` --build-cmd "${buildCmd}"` : ' --no-build-cmd'}` },
],
// check.sh runs every checks/dev/constraints/ script through `workflow-check dev --constraints-only`. work-checks.sh runs ruleChecks as a command (no agent); Jev scores the rules under checks/dev/rules/ (LOOP, MOCK, NET, SHELL, WEAK); a rule with p >= 0.85 lands in rulesThatFailed and blocks, lower ones reach the lens as a ranked checklist.
ruleChecks: { name: 'jev-dev-rules', cmd: `bun ${CLAUDE_PLUGIN_ROOT}/skills/work/scripts/rule-check.ts --workflow dev --project-dir ${projectDir} --plan ${planPath}` },
// One lens after verification and mechanical checks; its checklist covers all five dimensions.
// Both texts live in ${CLAUDE_PLUGIN_ROOT}/skills/dev/presets.json, expanded at dispatch; an `extra` string on either carries plan-specific additions. The lens `refs` repeat the preset's so wc-probe P7 can resolve them; dev-lens-contract.test.ts holds the two equal.
lens: { preset: "dev",
refs: ["${CLAUDE_PLUGIN_ROOT}/skills/dev/references/lens-security.md",
"${CLAUDE_PLUGIN_ROOT}/skills/dev/references/lens-performance.md",
"${CLAUDE_PLUGIN_ROOT}/skills/dev/references/writing-good-tests.md"] },
authorityExtra: { preset: "dev" },
verifierAgentType: "Explore",
}
Path containment is mechanical: check.sh's scope leg (work/scripts/scope-check.sh, given --plan) fails a changed path
under no task's writablePaths or scaffoldPaths, naming each. Lens item (2) judges intent only.
verifierAgentType and the lens agentType pin Explore because it has no Edit and no Write: a
judge that structurally cannot modify the tree beats a prompt asking it not to.
implementerAgentType is deliberately unset: the output is code under TDD, and a custom agent body would replace the software-engineering prompt the tasks depend on.
Add ${CLAUDE_PLUGIN_ROOT}/skills/dev/references/testing-web.md or
${CLAUDE_PLUGIN_ROOT}/skills/dev/references/testing-desktop.md to a task's refs when that
task's real test drives a browser or a native app. authorityExtra names them; refs is what makes
an implementer read one in full.
Handle the result per work's Phase 4 — including that a red-not-red, red-unproven or
green-not-green verdict lands in tasksThatFlagged and is fixed as a task, not as a lens.
work's Phase 5 unchanged, on the review surface from CLARIFY axis 7.
| Situation | Wrong move | Right move |
|---|---|---|
| Guard denies a pre-dispatch write | --abandon to get moving | read the denial: under farmOutOnly, run the stage-0 farm row; otherwise an uncovered path is already writable, and a covered one that must pre-exist goes in scaffoldPaths. --abandon unguards the rest of the session and silences the Stop nudge with it |
| RED is an ImportError on the module being built | call it red and dispatch | the probe refuses it as could-not-run; write the throwing stub, declare it in scaffoldPaths |
| LSP enabled, binary never installed | trust the install's exit 0 | one LSP documentSymbol on a repo file before recon; ENOENT there is the whole failure |
| No test harness in the repo | proceed and test by hand | test infrastructure is the first task, decided at CLARIFY — absence of tests is never a waiver |
| The failing test needs two steps | redCommand: "build && test" | work throws on shell operators; put the steps in a script and name the script |
| Task's real test would drive a browser or an app | assert on source or logs | the runtime references are refs on that task; a screenshot with no assertion is not evidence |
| Adding a domain review dimension | declare a second lens beside this one | work takes ONE lens; add the dimension to its checklist, or make it a leg of check.sh when an exit code can decide it |
| RED reported by the implementer | accept it | probes execute redCommand on both sides; the verdict is the JS's, never the doer's |
Something work does not obviously do | write a dev/workflow.js | ask which work parameter is missing |
presets.json (opens in a new tab)references/lens-performance.md (opens in a new tab)references/lens-security.md (opens in a new tab)references/tdd.md (opens in a new tab)references/testing-desktop.md (opens in a new tab)references/testing-web.md (opens in a new tab)references/writing-good-tests.md (opens in a new tab)scripts/check.sh (opens in a new tab)scripts/check.test.ts (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
86 skills in this plugin
/afkUse when the user says '/afk', 'afk', 'going to bed', 'I'm going to sleep', 'work autonomously', 'work on this overnight', 'don't ask me questions', 'while I'm away', or 'do whatever you think is best'. NOT for questions about overnight returns, rates or anything financial; NOT for asking how the mode works./ai-anti-patternsALWAYS load before finalizing ANY written prose, and whenever text is suspected of being machine-written - "does this sound like AI", "make this sound human", "clean up the AI-isms", "did a bot write this", "check this draft before I send it", "review this for AI tells", "this reads like ChatGPT", "review this for mannered prose", "is this too writerly", "is this student paper AI-generated", or before handing back any draft, memo, email, or article you wrote. Use proactively even if the user never mentions AI writing./Claude Code refuses to install this plugin
As a github or url source: Failed to clone repository: fatal: clone of '[email protected]:edwinhu/bmll-skill.git' into submodule path 'skills/bmll' failed
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job