ecw-init

ecw-init is a command for Claude Code from Aimeerrhythm/enterprise-change-workflow. It costs 34 tokens per session (7,261 once invoked), scanned B, original, MIT.

A project setup command for Enterprise Change Workflow, a process for managing and reviewing important software changes. It detects existing project documents and either connects them, uses specified paths, or creates starter configuration.

In plain words
What is it for?
Use it to initialize the workflow from existing documentation, configure chosen document locations, or scaffold a new project setup.
Why use it?
It removes the manual work of deciding how an existing project’s documentation should be connected to the workflow and creates the needed configuration files.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: reads .claude/ paths; mentions CLAUDE.md; names the AskUserQuestion tool.

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the ecw plugin — 15 skills, 3 commands, 7 agents shipped together

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.

agentmods
npx agentmods add commands/aimeerrhythm/enterprise-change-workflow/ecw-init
Clone the repo
git clone --depth 1 https://github.com/Aimeerrhythm/enterprise-change-workflow

Made for: Claude Code.

Or install ecw, the plugin that ships this one along with the rest of its 15 skills, 3 commands, 7 agents.

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 ecw-init

README.md
[![agentmods](https://agentmods.dev/badge/commands/aimeerrhythm/enterprise-change-workflow/ecw-init.svg)](https://agentmods.dev/commands/aimeerrhythm/enterprise-change-workflow/ecw-init)
Your own site
<a href="https://agentmods.dev/commands/aimeerrhythm/enterprise-change-workflow/ecw-init"><img src="https://agentmods.dev/badge/commands/aimeerrhythm/enterprise-change-workflow/ecw-init.svg" alt="Measured on agentmods" height="20"></a>
Per session 34 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 7,261 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
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.00034 $0.07261
Opus 5 $0.00017 $0.03631
Sonnet 5 $0.00007 $0.01452
Haiku 4.5 $0.00003 $0.00726

Measured 5d ago against content hash 267c35391997, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-05, from the pricing page.

Security

Grade B, and why

ecw-init scanned grade B with 1 finding 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 5d ago.

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.

find .claude/ -name "*.md" -type f \
commands/ecw-init.md · 741 lines

How it starts

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

ECW Init — Project Initialization Wizard

You are executing the /ecw-init command. Your task is to detect the project's existing documentation state, select the appropriate initialization mode, then generate ECW configuration files. Follow the steps below strictly in order — do not skip steps.

Important: This skill belongs to the enterprise-change-workflow plugin. All template files referenced below are located in the plugin's templates/ directory. When reading templates, use the Read tool from the plugin installation path (i.e., templates/ under the parent directory containing this commands/ folder).


Step 0: Smart Discovery + Mode Selection

0a: Scan Existing Documents

Scan two information sources to detect existing knowledge documents:

Source A — .claude/ directory structure:

# List all .md files under .claude/, excluding known config directories
find .claude/ -name "*.md" -type f \
  -not -path ".claude/ecw/*" \
  -not -path ".claude/rules/*" \
  -not -path ".claude/guides/*" \
  -not -path ".claude/project/*" \
  -not -path ".claude/specs/*" \
  -not -path ".claude/plans/*" \
  -not -path ".claude/plugins/*" \
  -not -name "CLAUDE.md" \
  -not -name "index.md" \
  2>/dev/null | sort

# List first-level directories under .claude/
find .claude/ -mindepth 1 -maxdepth 1 -type d 2>/dev/null

Count candidate knowledge directories (directories containing ≥ 2 .md files that are not in the exclusion set ecw/, rules/, guides/, project/, specs/, plans/, plugins/).

Source B — CLAUDE.md content:

If CLAUDE.md exists at project root:

  • Read its content with the Read tool
  • Search for path references matching .claude/knowledge/, .claude/docs/, knowledge/, and any .claude/{something}/ references pointing to documentation
  • Search for domain routing tables (markdown tables containing domain names and paths)
  • Search for domain keywords or business domain descriptions

0b: Select Mode

Based on scan results, present one of the following scenarios:

Read the full file on GitHub · 741 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. 5d ago First seen · 741 lines · 34 tokens per session scan B 267c35391997

Subscribe to this mod's changes

ecw-init is a command published in the GitHub repository Aimeerrhythm/enterprise-change-workflow (1 stars, last pushed 3mo ago), licensed MIT. It adds 34 tokens to every session and 7,261 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.