원클릭으로
atm-governance-router
Route natural-language cleanup, refactor, migration, and candidate ranking goals through ATM before local analysis.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
메뉴
Route natural-language cleanup, refactor, migration, and candidate ranking goals through ATM before local analysis.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
SOC 직업 분류 기준
ATM Captain 派工治理。觸發詞 派工 / 派工單 / dispatch / 開卡 / 派任務 / 派代理 / Phase 0 / Phase 1 / AAO / task card / condition review / 收口。負責 AI-Atomic-Framework (AAF) + 3KLife 雙 repo 治理:強制 Context Map 4 層、雙代理拆分(防外卡 mirror commit)、AAF 嚴格 2 commit、3KLife target_repo 嚴格 1 commit、7-8 段回報、禁止清單前置強化、Captain condition review。承載 0064 → 0093+ 累積的紀律教訓。
通用任務開單器 SKILL — 統一建立或回寫 Markdown task card、docs/tasks/tasks-*.json 分片、UI quality shard,並強制遵守 docs/agent-briefs/Readme.md (doc_ai_0023) 與 docs/遊戲規格文件/系統規格書/名詞定義文件.md (doc_spec_0008) 的硬規則。USE FOR: 開任務卡、開單、task card、task shard、tasks-ui.json、tasks-prog.json、tasks-dc.json、tasks-data.json、agent-briefs/tasks、docs/tasks/*_task.md、UI pipeline 開卡。DO NOT USE FOR: 純 runtime 除錯、單純修改既有功能碼但不需要新卡、只做極小 typo 修補。
Plan ATM framework refactors by preserving atom/map semantics before splitting large governance modules.
Recommend the next official ATM guidance action from current state.
Resolve the current user prompt into an atm.taskIntent.v1 proposal before next-action routing.
Use when the user asks to switch AI role/mode/persona or uses role-trigger words such as Captain, Coordinator, 寫文章, 寫文章模式, 文章模式, 技術文章, 部落格, 出版, 預覽. Routes the request to Project Captain, Publishing Director, or Article Writing Mode, loads the matching keep memory when available, and applies the role's workflow without excessive roleplay.
| name | atm-governance-router |
| description | Route natural-language cleanup, refactor, migration, and candidate ranking goals through ATM before local analysis. |
| argument-hint | <ATM context> |
| charter-invariants-injected | true |
Use this skill when a user asks in natural language to inspect, rank, clean up, refactor, split, atomize, infect, migrate, or modernize existing source code.
The goal is to keep the user request natural while still routing the work through ATM evidence before choosing a local implementation path.
If the user asks for Captain, Coordinator, dispatch, task cards, sidecars,
subagents, delegation, condition review, or closeout work, first route the
request through ai-role-router when available, then through atm-dispatch
before drafting instructions, delegating work, or reviewing another agent.
State Skill used: atm-dispatch and the chosen Delegation mode. Internal
sidecar is the default for review, preflight, grep, checklist, planning-only
checks, and post-report verification. External dispatch is opt-in, and external
write is forbidden unless the user explicitly grants write authority and scope.
The objective is to deliver the task content, not to close task cards. A task
card is a delivery contract. done is only the record after the requested
code, data, pipeline, document, or artifact exists and validators/evidence pass.
Do not optimize for making many cards become done. Optimize for producing the
requested non-.atm deliverables for the current task or current batch queue
head.
If the natural-language request mentions a task id, task card, plan document, or
scoped task batch, invoke atm-task-intent-resolver first. It must write
.atm/runtime/task-intent.json from semantic reading of the user prompt and then
call:
node atm.mjs next --intent .atm/runtime/task-intent.json --json
Do not rely on keyword-only next --prompt extraction when the task intent
resolver skill is available.
node atm.mjs next --prompt "$ARGUMENTS" --json
If the first command returns a user notice, surface it briefly, then continue the original user request.
Before editing implementation files, inspect framework mode:
node atm.mjs framework-mode status --json
If the result mode is required or cross-repo-target-required, do not hand-edit
task status to done, do not bulk-close task cards, and do not treat static
atomic_workbench/evidence/*.json files as completion evidence. Claim/lock the
task, run guard framework-development, tasks audit, doctor, and the
required validators before closing with tasks close.
For ordinary task-card delivery, the lifecycle remains:
claim -> implement -> validators -> evidence add -> tasks close -> commit
Framework critical files only change the close/commit timing when the close gate
blocks a live critical diff. If tasks close reports
ATM_TASK_CLOSE_FRAMEWORK_DIFF_ACTIVE, do not bypass the gate. Make a governed
delivery commit for the scoped non-.atm deliverables, then run:
node atm.mjs tasks close --task <task-id> --actor "$ATM_ACTOR_ID" --status done --historical-delivery <commit> --json
After close succeeds, make a separate closure commit for the generated ATM ledger updates. This historical-delivery path still requires validators and command-backed evidence; it is not a relaxed closure rule.
node atm.mjs guide --goal "$ARGUMENTS" --cwd . --json
This route is also referred to as the atm guide --goal workflow in validator
evidence and release documentation.
Validator shorthand terms for this route are atm guide --goal, atm candidates rank, atm start --legacy-flow, atm next, dry-run proposal, and human review.
Follow the returned nextCommand. If the matched intent is
legacy-candidate-ranking, run the candidate ranking command before doing local
source analysis by hand. If the matched intent is task-plan-import, run the
task import dry run before creating or editing any task files.
Before mutating repository files for implementation work, claim the prompt-scoped task:
node atm.mjs next --claim --actor "$ATM_ACTOR_ID" --prompt "$ARGUMENTS" --json
If the claim result says recommendedChannel: "batch", the governed route is:
evidence.nextAction.playbook before editing. Treat it as the
step-by-step work order for this request.node atm.mjs next --claim --actor "$ATM_ACTOR_ID" --prompt "$ARGUMENTS" --json.node atm.mjs batch checkpoint --actor "$ATM_ACTOR_ID" --json..atm/history/tasks/<task>.json,
.atm/history/evidence/<task>.json, and
.atm/history/task-events/<task>/.Do not manually loop through tasks reserve, tasks promote, tasks claim,
tasks close, or old close commits. That is governance bypass, not batch.
Do not commit before batch checkpoint succeeds.
If recommendedChannel is fast or normal, still read
evidence.nextAction.playbook first. It tells you the exact claim, evidence,
close, and commit order for that channel.
ATM's default task ledger is the active flow monitor when taskLedger.enabled
is true. Use the repo-local .atm/history/tasks store for adopter work; use the
ATM framework repo ledger only when framework-mode status reports
framework-development. If the user provides an external task (GitHub Issue,
Jira, Linear, or another provider) and no ATM mirror exists yet, create the
visible mirror before implementation:
node atm.mjs tasks mirror --provider <provider> --origin-task <id> --origin-url <url> --actor "$ATM_ACTOR_ID" --json
If the editor provides pre-write hooks, keep them thin and run only:
node atm.mjs guard mutation --task <task-id> --actor "$ATM_ACTOR_ID" --files <csv> --json
If no hook is available, continue with task claim + git prepare/check +
evidence verify gates as the fallback safety boundary.
For legacy candidate ranking, final reasoning should cite or create:
For task plan import, final reasoning should cite or create:
.atm/history/tasks/*.json paths, when --write is usedtasks verify reportnext result showing imported open work items, when availableIf the matched intent is task-plan-import, run the dry-run import first:
node atm.mjs tasks import --from <plan.md> --dry-run --cwd . --json
Confirm the parsed manifest before persisting. When the manifest looks correct, run the write phase and verify:
node atm.mjs tasks import --from <plan.md> --write --cwd . --json
node atm.mjs tasks verify --cwd . --json
Do not hand-write .atm/history/tasks/*.json and do not reuse atm create for
work-item import; atm create is for atom birth.
If preferred documents are missing, do not stop and do not silently improvise. Preserve the fallback contract from ATM output:
missingDocs[]fallbackSources[]continuedOriginalRequest: trueThen continue the user's original request with the fallback sources.
recommendedChannel is batch, finish each queue head with
node atm.mjs batch checkpoint --actor "$ATM_ACTOR_ID" --json.ready and has an
active claim.tasks create/import/mirror/claim/block/close/abandon.done by editing Markdown or JSON directly; use
node atm.mjs tasks close --status done so closure evidence is checked.tasks import, while atom birth uses create or a governed atomize flow..atm/history/tasks as the canonical imported work-item store; host
Markdown projections are optional secondary views.node atm.mjs handoff summarize --task "$ARGUMENTS" --json
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 downstream (enforcement: doctor, breaking change: yes)
Rule: The framework repository must not host coordinating implementation task cards, planning queues, or project-specific work tracking artifacts beyond ATM's own bootstrap/runtime-managed files. Upstream planning cards belong in the coordinating host workspace and may feed evidence back upstream without becoming framework-resident work tracking.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.