/miller:miller-editingfrom miller
Use before changing existing indexed files with Miller edit, especially symbol rewrites, text replacements, renames, or refactors.
Ships in miller. 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.
Use Miller's index-aware edit tool for existing indexed files. It previews a diff by default and blocks stale
indexed spans. Only replace_text can explicitly allow a stale index because it proves its match against current
disk text.
Every workspace-bound Miller MCP call names its target with workspace_id; Miller never infers it from the
launch directory, environment variables, MCP Roots, or a previous call. Get the ID from
workspace(operation="list"), or from workspace(operation="open", path="/absolute/project") when the repo is
absent. The examples below write it as workspace_id="<id>". Only workspace list, open, remove,
prune, and dashboard run without one; current and primary are CLI-only. The full targeting rules live
in the miller-orientation skill.
Creating a brand-new file is outside this skill; use the normal file creation path.
search(workspace_id="<id>", query="<symbol or file>")
inspect(workspace_id="<id>", target="<symbol-or-file>")
For symbols, start with inspect(target="<symbol>", depth="overview") to choose the edit target and understand
nearby refs/calls without dumping the full body. Use inspect(target="<symbol>", depth="full") before rewriting a
body or auditing complete relation lists.
For broad multi-hunk edits or when you need to handcraft a large replacement, use the normal patch/edit path. For
small file-level text edits where you know the old value and a nearby selector, use replace_text directly and let
Miller prove the match in preview:
edit(workspace_id="<id>", operation="replace_text", target="<file>", old_text="<known-old>", new_text="<new>", match_mode="auto", query="<nearby text>")
impact(workspace_id="<id>", target="<symbol-or-file>")
edit(workspace_id="<id>", operation="replace_text", target="<file>", old_text="<old>", new_text="<new>")
edit(workspace_id="<id>", operation="replace_text", target="<file>", old_text="<old>", new_text="<new>", match_mode="auto", line=42)
edit(workspace_id="<id>", operation="replace_text", target="<file>", old_text="<old>", new_text="<new>", match_mode="auto", anchor="<nearby text>")
edit(workspace_id="<id>", operation="replace_symbol_body", target="<symbol>", new_text="<body>")
edit(workspace_id="<id>", operation="rename_symbol", target="<symbol>", new_text="<new-name>")
The preview should show match mode, match source, line range, occurrence, disk verification, and a concise diff.
If it is the intended edit, re-run the same call with apply=true.
edit(workspace_id="<id>", operation="...", target="...", new_text="...", apply=true)
workspace(workspace_id="<id>", operation="refresh")
Use allow_stale=true only for replace_text after independently checking current disk state. Symbol-body,
signature, insert, doc, and rename operations require fresh indexed spans even when the user accepts the risk.
replace_text still requires a known old_text, but match_mode="auto" can accept exact, normalized, or bounded
fuzzy matches after verifying the span against current disk text. If preview is ambiguous or text is not found:
line=<line> when you know the target line.anchor="<nearby text>" when the old text appears in multiple places.query="<nearby text>" to use indexed content as a candidate finder.match_mode="exact" when whitespace-tolerant or fuzzy matching would be unsafe.occurrence="all" only when every whole-file match should change; do not combine it with line, anchor,
or query.replace_symbol_body or replace_symbol_signature for code symbols.rename_symbol for symbol renames.replace_text for docs, config, and arbitrary text.tests(operation="status"): when CT is enabled it lists the cases the edit staled, and
tests(operation="run", wait=true) executes only those. When CT is off, run the tests impact suggested with
the project's test runner.What SKILL.md sets; muted values are Claude Code's defaults
14 skills in this plugin
/handoff-inUse when resuming Miller-backed work from a handoff packet or validating a packet before continuing in another harness, model, or session./handoff-outUse when preparing to move active Miller-backed work to another harness, model, or session and the receiving agent needs a self-contained resume packet./miller-bridge-traceUse when tracing Miller bridge paths in supported providers: dotnet-web URL literals and fetch/axios client requests to ASP.NET signals, client requests to Next.js route handlers or Nuxt server routes, Next.js/Nuxt route references to file routes, Vue/React references to route definitions, or backend-http client requests to Express/FastAPI/Flask/Django/Spring/Go/gin/echo/Rails/NestJS/Laravel/Phoenix/axum/actix/Symfony/Ktor route facts.npx claudepluginhub anortham/miller --plugin miller