/tokensafe:oumv-protocolfrom tokensafe
Guides agents through the OUMV protocol (Observe, Understand, Mutate, Verify) for live frontend/backend debugging via JSON-RPC. Use when a workspace has an OUMV-supported stack or when diagnosing UI/request failures.
Ships in tokensafe. 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.
None: SKILL.md is the whole skill.
One protocol, two profiles: frontend (components, surface, signals) and backend (endpoints, DTOs, traces). JSON-RPC 2.0; HTTP POST <base>/__oumv/rpc is mandatory, SSE/WebSocket are optional and advertised, stdio serves CLI/MCP bridges.
tokensafe:oumv(action=...)| Action | Does |
|---|---|
status | Stacks per package, live runtimes, oumvSupported |
brief | Skeleton + call sites + props + module state of a file/symbol |
observe | level L0–L4 with target, or path (a file at L1+ returns its symbols and file.version) |
understand | query = impact, causality, why_state, dependencies, signals; target |
index | Repo-wide symbol search (query, kinds?, limit?) |
graph | Cross-stack graph (frontend fetch → backend endpoint) |
mutate | OCC edit: path, symbol?, replacement, expectedVersion |
preview | Dry-run of mutate (or batch): diff + guard verdict, no write |
verify | target, verify_action (invoke/click/submit), payload |
build | Runtime build/test command → diagnostics (timeout_ms) |
cancel | Cooperative cancel by requestId |
tokensafe dev starts the app's own Vite server (React, Vue, Solid, Angular via Analog) with the bridge injected; no repo file changes.mutate, preview, verify, build need Solo or higher. On guest/free (or TOKENSAFE_OUMV_READ_ONLY=1) they return a read-only notice. Treat it as final: do not redo the edit through other tools.Supported stacks (adapters/*.json): React, Vue, Solid, Angular (Vite) via tokensafe-ui; Go Gin/Chi/net-http; Python FastAPI, Starlette, Flask, Django (WSGI mount); Node Express, Fastify, Next.js App Router, Elysia on Bun; ASP.NET Core; Spring Boot and Laravel/Symfony (sidecars). Elsewhere use repo_map/smart_read_file/scoped_search.
limit/cursor), then L2 contract or L3 source only for a named target (required there). L4 = traces/events.impact for blast radius, causality/why_state for "why is X disabled / why does this request fail". observed: false means no runtime evidence, so no root cause.version (sha256: of the whole file, even for a slice) from L3/getSource/observe and send it as expectedVersion. Prefer symbol or patch edits over whole-file replace. A scoped edit must name its mode: symbol, hunks or renameTo with mode absent or replace is -32602 (mode_required_with_*), never a silent whole-file replace.scope (what was and was not executed). A rollback happened only when rollbackStatus: "verified".Wire methods: oumv/handshake, observe, understand, getSource {path, symbol?, startLine?, endLine?, ifVersion?}, applyEdit {path, mode, replacement?, expectedVersion?, symbol?, hunks?, renameTo?, verify?} or {edits: [...]} (atomic batch), previewEdit, verify {target, steps?, sandbox?: {mode: "rollback"}}, index, query (read-only SQL), build, graph, cancel, disconnect. Modes: replace, create (no expectedVersion), symbol, patch (hunks in order, atomic), delete, rename. filePath/source are deprecated aliases of path/replacement.
The handshake negotiates capabilities. A capability that is not advertised is not registered: its methods answer -32601. readOnly: true means no mutate/preview/verify/build.
| Code | Name | Do |
|---|---|---|
| -32001 | CONFLICT_DETECTED | File changed (or exists, for create/rename): re-observe, merge, retry with the new version |
| -32002 | SYNTAX_ERROR | Fix the replacement using data; nothing was written |
| -32003 | SECURITY_VIOLATION | Path left the workspace, sensitive file, or forbidden query |
| -32004 / -32009 | TARGET / RESOURCE_NOT_FOUND | Re-observe L1; patch: use data.nearest / suggestedWindow |
| -32005 | ACTION_NOT_FOUND | Read valid actions at L2 |
| -32006 | UNSUPPORTED_CAPABILITY | Not implemented or not advertised; do not retry |
| -32007 | PERMISSION_DENIED | Policy (mutate/query disabled) |
| -32008 | RUNTIME_UNAVAILABLE | Runtime/sandbox down or request cancelled; fall back to static |
| -32010 | STALE_RESOURCE_VERSION | Cached ifVersion is stale; refetch without it |
| -32011 | VALIDATION_FAILED | See data.reason, e.g. expected_version_required, target_not_unique (narrow the lines) |
| -32012 | RATE_LIMITED | Wait data.retryAfterMs |
Sources: spec/SPEC.md, schemas/errors.json, compatibility.json. Adapters certify with oumv-certify (@oumv/conformance); certification Levels 1–3 are not observe levels L0–L4.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
oumv, live-debugging, json-rpc, frontend-debugging, backend-debugging
2 skills in this plugin
npx claudepluginhub tokensafe-dev/tokensafe --plugin tokensafeOther plugins' skills for the same job