architecture-extract

$npx mdskill add Fr-e-d/GAAI-framework/architecture-extract

Converts raw project structure into clear architectural understanding.

  • Analyzes module boundaries, data flows, and service relationships.
  • Depends on codebase_tree and key_files_list from codebase-scan.
  • Detects architectural patterns like monolith or event-driven.
  • Outputs architecture_insights for memory-ingest ingestion.

SKILL.md

.github/skills/architecture-extractView on GitHub ↗
---
name: architecture-extract
description: Convert raw project structure into clear architectural understanding — module boundaries, data flows, service relationships, and architectural patterns. Activate after codebase-scan during Bootstrap.
license: ELv2
compatibility: Works with any filesystem-based AI coding agent
metadata:
  author: gaai-framework
  version: "1.0"
  category: cross
  track: cross-cutting
  id: SKILL-ARCHITECTURE-EXTRACT-001
  updated_at: 2026-02-26
  status: stable
inputs:
  - codebase_tree
  - key_files_list
outputs:
  - architecture_insights
---

# Architecture Extract

## Purpose / When to Activate

Activate:
- After `codebase-scan` during Bootstrap initialization
- When architectural understanding is needed before memory ingestion

---

## Process

1. Analyze module boundaries and layering
2. Identify data flow and service interactions
3. Detect architectural patterns (monolith, services, event-driven, etc.)
4. Produce a concise architecture summary

---

## Outputs

**`architecture_insights`** — concise summary including:
- System structure overview
- Module boundaries and responsibilities
- Key data flows
- Architectural pattern identified
- Major dependencies
- Notable constraints or risks

---

## Quality Checks

- System structure is understandable in one view
- Major dependencies are explicit
- Architecture style is clearly identified
- Output is suitable for ingestion via `memory-ingest`

---

## Non-Goals

This skill must NOT:
- Make architectural recommendations
- Propose changes
- Read deeply into implementation details

**Converts terrain map into architectural understanding. Feeds directly into memory-ingest.**

More from Fr-e-d/GAAI-framework

SkillDescription
abort-safe-handlerOrchestrator-level Stage 4 entry gate for /gaai:bootstrap. Presents a pre-loop "Skip Q&A entirely" option, delegates to qa-loop-ui when the user proceeds, and returns a unified abort_safe_result with telemetry on every path. Guarantees no partial state on skip or abort.
ambiguity-detectorTakes surface scan results, optional LLM synthesis open-question entries, and optional tree-sitter AST signals to score project ambiguities (1-10). Outputs structured ambiguity_feed for smart-question-generator. Pure heuristic — no LLM calls. Designed for Stage 3.5 of the /gaai:bootstrap pipeline (between LLM synthesis and Q&A).
approach-evaluationResearch industry standards and best practices, identify viable approaches for a given technical or architectural problem, and produce a structured factual comparison against project-specific constraints. Reports options — does not decide.
bootstrap-llm-synthesisConstruct the LLM synthesis prompt from project surface scan + optional tree-sitter context + optional Q&A answers. Call the LLM. Parse and validate the response into 6-8 structured memory entries with clarity tags and source traceability. Used as Stage 3 of the /gaai:bootstrap pipeline.
bootstrap-memory-ingest-cloudWrite structured memory entries to the Cloud workspace via gaai_memory.store MCP tool with source='bootstrap'. Loops over entries from bootstrap-llm-synthesis, calls the tool per entry, collects success/fail counts. Used as Stage 5 of the /gaai:bootstrap pipeline (Cloud path only).
browser-journey-testValidate user stories by simulating real user journeys in a live browser against deployed application. Activate after implementation to verify actual user experience against acceptance criteria, not just code logic.
build-agents-indexScan all agent and sub-agent definition files in .gaai/core/agents/, extract YAML frontmatter, merge with specialists.registry.yaml, and generate a derived agents-index.yaml at .gaai/core/agents/agents-index.yaml. Activate after adding, modifying, or removing any agent, sub-agent, or specialist entry.
build-skills-indexScan SKILL.md files in .gaai/core/skills/ and .gaai/project/skills/, extract YAML frontmatter, and regenerate separate skills indices for each layer. Core index ships with the OSS framework; project index is project-specific.
ci-watch-and-fixWatch GitHub Actions CI after PR creation, detect failures, extract logs, apply minimal fixes, and re-push — keeping the delivery session alive until CI resolves or escalating after 3 cycles. Activate immediately after gh pr create and before marking the story done.
codebase-scanCreate a high-level map of the project structure and identify architectural pillars, entry points, and module boundaries. Activate at Bootstrap initialization or before architecture extraction.