AgentSkillsCN

Manage Decisions

建立架构决策记录(ADR)系统,以持续保存上下文信息。

SKILL.md
--- frontmatter
name: Manage Decisions
description: System for recording Architectural Decision Records (ADRs) to persist context.

🧠 Manage Decisions (Architectural Memory)

Context

We must avoid "Ambulance Chasing" development where we restart or revert decisions because we forgot why they were made.

1. When to create an ADR?

  • Changing a core library (e.g., PyDrive2 -> Google API Client).
  • Restructuring a package (e.g., operations.py -> operations/__init__.py).
  • Adding a key pattern (e.g., "All UI must use SignalBus").

2. ADR Template

Create a file in .agent/memory/ADR-00X-title.md (Sequential numbering).

markdown
# ADR-00X: [Title]

> **Status:** Accepted | Proposed | Deprecated
> **Date:** YYYY-MM-DD

## Context
What caused this decision? What was the problem?
> "The operations.py file grew to 500 lines and mixed Responsibilities."

## Decision
What are we doing?
> "We split operations.py into a package with `crud.py` and `paths.py`."

## Consequences
*   **Positive:** Better SRP, easier testing.
*   **Negative:** More frequent imports needed.

3. Workflow

  1. Check: Look at existing ADRs in .agent/memory to ensure no conflict.
  2. Draft: Create the new ADR file.
  3. Commit: Add it to git history.