Skip to content
Back to skills

Architecture

ASecurity

Use when complex features need architectural design before implementation, or when system design decisions span multiple modules

  • 7 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 3, 2026
ai-agentsrefactoringgitbackend

Works with

  • mcp

Security analysis

A100/100

Scanned December 3, 2026

npx -y skills add Hellblazer/nexus --skill architecture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Architecture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Architecture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/hellblazer-architecture/badge)](https://www.skillsdirectory.com/skills/hellblazer-architecture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: architecture
description: Use when complex features need architectural design before implementation, or when system design decisions span multiple modules
effort: high
---

# Architecture Skill

Delegates to the **architect-planner** agent.

## Model Selection

Default: **opus** (`${CLAUDE_PLUGIN_ROOT}/agents/architect-planner.md` pins `model: opus` in its
frontmatter, and an agent's own declaration beats the session default, so
omitting `model` on the Agent tool gets opus). Pass `model: sonnet`
explicitly for the cheap end of the table below:

| Task Shape | Model | When |
|-----------|-------|------|
| Single-module design, extension of existing pattern | sonnet (pass it) | Most architecture work |
| Multi-phase, novel architecture, or system-wide redesign | opus (default) | Greenfield, cross-cutting concerns |

## Code Navigation

**REQUIRED SUB-SKILL (main session):** Use **/conexus:serena-code-nav** for symbol-level architecture discovery before dispatching, and put the symbol map in the relay: architect-planner's frontmatter denies the shared Serena. Combine with `nx search --hybrid` for semantic discovery — Serena for precision, nx search for conceptual queries.

`--hybrid` and `--lexical` are different flags doing different jobs, and the names invite conflating them. `--hybrid` RE-RANKS vector results by git frecency for code corpora; it never changes which rows come back. `--lexical` ADDS hits from the engine's exact-text indexes (full-text + trigram) to the vector results; it changes which rows come back and is what finds a rare identifier a semantic search misses (measured 0.167 -> 0.698 precision@10 on rare tokens). Reach for `--lexical` when you know the token; `--hybrid` when you want recently-touched code ranked higher.

- **Map system structure**: `get_symbols_overview` for class/interface inventories without reading files
- **Find architectural patterns**: `find_referencing_symbols` to trace abstraction usage across the codebase
- **Understand module boundaries**: `find_referencing_symbols` to track cross-module calls
- **Interface analysis**: `jet_brains_type_hierarchy` (JetBrains backend only) to see the full implementation tree
- **Serena for precision, nx search for semantic discovery**

### Architecture Discovery Workflow
```
1. nx search --corpus code --hybrid (30-50 results) for semantic discovery
2. get_symbols_overview to map key classes in discovered files
3. jet_brains_type_hierarchy (JetBrains only) to trace abstraction patterns
4. find_referencing_symbols to understand cross-module usage
5. Synthesize findings
6. Design architecture with clear boundaries
```

## When This Skill Activates

- Before implementing complex features requiring architecture design
- When planning multi-step implementations
- Before major refactoring efforts
- When system design decisions are needed
- When establishing module boundaries or interfaces

## Pipeline Position

```
strategic-planner -> nx_plan_audit -> architect-planner -> developer
```

## Pre-Dispatch: Seed Link Context

Before dispatching the architect-planner agent, seed T1 scratch with link targets so the auto-linker can create catalog links when the agent stores findings:

1. If the task references an RDR (pattern `RDR-\d+`) or a known document, resolve it: `mcp__plugin_conexus_nexus-catalog__search(query="RDR-NNN or document title")`
2. Check T1 scratch for `rdr-planning-context`
3. Write link context to scratch:
   ```
   mcp__plugin_conexus_nexus__scratch(action="put", content='{"targets": [{"tumbler": "<resolved-tumbler>", "link_type": "relates"}], "source_agent": "architect-planner"}', tags="link-context")
   ```
4. If no RDR/document reference found, skip seeding (the auto-linker handles empty context gracefully)

## Agent Invocation

Use the Agent tool to invoke **architect-planner**:

```markdown
## Relay: architect-planner

**Task**: [what needs to be done]
**Bead**: [ID] or 'none'

### Input Artifacts
- Files: [relevant files]

### Deliverable
Architecture design with execution plan

### Quality Criteria
- [ ] Component boundaries clearly defined
- [ ] Interfaces specified
- [ ] Execution plan created (with beads where the project has a `.beads/` directory)
```

For full relay structure and optional fields, see [${CLAUDE_PLUGIN_ROOT}/resources/agent-shared/RELAY_TEMPLATE.md](../../resources/agent-shared/RELAY_TEMPLATE.md).

## Architecture Methodology

The architect-planner uses `nx search --corpus code --hybrid` for discovery (30-50 results), then:
1. Understand system architecture and integration patterns
2. Synthesize findings into architectural approach
3. Define component boundaries and interfaces
4. Create execution plan with beads
5. Identify risks and mitigations

## Success Criteria

- [ ] All requirements addressed in design
- [ ] Component boundaries clearly defined
- [ ] Interfaces specified
- [ ] Execution plan created (with beads where the project has a `.beads/` directory)
- [ ] Where the project has a `.beads/` directory, beads created for trackable work
- [ ] Risks identified with mitigations
- [ ] Ready for `mcp__plugin_conexus_nexus__nx_plan_audit` validation

## Agent-Specific PRODUCE

- **Architecture Designs**: Store in T3 via store_put tool: content="# Architecture: {component}\n{design}", collection="<subject>", title="architecture-{project}-{component}", tags="architecture,design"
- **Execution Plans**: Store in T2 memory via memory_put tool: content="plan", project="{project}", title="plan-{component}.md" — omit `ttl` (permanent); a plan future sessions must find is a record of record, not a row that should expire
- **Design Decisions**: Store in T3 via store_put tool: content="# Decision: {topic}\n{rationale}", collection="<subject>", title="decision-architect-{topic}", tags="decision,architecture"
- **Beads**: Epic → Phase → Task hierarchy with `bd dep add` for dependencies
- **Design Notes**: Use T1 scratch for working notes during architecture analysis:
  - scratch tool: action="put", content="Design consideration: {note}", tags="architecture,design"
  - scratch_manage tool: action="flag", entry_id="<id>", project="{project}", title="architecture-notes.md"

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.