Xpersona
A

architecture-aware-init

CLAWHUB · Unverified

Selects architecture paradigm via research before scaffolding Skill: architecture-aware-init Owner: athola Summary: Selects architecture paradigm via research before scaffolding Tags: latest:1.9.19 Version history: v1.9.19 | 2026-08-26T13:06:17.944Z | user Release v1.9.19 v1.9.18 | 2026-08-15T21:30:03.575Z | user Release v1.9.18 v1.9.17 | 2026-07-30T05:29:48.062Z | user Release v1.9.17 v1.9.16 | 2026-07-14T19:46:54.125Z | user Release v1.9.16 v1.9.15 | 2026-07-04T21:20:47.377Z

62
Rank
84
Safety
1.7k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.7K downloads reported by the source. Last updated 10/10/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17emme0e2m3cpf7k2jvp3a84984b8z9:nm-attune-architecture-aware-init
  1. Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-athola-nm-attune-architecture-aware-init/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

145,986 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: architecture-aware-init
description: Selects architecture paradigm via research before scaffolding
version: 1.9.8
triggers:
  - architecture
  - initialization
  - research
  - decision-making
  - best-practices
  - architecture is undecided and the choice needs justification and documentation
metadata: {"openclaw": {"homepage": "https://github.com/athola/claude-night-market/tree/master/plugins/attune", "emoji": "\ud83e\udd9e", "requires": {"config": ["night-market.archetypes:architecture-paradigms"]}}}
source: claude-night-market
source_plugin: attune
---

