Langsung ke konten
Skillpedia
Dokumentasi280k Β· #139

architecture-decision-records

Fungsinya

Skill ini membuat catatan formal tentang keputusan penting terkait arsitektur proyek software Anda. Catatan tersebut disimpan dalam file teks yang mudah dibaca, yang disebut ADR, dan disimpan bersama kode.

Kapan dipakai

  • βœ“Saat Anda memutuskan teknologi yang akan dipakai, misalnya database atau framework.
  • βœ“Saat membahas kelebihan dan kekurangan dari berbagai pendekatan.
  • βœ“Saat seseorang bertanya mengapa pilihan tertentu dibuat.

Link skill

https://github.com/affaan-m/ECC/blob/main/pi/core/skills/architecture-decision-records/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/affaan-m/ECC/blob/main/pi/core/skills/architecture-decision-records/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œCatat keputusan ini: kita akan menggunakan database PostgreSQL, bukan MongoDB.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini mendeteksi kapan sebuah keputusan penting dibuat. Lalu, skill ini mengumpulkan konteksnya, alternatif yang dipertimbangkan, dan konsekuensinya, lalu menyusun semuanya ke dalam file teks bernama ADR.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

Architecture Decision Records

Capture architectural decisions as they happen during coding sessions. Instead of decisions living only in Slack threads, PR comments, or someone's memory, this skill produces structured ADR documents that live alongside the code.

When to Activate

  • User explicitly says "let's record this decision" or "ADR this"
  • User chooses between significant alternatives (framework, library, pattern, database, API design)
  • User says "we decided to..." or "the reason we're doing X instead of Y is..."
  • User asks "why did we choose X?" (read existing ADRs)
  • During planning phases when architectural trade-offs are discussed

ADR Format

Use the lightweight ADR format proposed by Michael Nygard, adapted for AI-assisted development:

# ADR-NNNN: [Decision Title]

**Date**: YYYY-MM-DD
**Status**: proposed | accepted | deprecated | superseded by ADR-NNNN
**Deciders**: [who was involved]

## Context

What is the issue that we're seeing that is motivating this decision or change?

[2-5 sentences describing the situation, constraints, and forces at play]

## Decision

What is the change that we're proposing and/or doing?

[1-3 sentences stating the decision clearly]

## Alternatives Considered

### Alternative 1: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific reason this was rejected]

### Alternative 2: [Name]
- **Pros**: [benefits]
- **Cons**: [drawbacks]
- **Why not**: [specific reason this was rejected]

## Consequences

What becomes easier or more difficult to do because of this change?

### Positive
- [benefit 1]
- [benefit 2]

### Negative
- [trade-off 1]
- [trade-off 2]

### Risks
- [risk and mitigation]

Workflow

Capturing a New ADR

When a decision moment is detected:

  1. Initialize (first time only) β€” if docs/adr/ does not exist, ask the user for confirmation before creating the directory, a README.md seeded with the index table header (see ADR Index Format below), and a blank template.md for manual use. Do not create files without explicit consent.
  2. Identify the decision β€” extract the core architectural choice being made
  3. Gather context β€” what problem prompted this? What constraints exist?
  4. Document alternatives β€” what other options were considered? Why were they rejected?
  5. State consequences β€” what are the trade-offs? What becomes easier/harder?
  6. Assign a number β€” scan existing ADRs in docs/adr/ and increment
  7. Confirm and write β€” present the draft ADR to the user for review. Only write to docs/adr/NNNN-decision-title.md after explicit approval. If the user declines, discard the draft without writing any files.
  8. Update the index β€” append to docs/adr/README.md

Reading Existing ADRs

When a user asks "why did we choose X?":

  1. Check if docs/adr/ exists β€” if not, respond: "No ADRs found in this project. Would you like to start recording architectural decisions?"
  2. If it exists, scan docs/adr/README.md index for relevant entries
  3. Read matching ADR files and present the Context and Decision sections
  4. If no match is found, respond: "No ADR found for that decision. Would you like to record one now?"

ADR Directory Structure

docs/
└── adr/
    β”œβ”€β”€ README.md              ← index of all ADRs
    β”œβ”€β”€ 0001-use-nextjs.md
    β”œβ”€β”€ 0002-postgres-over-mongo.md
    β”œβ”€β”€ 0003-rest-over-graphql.md
    └── template.md            ← blank template for manual use

ADR Index Format

# Architecture Decision Records

| ADR | Title | Status | Date |
|-----|-------|--------|------|
| [0001](0001-use-nextjs.md) | Use Next.js as frontend framework | accepted | 2026-01-15 |
| [0002](0002-postgres-over-mongo.md) | PostgreSQL over MongoDB for primary datastore | accepted | 2026-01-20 |
| [0003](0003-rest-over-graphql.md) | REST API over GraphQL | accepted | 2026-02-01 |

Decision Detection Signals

Watch for these patterns in conversation that indicate an architectural decision:

Explicit signals

  • "Let's go with X"
  • "We should use X instead of Y"
  • "The trade-off is worth it because..."
  • "Record this as an ADR"

Implicit signals (suggest recording an ADR β€” do not auto-create without user confirmation)

  • Comparing two frameworks or libraries and reaching a conclusion
  • Making a database schema design choice with stated rationale
  • Choosing between architectural patterns (monolith vs microservices, REST vs GraphQL)

…

Pertanyaan umum

Apa itu ADR?

ADR merupakan singkatan dari 'Architecture Decision Record'. Itu adalah dokumen sederhana yang mencatat keputusan penting tentang struktur software.

Di mana catatan ini disimpan?

Catatan disimpan sebagai file teks Markdown di dalam folder bernama `docs/adr/` pada proyek Anda.

Apakah saya harus membuat file ini secara manual?

Tidak. Skill ini dapat membuat dan mengelola file tersebut untuk Anda saat Anda membuat sebuah keputusan.

Detail

Deskripsi asli dari pembuat

Capture architectural decisions as numbered ADR markdown files in docs/adr/ with context, alternatives considered, consequences, and an index README. Use when the user says 'record this decision' or 'ADR this', chooses between frameworks or databases, discusses trade-offs, or asks why the codebase is shaped this way.

repo: affaan-m/ECC

Popularitas

Bintang GitHub
280k
Peringkat
#139
Lisensi
MIT
Diperbarui
15/10/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa