AgentSkillsCN

archive-state

将已完成的project-state.md归档至archive目录,并将状态文件重置为干净的模板。在某个功能完全提交后,请使用此操作。

SKILL.md
--- frontmatter
name: archive-state
description: >
  Archives completed project-state.md to the archive directory and resets
  the state file to a clean template. Use after a feature is fully committed.
user-invocable: true

/archive-state — State Lifecycle

Flow

  1. Read .claude/memory/project-state.md
  2. Verify phase is FINALIZATION and all tasks [x]
  3. Copy current content to .claude/memory/archive/[YYYY-MM-DD]-[feature-slug].md
  4. Reset project-state.md to clean template:
markdown
# Project State
updated: [timestamp]
skill: IDLE
phase: IDLE

## Active Tasks
(none)

## Current Focus
task: (none)
file: (none)
test: (none)

## Blockers
(none)

## Recent Decisions (last 5)
(none)
  1. Output: "✅ State archived. Ready for next feature."