> **Night Market Skill** — ported from [claude-night-market/attune](https://github.com/athola/claude-night-market/tree/master/plugins/attune). For the full experience with agents, hooks, and commands, install the Claude Code plugin.


# 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

- Starting a new project and unsure which architecture fits best
- Wanting modern, industry-standard architecture choices
- Needing justification for architectural decisions
- Wanting templates customized to the chosen paradigm

Use **instead of** `project-init` when architecture is undecided.
Use **before** `project-specification` to establish the
architectural foundation.

## Required TodoWrite 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:

- Use the `archetypes:architecture-paradigms` skill for guided
  exploration.
- Use the matrix directly for a fast recommendation.

### 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)
3. An ADR explaining why this paradigm was chosen
4. Links to the relevant paradigm skill 

_meta.json

{
  "ownerId": "kn7d107jg9jv602h9ytsegydq184a42s",
  "slug": "nm-attune-architecture-aware-init",
  "version": "1.9.19",
  "publishedAt": 1787749577944
}

modules/paradigm-selection.md

---
module: paradigm-selection
category: decision-support
dependencies:
- archetypes:architecture-paradigms
estimated_tokens: 700
---

# Paradigm Selection

Step 3 of the architecture-aware-init workflow: pick the
architecture paradigm using either the archetypes plugin or the
decision matrix below.

## Option A: Use the archetypes plugin

Invoke the catalog directly:

```
Skill(architecture-paradigms)
```

This guides through the 14 paradigms with comparison tables and
trade-off discussion. Use this when the user wants to explore
options or learn the paradigm space.

Available paradigms:

- Layered Architecture
- Functional Core, Imperative Shell
- Hexagonal (Ports and Adapters)
- Modular Monolith
- Microservices
- Service-Based Architecture
- Event-Driven Architecture
- CQRS + Event Sourcing
- Serverless
- Space-Based Architecture
- Pipeline Architecture
- Microkernel Architecture
- Client-Server Architecture

## Option B: Decision matrix

Use this when the user has a clear context and wants a fast
recommendation.

```
+---------------------+---------+---------+----------+-------------+
| Project Context     | Simple  | Moderate| Complex  | Highly      |
|                     | Domain  | Domain  | Domain   | Complex     |
+---------------------+---------+---------+----------+-------------+
| < 5 engineers       | Layered | Layered | Hexagonal| Functional  |
|                     |         | Hexag.  | Function.| Core        |
+---------------------+---------+---------+----------+-------------+
| 5-15 engineers      | Layered | Modular | Modular  | Hexagonal   |
|                     |         | Monolith| Monolith | + FC,IS     |
+---------------------+---------+---------+----------+-------------+
| 15-50 engineers     | Modular | Micro-  | Micro-   | CQRS/ES     |
|                     | Monolith| services| services | + Event     |
+---------------------+---------+---------+----------+-------------+
| 50+ engineers       | Micro-  | Micro-  | Event-   | Microkernel |
|                     | services| services| Driven   | or Space-   |
|                     |         | + Event |          | Based       |
+---------------------+---------+---------+----------+-------------+
```

## Special cases (override the matrix)

| Workload                  | Paradigm                     |
|---------------------------|------------------------------|
| Real-time / Streaming     | Event-Driven and Pipeline      |
| Bursty / Cloud-Native     | Serverless                   |
| Extensible Platform       | Microkernel                  |
| Data Processing           | Pipeline and Event-Driven      |
| Legacy Integration        | Hexagonal                    |
| High-Throughput Stateful  | Space-Based                  |

## Output of Step 3

Mark `arch-init:paradigm-selected` only after both:

1. The paradigm name is recorded.
2. The reasoning is captured (which row of the matrix or which
   special-case rule applied, and why).

The reasoning feeds the ADR generated in

modules/research-flow.md

---
module: research-flow
category: data-gathering
dependencies: []
estimated_tokens: 600
---

# Architecture Research Flow

Steps 1-2 of the architecture-aware-init workflow: gather project
context, then research current best practices online.

## Step 1: Gather Project Context

Ask the user for the following information before any research:

**Project Type**

- Web API, CLI tool, data pipeline, desktop app, library, mobile,
  embedded, etc.

**Domain Complexity**

- Simple (CRUD only)
- Moderate (some business logic)
- Complex (many rules, workflows)
- Highly Complex (domain-specific language needed)

**Team Context**

- Team size: < 5 | 5-15 | 15-50 | 50+
- Experience: Junior | Mixed | Senior | Expert
- Distribution: Co-located | Remote | Distributed

**Non-Functional Requirements**

- Scalability needs (users, requests/sec, data volume)
- Performance requirements
- Security and compliance needs
- Integration points (external systems, databases, APIs)

**Timeline and Constraints**

- Time to market: Rapid | Normal | Not urgent
- Budget constraints
- Technology constraints (must-use or must-avoid)

Mark `arch-init:research-completed` only after the answers are
captured. Skipping context-gathering is the most common cause of a
mismatched paradigm choice in Step 3.

## Step 2: Research Best Practices

Run three search tiers using `WebSearch`:

```bash
# Tier 1: project-type level
WebSearch("[project type] architecture best practices 2026")

# Tier 2: language-specific
WebSearch("[language] [project type] architecture patterns 2026")

# Tier 3: framework-specific
WebSearch("[framework] architecture patterns [project type]")
```

Focus the synthesis on five questions:

1. What are practitioners actually recommending right now?
2. Are any new patterns gaining traction in this space?
3. Which practices are being actively discouraged (anti-patterns)?
4. Which patterns work best with the chosen stack?
5. Are there real-world case studies of similar projects?

## Synthesis Output

Produce a short brief with:

- Recommended architecture(s) for this project type
- Key trade-offs to consider
- Red flags or anti-patterns to avoid
- Technology-specific considerations

Hand the brief into Step 3 (paradigm selection). The decision
matrix in `modules/paradigm-selection.md` consumes this brief
directly.

modules/scaffold-generation.md

---
module: scaffold-generation
category: project-scaffolding
dependencies: []
estimated_tokens: 800
---

# Scaffold Generation

Steps 4-5 of the architecture-aware-init workflow: customize
project templates to the chosen paradigm, then record the
decision in an ADR.

## Step 4: Customize Templates

Adaptation strategy:

1. Load base templates for the chosen language (Python, Rust,
   TypeScript, etc.).
2. Apply paradigm-specific modifications.
3. Generate configuration that reflects the architectural
   choices (test layout, dependency hints, lint targets).
4. Create an in-repo doc explaining the architecture for future
   contributors.

### Example: Functional Core, Imperative Shell

```
src/
├── core/                    # Pure business logic
│   ├── domain.py            # Domain models
│   ├── operations.py        # Pure functions
│   └── commands.py          # Command objects
└── adapters/                # Side effects
    ├── database.py          # DB operations
    ├── api.py               # HTTP operations
    └── filesystem.py        # File operations
```

### Example: Hexagonal Architecture

```
src/
├── domain/                  # Business logic (no framework deps)
│   ├── models.py
│   ├── services.py
│   └── ports/               # Interfaces
│       ├── input.py         # Use cases
│       └── output.py        # Repository interfaces
└── infrastructure/          # Framework-specific code
    ├── persistence/         # Repositories
    ├── web/                 # Controllers
    └── messaging/           # Event handlers
```

### Example: Microservices

```
project/
├── services/
│   ├── service-a/           # Independent service
│   │   ├── src/
│   │   ├── tests/
│   │   ├── Dockerfile
│   │   └── pyproject.toml
│   └── service-b/           # Independent service
│       ├── src/
│       ├── tests/
│       ├── Dockerfile
│       └── pyproject.toml
├── api-gateway/
├── shared/
│   └── events/
└── docker-compose.yml
```

For paradigms not shown, consult the corresponding
`archetypes:architecture-paradigm-{name}` skill for the canonical
template.

Mark `arch-init:templates-customized` once the directory layout
matches the paradigm and the documentation is in place.

## Step 5: Architecture Decision Record

Generate an ADR using this template:

```markdown
# Architecture Decision Record: [Paradigm Name]

## Date
[Current date]

## Status
Accepted | Proposed | Deprecated | Superseded by [link]

## Context
[Project type, team size, domain complexity, key requirements]

## Decision
[Chosen architecture paradigm]

## Rationale

### Research Findings
[Summarize the brief produced in Step 2]

### Key Considerations
- Team Fit: [why this matches team size and experience]
- Domain Fit: [why this matches problem complexity]
- Technology Fit: [why this works with the chosen stack]
- Scalability: [how this addresses scaling needs]

### Alternatives Considered
1. [Alternative 1]: rejected because [reason]
2. [Alternative 2]: rejected because [reason]

#

Sponsored

Ads related to architecture-aware-init and adjacent AI workflows.