architecture-navigator
DevPrep AIの7つのフォルダ構成を理解し、コードの配置場所、新機能の追加先、既存モジュールなどを案内することで、開発者がスムーズに作業を開始できるよう支援するSkill。
📜 元の英語説明(参考)
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".
🇯🇵 日本人クリエイター向け解説
DevPrep AIの7つのフォルダ構成を理解し、コードの配置場所、新機能の追加先、既存モジュールなどを案内することで、開発者がスムーズに作業を開始できるよう支援するSkill。
※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o architecture-navigator.zip https://jpskill.com/download/17237.zip && unzip -o architecture-navigator.zip && rm architecture-navigator.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/17237.zip -OutFile "$d\architecture-navigator.zip"; Expand-Archive "$d\architecture-navigator.zip" -DestinationPath $d -Force; ri "$d\architecture-navigator.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
architecture-navigator.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
architecture-navigatorフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 3
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
Architecture Navigator
概要
DevPrep AI のコードベースに対して、即座にアーキテクチャに関する情報を提供します。アーキテクチャマップの生成、配置に関する質問(「X はどこに配置すべきか?」)への回答、および 7 つのフォルダ構造に対するコード構成の検証を行います。この Skill により、会話の開始時にアーキテクチャドキュメントを手動で読む必要がなくなります。
主要な機能
1. アーキテクチャスキャン
開発に関する会話の開始時、または明示的に要求された場合に、コードベースをスキャンしてリアルタイムのアーキテクチャマップを生成します。
スキャン方法:
# プロジェクトのルートからアーキテクチャスキャナを実行
bash ./.claude/skills/architecture-navigator/scripts/scan_architecture.sh
スキャナは以下を出力します。
- 7-Folder Structure: modules/, shared/, lib/, store/, types/, styles/, app/
- Module List: ファイル数を含むすべてのフィーチャーモジュール
- Key Locations: API レイヤー、状態管理、UI コンポーネント
- Quick Stats: 合計ファイル数、モジュール数、コンポーネント数
スキャンするタイミング:
- アーキテクチャに関する開発の会話の開始時
- 「どのようなモジュールが存在するか?」または「構造はどうなっているか?」と質問された場合
- 新しいコードをどこに配置すべきかを提案する前
- アーキテクチャの準拠を検証する場合
出力形式: 現在のアーキテクチャの状態を示すコンパクトな Markdown サマリー(約 50〜100 行)。
2. インタラクティブな配置クエリ
7 つのフォルダの配置ルールを使用して、「X はどこに配置すべきか?」という質問に答えます。
決定木:
- ルート/ページか? →
app/(ただし最小限に保ち、modules/ からインポート) - フィーチャー固有か? →
modules/{feature}/ - 再利用可能な UI/ロジックか? →
shared/ - 外部連携か? →
lib/ - グローバルな状態か? →
store/ - 共有型か? →
types/ - 純粋なスタイリングか? →
styles/
クエリと応答の例:
| User Query | Response |
|---|---|
| 「ソーシャルログインはどこに配置すべきか?」 | modules/auth/ - フィーチャー固有の認証ロジック |
| 「支払い処理はどこに追加すべきか?」 | modules/payments/ - 支払いドメインロジック用の新しいフィーチャーモジュール |
| 「再利用可能なボタンはどこに配置すべきか?」 | shared/components/ui/Button.tsx - 再利用可能な UI コンポーネント |
| 「Claude AI との連携はどこにあるか?」 | lib/claude/ - 外部サービスとの連携 |
| 「ショッピングカートの状態はどこに配置すべきか?」 | store/cartStore.ts - グローバルな状態管理 |
| 「API の型はどこに配置すべきか?」 | types/ai/api.ts - 共有の TypeScript 定義 |
詳細なルールについては、references/architecture-rules.md を参照してください。これには以下が含まれます。
- 7 つのフォルダすべての完全な配置ルール
- インポート方向のルール(何が何をインポートできるか)
- 禁止されているパターン(循環依存、誤ったインポート)
- 複雑な配置に関する質問に対する決定木
- 一般的な例とエッジケース
3. モジュールディスカバリー
既存のモジュールをリストし、質問されたときにその目的を説明します。
モジュールを発見する方法:
# 簡単なモジュールリスト
ls -1 frontend/src/modules/
# ファイル数付き
find frontend/src/modules/ -mindepth 1 -maxdepth 1 -type d -exec sh -c 'echo -n "{}:" && find "{}" -name "*.ts*" | wc -l' \;
よくある質問:
- 「どのようなモジュールが存在するか?」 → モジュールディスカバリーを実行
- 「認証はどこにあるか?」 → modules/ で認証関連のフォルダを確認
- 「どのような機能が実装されているか?」 → modules/ ディレクトリをスキャン
4. アーキテクチャ検証
コードが 7 つのフォルダ構造ルールに従っていることを検証します。
チェックする内容:
- ✅
app/のルートは最小限である(インポートのみ) - ✅ ビジネスロジックは
modules/にあり、app/にはない - ✅ 共有コンポーネントは
shared/にあり、重複していない - ✅ 外部連携は
lib/にある - ✅ グローバルな状態は
store/にある - ✅ インポートは許可された方向に従っている(architecture-rules.md を参照)
検証コマンド:
# app/ にビジネスロジックがないか確認(最小限であるべき)
grep -r "useState\|useEffect\|async function" frontend/src/app/
# モジュール間のインポートがないか確認(禁止)
grep -r "from.*modules/" frontend/src/modules/
# モジュールが shared からインポートしているか確認(許可)
grep -r "from.*shared/" frontend/src/modules/
ワークフロー: この Skill の使用
シナリオ 1: 会話の開始
開発に関する会話が開始されたら、積極的にアーキテクチャをスキャンします。
scripts/scan_architecture.shを実行して、現在のアーキテクチャマップを生成します。- マップを簡潔に提示します(詳細で圧倒しないように)。
- 後続の配置に関する質問のために、このコンテキストを使用します。
シナリオ 2: 配置に関する質問
「X はどこに配置すべきか?」と質問された場合:
- コードの性質(フィーチャー、再利用可能、連携など)を特定します。
references/architecture-rules.mdの決定木を適用します。- 特定のパスの推奨事項を提供します。
- その理由を説明します(どのルールが適用されるか)。
例:
User: 「OAuth 認証はどこに追加すべきか?」
Response:
OAuth 認証は `modules/auth/oauth/` に配置すべきです。
- フィーチャー固有(認証ドメイン)
- modules/ に属する(他のフィーチャー間で再利用できない)
- 構造: modules/auth/oauth/GoogleAuth.tsx, OAuthProvider.tsx など。
OAuth クライアントのセットアップ(SDK ラッパー)は `lib/oauth/client.ts` に配置すべきです(外部連携)。
シナリオ 3: 新しいフィーチャーモジュール
新しいフィーチャーモジュールを作成する場合:
- それが本当にフィーチャーであるか(ドメイン固有で、横断的ではない)を確認します。
- 構造を作成します:
modules/{feature-name}/ - 典型的な構造を推奨します。
modules/{feature}/ ├── components/ - フィーチャー固有の UI ├── hooks/ - フィーチャー固有のフック ├── utils/ - フィーチャー固有のユーティリティ └── types.ts - フィーチャー固有の型(共有されていない場合) - インポートルールについて注意を促します(shared/, lib/, store/, types/ からインポートできます)。
自動トリガーキーワード
この Skill は、以下のフレーズが検出されたときに自動的にアクティブになります。
- "where should"
- "add module"
- "architecture"
- "structure"
- "organize"
- "place code"
- "what modules"
- "where does [X] live"
- "where's the API"
- "folder structure"
手動での起動: /architecture を使用するか、「scan the architecture」と明示的に要求します。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
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:
- Is it a route/page? →
app/(but keep minimal, import from modules/) - Is it feature-specific? →
modules/{feature}/ - Is it reusable UI/logic? →
shared/ - Is it external integration? →
lib/ - Is it global state? →
store/ - Is it a shared type? →
types/ - 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/, notapp/ - ✅ 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:
- Run
scripts/scan_architecture.shto generate current architecture map - Present the map concisely (don't overwhelm with details)
- Use this context for subsequent placement questions
Scenario 2: Placement Questions
When asked "where should X go?":
- Identify the nature of the code (feature, reusable, integration, etc.)
- Apply the decision tree from
references/architecture-rules.md - Provide specific path recommendation
- 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 OAuth client setup (SDK wrapper) should go in `lib/oauth/client.ts` (external integration).
Scenario 3: New Feature Module
When creating a new feature module:
- Confirm it's truly a feature (domain-specific, not cross-cutting)
- Create structure:
modules/{feature-name}/ - Recommend typical structure:
modules/{feature}/ ├── components/ - Feature-specific UI ├── hooks/ - Feature-specific hooks ├── utils/ - Feature-specific utilities └── types.ts - Feature-specific types (if not shared) - Remind about import rules (can import from shared/, lib/, store/, types/)
Auto-Trigger Keywords
This skill automatically activates when these phrases are detected:
- "where should"
- "add module"
- "architecture"
- "structure"
- "organize"
- "place code"
- "what modules"
- "where does [X] live"
- "where's the API"
- "folder structure"
Manual invocation: Use /architecture or explicitly request "scan the architecture".
Resources
scripts/scan_architecture.sh
Fast bash script that scans the 7-folder structure and generates a markdown architecture map. Outputs module list, key locations, and quick stats.
Usage:
bash scripts/scan_architecture.sh [project-root]
Output: Compact markdown summary (~50-100 lines) suitable for loading into context.
references/architecture-rules.md
Comprehensive placement rules for the 7-folder architecture. Reference this document when:
- Answering complex placement questions
- Validating architecture compliance
- Explaining import direction rules
- Handling edge cases or ambiguous scenarios
Key sections:
- 7-Folder structure overview
- Detailed placement rules for each folder
- Import direction rules (what can import what)
- Forbidden patterns
- Decision tree for placement
- Common examples table
Best Practices
- Start with scanning: Generate architecture map at conversation start for context
- Be specific: Always provide exact paths, not just folder names
- Explain reasoning: Don't just say "put it in modules/", explain WHY
- Reference rules: Point to
architecture-rules.mdfor detailed justification - Validate imports: Check that suggested placements respect import direction rules
- Detect drift: Flag when actual code structure deviates from documented architecture
- Keep it concise: Architecture maps should be scannable (~50-100 lines)
Example Usage
User: "I want to add a notification system that shows toast messages across the app."
Response:
Let me scan the current architecture first:
bash ./.claude/skills/architecture-navigator/scripts/scan_architecture.sh
[Architecture map output]
For a global notification system with toast messages:
- Toast UI Component →
shared/components/Toast.tsx(reusable UI) - Notification State →
store/uiStore.ts(global state for managing active toasts) - Toast Hook →
shared/hooks/useToast.ts(convenient API:useToast().show())
Reasoning:
- Toast component is reusable across all features → shared/
- Notification state is global (not feature-specific) → store/
- Hook provides ergonomic API and is reusable → shared/
Import flow:
- Features call
useToast()fromshared/hooks/ - Hook accesses
store/uiStore.ts - Hook renders
shared/components/Toast.tsx
This follows the architecture rules: modules/ → shared/ → store/ (allowed import direction).
同梱ファイル
※ ZIPに含まれるファイル一覧。`SKILL.md` 本体に加え、参考資料・サンプル・スクリプトが入っている場合があります。
- 📄 SKILL.md (8,978 bytes)
- 📎 references/architecture-rules.md (8,334 bytes)
- 📎 scripts/scan_architecture.sh (2,915 bytes)