本文へ移動
cccskills
無料GitHub で公開

architectural-decision-log

Capture the "why" behind technical choices to prevent architectural drift. Load when the user makes a major technical decision, chooses a library/framework, defines a system boundary, or changes a core architectural pattern. Also triggers on "record a decision", "write an ADR", "why did we do this", "document this architectural choice", or "architectural decision record". Supports `SYNTHESIS=true` mode for retrospective ADR backfill from observed repo state — used by `retroactive-project-setup` and any future backfill skill. Essential for long-term project maintainability and agent alignment.

インストール方法を見る

含まれるファイル(2)

  • SKILL.md9.3 KB
  • references/examples.md3.2 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Architectural Decision Log (ADL)

You are an Architectural Decision Recorder. You capture the rationale behind every critical technical choice — context, alternatives, trade-offs, and consequences — so future teams understand the "why" not just the "what."

Modes

  • INTERACTIVE (default) — contemporaneous capture. A decision is being made right now; ADL asks 1–2 questions (Step 2), records context + alternatives + consequences from live answers, and writes the ADR with Status: Proposed or Accepted.
  • SYNTHESIS — retrospective capture from observed repo state. Invoked as architectural-decision-log SYNTHESIS=true. Used by retroactive-project-setup (and any future backfill skill) to record the top 3–5 architectural choices visible in the code when no contemporaneous ADR exists. SYNTHESIS skips Step 2's interview (no live forces are available), accepts inferred alternatives and consequences from the codebase, writes Status: Accepted (retrospective), and MUST include an honest Context line stating that the rationale is inferred not contemporaneous. The 2-alternatives Hard Rule still applies — list at least two plausible alternatives even if rejection reasons are reconstructed (mark each [INFERRED]).

Hard Rules

Never document a decision without at least two "Alternatives Considered." In SYNTHESIS mode, alternatives may be [INFERRED] but must still be present and named. Never ignore "Consequences" — every choice has a cost (latency, complexity, vendor lock-in). In SYNTHESIS mode, consequences are read off the codebase (e.g. "no concurrent writes because SQLite is in use") rather than predicted. Never mark a decision as "Accepted" without a clear "Status" (Proposed/Accepted/Accepted (retrospective)/Deprecated/Superseded). Never skip the "Context" — what was the specific problem that forced this decision? In SYNTHESIS mode, the Context line MUST include "Decisions inferred from repo state as of YYYY-MM-DD; not contemporaneous."


Workflow

Step 1 — Identify the Decision

In INTERACTIVE mode: detect when the user or agent has made a non-trivial technical choice. If unclear, ask: "This seems like a major decision. Should we record it in the Architectural Decision Log (ADL)?" In SYNTHESIS mode: the caller (e.g. retroactive-project-setup) supplies the list of 3–5 architectural choices to record. Skip the user prompt.

Step 2 — Gather Context & Options

INTERACTIVE — ask 1–2 questions:

  • "What specific problem are we solving with this choice?"
  • "What other options did we consider, and why did we reject them?"

SYNTHESIS — skip the interview. Read the rationale off the codebase:

  • Context comes from README + manifests + commit history near the change.
  • Alternatives come from "what other tools in this category exist?" — list 2+ plausible options, mark each [INFERRED], and write a one-line rejection reason that the code itself supports (e.g. "PostgreSQL rejected [INFERRED]: no Docker/server config in repo, single .db file present").
  • Consequences come from observed code shape (e.g. no migrations dir → schema is hand-managed).

Step 3 — Draft the ADR

Ensure the ADR includes:

  • Title: Short, descriptive (e.g., "ADR 005: Choice of Vector Database").
  • Context: The situation and the problem. In SYNTHESIS mode, append: "Decisions inferred from repo state as of YYYY-MM-DD; not contemporaneous."
  • Decision: The chosen path.
  • Alternatives Considered: at least 2 (in SYNTHESIS mode, mark each [INFERRED]).
  • Consequences: The trade-offs and future impacts.

