dawn840705/codex-code-studios/architecture-decision
Claude Code and agent skill by dawn840705/codex-code-studios
- community
Checking that the SKILL.md file is still in the repository.
Creates an Architecture Decision Record (ADR) documenting a significant technical decision, its context, alternatives considered, and consequences. Every major technical choice should have an ADR.
Install
npx vskill@latest install dawn840705/codex-code-studios/architecture-decisionSKILL.md
The same SKILL.md was published earlier as dawn840705/codex-code-studios/architecture-decision.
When this skill is invoked:
0. Parse Arguments — Detect Retrofit Mode
Resolve the review mode (once, store for all gate spawns this run):
- If
--review [full|lean|solo]was passed → use that - Else read
production/review-mode.txt→ use that value - Else → default to
lean
See ../../docs/director-gates.md for the full check pattern.
If the argument starts with `retrofit` followed by a file path (e.g., $architecture-decision retrofit docs/architecture/adr-0001-event-system.md):
Enter retrofit mode:
- Read the existing ADR file completely.
- Identify which template sections are present by scanning headings:
## Status— BLOCKING if missing:$story-readinesscannot check ADR acceptance## ADR Dependencies— HIGH if missing: dependency ordering breaks## Engine Compatibility— HIGH if missing: post-cutoff risk unknown## GDD Requirements Addressed— MEDIUM if missing: traceability lost
- Present to the user:
``` ## Retrofit: [ADR title] File: [path]
Sections already present (will not be touched): ✓ Status: [current value, or "MISSING — will add"] ✓ [section]
Missing sections to add: ✗ Status — BLOCKING (stories cannot validate ADR acceptance without this) ✗ ADR Dependencies — HIGH ✗ Engine Compatibility — HIGH ```
- Ask: "Shall I add the [N] missing sections? I will not modify any existing content."
- If yes:
- For Status: ask the user — "What is the current status of this decision?"
Options: "Proposed", "Accepted", "Deprecated", "Superseded by ADR-XXXX"
- For ADR Dependencies: ask — "Does this decision depend on any other ADR?
Does it enable or block any other ADR or epic?" Accept "None" for each field.
- For Engine Compatibility: read the engine reference docs (same as Step 0 below)
and ask the user to confirm the domain. Then generate the table with verified data.
- For GDD Requirements Addressed: ask — "Which GDD systems motivated this decision?
What specific requirement in each GDD does this ADR address?"
- Append each missing section to the ADR file using the Edit tool.
- Never modify any existing section. Only append or fill absent sections.
- After adding all missing sections, update the ADR's
## Datefield if it is absent. - Suggest: "Run
$architecture-reviewto re-validate coverage now that this ADR
has its Status and Dependencies fields."
If NOT in retrofit mode, proceed to Step 0 below (normal ADR authoring).
No-argument guard: If no argument was provided (title is empty), ask before running Phase 0:
"What technical decision are you documenting? Please provide a short title(e.g.,event-system-architecture,physics-engine-choice)."
Use the user's response as the title, then proceed to Step 0.
0. Load Engine Context (ALWAYS FIRST)
Before doing anything else, establish the engine environment:
- Read
docs/engine-reference/[engine]/VERSION.mdto get:
- Engine name and version
- LLM knowledge cutoff date
- Post-cutoff version risk levels (LOW / MEDIUM / HIGH)
- Identify the domain of this architecture decision from the title or
user description. Common domains: Physics, Rendering, UI, Audio, Navigation, Animation, Networking, Core, Input, Scripting.
- Read the corresponding module reference if it exists:
docs/engine-reference/[engine]/modules/[domain].md
- Read
docs/engine-reference/[engine]/breaking-changes.md— flag any
changes in the relevant domain that post-date the LLM's training cutoff.
- Read
docs/engine-reference/[engine]/deprecated-apis.md— flag any APIs
in the relevant domain that should not be used.
- Display a knowledge gap warning before proceeding if the domain carries
MEDIUM or HIGH risk:
``` ⚠️ ENGINE KNOWLEDGE GAP WARNING Engine: [name + version] Domain: [domain] Risk Level: HIGH — This version is post-LLM-cutoff.
Key changes verified from engine-reference docs:
- [Change 1 relevant to this domain]
- [Change 2]
This ADR will be cross-referenced against the engine reference library. Proceed with verified information only — do NOT rely solely on training data. ```
If no engine has been configured yet, prompt: "No engine is configured. Run $setup-engine first, or tell me which engine you are using."
1. Determine the next ADR number
Scan docs/architecture/ for existing ADRs to find the next number.
2. Gather context
Read related code, existing ADRs, and relevant GDDs from design/gdd/.
2a: Architecture Registry Check (BLOCKING gate)
Read docs/registry/architecture.yaml. Extract entries relevant to this ADR's domain and decision (grep by system name, domain keyword, or state being touched).
Present any relevant stances to the user before the collaborative design begins, as locked constraints:
If the user's proposed decision would contradict any registered stance, surface the conflict immediately:
"⚠️ Conflict: This ADR proposes [X], but ADR-[NNNN] established that [Y] isthe accepted pattern for this purpose. Proceeding without resolving this willproduce contradictory ADRs and inconsistent stories.Options: (1) Align with the existing stance, (2) Supersede ADR-[NNNN] withan explicit replacement, (3) Explain why this case is an exception."
Do not proceed to Step 3 (collaborative design) until any conflict is resolved or explicitly accepted as an intentional exception.
3. Guide the decision collaboratively
Before asking anything, derive the skill's best guesses from the context already gathered (GDDs read, engine reference loaded, existing ADRs scanned). Then present a confirm/adjust prompt by asking the user directly — not open-ended questions.
Derive assumptions first:
- Problem: Infer from the title + GDD context what decision needs to be made
- Alternatives: Propose 2-3 concrete options from engine reference + GDD requirements
- Dependencies: Scan existing ADRs for upstream dependencies; assume None if unclear
- GDD linkage: Extract which GDD systems the title directly relates to
- Status: Always
Proposedfor new ADRs — never ask the user what the status is
Scope of assumptions tab: Assumptions cover only: problem framing, alternative approaches, upstream dependencies, GDD linkage, and status. Schema design questions (e.g., "How should spawn timing work?", "Should data be inline or external?") are NOT assumptions — they are design decisions belonging to a separate step after the assumptions are confirmed. Do not include schema design questions in the assumptions direct user question widget.
After assumptions are confirmed, if the ADR involves schema or data design choices, use a separate multi-tab a direct user question to ask each design question independently before drafting.
Present assumptions with a direct user question:
Do not generate the ADR until the user confirms assumptions or provides corrections.
After engine specialist and TD reviews return (Step 4.5/4.6), if unresolved decisions remain, present each one as a separate a direct user question with the proposed options as choices plus a free-text escape:
ADR Dependencies — derive from existing ADRs, then confirm:
- Does this decision depend on any other ADR not yet Accepted?
- Does it unlock or unblock any other ADR or epic?
- Does it block any specific epic from starting?
Record answers in the ADR Dependencies section. Write "None" for each field if no constraints apply.
4. Generate the ADR
Following this format:
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/architecture-decision/SKILL.md
Popularity
- Repository stars
- 17
- Repository forks
- 2
- 7-day trend score
- 14
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/dawn840705/codex-code-studios/architecture-decision)