/architectural-decisions
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).
$ npx -y skills add repowise-dev/repowise --skill architectural-decisions --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/architectural-decisions
Context preview
The summary Claude sees to decide when to auto-load this skill.
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).
SKILL.md
architectural-decisions.SKILL.mdname: architectural-decisions
description: >
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:".
user-invocable: false
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`, and you can review auto-proposed decisions with `repowise decision confirm`.
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
If the user makes an architectural decision during the conversation, suggest: "Want to record this decision? Add a `# DECISION:` comment in the relevant code, or run `repowise decision add` to capture it formally."
Read more
name: architectural-decisions description: > 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:". user-invocable: false
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`, and you can review auto-proposed decisions with `repowise decision confirm`.
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
If the user makes an architectural decision during the conversation, suggest: "Want to record this decision? Add a `# DECISION:` comment in the relevant code, or run `repowise decision add` to capture it formally."
Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Repo: repowise-dev/repowise
Other skills on repowise.
- /change-review
Use when reviewing a set of changes before they merge — a PR, a branch diff, or the working-tree changes you just made — in a Repowise-indexed codebase (.repowise/ directory exists). Activates for "review this PR", "is this safe to merge", "what's the blast radius of these
Open skill - /code-health
Use when the user asks about code health, code quality, complexity, technical debt, which files are risky or hard to maintain, what to refactor next, untested hotspots, or coverage gaps in a Repowise-indexed codebase (.repowise/ directory exists). Also use to get a before/after
Open skill - /codebase-exploration
Use when exploring, understanding, or answering questions about a codebase that has Repowise indexed (a .repowise/ directory in the project root). Activates for "how does X work", "explain the architecture", "where is Y implemented", "what does this module do", or any task that
Open skill - /dead-code-cleanup
Use when the user asks about cleanup, removing unused code, refactoring, reducing bundle size, or identifying dead code in a Repowise-indexed codebase (.repowise/ directory exists). Also activates when discussing technical debt, code hygiene, or repository maintenance.
Open skill - /pre-modification
Use before modifying, refactoring, or deleting files in a codebase that has Repowise indexed (indicated by a .repowise/ directory). Activates when Claude is about to edit code, especially shared utilities, core modules, or files the user didn't explicitly mention. Helps assess
Open skill - /change-review
Use when reviewing a set of changes before they merge in a Repowise-indexed repository, a PR, a branch diff, or the working-tree changes you just made. Activates for "review this PR", "is this safe to merge", "what is the blast radius of these changes", or "did I miss anything".
Open skill

