/ai-software-architect:setup-architectfrom ai-software-architect
Installs the AI Software Architect framework in a new project by scaffolding the .architecture/ directory with templates, team config, and principles customized for the detected tech stack.
Ships in ai-software-architect. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Sets up and customizes the AI Software Architect framework for a project.
This skill performs a complete framework installation:
.architecture/ in the target project from framework templatesDetailed procedures: references/installation-procedures.md Customization guide: references/customization-guide.md
Setup ai-software-architectThe skill creates a .architecture/ directory in your target project (not in this plugin's repo) and populates it with templates customized for your tech stack. After it finishes you'll have:
.architecture/decisions/adrs/ — empty, ready for create-adr.architecture/reviews/initial-system-analysis.md — your team's first pass at the codebase.architecture/members.yml — team customized for your detected stack.architecture/principles.md — principles tailored to your frameworks.architecture/config.yml — operational config (pragmatic mode, etc.).architecture/templates/ — ADR + review templates ready to useThe skill writes into your target project's .architecture/, plus two integration points outside it: it appends a framework section to an existing CLAUDE.md (step 6), and the installation procedure creates .coding-assistants/ for assistant-specific config. It does not modify application code.
The framework templates can live in two places: inside the installed Claude Code plugin (canonical, 1.4.0+) or under a legacy .architecture/.architecture/ clone in the target project. Discovery is deterministic — run the framework's own CLI:
# Locate the plugin install on disk first; tools/cli.js lives inside it.
TOOLS_CLI=""
if [ -n "${CLAUDE_PLUGIN_ROOT:-}" ] && [ -f "$CLAUDE_PLUGIN_ROOT/tools/cli.js" ]; then
TOOLS_CLI="$CLAUDE_PLUGIN_ROOT/tools/cli.js"
else
TOOLS_CLI=$(find ~/.claude/plugins -type f -name cli.js -path '*ai-software-architect/tools/*' 2>/dev/null | head -1)
fi
if [ -z "$TOOLS_CLI" ] && [ -f ".architecture/.architecture/tools/cli.js" ]; then
# Legacy clone path: the cli ships in the cloned repo.
TOOLS_CLI=".architecture/.architecture/tools/cli.js"
fi
if [ -z "$TOOLS_CLI" ]; then
echo "Framework not found. Install the plugin or clone manually — see error message below."
exit 1
fi
# Resolve the framework source via the canonical discovery logic.
FRAMEWORK_ROOT=$(node "$TOOLS_CLI" find-source)
Discovery order (the order and sentinel live in tools/lib/setup-source-discovery.js, tested via tools/test/setup-source-discovery.test.js; the ~/.claude/plugins walk itself is findPluginCandidates in tools/cli.js, mirrored by the MCP server's listPluginCandidates and exercised by mcp/test/setup-source.test.js):
${CLAUDE_PLUGIN_ROOT} env var (if set and contains .architecture/templates/adr-template.md).~/.claude/plugins/ for any ai-software-architect/ directory, or an immediate subdirectory of one (Claude Code installs under cache/<marketplace>/<plugin>/<version>/), containing the sentinel; versions marked .orphaned_at by a plugin update are skipped..architecture/.architecture/ in the target project (legacy clone path).If find-source exits non-zero, surface its error message verbatim — it tells the user exactly which install option to take.
Identify project characteristics:
Use Glob and Grep to detect technologies, Read to examine configs.
Execute installation steps (see references/installation-procedures.md):
# $FRAMEWORK_ROOT is from step 1.
# Directories first: on a fresh project .architecture/ doesn't exist yet,
# and cp into a missing parent fails.
mkdir -p .architecture/decisions/adrs
mkdir -p .architecture/reviews
mkdir -p .architecture/recalibration
mkdir -p .architecture/comparisons
mkdir -p .architecture/agent_docs
cp -r "$FRAMEWORK_ROOT/.architecture/templates" .architecture/templates
cp "$FRAMEWORK_ROOT/.architecture/principles.md" .architecture/principles.md
# members.yml is seeded, not copied: drops motivated_by refs to this framework's ADRs/issues.
node "$TOOLS_CLI" seed-members "$FRAMEWORK_ROOT/.architecture/members.yml" .architecture/members.yml
cp "$FRAMEWORK_ROOT/.architecture/config.yml" .architecture/config.yml
# Deferred decisions are logged here; create it so the
# first deferral has somewhere to land.
[ -f .architecture/deferrals.md ] || cp .architecture/templates/deferrals.md .architecture/deferrals.md
# Git drops empty directories; keep the structure in the first commit.
for d in decisions/adrs reviews recalibration comparisons agent_docs; do
[ -n "$(ls -A .architecture/$d)" ] || touch .architecture/$d/.gitkeep
done
.architecture/config.yml from the source location's .architecture/config.yml (not templates/config.yml).architecture/.architecture/ and (with safeguards) the cloned .git/ directory. Plugin path: no clone removal needed — the plugin's install dir stays where it is under ~/.claude/plugins/.Critical (legacy clone path only): Follow safety procedures when removing .git/ directory. See references/installation-procedures.md § Cleanup Procedures.
Steps 4 and 5 edit members.yml and principles.md, which the plugin's PreToolUse hook protects. Open a setup window first, so the hook lets those edits through:
touch .architecture/.setup-in-progress
The hook honors the sentinel for an hour from its mtime, so an aborted setup can't leave protection off. Step 7 removes it.
Add technology-specific members to .architecture/members.yml:
Use template from assets/member-template.yml.
Keep all canonical core members — never drop one. The framework's .architecture/members.yml defines 8: Systems Architect, Domain Expert, Security Specialist, Maintainability Expert, Performance Specialist, Implementation Strategist, AI Engineer, Pragmatic Enforcer. Append technology specialists as additional advisors.
Customization details: references/customization-guide.md § Customize Team Members
Add framework-specific principles to .architecture/principles.md:
These are defaults. Where the repo already shows a convention (service objects, a stated layering rule in its contributor docs), record the repo's convention and skip any default that contradicts it.
Principle examples: references/customization-guide.md § Customize Principles
If CLAUDE.md exists in project root, append framework usage section:
Template: references/customization-guide.md § Update CLAUDE.md
Close the setup window so the hook protects the customized files again:
rm -f .architecture/.setup-in-progress
Remove framework development files:
.git/ directory (with critical safety checks)⚠️ IMPORTANT: Follow all safeguards in references/installation-procedures.md § Cleanup.
Generate comprehensive initial analysis document:
Save to .architecture/reviews/initial-system-analysis.md.
Template: assets/initial-analysis-template.md
Provide a setup summary using the template below, then the success checklist so the user can verify the install end-to-end.
Provide setup summary:
AI Software Architect Framework Setup Complete
Customizations:
- Added [N] technology specialists: [list]
- Customized principles for: [frameworks]
- Configuration: Pragmatic mode [enabled/disabled]
Initial Analysis Highlights:
- Overall assessment: [assessment]
- Top strength: [strength]
- Top concern: [concern]
- Critical recommendation: [recommendation]
Location: .architecture/reviews/initial-system-analysis.md
Next Steps:
- Review initial analysis findings
- "List architecture members" to see customized team
- "Create ADR for [first decision]" to start documenting
- "What's our architecture status?" to verify setup
A first-time user can verify the install by checking that all of these are true:
.architecture/decisions/adrs/ exists and is empty.architecture/reviews/initial-system-analysis.md exists and is non-empty.architecture/members.yml lists all eight canonical core members (per the framework's .architecture/members.yml) plus any technology specialists added in step 4.architecture/principles.md exists and includes any framework-specific principles added in step 5.architecture/config.yml exists (pragmatic mode flag visible).architecture/templates/ contains adr-template.md and review-template.md.architecture/.architecture/ directory (legacy clone path only)What's our architecture status? returns a coherent summaryList architecture members shows the customized teamIf any of these fail, see the recovery section below.
If setup fails partway through (e.g., framework files copied but customization didn't run):
.architecture/ to see what landed.rm -rf .architecture/ and re-run Setup ai-software-architect (no project code is touched outside .architecture/).members.yml or principles.md weren't customized, you can re-run setup; the skill will detect the partial install and offer to complete the customization step rather than restart.Generate initial system analysis at .architecture/reviews/initial-system-analysis.md — the orchestrator will dispatch the team without redoing the file install.If setup ran but the team isn't right for your project, you don't need to re-run setup. Edit .architecture/members.yml directly (set CLAUDE_ALLOW_PROTECTED=1 to satisfy the PreToolUse hook) and run node "$TOOLS_CLI" generate-subagents from anywhere inside the project to refresh the matching .claude/agents/<id>.md files.
Framework source not found:
I can't find the framework templates. Two installation options:
Recommended (plugin):
/plugin marketplace add codenamev/ai-software-architect
/plugin install ai-software-architect@ai-software-architect
Legacy (clone):
git clone https://github.com/codenamev/ai-software-architect .architecture/.architecture
After installing, run "Setup ai-software-architect" again.
Already set up:
Framework appears to be already set up.
To verify: "What's our architecture status?"
To reconfigure: Manually edit .architecture/members.yml and .architecture/principles.md
Unclear project structure:
Could not clearly identify project type. Please describe:
- Primary programming language(s)
- Framework(s) used
- Project purpose
I'll customize the framework accordingly.
After Setup:
list-members - View customized teamarchitecture-status - Verify setup completioncreate-adr - Document first decisionInitial Work:
initial-system-analysis.md findingsspecialist-review - Deep-dive on specific concernscreate-adr - Document existing key decisionsWorkflow Example: Setup → Review initial analysis → Create ADRs → Status check → Regular reviews
What SKILL.md sets; muted values are Claude Code's defaults
8 skills in this plugin
/architecture-reviewConducts a comprehensive multi-perspective architecture review using ALL architecture team members. Use when the user requests "Start architecture review", "Full architecture review", "Review architecture for version X.Y.Z", "Conduct comprehensive review", or when they want assessment from multiple perspectives. Do NOT use for single-specialist reviews (use specialist-review instead) or for status checks (use architecture-status instead)./architecture-statusReports on the health and state of architecture documentation (counts of ADRs, reviews, activity levels, documentation gaps). Use when the user asks "What's our architecture status?", "Show architecture documentation", "How many ADRs do we have?", "What decisions are documented?", "Architecture health check", or wants an overview/summary of documentation state. Do NOT use for listing team members (use list-members), finding which ADRs cover a topic or file (use find-adrs), creating new documents (use create-adr), or conducting reviews (use architecture-review or specialist-review)./create-adrCreates a NEW Architectural Decision Record (ADR) documenting a specific architectural decision. Use when the user requests "Create ADR for [topic]", "Document decision about [topic]", "Write ADR for [choice]", or when documenting technology choices, patterns, or architectural approaches. Do NOT use for reviews (use architecture-review or specialist-review), finding existing ADRs on a topic (use find-adrs), ADR counts (use architecture-status), or general documentation./find-adrsFinds the existing ADRs that govern a question or a file, so recorded decisions are read before code changes. Use when the user asks "Which ADRs cover this?", "Is there a decision about [topic]?", "What decisions apply to [file]?", "Did we already decide [X]?", or before changing code in an area that may carry a recorded decision. Do NOT use for counts or documentation health (use architecture-status), writing a new ADR (use create-adr), or reviews (use architecture-review or specialist-review)./list-membersDisplays the roster of architecture team members with their specialties and expertise areas. Use when the user asks "Who's on the architecture team?", "List architecture members", "Show me the architects", "What specialists are available?", "Who can I ask for reviews?", or wants to discover available experts. Do NOT use for requesting reviews (use specialist-review or architecture-review) or checking documentation status (use architecture-status)./pragmatic-guardEnables and configures Pragmatic Guard Mode (YAGNI Enforcement) to prevent over-engineering. Use when the user requests "Enable pragmatic mode", "Turn on YAGNI enforcement", "Activate simplicity guard", "Challenge complexity", or similar phrases.npx claudepluginhub codenamev/ai-software-architect --plugin ai-software-architectOther plugins' skills for the same job