architectural-decisions
Fungsinya
Skill ini membantu AI Anda menjelaskan alasan di balik cara kode sebuah proyek dibangun. Skill ini untuk pengembang yang bekerja di proyek yang diindeks Repowise dan ingin menghindari pembatalan pilihan yang disengaja.
Kapan dipakai
- βSaat sebuah tugas menanyakan mengapa sebagian kode dibangun dengan cara tertentu.
- βSaat sebuah perubahan yang diusulkan akan mengubah pola, menata ulang modul, atau membandingkan pendekatan.
- βSaat komentar kode atau pesan commit berisi penanda keputusan seperti WHY, DECISION, atau TRADEOFF.
Link skill
https://github.com/repowise-dev/repowise/blob/main/plugins/codex/skills/architectural-decisions/SKILL.mdSalin 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
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
βMengapa caching ditambahkan ke layanan ini? Cari keputusan yang tercatat sebelum menyarankan perubahan.β
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Skill meminta Repowise mencari keputusan yang cocok dengan pertanyaan Anda atau berkas yang dimaksud. Skill menampilkan alasan yang tercatat sebelum ada perubahan, dan memberi tahu jika tidak ada yang tercatat.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Architectural Decisions with Repowise
Repowise captures architectural decisions β the why behind how code is built.
get_why has four modes β pick by what you pass:
get_why(query="why is auth using JWT?")β keyword + semantic decision search.get_why(query="src/auth/service.py")β decisions governing that file, plus its origin story and an alignment score (does the file still follow its own ADRs?).get_why(query="why was caching added?", targets=["src/auth/cache.py"])β target-anchored search; decisions touching the targets get boosted.get_why()β the decision-health dashboard.
Decisions are mined from five sources (ADR files, PR and squash-commit bodies,
inline markers, git archaeology, and centrality-bounded code comments). Each
rationale traces to a verbatim source span, stamped exact / fuzzy / unverified.
When no decision exists for a path, get_why falls back to git archaeology so
the call is never empty.
When the user asks "why is X built this way?"
Call get_why(query="X").
When about to make an architectural change
- Call
get_why(query="the specific area you're changing")to find existing decisions that govern that area. - If decisions are found, present them to the user before proceeding β they may not want to contradict an existing architectural choice.
- If no decisions are found, proceed but note that no recorded decision governs this area.
When called with no specific query
Call get_why() with no arguments to get the decision-health dashboard:
- Stale decisions that may no longer apply
- Proposed decisions awaiting confirmation
- Ungoverned hotspots (high-churn files with no recorded decisions)
The same signals surface in the CLI via repowise decision health /
/prompts:repowise-decision, and you can query why mid-task with repowise why /
/prompts:repowise-why (the get_why adapter). repowise decision candidates --format json
lists proposed decisions with what each still needs;
repowise decision confirm <id> --agent <your slug> --evidence <commit|file>
accepts one (see /prompts:repowise-decision).
When a file has decision markers
If you see # WHY:, # DECISION:, # TRADEOFF:, or # ADR: comments in code, call get_context(targets=["that_file.py"]) to see the full decision record with context and affected modules.
Recording new decisions
When you settle an architectural choice yourself (you weighed options and picked one), record it:
repowise decision add --agent <your slug> --title "..." --decision "..." --rationale "<why, and what you rejected>" --affects <path>
Add --evidence-commit <sha> once it is committed. The record lands as a candidate: it never governs until accepted, so recording is safe.
Reviewing candidates
You may review and accept candidates yourself. repowise decision candidates --format json lists each with its blockers. Accept one with repowise decision confirm <id> --agent <your slug>, adding --reason, --scope <path>, --evidence <commit|file|link> or --decision for whatever a blocker names. Dismiss a wrong one with repowise decision dismiss <id> --agent <your slug> --reason ... --yes, fold a duplicate with repowise decision merge <id> <into-id> --agent <your slug> (the target must already be accepted; confirm it first), and retire one with repowise decision deprecate <id> --agent <your slug> --reason .... When an accepted decision is needs_review and still holds, renew it with repowise decision reaffirm <id> --agent <your slug>; confirm is for candidates only. With --format json every review command returns results[], even for one id. Your acceptances are recorded as yours, never a person's. If the repository turned agent acceptance off, the confirm is refused; leave it for a person and mention it.
If the user states a decision, offer to record it the same way without --agent.
Pertanyaan umum
Dari mana keputusan itu berasal?
Berasal dari architecture decision record, pesan pull request dan commit, penanda sebaris, riwayat git, dan sebagian komentar kode.
Bagaimana jika sebuah berkas tidak memiliki keputusan yang tercatat?
Skill beralih ke riwayat git berkas tersebut, sehingga jawabannya tetap berguna.
Apakah perlu proyek Repowise?
Ya. Skill bekerja di proyek yang memiliki folder .repowise.
Detail
Deskripsi asli dari pembuat
Use when a task asks why code is built a certain way, proposes architectural changes, compares implementation approaches, or mentions decision markers such as WHY, DECISION, TRADEOFF, or ADR in a Repowise-indexed repository.
repo: repowise-dev/repowise
Popularitas
- Bintang GitHub
- 8.1k
- Peringkat
- #12570
- Lisensi
- AGPL-3.0
- Diperbarui
- 2/11/2026
Komentar
- β¦
Skill lain dari repositori ini
architectural-decisions
8.1kMembantu agent Anda mencari tahu mengapa kode dibangun dengan cara tertentu, menggunakan keputusan dan riwayat yang tercatat sebelum mengubah arsitektur.
change-review
8.1kMembantu agent Anda meninjau pull request atau sekumpulan perubahan sebelum digabung, dengan menampilkan risiko, berkas yang terdampak, dan hal lain yang perlu ikut diubah.
code-health
8.1kMembantu agent Anda menilai kesehatan kode berkas demi berkas, menemukan berkas yang paling berisiko, dan memilih apa yang perlu direfaktor berikutnya, memakai analisis Repowise.
codebase-exploration
8.1kMembantu agent Anda memahami proyek yang belum dikenal dengan cepat, dengan menjawab cara kerja kode, siapa yang memanggil apa, dan di mana sesuatu dibangun.
Skill serupa
diffs
394kMemungkinkan agent Anda menghasilkan diff perubahan yang nyata dan dapat dibagikan sebagai tautan viewer atau file gambar, bukan ringkasan yang ditulis manual.
coding-agent
394kMembantu agent Anda menyerahkan pekerjaan pemrograman besar ke Codex, Claude Code, atau OpenCode di latar belakang, lalu memeriksa kemajuannya.
gh-issues
394kMembantu agent Anda menemukan issue GitHub, memilih yang dikerjakan, dan membuka pull request perbaikan, termasuk tindak lanjut komentar tinjauan.