跳到正文
cccskills
免费在 GitHub 公开

atm-atom-map-refactor

Plan ATM framework refactors by preserving atom/map semantics before splitting large governance modules.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(1)

  • SKILL.md5.1 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

ATM Atom Map Refactor

Use this skill before editing ATM framework code for a refactor, extraction, or governance-invariant cleanup. The goal is to choose a small atom owner and a testable contract before moving code.

First Command

node atm.mjs next --prompt "$ARGUMENTS" --json

Required Workflow

  1. Read the active task card and its allowed files.
  2. Name the governance invariant being touched.
  3. Choose exactly one primary extraction pattern:
    • Policy Object
    • Strategy Map
    • Result Contract Object
    • Facade
    • Adapter/Port
  4. Propose the owner module, public surface impact, focused test, and CLI regression.
  5. Extract only the atom already in task scope.
  6. Record adjacent refactors as follow-up work instead of widening the task.

If the task is not a refactor or extraction task, use this skill only to identify a future atom candidate. Do not turn an unrelated bug fix into a broad cleanup.

Pattern Selection

Read references/patterns.md when choosing the extraction shape or reviewing a proposed split.

Use the short rule:

  • Admission, permission, waiver, or allowed/blocked decisions -> Policy Object.
  • Mode, bucket, or route selection -> Strategy Map.
  • Evidence, diagnostics, bundle, or provenance output -> Result Contract Object.
  • Operator-facing command that delegates to atoms -> Facade.
  • Host/adopter boundary -> Adapter/Port.

ATM Guardrails

  • Keep taskflow open and taskflow close as normal operator lanes.
  • Treat direct tasks close, tasks reconcile, tasks import --write --force, and tasks repair-closure as backend/emergency surfaces when used directly.
  • Keep caller-facing contracts stable. Prefer re-exporting from public-surface.ts instead of changing callers ad hoc.
  • Do not create a second task lifecycle, task storage model, registry, or close authority.
  • Keep source delivery commits separate from runner-sync commits when ATM_RUNNER_SYNC_REQUIRED appears.
  • Add focused tests for the extracted atom, then run the task card validators.

Output Shape

Before implementing a refactor, produce a concise plan:

Atom:
Pattern:
Owner module:
Callers:
Public surface:
Focused test:
CLI regression:
Out of scope:
Commit split:

If the implementation proceeds, report the same fields with the final paths and validator results.

Casebook

Read references/casebook.md when the current task resembles prior CID work or when adding a new lesson after a successful extraction.

Add a new case only after a task is governed done. Keep cases short: problem, chosen pattern, owner module, proof, lesson.

  • 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.

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Deterministic external-evidence web validation workflow for Sanguo ETL/RAG. USE FOR: 外部證據網站檢查、來源健康度、allowlist 驗證、來源 seed 覆蓋、3kweb-check、external evidence source health、fetch/parse/hash first、LLM reviewer second。

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

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.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Write or revise AI-learning-notes article pages in "寫文章模式" when the user asks for articles, technical articles, blog posts, bilingual versions, article formatting consistency, shared article-base alignment, responsive layout, summary/TOC decisions, contrast, or publishing-flow compatibility.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Captain 派工規範與決策手冊。當 AI 進入隊長模式或進行派工/派任務語境時,遵照這套標準,產出可供人類直接轉貼、高度結構化、符合 token 經濟且能動態適應可用 Roster 的派工單。

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

Create and register an atom through the provisioning facade.

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

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+ 累積的紀律教訓。

中文简介正在准备中。当前显示原文说明。

eaglhuang/3klife32026年10月22日 更新

查看 eaglhuang 的全部技能

报告此技能的问题