Aller au contenu
Skillpedia
Programmation générale8.1k · #12570

architectural-decisions

Ce qu’il fait

Cette compétence aide votre IA à expliquer les raisons qui sous-tendent la construction du code d'un projet. Elle s'adresse aux développeurs qui travaillent dans un projet indexé par Repowise et veulent éviter de défaire des choix délibérés.

Quand l’utiliser

  • ✓Quand une tâche demande pourquoi une partie du code est construite d'une manière particulière.
  • ✓Quand une modification proposée changerait un schéma, restructurerait des modules ou comparerait des approches.
  • ✓Quand des commentaires de code ou des messages de commit contiennent des marqueurs de décision comme WHY, DECISION ou TRADEOFF.

Lien du skill

https://github.com/repowise-dev/repowise/blob/main/plugins/codex/skills/architectural-decisions/SKILL.md

Copiez-le et collez-le dans votre IA (Claude, ChatGPT ou Cursor) en lui demandant de suivre les instructions.

Comment l’utiliser

Le plus simple : copiez le message et collez-le dans votre IA. Elle lit le skill et suit les instructions.

Message prêt à coller

Utilise ce skill pour m’aider : https://github.com/repowise-dev/repowise/blob/main/plugins/codex/skills/architectural-decisions/SKILL.md Lis le fichier SKILL.md de ce lien et suis ses instructions pour ma tâche.
Envie que votre IA trouve seule des skills comme celui-ci ?Installez le MCP gratuit de Skillpedia : une ligne, et elle cherche parmi 15 000+ skills avant chaque tâche.Installer en 1 minute →

Exemple de demande à votre IA

“Pourquoi la mise en cache a-t-elle été ajoutée à ce service ? Consulte la décision enregistrée avant de proposer un changement.”

5 nouveaux skills par semaine. 1 minute de lecture.

Comment ça marche

La compétence demande à Repowise les décisions correspondant à votre question ou au fichier concerné. Elle présente les raisons enregistrées avant toute modification, et signale lorsque rien n'a été consigné.

Contenu technique (SKILL.md original)

Texte original de l’auteur, en anglais, directement depuis 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.

Questions fréquentes

D'où viennent les décisions ?

Des enregistrements de décisions d'architecture, des messages de demandes de fusion et de commits, des marqueurs dans le code, de l'historique git et de certains commentaires de code.

Que se passe-t-il si un fichier n'a pas de décision enregistrée ?

La compétence se rabat sur l'historique git du fichier, la réponse reste donc utile.

Faut-il un projet Repowise ?

Oui. Elle fonctionne dans un projet qui dispose d'un dossier .repowise.

Détails

Description originale de l’auteur

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

Popularité

Étoiles GitHub
8.1k
Position au classement
#12570
Licence
AGPL-3.0
Mis à jour
02/11/2026

Ce skill vous est-il utile ?

0

Connectez-vous pour voter.

Commentaires

  • …

Autres skills de ce dépôt

Skills similaires