AgentSkillsCN

memory-bootstrap

为仓库构建结构化记忆,并为Codex自动驾驶工作流做好准备。当缺乏.规划环节、记忆尚未被使用,或在Codex中开始全新克隆时使用。

SKILL.md
--- frontmatter
name: memory-bootstrap
description: Bootstrap structured memory for a repository and prepare Codex autopilot workflows. Use when .planning is missing, when memory is untouched, or when starting a fresh clone in Codex.

Memory Bootstrap

Run this skill when persistent memory has not been initialized.

Steps

  1. Check whether .planning/STATE.md exists.
  2. If missing, run:
    • .\scripts\gtd.ps1 init
  3. If the repo already contains source files and memory is fresh, run:
    • .\scripts\gtd.ps1 map
  4. Run:
    • .\scripts\gtd.ps1 health
  5. Summarize:
    • What files were created
    • What stack/architecture map was generated
    • The immediate next action for phase execution

Output Contract

  • Report initialization status.
  • Report whether brownfield mapping was applied.
  • Route user to the next chat step without asking for terminal actions.