Architecture aware init

From athola/claude-night-market · View interactive version

Architecture aware init is an AI agent skill from the GitHub repository athola/claude-night-market. Selects architecture paradigm via research before scaffolding. Use when architecture is undecided and the choice needs justification and documentation.

How to use this skill

Skill file

Architecture-Aware Project Initialization

Overview

Project initialization that combines online research, archetype

selection, template customization, and decision documentation

into one workflow. Use this skill when the architecture is

undecided and the choice deserves justification.

When To Use This Skill

Use instead of project-init when architecture is undecided.

Use before project-specification to establish the

architectural foundation.

Required Progress Items

  1. arch-init:research-completed: Online research completed
  2. arch-init:paradigm-selected: Architecture paradigm chosen
  3. arch-init:templates-customized: Templates adapted to paradigm
  4. arch-init:decision-recorded: ADR created

5-Step Workflow

Steps 1-2: Gather context, research best practices

Load modules/research-flow.md for the full project-context

questionnaire and the three-tier search strategy. Output: a

synthesis brief that feeds Step 3.

Step 3: Select the architecture paradigm

Load modules/paradigm-selection.md for the decision matrix

(team size by domain complexity) and the special-case overrides

(streaming, serverless, microkernel, etc.). Two routes:

exploration.

Step 4-5: Customize templates and record the decision

Load modules/scaffold-generation.md for the paradigm-specific

directory layouts (Functional Core / Hexagonal / Microservices

shown, others delegated to the corresponding

archetypes:architecture-paradigm-{name} skill) and the ADR

template.

Output: Initialization Package

After completing the workflow, the project has:

  1. A directory structure matched to the chosen architecture
  2. Configuration that reflects the paradigm (test layout,

tooling, dependency hints)

  1. An ADR explaining why this paradigm was chosen
  2. Links to the relevant paradigm skill for ongoing

implementation guidance

  1. References to similar real-world projects from Step 2

Script Integration

The interactive workflow above is the default. For automation,

load modules/script-integration.md for the three Python

helpers under plugins/attune/scripts/ (architecture researcher,

template customizer, full interactive flow) and library-style

import examples.

Integration with Existing Commands

This skill enhances /attune:project-init by adding an

architecture-selection phase before scaffolding:

# Standard initialization (no architecture decision)
/attune:project-init --lang python --name my-project

# Architecture-aware initialization
/attune:brainstorm                  # Explore project needs
Skill(architecture-aware-init)      # Select architecture
/attune:project-init --arch <paradigm> --name my-project

Example Session

User: "I'm creating a Python web API for a fintech application.

Team of 8 developers, complex business rules, need high security

and audit trails."

engineers, security and auditability requirements.

architecture, CQRS+ES Python examples.

Event Sourcing.

module, event store, aggregate patterns, projection handlers.

rules, regulatory compliance).

Result: project initialized with paradigm-appropriate structure

and clear decision rationale.

Related Skills

implementation guidance

architecture

the paradigm is chosen

See Also

selection

Exit Criteria

arch-init:research-completed, arch-init:paradigm-selected,

arch-init:templates-customized, arch-init:decision-recorded.

chosen, referencing evidence from the Step 2 research synthesis.

archetypes:architecture-paradigm-* skill (verified by listing the created directories).

with trade-offs and waits for explicit user selection rather than defaulting silently.

lists and was passed with --research-file; the recommendation's

rationale contains a rule naming "research"

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.