architectural-decisions
できること
このスキルは、プロジェクトのコードがどのように作られているかの背後にある理由を、AIが説明する手助けをします。意図的な選択を元に戻したくないRepowiseで索引されたプロジェクトの開発者向けです。
使う場面
- ✓タスクが、コードのある部分がなぜ特定の方法で作られているかを尋ねるとき。
- ✓提案された変更がパターンを変え、モジュールを再構成し、またはアプローチを比べるとき。
- ✓コードのコメントやコミットメッセージに、WHY、DECISION、TRADEOFFのような決定のマーカーがあるとき。
スキルのリンク
https://github.com/repowise-dev/repowise/blob/main/plugins/codex/skills/architectural-decisions/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“このサービスになぜキャッシュが追加されたのですか?変更を提案する前に、記録された決定を調べてください。”
毎週5つの新しいスキル。1分で読めます。
仕組み
スキルは、あなたの質問または該当するファイルに合う決定を、Repowiseに問い合わせます。変更の前に記録された理由を示し、何も記録がない場合はそのことを伝えます。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)を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.
よくある質問
決定はどこから来ますか?
アーキテクチャの決定記録、プルリクエストとコミットのメッセージ、インラインのマーカー、gitの履歴、一部のコードコメントからです。
ファイルに記録された決定がない場合はどうなりますか?
スキルはそのファイルのgitの履歴に頼るため、回答は依然として役立ちます。
Repowiseのプロジェクトが必要ですか?
はい。.repowiseフォルダを持つプロジェクトで動きます。
詳細
作者による元の説明
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
人気
- GitHubのスター
- 8.1k
- ランキング
- #12570
- ライセンス
- AGPL-3.0
- 更新日
- 2026/11/2
コメント
- …
このリポジトリの他のスキル
architectural-decisions
8.1kアーキテクチャを変更する前に、記録された決定と履歴を使って、コードがなぜそのように作られているかを、エージェントが調べるよう支援します。
change-review
8.1kマージの前にプルリクエストや一連の変更を見直し、リスク、影響を受けるファイル、ほかに変えるべきものを示すよう、エージェントを支援します。
code-health
8.1kRepowiseの分析を使って、ファイルごとにコードの健全性を採点し、最もリスクの高いファイルを見つけ、次にリファクタリングするものを選ぶよう、エージェントを支援します。
codebase-exploration
8.1kコードがどう動くか、誰が何を呼ぶか、何がどこに作られているかに答えることで、なじみのないプロジェクトを素早く理解するよう、エージェントを支援します。
似ているスキル
diffs
394k編集内容の実際の共有可能な差分を、手書きの要約ではなく、ビューアーのリンクや画像ファイルとして作成するようエージェントを支援します。
coding-agent
394kCodex、Claude Code、OpenCodeに大きめのコーディング作業をバックグラウンドのワーカーとして渡し、その進捗を確認するようエージェントを支援します。
gh-issues
394kGitHubのイシューを探し、取り組むものを選び、修正を含むプルリクエストを開くようエージェントを支援します。レビューコメントへの対応も含みます。