AgentSkillsCN

memory-sync

将当前会话状态同步至 ConKeeper 记忆文件。根据对话内容更新上下文、进度与决策。

SKILL.md
--- frontmatter
name: memory-sync
description: Synchronize current session state to ConKeeper memory files. Updates context, progress, and decisions based on the conversation.

Memory Sync

Synchronize current session state to memory files.

Sync Process

Step 1: Review Current State

Read current memory files:

  • active-context.md
  • progress.md
  • Recent entries in decisions/

Step 2: Analyze Session

Review conversation for:

  • Decisions made (architectural, implementation, tooling)
  • Tasks completed or started
  • Context changes (new understanding, shifted priorities)
  • Patterns established
  • Questions resolved or raised

Step 3: Propose Updates

Present changes to user:

code
Memory Sync Summary:

active-context.md:
  - Current focus: [old] → [new]
  - Added open question: [question]

progress.md:
  - Marked complete: [task]
  - Added: [new task]

decisions/:
  - New: ADR-003-[title] (reason: [brief])

Proceed with sync? [y/n]

Step 4: Apply Updates

On confirmation:

  • Update files
  • Create new ADR files if needed (format: ADR-NNN-title.md)
  • Update timestamps

ADR Numbering: Scan decisions/ for highest ADR-NNN, increment from there.

Concurrency note: If multiple sessions may create ADRs simultaneously, use timestamp suffix: ADR-NNN-YYYYMMDD-HHMM-title.md

ADR Format:

markdown
# ADR-NNN: [Title]

**Status:** Accepted | **Date:** [date] | **Tags:** [tags]

## Context
[Why this decision was needed - 1-2 sentences]

## Decision
[What was decided - 1 sentence]

## Rationale
- [Key reason 1]
- [Key reason 2]

## Consequences
- [Positive consequence]
- [Tradeoff accepted]

## Alternatives Considered
- [Alt 1]: [Why rejected]

Step 5: Confirm

Memory synced. [N] files updated.