architectural-decisions
하는 일
이 스킬은 AI가 프로젝트 코드가 그렇게 만들어진 이유를 설명하도록 돕습니다. Repowise로 색인된 프로젝트에서 의도적인 선택을 실수로 되돌리지 않으려는 개발자를 위한 스킬입니다.
사용하는 경우
- ✓코드의 특정 부분이 왜 그렇게 만들어졌는지 물을 때.
- ✓패턴을 바꾸거나, 모듈을 재구성하거나, 접근 방식을 고르려고 할 때.
- ✓커밋 메시지나 코드 주석에 존중해야 할 결정, 절충, ADR이 언급된 경우.
스킬 링크
https://github.com/repowise-dev/repowise/blob/main/plugins/claude-code/skills/architectural-decisions/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“여기서 인증은 왜 JWT로 만들어졌나요? 바꾸기 전에 기록된 결정을 확인해 주세요.”
매주 새 스킬 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 /
/repowise:decision, and you can query why mid-task with repowise why /
/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 /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.
자주 묻는 질문
기록된 결정은 어디서 오나요?
아키텍처 결정 기록(ADR), 풀 리퀘스트와 커밋 메시지, 인라인 표시, git 이력, 일부 코드 주석에서 옵니다.
기록된 결정이 없으면 어떻게 하나요?
스킬은 계속 진행하되, 그 코드 부분에 기록된 이유가 없다고 알려 줍니다.
Repowise 프로젝트에서만 작동하나요?
네. .repowise 폴더가 있는 Repowise 색인 프로젝트가 필요합니다.
상세 정보
작성자의 원본 설명
Use when encountering questions about WHY code is built a certain way, when about to make architectural changes (new patterns, restructuring, choosing between approaches), or when the user asks about design rationale in a Repowise-indexed codebase (.repowise/ directory exists). Also activates when commit messages or code comments contain decision signals like "WHY:", "DECISION:", "TRADEOFF:", "ADR:".
repo: repowise-dev/repowise
인기도
- GitHub 스타
- 8.1k
- 순위
- #12564
- 라이선스
- AGPL-3.0
- 업데이트
- 2026. 11. 2.
댓글
- …
이 저장소의 다른 스킬
change-review
8.1k에이전트가 풀 리퀘스트나 변경 묶음을 병합 전에 검토해, 위험도와 영향받는 파일, 함께 바꿔야 할 것을 보여 주도록 돕습니다.
code-health
8.1k에이전트가 파일별 코드 건강도를 점수 매기고 가장 위험한 파일을 찾아 다음에 리팩터링할 대상을 고르도록 돕습니다.
codebase-exploration
8.1k에이전트가 코드가 어떻게 동작하는지, 누가 무엇을 호출하는지, 무엇이 어디에 만들어졌는지 답하며 낯선 프로젝트를 빠르게 이해하도록 돕습니다.
dead-code-cleanup
8.1k에이전트가 프로젝트에서 쓰지 않는 코드, 도달할 수 없는 파일, 쓰지 않는 export를 찾아 안전하게 정리하도록 돕습니다.