How wfukatsu/nexus-architect works
Purpose and Entry Points
Nexus Architect is a prompt/skill-based architecture toolkit, not a deployed application. It runs in Claude Code as three plugins (product, architect, scalardb) or in Codex through compatibility instructions. Primary entry points are plugin metadata in .claude-plugin/marketplace.json, Codex translation rules in AGENTS.md, and skill definitions under skills/**/SKILL.md.
Runtime and Execution Model
Claude Code resolves slash commands to installed plugin skills; Codex reads the same Markdown skills and maps Claude-oriented paths/tools to local shell and editing behavior. Skills orchestrate an agent-driven workflow, writing project-local generated artifacts rather than executing a central service. Key compatibility and dependency definitions:
• AGENTS.md
• skills/common/skill-dependencies.yaml
• skills/product/common/skill-dependencies.yaml
Python 3.9+ supports hooks, migration extractors, and terminal dashboards; Node.js 18+ is optional for Mermaid rendering.
Product-to-Architecture Pipeline
The product plugin turns an early product idea into validated requirements and hands off to architecture design. Its main stages are vision/scope and assumption validation, UX/domain/API/data derivation, then SLA/NFR synthesis. The dependency boundary is /architect:define-requirements, which consumes product outputs as implementation-design inputs.
• skills/product/start/SKILL.md
• skills/product/design-architecture/SKILL.md
• skills/define-requirements/SKILL.md
Architect Analysis and Design Pipeline
The architect plugin supports legacy assessment and greenfield system design. Its core flow is: investigate/analyze existing or required system behavior; evaluate maturity and DDD fitness; redesign domains; design microservices, data layer/ScalarDB, and APIs; run multi-perspective reviews; consolidate reports. The formal greenfield sequencing is documented in:
• workflow/greenfield/00_workflow_overview.md
• workflow/greenfield/01_requirements_analysis.md
• skills/pipeline/SKILL.md
Reports, generated code, and workflow state are intentionally separated into target-project reports/, generated/, and work/ directories.
ScalarDB Design and Knowledge Boundary
ScalarDB-specific skills provide schema, transaction, configuration, CRUD/JDBC, scaffolding, migration, and code-review guidance. Decisions are constrained by edition/version-aware official knowledge rather than generic advice. The knowledge bundle is a git submodule at knowledge/okf-scalardb-scalardl, with update lifecycle managed by:
• skills/design-scalardb/SKILL.md
• skills/model/SKILL.md
• rules/okf-knowledge-bundle.md
This boundary covers ScalarDB, ScalarDB Saga, and ScalarDL APIs, transaction patterns, and version-sensitive configuration.
Generation, Delivery, and External Integrations
Post-design code generation is a manual extension tier: implementation specs feed test specs, Spring Boot + ScalarDB code, infrastructure code, and documentation. Generated scaffolds stay disposable under generated/; backlog delivery instead edits the target repository’s real source tree and uses GitHub or GitLab issues/PRs/MRs as the merge-control boundary.
• skills/design-implementation/SKILL.md
• skills/generate-scalardb-code/SKILL.md
• skills/deliver-backlog/SKILL.md
Optional infrastructure/services include Kubernetes, Terraform, Helm, Docker Compose, GitHub/GitLab, Serena MCP for AST analysis, Context7 for current documentation, and Oracle/MySQL/PostgreSQL connections for migration analysis.
Observability and Workflow State
Terminal dashboards derive status, dependencies, stale phases, and token-cost reporting from workflow artifacts. Hooks validate generated front matter and Mermaid, while token usage can be recorded during agent runs.
• tools/nexus-status.sh
• tools/lib/pipeline_status_data.py
• hooks/record_token_usage.py
Main entry points: pipeline/SKILL.md Architect pipeline · design-scalardb/SKILL.md ScalarDB design · 01_requirements_analysis.md Requirements analysis · design-architecture/SKILL.md Product architecture design
Components 22
Agent Runtime
- Claude Code plugins · Runs product, architect, and scalardb plugin skills.
.claude-plugin/marketplace.json - Codex compatibility · Maps shared skills to local shell and editing behavior.
AGENTS.md - Markdown skills · Shared prompt-driven commands and workflow instructions.
- Skill dependencies
skills/common/skill-dependencies.yaml - Product dependencies
skills/product/common/skill-dependencies.yaml
Product & Architecture
- Product discovery · Derives vision, scope, and validated assumptions.
skills/product/start/SKILL.md - Product architecture design · Derives UX, domains, APIs, data, and NFRs.
skills/product/design-architecture/SKILL.md - Requirements boundary · Consumes product outputs as implementation-design inputs.
skills/define-requirements/SKILL.md - Greenfield workflow · Sequences requirements analysis through system design.
workflow/greenfield/00_workflow_overview.md - Requirements analysis
workflow/greenfield/01_requirements_analysis.md - Architect pipeline · Analyzes, redesigns, reviews, and consolidates architecture work.
skills/pipeline/SKILL.md
ScalarDB Boundary
- ScalarDB design · Designs schema, transactions, and configuration.
skills/design-scalardb/SKILL.md - ScalarDB modeling
skills/model/SKILL.md - Official knowledge bundle · Edition- and version-aware ScalarDB, Saga, and ScalarDL guidance.
knowledge/okf-scalardb-scalardl - Knowledge bundle rules
rules/okf-knowledge-bundle.md
Generation & Delivery
- Implementation specs · Feeds test, application, infrastructure, and documentation generation.
skills/design-implementation/SKILL.md - ScalarDB code scaffolds · Creates disposable Spring Boot and ScalarDB outputs.
skills/generate-scalardb-code/SKILL.md - Backlog delivery · Edits the target repository and uses PR/MR workflow.
skills/deliver-backlog/SKILL.md
Workflow State & Quality
- Target-project artifacts · Separates reports, generated code, and workflow state.
- Terminal dashboard · Computes status, dependencies, stale phases, and token costs.
tools/nexus-status.sh - Workflow status data
tools/lib/pipeline_status_data.py - Token usage hook · Records agent token usage during runs.
hooks/record_token_usage.py
Connections 21
- Claude Code plugins → Markdown skills: resolves commands to
- Codex compatibility → Markdown skills: reads and adapts
- Markdown skills → Skill dependencies: uses
- Markdown skills → Product dependencies: uses
- Product discovery → Product architecture design: validated product inputs
- Product architecture design → Requirements boundary: hands off requirements
- Requirements boundary → Requirements analysis: drives
- Greenfield workflow → Requirements analysis: defines sequence
- Requirements analysis → Architect pipeline: feeds design
- Architect pipeline → ScalarDB design: designs data layer
- ScalarDB design → ScalarDB modeling: refines model
- ScalarDB design → Official knowledge bundle: constrained by
- Knowledge bundle rules → Official knowledge bundle: governs updates and use
- Architect pipeline → Implementation specs: produces design inputs
- Implementation specs → ScalarDB code scaffolds: feeds generation
- ScalarDB code scaffolds → Target-project artifacts: writes generated outputs
- Backlog delivery → Target-project artifacts: reads reports and state
- Architect pipeline → Target-project artifacts: writes reports and work state
- Target-project artifacts → Terminal dashboard: supplies workflow artifacts
- Terminal dashboard → Workflow status data: uses
- Token usage hook → Target-project artifacts: records usage in workflow state