architectural-decisions
यह क्या करती है
यह स्किल आपके AI को समझाने में मदद करती है कि किसी प्रोजेक्ट का कोड ऐसे क्यों बना है। यह उन डेवलपर्स के लिए है जो Repowise से इंडेक्स किए गए प्रोजेक्ट पर काम करते हैं और जानबूझकर किए गए चुनाव पलटना नहीं चाहते।
कब इस्तेमाल करें
- ✓जब कोई काम पूछे कि कोड का कोई हिस्सा किसी खास तरीके से क्यों बना है।
- ✓जब प्रस्तावित बदलाव कोई पैटर्न बदले, मॉड्यूल पुनर्गठित करे या तरीकों की तुलना करे।
- ✓जब कोड कमेंट या कमिट संदेशों में WHY, DECISION या TRADEOFF जैसे फ़ैसले के मार्कर हों।
Skill का लिंक
https://github.com/repowise-dev/repowise/blob/main/plugins/codex/skills/architectural-decisions/SKILL.mdइसे कॉपी करके अपने AI (Claude, ChatGPT या Cursor) में पेस्ट करें और निर्देशों का पालन करने को कहें।
कैसे इस्तेमाल करें
सबसे आसान तरीका: मैसेज कॉपी करके अपने AI में पेस्ट करें। वह skill पढ़कर निर्देशों का पालन करेगा।
पेस्ट करने के लिए तैयार मैसेज
Claude Code, Codex या Cursor के लिए: प्रोजेक्ट फ़ोल्डर में चलाएँ और skill इंस्टॉल हो जाएगी।
SKILL.md डाउनलोड करें और अपने एजेंट के skills फ़ोल्डर में रखें।
AI से क्या माँगें: उदाहरण
“इस सर्विस में कैशिंग क्यों जोड़ी गई थी? कोई बदलाव सुझाने से पहले दर्ज फ़ैसला देखिए।”
हर हफ़्ते 5 नई skills, 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.
अक्सर पूछे जाने वाले सवाल
फ़ैसले कहाँ से आते हैं?
आर्किटेक्चर डिसीज़न रिकॉर्ड, pull request और कमिट संदेशों, इनलाइन मार्कर, 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
- अपडेट की गई
- 2/11/2026
कमेंट
- …
इस repository की और skills
architectural-decisions
8.1kयह आपके एजेंट को किसी आर्किटेक्चर को बदलने से पहले दर्ज किए गए फ़ैसलों और इतिहास से यह जानने में मदद करती है कि कोड ऐसे क्यों बना है।
change-review
8.1kयह आपके एजेंट को मर्ज से पहले pull request या बदलावों के समूह की समीक्षा करने में मदद करती है, जोखिम, प्रभावित फ़ाइलें और बाकी क्या बदलना चाहिए, यह दिखाते हुए।
code-health
8.1kयह आपके एजेंट को फ़ाइल-दर-फ़ाइल कोड स्वास्थ्य का स्कोर देने, सबसे जोखिम भरी फ़ाइलें ढूँढने और अगले रीफ़ैक्टर के लिए चुनने में मदद करती है, Repowise विश्लेषण से।
codebase-exploration
8.1kयह आपके एजेंट को यह बताकर कि कोड कैसे काम करता है, कौन क्या कॉल करता है और चीज़ें कहाँ बनी हैं, किसी अनजान प्रोजेक्ट को जल्दी समझने में मदद करती है।
मिलती-जुलती skills
diffs
394kयह आपके एजेंट को बदलावों का असली diff बनाने देती है, जिसे व्यूअर लिंक या इमेज फ़ाइल के रूप में साझा किया जा सकता है, हाथ से लिखे सारांश के बजाय।
coding-agent
394kयह आपके एजेंट को बड़े कोडिंग काम Codex, Claude Code या OpenCode को बैकग्राउंड वर्कर के रूप में सौंपने, फिर उसकी प्रगति जांचने में मदद करती है।
gh-issues
394kयह आपके एजेंट को GitHub issues खोजने, उनमें से काम करने लायक चुनने, और सुधार के साथ pull requests खोलने में मदद करती है, जिसमें समीक्षा टिप्पणियों का फ़ॉलो-अप भी शामिल है।