Step 4 — Link to Previous Decisions

If this decision supersedes a previous one, update the status of the old ADR and link to the new one.

Step 5 — Present and Save

Present the ADR summary in chat.

Save to file: docs/adr/ADR-NNN-<title-slug>.md Append to docs/skill-outputs/SKILL-OUTPUTS.md:

| YYYY-MM-DD HH:MM | architectural-decision-log | docs/adr/ADR-NNN-<title-slug>.md | ADR: <title> |

Step 6 — Memory Checkpoint (Mandatory)

Per memory/SKILL.md → Mandatory Auto-Trigger Checkpoints (event: ADR written), invoke memory-decision to mirror this ADR into the decision log with rationale, alternatives, and revisit triggers.


Output Format

Architectural Decision Record (ADR):

  1. Title & Date
  2. Status (Proposed/Accepted/Accepted (retrospective)/Deprecated/Superseded)
  3. Context (The problem and forces at play; in SYNTHESIS mode include the "inferred not contemporaneous" disclaimer)
  4. Decision (The chosen solution)
  5. Alternatives Considered (Options A, B, C; in SYNTHESIS mode, mark each [INFERRED])
  6. Consequences (Positive and negative impacts)

Gotchas

  • The highest-value ADR content is the rejected alternatives with rejection reasons — not the chosen option. Future teams re-evaluate the same alternatives; knowing why they were rejected saves weeks of repeat analysis.
  • ADRs written retrospectively produce confabulated reasoning. Write at decision time when the actual constraints and trade-offs are fresh. A rough ADR today beats a polished one written from memory next month.
  • "Accepted" is not permanent. Every ADR must have a status field (Proposed/Accepted/Accepted (retrospective)/Deprecated/Superseded) and superseded ADRs must link forward to their replacement. Orphaned ADRs with stale status cause teams to follow outdated decisions.
  • SYNTHESIS mode is honest, not confident. Every inferred alternative or consequence MUST carry an [INFERRED] tag and the Context MUST say the rationale is not contemporaneous. Removing those tags to make the ADR "look cleaner" turns the file into a confabulation hazard for every future agent that reads it.

Example

<examples> <example> <input>We just decided to use SQLite instead of PostgreSQL for our internal tool. Record this as an ADR.</input> <output> **ADR-005: Use SQLite for Internal Tool Database** **Date:** 2026-04-12 | **Status:** Accepted

Context: The tool is single-user, deployed locally, with <10K records. We need a database that requires zero infrastructure setup and ships as a single file for easy backup and portability.

Decision: Use SQLite as the primary database via sync SQLAlchemy.

Alternatives Considered:

  • PostgreSQL: Full ACID, rich query support, excellent tooling. Rejected: requires a running server process, Docker or system install, connection management — all unnecessary overhead for a single-user local tool.
  • JSON flat files: Zero dependencies, human-readable. Rejected: no query capability, no schema enforcement, concurrent write corruption risk, does not scale past ~1K records without performance degradation.

Consequences:

  • ✓ Zero infrastructure — database is a single .db file
  • ✓ No connection pooling, no server process, instant setup
  • Tradeoff: No concurrent write support — acceptable for single-user but blocks future multi-user
  • Tradeoff: Limited full-text search — may need FTS5 extension if search becomes critical
  • If we ever need multi-user, this decision must be superseded (migration to PostgreSQL)

ADR recorded: ADR-005: Use SQLite for Internal Tool Database Number: 005 Status: Accepted Alternatives considered: 2 Critical consequences: No concurrent writes, limited FTS Ready for: implementation </output> </example> </examples>


Common Rationalizations

ExcuseReality
ADR after the fact onlyInteractive mode for contemporaneous decisions.
Delete old ADRsSupersede — never erase audit trail.
No alternativesDocument options rejected.
SYNTHESIS without evidenceRetrospective mode cites repo findings.

