dawn840705/codex-code-studios/architecture-decision

Claude Code and agent skill by dawn840705/codex-code-studios

Trust tier 3
  • community
Source check pending

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-decision

SKILL.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):

  1. If --review [full|lean|solo] was passed → use that
  2. Else read production/review-mode.txt → use that value
  3. 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:

  1. Read the existing ADR file completely.
  2. Identify which template sections are present by scanning headings:
  • ## Status — BLOCKING if missing: $story-readiness cannot 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
  1. 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 ```

  1. Ask: "Shall I add the [N] missing sections? I will not modify any existing content."
  2. 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.
  1. After adding all missing sections, update the ADR's ## Date field if it is absent.
  2. Suggest: "Run $architecture-review to 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:

  1. Read docs/engine-reference/[engine]/VERSION.md to get:
  • Engine name and version
  • LLM knowledge cutoff date
  • Post-cutoff version risk levels (LOW / MEDIUM / HIGH)
  1. 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.

  1. Read the corresponding module reference if it exists:

docs/engine-reference/[engine]/modules/[domain].md

  1. Read docs/engine-reference/[engine]/breaking-changes.md — flag any

changes in the relevant domain that post-date the LLM's training cutoff.

  1. Read docs/engine-reference/[engine]/deprecated-apis.md — flag any APIs

in the relevant domain that should not be used.

  1. 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:

## Existing Architectural Stances (must not contradict)
State Ownership:
player_health → owned by health-system (ADR-0001)
Interface: HealthComponent.current_health (read-only float)
→ If this ADR reads or writes player health, it must use this interface.
Interface Contracts:
damage_delivery → signal pattern (ADR-0003)
Signal: damage_dealt(amount, target, is_crit)
→ If this ADR delivers or receives damage events, it must use this signal.
Forbidden Patterns:
✗ autoload_singleton_coupling (ADR-0001)
✗ direct_cross_system_state_write (ADR-0000)
→ The proposed approach must not use these patterns.

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] is
the accepted pattern for this purpose. Proceeding without resolving this will
produce contradictory ADRs and inconsistent stories.
Options: (1) Align with the existing stance, (2) Supersede ADR-[NNNN] with
an 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 Proposed for 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:

Here's what I'm assuming before drafting:
Problem: [one-sentence problem statement derived from context]
Alternatives I'll consider:
A) [option derived from engine reference]
B) [option derived from GDD requirements]
C) [option from common patterns]
GDD systems driving this: [list derived from context]
Dependencies: [upstream ADRs if any, otherwise "None"]
Status: Proposed
[A] Proceed — draft with these assumptions
[B] Change the alternatives list
[C] Adjust the GDD linkage
[D] Add a performance budget constraint
[E] Something else needs changing first

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:

Decision: [specific unresolved point]
[A] [option from specialist review]
[B] [alternative option]
[C] Different approach — I'll describe it

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:

markdown
# ADR-[NNNN]: [Title]
## Status
[Proposed | Accepted | Deprecated | Superseded by ADR-XXXX]
## Date
[Date of decision]
## Engine Compatibility
| Field | Value |
|-------|-------|
| **Engine** | [e.g. Godot 4.6] |
| **Domain** | [Physics / Rendering / UI / Audio / Navigation / Animation / Networking / Core / Input] |
| **Knowledge Risk** | [LOW / MEDIUM / HIGH — from VERSION.md] |
| **References Consulted** | [List engine-reference docs read, e.g. `docs/engine-reference/godot/modules/physics.md`] |
| **Post-Cutoff APIs Used** | [Any APIs from post-LLM-cutoff versions this decision depends on, or "None"] |
| **Verification Required** | [Specific behaviours to test before shipping, or "None"] |
## ADR Dependencies
| Field | Value |
|-------|-------|
| **Depends On** | [ADR-NNNN (must be Accepted before this can be implemented), or "None"] |
| **Enables** | [ADR-NNNN (this ADR unlocks that decision), or "None"] |
| **Blocks** | [Epic/Story name — cannot start until this ADR is Accepted, or "None"] |
| **Ordering Note** | [Any sequencing constraint that isn't captured above] |
## Context
### Problem Statement
[What problem are we solving? Why does this decision need to be made now?]
### Constraints
-[Technical constraints]
-[Timeline constraints]
-[Resource constraints]
-[Compatibility requirements]
### Requirements
-[Must support X]
-[Must perform within Y budget]
-[Must integrate with Z]
## Decision
[The specific technical decision made, described in enough detail for someone
to implement it.]
### Architecture Diagram
[ASCII diagram or description of the system architecture this creates]
### Key Interfaces
[API contracts or interface definitions this decision creates]
## Alternatives Considered
### Alternative 1: [Name]
-**Description**: [How this would work]
-**Pros**: [Advantages]
-**Cons**: [Disadvantages]
-**Rejection Reason**: [Why this was not chosen]
### Alternative 2: [Name]
-**Description**: [How this would work]
-**Pros**: [Advantages]
-**Cons**: [Disadvantages]
-**Rejection Reason**: [Why this was not chosen]
## Consequences
### Positive
-[Good outcomes of this decision]
### Negative
-[Trade-offs and costs accepted]
### Risks
-[Things that could go wrong]
-[Mitigation for each risk]
## GDD Requirements Addressed
| GDD System | Requirement | How This ADR Addresses It |
|------------|-------------|--------------------------|
| [system-name].md | [specific rule, formula, or performance constraint from that GDD] | [how this decision satisfies it] |
## Performance Implications
-**CPU**: [Expected impact]
-**Memory**: [Expected impact]
-**Load Time**: [Expected impact]
-**Network**: [Expected impact, if applicable]
## Migration Plan
[If this changes existing code, how do we get from here to there?]
## Validation Criteria
[How will we know this decision was correct? What metrics or tests?]

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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/dawn840705/codex-code-studios/architecture-decision/badge)](https://verified-skill.com/skills/dawn840705/codex-code-studios/architecture-decision)

Something wrong with this skill or its page? Tell us.