Agent Skillskdlbs/kandev › record

record

GitHub

记录架构决策并同步产品规格。在建立持久边界或契约时自动触发,创建ADR文档以记录上下文、决策及权衡,并更新相关规格说明,确保长期决策与实现一致。

.agents/skills/record/SKILL.md kdlbs/kandev

Trigger Scenarios

建立或变更持久架构边界 定义公共契约或数据所有权规则 用户明确请求记录决策或创建ADR

Install

npx skills add kdlbs/kandev --skill record -g -y
More Options

Non-standard path

npx skills add https://github.com/kdlbs/kandev/tree/main/.agents/skills/record -g -y

Use without installing

npx skills use kdlbs/kandev@record

指定 Agent (Claude Code)

npx skills add kdlbs/kandev --skill record -a claude-code -g -y

安装 repo 全部 skill

npx skills add kdlbs/kandev --all -g -y

预览 repo 内 skill

npx skills add kdlbs/kandev --list

SKILL.md

Frontmatter
{
    "name": "record",
    "description": "Keep durable architecture decisions and product specs in sync with the work happening in the conversation. AUTO-INVOKE when a request establishes or changes a long-lived architectural boundary, public contract, data ownership rule, operational invariant, or repo-wide convention with meaningful alternatives. Also invoke on explicit triggers: \"record this\", \"create an ADR\", \"document this decision\", \"update the spec\", \"ADR for X\". Run BEFORE coding when the decision is upfront, or AFTER landing when the right call only became clear during implementation. Do not create ADRs for simple features, local implementation choices, routine dependency changes, or bug fixes that do not establish a durable rule."
}

Record Knowledge

Record architectural decisions for future reference, and keep related feature specs in sync.

Record a decision

When a significant architectural or design choice is made, create an ADR:

  1. Choose a decentralized ID in the form YYYY-MM-DD-short-title. The short title must be specific enough to remain unique among decisions created on the same date.
  2. Confirm that docs/decisions/<id>.md does not already exist.
  3. Create docs/decisions/<id>.md using the template below.
  4. Update docs/decisions/INDEX.md with the new entry.
  5. Reconcile specs — see "Update or create a spec" below.

Existing numeric ADR IDs remain valid and must not be renamed. References use the complete stable ID, for example ADR-2026-07-16-project-shell-output.

ADR template

# ADR-YYYY-MM-DD-short-title: Short Title

**Status:** accepted | superseded by <adr-id> | deprecated
**Date:** YYYY-MM-DD
**Area:** backend | frontend | infra | protocol | workflow

## Context
What situation prompted this decision. 2-5 sentences.

## Decision
What was decided. Reference file paths, packages, interfaces.

## Consequences
Trade-offs. What becomes easier or harder.

## Alternatives Considered
What else was considered and why it was rejected.

What warrants an ADR

Create an ADR only when all of these are true:

  • The choice establishes a durable constraint, boundary, contract, ownership rule, operational invariant, or repo-wide convention.
  • There were meaningful alternatives with materially different trade-offs.
  • Future work will need to follow or deliberately supersede the choice.
  • A spec, plan, code comment, or regression test alone would not preserve enough of the reasoning.

Typical examples include selecting a system-wide communication model, defining ownership across subsystems, changing a public API or persisted-data contract, and adopting a cross-cutting security or reliability invariant.

What does NOT need an ADR

  • Simple features whose behavior belongs in a product spec
  • Local implementation tactics and refactors within an existing pattern
  • Routine dependency additions or upgrades
  • Bug fixes unless they establish a new rule that future implementations must follow
  • Plan sequencing, task breakdown, and temporary migration mechanics
  • Anything obvious, uncontested, or easily reversible without cross-system consequences

Update or create a spec

ADRs capture why a decision was made. Specs capture what a feature does and why it exists. After recording an ADR, reconcile the affected spec — specs are the canonical product record kept in git, so they must stay accurate.

  1. Read docs/specs/INDEX.md and identify any spec whose scope the decision touches (e.g., a routing decision affects office-provider-routing/spec.md).
  2. For each affected spec:
    • If the decision changes observable behavior, scope, or scenarios: update docs/specs/<slug>/spec.md so the "What" and "Why" sections reflect the new direction. Add a Decision: ADR-<id> reference where relevant.
    • If the decision is purely internal (implementation choice with no spec-visible change): no spec edit needed — the ADR alone is sufficient.
  3. If the decision introduces a new product feature that has no spec yet, invoke /spec to create one rather than writing it ad-hoc here.
  4. If no spec applies (pure infra/process decision, like this knowledge system itself), skip — note in the ADR that no spec is needed.

Do not duplicate ADR content inside the spec. Specs reference ADRs; they don't restate them.

Version History

  • b4239d8 Current 2026-07-24 17:32

Same Skill Collection

.agents/skills/acp-debug/SKILL.md
.agents/skills/add-integration/SKILL.md
.agents/skills/clean-branches/SKILL.md
.agents/skills/code-review/SKILL.md
.agents/skills/commit/SKILL.md
.agents/skills/context-engineering/SKILL.md
.agents/skills/create-kandev-plugin/SKILL.md
.agents/skills/debug/SKILL.md
.agents/skills/docs-maintainer/SKILL.md
.agents/skills/e2e/SKILL.md
.agents/skills/fix/SKILL.md
.agents/skills/harness-improvement/SKILL.md
.agents/skills/interview-me/SKILL.md
.agents/skills/plan/SKILL.md
.agents/skills/planner-orchestration/SKILL.md
.agents/skills/playwright-cli/SKILL.md
.agents/skills/pr-fixup/SKILL.md
.agents/skills/pr/SKILL.md
.agents/skills/product-demo-seeding/SKILL.md
.agents/skills/product-video-capture/SKILL.md
.agents/skills/push/SKILL.md
.agents/skills/qa/SKILL.md
.agents/skills/release/SKILL.md
.agents/skills/runtime-feature-flags/SKILL.md
.agents/skills/simplify/SKILL.md
.agents/skills/spec-driven-development/SKILL.md
.agents/skills/spec/SKILL.md
.agents/skills/tdd/SKILL.md
.agents/skills/using-agent-skills/SKILL.md
.agents/skills/verify/SKILL.md
.agents/skills/mobile-parity/SKILL.md

Metadata

Files
0
Version
1578843
Hash
f734fa1d
Indexed
2026-07-24 17:32

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-16 23:17
浙ICP备14020137号-1 $mapa de visitantes$