一键导入
atm-error-code-resolver
Resolve ATM_* error codes from CLI JSON, logs, or user reports into canonical meaning, remediation, retryability, and approval guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Resolve ATM_* error codes from CLI JSON, logs, or user reports into canonical meaning, remediation, retryability, and approval guidance.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
ATM Captain dispatch routing for task cards, sidecars, subagents, condition review, mailbox work, and closeout coordination.
Create registered planning families, plan documents, and task cards through the tool-first plan CLI.
Author ATM task cards with machine-readable scope, deliverables, validators, evidence, rollback, and atomization impact.
Author ATM task cards with machine-readable scope, deliverables, validators, evidence, rollback, and atomization impact.
Author ATM task cards with machine-readable scope, deliverables, validators, evidence, rollback, and atomization impact.
Plan ATM framework refactors by preserving atom/map semantics before splitting large governance modules.
| name | atm-error-code-resolver |
| description | Resolve ATM_* error codes from CLI JSON, logs, or user reports into canonical meaning, remediation, retryability, and approval guidance. |
| argument-hint | <ATM context> |
| charter-invariants-injected | true |
Use this skill when a user, CLI result, validator output, hook, plan, or task
card mentions an ATM_* code and needs interpretation, recovery guidance,
registration, renaming, or retirement.
First command:
node atm.mjs next --prompt "$ARGUMENTS" --json
ATM_* codes from the user text or CLI JSON.docs/governance/error-code-registry.json first.prefixRules[]
entry in the same registry and report the code as prefix-documented.docs/ERROR_CODES.md to find source location/context, then say the code is
registry-missing.For each code, report:
meaning: one short operator-facing sentence.category: exact or prefix registry category, or unknown when
registry-missing.retryable: yes, no, or unknown.human approval: yes, no, or unknown.next safe action: the smallest command or inspection step.source: exact registry sourceOwner, prefix rule sourceOwner, or source-index
location.If the code is registry-missing, add this remediation:
npm run generate:error-codes
Then open or update a governed task/backlog item to add the missing entry in
docs/governance/error-code-registry.json.
Use this flow before a plan, task card, or implementation introduces, renames,
or retires an ATM_* code:
paused, deferred,
inconclusive, cache miss, or successful broker enqueue are not errors.
Create an ErrorCode only for a command failure or an operator-actionable
guarded boundary that needs stable retry, approval, or recovery semantics.prefixRules[] in
docs/governance/error-code-registry.json. Reuse an existing exact code only
when its trigger and recovery semantics match; a prefix rule documents a new
code but does not reserve its exact meaning.code, disposition (reuse, register, rename, or retire), trigger,
category, retryability, human-approval requirement, recovery command, source
owner, registry-owner task, and required tests.docs/governance/error-code-registry.json, runs
npm run generate:error-codes, and commits the generated
docs/ERROR_CODES.md. Do not hand-edit the generated file.If a plan discovers a new ErrorCode after its catalog was sealed, amend the plan and owning card through this skill before implementing the emitter.
Other ATM skills should route error-code interpretation through this resolver instead of maintaining private error-code tables. They may summarize the result, but the registry remains the source of truth.
docs/ERROR_CODES.md; update the registry or generator and
regenerate it.INV-ATM-001 ??No second registry (enforcement: gate, breaking change: yes)
Rule: A host project must not create a second AtomicRegistry implementation outside of packages/core or introduce a parallel ID allocation, version tracking, or registry promotion path.INV-ATM-002 ??Lock before edit (enforcement: doctor, breaking change: no)
Rule: No governed file mutation may occur without a valid ScopeLock recorded in .atm/locks/ for the current WorkItem. Agents must call atm lock before editing files.INV-ATM-003 ??Schema-validated promotion only (enforcement: gate, breaking change: yes)
Rule: An UpgradeProposal must pass all automatedGates (including JSON Schema validation) before promotion. Direct registry mutation that bypasses the UpgradeProposal path is forbidden.INV-ATM-004 ??No competing highest authority (enforcement: doctor, breaking change: yes)
Rule: No host project rule, profile, or configuration may declare itself to have authority equal to or higher than the AtomicCharter. Any rule that contradicts an invariant must go through a charter waiver proposal.INV-ATM-005 ??Host rule amendments require waiver flow (enforcement: waiver-required, breaking change: no)
Rule: When a host project rule conflicts with a charter invariant, the host must submit a behavior.evolve UpgradeProposal with a charterWaiver field and a linked HumanReviewDecision. Silent override is not permitted.INV-ATM-006 ??Framework work tracking stays target-local (enforcement: doctor, breaking change: yes)
Rule: The framework repository must not host downstream adopter planning queues or project-specific work tracking artifacts. ATM framework-development tasks may live in the framework repository only as ATM-managed .atm/history/tasks ledger records with CLI transition evidence.INV-ATM-007 ??Public framework docs remain English-only (enforcement: doctor, breaking change: yes)
Rule: Public contributor-facing documentation in the framework repository must remain English-only and repository-neutral. Non-English planning notes, local experiments, or downstream operating guidance must live in the coordinating host workspace unless they are translated into neutral English framework documentation.INV-ATM-008 ??Broker tickets, not refusals (enforcement: doctor, breaking change: no)
Rule: Every governed shared-write gate (runner-sync, build windows, release mirrors, git commit, projection regeneration) must respond with a broker ticket - execute now, enqueue with position, or batch into a shared write window - never a bare refusal. Reads and private writes (own ledger, evidence, task events, lane sessions) never queue. The only standing exceptions are the four owner-ruled cases in docs/governance/parallel-governance-charter.md; any new serialization point requires an explicit project-owner ruling before it ships.