Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

architecture-navigator

БесплатноЗапускает вложенные скриптыНе проверен

Understand and navigate the DevPrep AI 7-folder architecture. Use this skill when asked about code organization, where to place new features, what modules…

aiskillstoreот aiskillstore★ 509 звёзд на GitHub

Об этом скилле

Architecture Navigator

Overview

Provide instant architecture intelligence for the DevPrep AI codebase. Generate architecture maps, answer placement questions ("where should X go?"), and validate code organization against the 7-folder structure. This skill eliminates the need to manually read architecture documentation at conversation start.

Core Capabilities

1. Architecture Scanning

When starting a development conversation or when explicitly requested, scan the codebase to generate a real-time architecture map.

How to scan:

# Run the architecture scanner from project root
bash ./.claude/skills/architecture-navigator/scripts/scan_architecture.sh

The scanner will output:

  • 7-Folder Structure: modules/, shared/, lib/, store/, types/, styles/, app/
  • Module List: All feature modules with file counts
  • Key Locations: API layer, state management, UI components
  • Quick Stats: Total files, module count, component count

When to scan:

  • At the start of development conversations about architecture
  • When asked "what modules exist?" or "what's the structure?"
  • Before suggesting where new code should go
  • When validating architecture compliance

Output format: Compact markdown summary (~50-100 lines) showing the current architecture state.


2. Interactive Placement Queries

Answer "where should X go?" questions using the 7-folder placement rules.

Decision tree:

  1. Is it a route/page? → app/ (but keep minimal, import from modules/)
  2. Is it feature-specific? → modules/{feature}/
  3. Is it reusable UI/logic? → shared/
  4. Is it external integration? → lib/
  5. Is it global state? → store/
  6. Is it a shared type? → types/
  7. Is it pure styling? → styles/

Example queries and responses:

User Query Response
"Where should social login go?" modules/auth/ - Feature-specific authentication logic
"Where should I add payment processing?" modules/payments/ - New feature module for payment domain logic
"Where do reusable buttons go?" shared/components/ui/Button.tsx - Reusable UI component
"Where's the Claude AI integration?" lib/claude/ - External service integration
"Where should shopping cart state go?" store/cartStore.ts - Global state management
"Where do API types go?" types/ai/api.ts - Shared TypeScript definitions

For detailed rules, reference references/architecture-rules.md which includes:

  • Complete placement rules for all 7 folders
  • Import direction rules (what can import what)
  • Forbidden patterns (circular dependencies, wrong imports)
  • Decision tree for complex placement questions
  • Common examples and edge cases

3. Module Discovery

List existing modules and explain their purpose when asked.

How to discover modules:

# Quick module list
ls -1 frontend/src/modules/

# With file counts
find frontend/src/modules/ -mindepth 1 -maxdepth 1 -type d -exec sh -c 'echo -n "{}:" && find "{}" -name "*.ts*" | wc -l' \;

Common questions:

  • "What modules exist?" → Run module discovery
  • "Where does authentication live?" → Check modules/ for auth-related folders
  • "What features are implemented?" → Scan modules/ directory

4. Architecture Validation

Validate that code follows the 7-folder structure rules.

What to check:

  • ✅ Routes in app/ are minimal (just imports)
  • ✅ Business logic is in modules/, not app/
  • ✅ Shared components are in shared/, not duplicated
  • ✅ External integrations are in lib/
  • ✅ Global state is in store/
  • ✅ Imports follow allowed directions (see architecture-rules.md)

Validation commands:

# Check for business logic in app/ (should be minimal)
grep -r "useState\|useEffect\|async function" frontend/src/app/

# Check for cross-module imports (forbidden)
grep -r "from.*modules/" frontend/src/modules/

# Check for modules importing from shared (allowed)
grep -r "from.*shared/" frontend/src/modules/

Workflow: Using This Skill

Scenario 1: Conversation Start

When a development conversation begins, proactively scan the architecture:

  1. Run scripts/scan_architecture.sh to generate current architecture map
  2. Present the map concisely (don't overwhelm with details)
  3. Use this context for subsequent placement questions

Scenario 2: Placement Questions

When asked "where should X go?":

  1. Identify the nature of the code (feature, reusable, integration, etc.)
  2. Apply the decision tree from references/architecture-rules.md
  3. Provide specific path recommendation
  4. Explain WHY (which rule applies)

Example:

User: "Where should I add OAuth authentication?"

Response:
OAuth authentication should go in `modules/auth/oauth/`:
- It's feature-specific (authentication domain)
- It belongs in modules/ (not reusable across other features)
- Structure: modules/auth/oauth/GoogleAuth.tsx, OAuthProvider.tsx, etc.

The OAu
Полный SKILL.md на GitHub

Установить architecture-navigator в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

references/architecture-rules.mdscripts/scan_architecture.shskill-report.json

FAQ

Что делает скилл architecture-navigator?

Understand and navigate the DevPrep AI 7-folder architecture. Use this skill when asked about code organization, where to place new features, what modules exist, or when starting development tasks that need architecture context. Auto-triggers on keywords like "where should", "add module", "architecture", "structure", "organize", "place code", "what modules".

Как установить скилл architecture-navigator?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл architecture-navigator запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить architecture-navigator с