/attune:arch-initfrom attune
Initializes projects with architecture-aware templates, researching and recommending paradigms (hexagonal, microservices, etc.) based on project context. Supports --name, --lang, --arch flags and creates an ADR.
Ships in attune. Installing the plugin adds it to Claude Code.
Research-driven project initialization that selects appropriate architectural paradigms based on project needs.
Use this command when you need to:
Avoid this command if:
/attune:project-init directly)# Interactive mode (recommended) - guides through architecture selection
/attune:arch-init --name my-project
# Specify language and let it recommend architecture
/attune:arch-init --name my-project --lang python
# Specify both language and architecture
/attune:arch-init --name my-project --lang python --arch hexagonal
# Accept recommended architecture without prompting
/attune:arch-init --name my-project --lang python --accept-recommendation
Gathers project context:
Researches best practices:
Recommends architecture paradigm from 14 available options:
Customizes templates based on chosen paradigm
Creates Architecture Decision Record (ADR) documenting the choice
| Scenario | Command |
|---|---|
| Architecture already decided | /attune:project-init |
| Need architecture guidance | /attune:arch-init |
| Exploring multiple architectures | Use Skill(archetypes:architecture-paradigms) first |
| Quick setup with defaults | /attune:project-init |
# 1. Invoke skill to guide architecture-aware initialization
Skill(attune:architecture-aware-init)
# 2. The skill will:
# - Gather project context
# - Research best practices online
# - Recommend paradigm based on decision matrix
# - Customize templates for chosen paradigm
# - Create ADR
# 3. After architecture selected, initializes project
python3 plugins/attune/scripts/attune_arch_init.py \
--name my-project \
--lang python \
--arch hexagonal
--name <name> - Project name--lang <language> - Project language (python, rust, typescript)--arch <paradigm> - Architecture paradigm (e.g., hexagonal, functional-core, cqrs-es)--accept-recommendation - Accept recommended architecture without prompting--skip-research - Skip online research phase (use decision matrix only)The command uses a decision matrix based on team size and domain complexity:
| Team Size | Simple Domain | Moderate | Complex | Highly Complex |
|---|---|---|---|---|
| < 5 | Layered | Layered/Hexagonal | Hexagonal | Functional Core |
| 5-15 | Layered | Modular Monolith | Modular Monolith | Hexagonal and FC |
| 15-50 | Modular Monolith | Microservices | Microservices | CQRS/ES |
| 50+ | Microservices | Microservices | Event-Driven | Space-Based |
/attune:arch-init --name payment-service --lang python
Interactive flow:
Project type: Web API
Domain complexity: Highly Complex (fintech regulations)
Team size: 8 engineers
Requirements: Audit trails, security, compliance
Research results:
- CQRS/Event Sourcing recommended for audit requirements
- Hexagonal also suitable for clean separation
Recommended: CQRS + Event Sourcing
Rationale: Complete audit trail via event log, complex business rules...
Accept recommendation? [Y/n]: y
Creating project structure for CQRS/ES architecture...
/attune:arch-init --name my-cli --lang python --arch functional-core
Creates Functional Core, Imperative Shell structure:
my-cli/
├── src/
│ └── my_cli/
│ ├── core/ # Pure business logic
│ │ ├── domain.py
│ │ ├── operations.py
│ │ └── commands.py
│ └── adapters/ # Side effects
│ ├── cli.py
│ ├── filesystem.py
│ └── config.py
├── tests/
├── docs/
│ └── adr/
│ └── 001-functional-core-architecture.md
└── ...
A full session from paradigm research to scaffold, with the files it
writes: examples/architecture-aware-example.md.
After completion, you'll have:
/attune:project-init - Standard initialization (when architecture is decided)/attune:brainstorm - Explore project needs before architecture selection/attune:war-room - Multi-expert deliberation for complex decisionsSkill(attune:architecture-aware-init) - Full architecture-aware flowSkill(archetypes:architecture-paradigms) - Paradigm selection guideSkill(archetypes:architecture-paradigm-*) - Specific paradigm implementationWhat the command file sets; muted values are Claude Code's defaults
7-day visitors to each command page
npx claudepluginhub athola/claude-night-market --plugin attune11 commands in this plugin
/blueprintGenerate an implementation plan with system architecture design and dependency-ordered task breakdown from a specification./brainstormGuide project ideation through Socratic questioning to generate briefs with validated approaches and decision rationale./executeExecute implementation plan systematically with progress tracking and checkpoint validation/missionRun full attune lifecycle as a mission with state detection and phase routing/project-initInitialize a new project with git setup, CI/CD workflows, pre-commit hooks, Makefiles, and language-specific tooling./skill-libraryBuild a project skill library under .claude/skills/ as a resumable mission: discover, author in parallel, review adversarially.Other plugins' commands for the same job