agentsclimarketplace

Typed edit onboarding

Skill hiniachi/meta-edit/skills/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

Install
npx -y skills add hiniachi/meta-edit --skill typed-edit-onboarding

Assembled 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 changes
  • edit_boolean_condition — boolean logic / conditional / guard clause changes
  • edit_state_transition — state machine / workflow / status changes
  • edit_db_schema — tables, columns, indexes, constraints, migrations (DDL)
  • edit_data_migration — backfills / transforms of existing production data
  • edit_api_contract — request/response shape, endpoints, status codes, schemas
  • edit_serialization — parsers, codecs, JSON/YAML/XML/Protobuf handlers
  • edit_error_handling — try/catch, exception propagation, fallback logic
  • edit_retry_timeout — retry counts, timeouts, backoff, idempotency keys
  • edit_concurrency — locks, transactions, async, parallelism primitives
  • edit_external_side_effect — emails, events, webhooks, billing, audit logs
  • edit_cache_invalidation — cache keys, TTLs, invalidation triggers
  • edit_permission_logic — authz, roles, ownership, tenancy, feature flags
  • edit_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). Rejects additional_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). Rejects inference / speculation provenance.
  • edit_explanation — reader-facing explanation of shipped behavior (README, JSDoc, docs/). Rejects speculation provenance. Typical target for multilingual README sync via additional_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. Rejects inference / speculation provenance.

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_files must be non-empty (except for edit_cosmetic) and forward-declares the test files the paired target: "test" call will modify.
  • target: "test" — the edit lands in test code. target_file IS the test file. test_files must 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_cosmetic rejects inference and speculation (cosmetic has zero semantic effect, so epistemic uncertainty means the kind selection is wrong)
  • edit_decision rejects inference and speculation (decisions are confirmed by their nature)
  • edit_explanation rejects speculation (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:

  1. Recording what was just done in this session (work-log)? → edit_progress.
  2. Recording a discovered fact that outlives the session (gotcha, pattern, surprise)? → edit_observation.
  3. Raising a proposal / open question / ADR draft / // TODO? → edit_proposal.
  4. Recording a confirmed decision (release CHANGELOG, accepted ADR)? → edit_decision.
  5. Reader-facing explanation of shipped behavior (README, JSDoc, docs/)? → edit_explanation.
  6. Changing comparisons / thresholds / limits / ranges? → edit_boundary_condition.
  7. Changing boolean operators / guard clauses / conditional structure? → edit_boolean_condition.
  8. Changing state machine transitions / status flow? → edit_state_transition.
  9. Changing how errors / failures propagate? → edit_error_handling.
  10. Changing retries / timeouts / backoff? → edit_retry_timeout.
  11. Changing locks / transactions / async primitives? → edit_concurrency.
  12. Changing external side effects (emails, billing, events)? → edit_external_side_effect.
  13. Changing cache logic (keys, TTLs, invalidation)? → edit_cache_invalidation.
  14. Changing authz / roles / feature flags? → edit_permission_logic.
  15. Changing API request / response shape? → edit_api_contract.
  16. Changing parser / serializer / codec? → edit_serialization.
  17. Changing DB schema (DDL)? → edit_db_schema.
  18. Backfilling / transforming production data? → edit_data_migration.
  19. Changing package deps / runtime config? → edit_dependency_config.
  20. Changing build profile / CI / hook config / tool descriptions themselves? → edit_policy_change.
  21. 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_progress rejects in every cell (progress is per-moment; batching across files is two moments fused)
  • edit_observation rejects user_confirmed and warns for the other four (an observation that genuinely spans files requires the rationale to name the unifying theme)
  • edit_proposal accepts accepted_artifact and speculation (audit-driven issue burst, exploratory feature kickoff); the rest warn
  • edit_decision accepts user_confirmed and accepted_artifact (release-commit batch, spec-driven sweep); direct_observation warns; inference / speculation are unreachable (the kind itself rejects them)
  • edit_explanation accepts user_confirmed / accepted_artifact / direct_observation (multilingual sync, spec-driven docs sweep, impl/doc sync); inference warns; speculation is 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_files binds 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.

Keep looking

Skills are one crate of 607,533. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.