Typed edit onboarding
Use when starting development work in a project where the meta-edit MCP server is registered, especially on first contact in a new session, when encountering a deny-raw-edit hook denial, or when the typed_edit tool catalog is missing from the agent's tool list. Provides the twenty-one-tool surface map and selection heuristic so the agent can pick the right tool before its first edit.From its SKILL.md
npx -y skills add hiniachi/meta-edit --skill typed-edit-onboardingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
One thing to look at
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
14.1 KB, as published. Nobody here has run it
typed_edit onboarding
meta-edit is a test-driven development (TDD) framework delivered
as an MCP server. It replaces the agent's raw Edit / Write /
MultiEdit / NotebookEdit calls with twenty-one kind-specific MCP
tools. Each tool's description encodes when to use it, when not to
use it, and what tests must accompany the edit — every typed_edit
declaration (except edit_cosmetic and the six workflow-axis kinds)
requires non-empty test_files when target = "prod", so writing or
updating tests is a first-class step of every change, not an
afterthought. The bet is that a structured tool surface plus testing
obligations encoded in tool descriptions changes editing behavior —
without diff classification or post-hoc verification.
Every declaration also carries a required provenance field naming
the epistemic source of the edit (user_confirmed / accepted_artifact /
direct_observation / inference / speculation) so that a future session
reading the file picks up the uncertainty directly from the prose,
rather than treating past-chat artifacts as confirmed decisions.
Catalog (14 SQLite-derived + edit_cosmetic + 6 workflow)
SQLite-derived (kind-specific, modify-mode):
edit_boundary_condition— comparison / threshold / limit / range bound changesedit_boolean_condition— boolean logic / conditional / guard clause changesedit_state_transition— state machine / workflow / status changesedit_db_schema— tables, columns, indexes, constraints, migrations (DDL)edit_data_migration— backfills / transforms of existing production dataedit_api_contract— request/response shape, endpoints, status codes, schemasedit_serialization— parsers, codecs, JSON/YAML/XML/Protobuf handlersedit_error_handling— try/catch, exception propagation, fallback logicedit_retry_timeout— retry counts, timeouts, backoff, idempotency keysedit_concurrency— locks, transactions, async, parallelism primitivesedit_external_side_effect— emails, events, webhooks, billing, audit logsedit_cache_invalidation— cache keys, TTLs, invalidation triggersedit_permission_logic— authz, roles, ownership, tenancy, feature flagsedit_dependency_config— package deps, runtime config, env vars
Cosmetic (narrow, non-behavioral):
edit_cosmetic— whitespace / formatter output / information-invariant comment edits (typo fix, line-break reflow) ONLY. Renames, extracts, dead-code removal, comments that ADD information — none of those are cosmetic. Stop and ask if no kind-specific tool fits.
Workflow-axis (intent-based; v0.6.0 introduced five, v0.9.0 added the sixth):
edit_progress— session work-log entries: "I implemented X, tried Y, Z worked" (typical target: IMPLEMENTATION-LOG.md). Rejectsadditional_files.edit_observation— discovered facts that outlive the session: failure patterns, gotchas, "XXX breaks when ..." notes. Typical target: OBSERVED-FAILURES.md or in-code// XXX ....edit_proposal— proposals, open questions, RFC drafts,// TODO, ADR drafts. Typical target: issues/ files or planning RFCs.edit_decision— recording a confirmed decision (accepted ADR, cut CHANGELOG entry, release commit batch). Rejectsinference/speculationprovenance.edit_explanation— reader-facing explanation of shipped behavior (README, JSDoc, docs/). Rejectsspeculationprovenance. Typical target for multilingual README sync viaadditional_files.edit_policy_change— the policy bytes themselves: CLAUDE.md, SPEC.md,src/tools/descriptions.ts,.github/workflows/**, hook policy text, build / release profile flags. The code that implements a new policy (hook handler logic, schema validators) routes through the matching impl kind. Rejectsinference/speculationprovenance.
target: "prod" | "test" — required on every tool except the 6 workflow kinds
Every impl tool (the 14 SQLite-derived + edit_cosmetic) carries a
required target field:
target: "prod"— the edit lands in production code.test_filesmust be non-empty (except foredit_cosmetic) and forward-declares the test files the pairedtarget: "test"call will modify.target: "test"— the edit lands in test code.target_fileIS the test file.test_filesmust be empty.
One declaration covers exactly one target. To pair an implementation
change with its tests, issue two declarations of the same impl
tool — one with target: "prod", then one with target: "test"
— both landing in the same commit. The per-edit granularity makes the
test edit visible inside this kind's audit surface, rather than
disappearing into a generic test bucket.
The six workflow-axis kinds do NOT carry a target field. Workflow
content (progress / observation / proposal / decision / explanation /
policy_change) has its own surface and the prod/test split does not
apply.
provenance — required on every tool
Every declaration MUST carry a provenance value. Pick exactly one:
user_confirmed— the user explicitly stated this in the current session. Quote or summarize the user's instruction in the rationale.accepted_artifact— based on an accepted spec / ADR / test / API contract. The rationale MUST include at least one artifact reference (§...,ADR-...,RFC-...,issues/..., or a URL); the server warns if none is present.direct_observation— observed from execution, logs, or just-read code. Make the observation source visible in the prose.inference— reasoned from observation. Frame the inference explicitly in the prose ("Based on X, it appears that...", "Likely...", "Probably...").speculation— an unverified hypothesis. Open the prose with strong hedging ("Unverified: ...", "Hypothesis: ...", "TODO: verify — ...").
The reader sees the prose, not the provenance field — the load-bearing obligation is that the prose itself carries the hedging language. The provenance enum is the audit-log index; the prose is the lesson.
Some (kind, provenance) cells reject outright:
edit_cosmeticrejectsinferenceandspeculation(cosmetic has zero semantic effect, so epistemic uncertainty means the kind selection is wrong)edit_decisionrejectsinferenceandspeculation(decisions are confirmed by their nature)edit_explanationrejectsspeculation(explanations are contracts with future readers; speculative explanations mislead)
edit_observation + inference and edit_explanation + inference are
accepted but warn — re-route to edit_proposal if the body reads as
"this is what I think given what I saw".
Selection heuristic
The agent picks the tool that matches the smallest unit of cognitive intervention the change requires. Order of disambiguation:
- Recording what was just done in this session (work-log)? →
edit_progress. - Recording a discovered fact that outlives the session (gotcha,
pattern, surprise)? →
edit_observation. - Raising a proposal / open question / ADR draft /
// TODO? →edit_proposal. - Recording a confirmed decision (release CHANGELOG, accepted ADR)?
→
edit_decision. - Reader-facing explanation of shipped behavior (README, JSDoc,
docs/)? →
edit_explanation. - Changing comparisons / thresholds / limits / ranges? →
edit_boundary_condition. - Changing boolean operators / guard clauses / conditional structure?
→
edit_boolean_condition. - Changing state machine transitions / status flow? →
edit_state_transition. - Changing how errors / failures propagate? →
edit_error_handling. - Changing retries / timeouts / backoff? →
edit_retry_timeout. - Changing locks / transactions / async primitives? →
edit_concurrency. - Changing external side effects (emails, billing, events)? →
edit_external_side_effect. - Changing cache logic (keys, TTLs, invalidation)? →
edit_cache_invalidation. - Changing authz / roles / feature flags? →
edit_permission_logic. - Changing API request / response shape? →
edit_api_contract. - Changing parser / serializer / codec? →
edit_serialization. - Changing DB schema (DDL)? →
edit_db_schema. - Backfilling / transforming production data? →
edit_data_migration. - Changing package deps / runtime config? →
edit_dependency_config. - Changing build profile / CI / hook config / tool descriptions
themselves? →
edit_policy_change. - Whitespace / formatter output / information-invariant comment edit
ONLY (no rename, no extract, no logic change, no new information
in comments)? →
edit_cosmetic.
False precision is safer than false generality — when two tools could apply, choose the more specific one. If no kind-specific tool fits, stop and ask the user. There is no generic refactor catch-all by design; the absence of one forces the question "what kind of change is this, really?"
Editing tests
A test edit is not its own kind — it is the test surface of the
impl kind it exercises. To add a boundary test, use
edit_boundary_condition with target: "test". To strengthen an API
contract test, use edit_api_contract with target: "test". The
risk profile and rationale follow the implementation domain, not a
generic test bucket.
Test infrastructure (fixtures, helpers, mocks) that does not belong to any single impl kind is currently an open case — stop and ask the user if no kind-specific tool fits. This is intentional friction: the design is observing whether a separate tool needs to be added later.
Empty file creation is free (v0.3.1)
Creating a NEW file with empty content does NOT require a typed_edit
declaration. Just make the native Write with content === ""; the
deny-raw-edit hook authorizes it directly and auto-creates parent
directories. Then declare an appropriate edit_<TYPE> against the
now-empty file for the actual content fill (the file is in modify
mode; before_sha256 = sha256("")).
This applies to source files, test files, configs, and Markdown artifacts (issue files, ADRs, design docs). Each gets the typed intervention from its content-fill declaration, not from a separate "create" act.
Recovery: when the typed_edit schemas aren't loaded
If the twenty-one edit_* tools are not visible in your tool list
(the harness deferred them, the MCP server connected late, or your
session started outside a meta-edit project), use ToolSearch to
load the schemas you need:
ToolSearch query: "select:mcp__plugin_meta-edit_meta-edit__edit_cosmetic"
Or a keyword search:
ToolSearch query: "mcp meta-edit edit_state_transition"
ToolSearch is the harness-native way to load deferred MCP schemas into
the callable surface. meta-edit -h (CLI) prints the verbatim
descriptions for human inspection but does NOT populate the agent's
tool list.
additional_files (workflow-axis batches)
The six workflow-axis kinds (edit_progress / edit_observation /
edit_proposal / edit_decision / edit_explanation /
edit_policy_change) may accept
additional_files for sweeping multi-file edits (e.g. renaming a
deprecated API across 10 README references in one declaration). Cap
is 32 entries. SQLite-derived tools and edit_cosmetic MUST NOT
include additional_files — per-tool cognitive intervention assumes
one declaration per change.
Acceptance is cell-wise. For each (workflow-kind, provenance) pair the server returns accept / warn / reject:
edit_progressrejects in every cell (progress is per-moment; batching across files is two moments fused)edit_observationrejectsuser_confirmedand warns for the other four (an observation that genuinely spans files requires the rationale to name the unifying theme)edit_proposalacceptsaccepted_artifactandspeculation(audit-driven issue burst, exploratory feature kickoff); the rest warnedit_decisionacceptsuser_confirmedandaccepted_artifact(release-commit batch, spec-driven sweep);direct_observationwarns;inference/speculationare unreachable (the kind itself rejects them)edit_explanationacceptsuser_confirmed/accepted_artifact/direct_observation(multilingual sync, spec-driven docs sweep, impl/doc sync);inferencewarns;speculationis unreachable
Workflow-kind batch consumption. When additional_files lands,
the one declaration binds target_file + every additional_files
entry under a single grant. You then issue consecutive native Edit /
Write calls against the bound files in any order — one per bound
file — without re-declaring per file, until every bound file is
consumed or the 10-minute TTL expires.
Things to keep in mind
- Single-use binding: each typed_edit declaration authorizes ONE
native Edit / Write per bound file. After consumption, re-declare
for further edits to the same file. Exception: a workflow-axis
declaration that carries
additional_filesbinds the whole batch under one declaration and authorizes one native edit per bound file — consecutive edits across the batch, in any order, no per-file re-declaration (see "additional_files" above). - TTL is 10 minutes post-issuance. Garbage-collection only — the single-use property is the integrity guarantee.
- Out-of-repo writes pass through: the hook is repo-scoped. Plan
files in
~/.claude/plans/, scratch in/tmp/, other-plugin writes outside this repo — all authorized without typed_edit. - The descriptions are the product. When in doubt, read the full
description via
meta-edit -h <tool_name>or ToolSearch and follow its required-tests / MUST-NOT clauses literally.
See docs/SPEC.md (Articles 1–8 + §3 (provenance + matrices) + §4
per-tool descriptions) for the constitutional and verbatim authority.