workflow-init

workflow-init is a command for Claude Code from dsnger/dev-workflow-kit. It costs 22 tokens per session (27,008 once invoked), scanned D, original, MIT.

A setup command that creates the project files for a cross-model review workflow and guides you through writing AGENTS.md, the file that gives coding agents project-specific instructions.

In plain words
What is it for?
Use it to initialize the review workflow, add missing configuration entries, record stack-specific follow-up tasks, and create AGENTS.md interactively.
Why use it?
It avoids manually assembling workflow files and protects existing project content by showing differences before any overwrite or merge.

Command for Claude Code

Written for Claude Code: PreToolUse hook event. Also seen: reads .claude/ paths; mentions CLAUDE.md; mentions subagents.

Part of the dev-workflow plugin — 4 skills, 3 commands, 1 agent, 3 hooks shipped together

Good fit Use it to initialize the review workflow, add missing configuration entries, record stack-specific follow-up tasks, and create AGENTS.md interactively.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/dsnger/dev-workflow-kit/workflow-init
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/dsnger/dev-workflow-kit

Made for: Claude Code.

Or install dev-workflow, the plugin that ships this one along with the rest of its 4 skills, 3 commands, 1 agent, 3 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for workflow-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/dsnger/dev-workflow-kit/workflow-init/github.svg)](https://agentmods.dev/commands/dsnger/dev-workflow-kit/workflow-init)
Your own site
<a href="https://agentmods.dev/commands/dsnger/dev-workflow-kit/workflow-init"><img src="https://agentmods.dev/badge/commands/dsnger/dev-workflow-kit/workflow-init/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for workflow-init

Your own site · 80×15
<a href="https://agentmods.dev/commands/dsnger/dev-workflow-kit/workflow-init"><img src="https://agentmods.dev/badge/commands/dsnger/dev-workflow-kit/workflow-init.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 27,008 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.27008
Opus 5.5 $0.00009 $0.10803
Sonnet 5.5 $0.00004 $0.05402
Haiku 4.5 $0.00002 $0.02701

Measured today against content hash 63a1024525e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade D, and why

workflow-init scanned grade D with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured today.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Reads agent configuration directoriesmediumAgent snooping

.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.

Codex reads `~/.codex/config.toml` — the user's home directory, not this repo. Do not

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`d="$(mktemp -d)"; CBM_CACHE_DIR="$d" '<file>' --version; rm -rf "$d"`. The temporary
plugins/dev-workflow/commands/workflow-init.md · 1,732 lines

How it starts

The opening of the file, as written. The whole thing — 1,732 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Scaffold this project's cross-model review workflow: write the per-project files below, then interactively author AGENTS.md, then print the stack-specific checklist that stays the user's job.

Target model: Claude via Claude Code. This command is a prompt artifact and follows the checklist it scaffolds (docs/prompt-standards.md).

Rules

  1. Idempotent. Run it twice and the second run changes nothing it already wrote.
  2. Never overwrite without asking. For each target: missing → write it. Present and byte-identical to the template → report unchanged, touch nothing. Present and different → show what differs (a short diff, not the whole file) and ask: overwrite / merge / skip. This matters because these files accumulate real project content after the first run — a silent overwrite destroys it.
  3. Additive files are merged, never rewritten. .gitattributes, .mcp.json, pnpm-workspace.yaml and package.json belong to the project; add the missing line or key and leave everything else exactly as it was.
  4. Stack-specific content is marked, not guessed. Where a template has a # TODO(stack): marker, leave the marker in and name it in the closing checklist. A plausible-looking command that was never run is worse than an honest TODO.
  5. Report what happened per file — written / unchanged / merged / skipped (user) / asked, overwrote, and for the two gate-rules targets also migrated, a migration failed … state or a stopped: … state (2.1). No silent no-ops.

Step 1 — Preflight: check every prerequisite, then say what's missing

This is the project's one setup entry point, so it carries the whole "is my setup complete?" answer. Check each item below, state the result for every one (the detect-and-state rule governs this step — a silent pass is indistinguishable from an unrun check), and carry every failure into the closing checklist as a named blocker.

Check, in order:

  1. git repository — git rev-parse --show-toplevel. If absent, stop and ask: the hook's .context/ state directory and the .gitattributes union merge both assume one, so nothing below is meaningful without it.
  2. superpowers plugin — look for superpowers:brainstorming, superpowers:writing-plans and superpowers:executing-plans in the skills available to you right now. This is a hard prerequisite, not a nicety: the workflow's whole middle (spec → plan → execute) is those skills. Without them intake hands off to a skill that does not exist, and the gate hook's Gate-A pass counter — which only resets on those skill events — silently never fires, so Gate A degrades to no enforcement at all while still looking enforced. If they are absent, report MISSING with the install commands: claude plugin marketplace add obra/superpowers-marketplace then claude plugin install superpowers@superpowers-marketplace.
  3. Codex MCP — the gates call mcp__codex__exec (Gate A, reviews text) and mcp__codex__review (Gate B, reviews a diff). These three states have different causes and different fixes, so report the one that actually holds — a single "codex: failed" sends the user hunting in the wrong place:

Read the full file on GitHub · 1,732 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. today Changed · +15 lines 63a1024525e0
  2. yesterday Changed · +114 lines d35eee587883
  3. 4d ago Changed · -1,068 lines scan B → D 0b0f558515dd
  4. 10d ago Changed · +24 lines 6fec72a25e44
  5. 11d ago Changed · +164 lines ecb9083195bd
  6. 17d ago Changed · +13 lines 197fb369f135
  7. 18d ago Changed b54b709e33ff
  8. 20d ago Changed · +524 lines 7ab6edeb602b
  9. 21d ago Changed · +20 lines 433359ddeca5
  10. 1mo ago First seen · 1,926 lines · 22 tokens per session scan B 33377a0d23bd

Subscribe to this mod's changes

workflow-init is a command published in the GitHub repository dsnger/dev-workflow-kit (6 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 27,008 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it D with 2 findings (reads agent configuration directories, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.