본문으로 건너뛰기
Skillpedia
일반 코딩8.1k · #12570

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/repowise-dev/repowise/blob/main/plugins/codex/skills/architectural-decisions/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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:

  1. get_why(query="why is auth using JWT?") — keyword + semantic decision search.
  2. 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?).
  3. get_why(query="why was caching added?", targets=["src/auth/cache.py"]) — target-anchored search; decisions touching the targets get boosted.
  4. 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

  1. Call get_why(query="the specific area you're changing") to find existing decisions that govern that area.
  2. If decisions are found, present them to the user before proceeding — they may not want to contradict an existing architectural choice.
  3. 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.

자주 묻는 질문

결정은 어디서 오나요?

아키텍처 결정 기록(ADR), 풀 리퀘스트와 커밋 메시지, 인라인 표시, 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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