Skill

architect

Install
1
Install the plugin
$
npx claudepluginhub joaquimscosta/arkhe-claude-plugins --plugin roadmap

Want just this skill?

Add to a custom plugin, then install with one command.

Description

Analyze system architecture, module structure, API contracts, data models, and code patterns. Use when designing systems, reviewing module boundaries, evaluating API designs, analyzing data models, checking pattern conformance, tracing decisions, or reviewing frontend architecture. Triggers: "architecture", "module design", "API design", "data model", "boundaries", "patterns", "decisions", "frontend architecture".

Tool Access

This skill is limited to using the following tools:

ReadGlobGrep
Supporting Assets
View in Repository
EXAMPLES.md
TROUBLESHOOTING.md
WORKFLOW.md
Skill Content

System Architect

Analyze system architecture, module boundaries, API contracts, data models, and code patterns.

Context Discovery

Run this protocol before any analysis to understand the project.

Priority 1: Explicit Configuration

Read .arkhe.yaml from project root. Extract roadmap: section for context_dir.

Priority 1b: Johnny Decimal Detection

Check if the project uses Johnny Decimal documentation structure:

  1. Read .jd-config.json at project root — if present, use its root (default: docs) and areas map
  2. If no config, glob for docs/[0-9][0-9]-*/ — if 2+ matches exist, J.D structure is present

If J.D detected, adjust Priority 5 (Architecture Documents) globs:

  • Prefer {jd_root}/20-*/**/*.md over docs/adr/**/*.md, docs/architecture/**/*.md, docs/design/**/*.md (those subdirectories are consolidated under the architecture area in J.D)
  • Also scan {jd_root}/30-*/**/*.md for technical research and spikes
  • Skip 90-* (archive) unless tracing historical decisions
  • Keep plan/decisions/**/*.md as fallback

Priority 2: Architecture Context

If {context_dir} exists, read architecture.md for:

  • Tech stack and frameworks
  • Module boundaries and responsibilities
  • Established patterns and conventions
  • Key architectural decisions

Priority 3: Project Identity

Read CLAUDE.md and README.md for architecture overview, conventions, and constraints.

Priority 4: Build Files and Structure

Detect tech stack from build files. Scan directory structure for module boundaries:

apps/*, src/*, packages/*, libs/*, modules/*, internal/*, cmd/*

Priority 5: Architecture Documents

Glob for ADRs, architecture docs, and design documents:

docs/adr/**/*.md, docs/architecture/**/*.md, docs/design/**/*.md

Priority 6: Codebase Patterns

Scan for established patterns:

  • Entity/model base classes
  • Service layer conventions
  • Controller/handler patterns
  • Test organization

Arguments

Parse from $ARGUMENTS:

ModeDescription
module <name>Deep module structure analysis
api <feature>API endpoint analysis and design guidance
data-model <feature>Database schema and data model analysis
boundariesModule boundary and coupling analysis
patternsPattern conformance check
decisionsADR and decision traceability
review <module>Comprehensive architectural review
frontend <feature>Frontend architecture guidance
(none)Ask what the user needs architectural guidance on

Mode Execution

ModeProduces
module <name>Structure, domain model, API surface, dependencies, maturity, recommendations
api <feature>Endpoint design (method, path, DTOs, auth, pagination, errors) matching existing patterns
data-model <feature>Schema design (tables, types, relationships, indexes, migrations) matching existing models
boundariesImport graph, shared references, coupling analysis, boundary violations
patternsPattern catalog with codebase examples (layering, DTOs, events, testing)
decisionsDecision traceability table (decision, evidence, status)
review <module>Per-area assessment table + prioritized recommendations
frontend <feature>Component hierarchy, data flow, state management, design system integration

See WORKFLOW.md for detailed execution steps per mode.

Output Rules

  • Conversational — analysis in chat, no files created
  • Diagram-friendly — use Mermaid diagrams when they clarify relationships
  • Pattern-consistent — always reference existing codebase patterns
  • Practical — recommendations should be implementable
  • Scoped — answer the specific question; don't redesign the whole system

Lane Discipline

  • Do NOT produce user stories or requirements — that's the PM's domain.
  • Do NOT produce roadmap status or gap analysis — that's the roadmap analyst's domain.
  • Do NOT write source code, tests, or config files.
  • Do NOT modify existing architecture without explicit request.
  • Reference specific file paths as evidence for findings.

References

Stats
Stars9
Forks1
Last CommitMar 9, 2026
Actions

Similar Skills

cache-components

Expert guidance for Next.js Cache Components and Partial Prerendering (PPR). **PROACTIVE ACTIVATION**: Use this skill automatically when working in Next.js projects that have `cacheComponents: true` in their next.config.ts/next.config.js. When this config is detected, proactively apply Cache Components patterns and best practices to all React Server Component implementations. **DETECTION**: At the start of a session in a Next.js project, check for `cacheComponents: true` in next.config. If enabled, this skill's patterns should guide all component authoring, data fetching, and caching decisions. **USE CASES**: Implementing 'use cache' directive, configuring cache lifetimes with cacheLife(), tagging cached data with cacheTag(), invalidating caches with updateTag()/revalidateTag(), optimizing static vs dynamic content boundaries, debugging cache issues, and reviewing Cache Component implementations.

138.4k