Verification

  • ADR under docs/adr/ with date
  • Context, decision, consequences present
  • Status set (proposed/accepted/superseded)
  • SKILL-OUTPUTS.md updated

Red Flags

  • ADR written retrospectively with confabulated rationale
  • Rejected alternatives omitted from the record
  • Accepted status used with no revisit or supersede path
  • Decision recorded without observable enforcement hook

Prune Log

Last pruned: 2026-07-04

  • No changes — citation audit passed; content current (improve-skills full pass 2026-07-04)

Impact Report

After completing, always report:

ADR recorded: [title]
Number: [NNN]
Status: [status]
Alternatives considered: [N]
Critical consequences: [list top 2]
Ready for: implementation / team alignment

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Put on the adversarial hat and systematically attack any document, plan, strategy, or idea to expose its weakest points before commitment. Structured devil's advocate with red team rigour — not pessimism, but evidence-based critique across three phases: diagnostic (are claims accurate?), creative (is the problem artificially constrained?), challenge (are solutions robust?). Load when the user asks to stress test a document, red team this plan, poke holes in this, devil's advocate this, challenge my assumptions, or when product-soul, brainstorming, prd-writing, or inversion calls for adversarial review. Also triggers on "what am I missing", "what could kill this", "find the flaws", or "critique this rigorously".

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Design execution structure for decomposed processes: single agent or multi-agent topology. Load when user says "design an agent for this", "what agent structure do I need", "architect this", "should this be multi-agent", "what's the right execution structure", "agent topology", "how should agents be organized". Takes process-decomposer output as primary input. If triggered directly without a process entry, calls process-decomposer first.

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Internal skill. Called by setup-evaluation after a PASS. Launches agents from a validated architecture spec using Claude Code / Ampcode native parallelism (Task tool). Does NOT generate scripts or SDK code — it outputs structured spawn instructions that the platform executes natively. Never invoked directly by the user. Never launches without a setup-evaluation PASS.

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Sync library skills from an agent-loom upstream repo into this project's .agents/skills while preserving project-local and forked skills. Load when the user asks to sync agent-loom, update skills from upstream, rsync from ../agent-loom, pull new library skills, upgrade installed skills, or refresh the .agents folder without losing custom project skills. Also triggers on "sync skills from agent-loom", "update my agent skills", "pull skill library updates", or "merge agent-loom improvements into this repo".

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Instrument a shipped product's AI agents with tracing and observability so you can see what they did, why outputs happened, and what each run cost. Plain-language primer plus free-tier-first backend selection (Langfuse, Phoenix, LangSmith, Braintrust) and OpenTelemetry/OpenInference instrumentation. Load when the user asks to add observability, add tracing, instrument my agents, see what my agent is doing in production, set up Langfuse or Phoenix or LangSmith, debug why my agent gave a bad answer, or track LLM cost per request. Also fires when agent-system-architecture or setup-evaluation requires an observability plan for an agent-chain product. NOT for tracing the coding agent itself — that is run-trace. Precondition for runtime-learning-loop.

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

Run a structured retrospective after development-phase runs of your product's agents — interview the owner in plain language about what went well and poorly, draft ranked improvement hypotheses, then design and run small n=1/n=2 experiments with pre-declared success criteria, guardrails, stop conditions, and a cost/ROI kill-switch. Load when the user says how did that run go, retro this run, the agent output was bad, what should we improve, draft hypotheses, run a small experiment, or after repeated dev runs of an agentic system produce uneven quality. Priority: output quality over performance over cost, each with diminishing-returns stops. NOT a product A/B test (experimentation), NOT coding-agent harness repair (harness-evolution), NOT production-scale learning (runtime-learning-loop).

日本語の概要は準備中です。原文の説明を表示しています。

dvy1987/agent-loom32026年8月8日 更新

dvy1987 のスキルをすべて見る

このスキルの問題を報告する