npx agentspec-cli install 219acb67-a8ab-49e3-bf9e-1d1468f464d1 --framework ClaudeCode→ .claude/skills/mo-arch/SKILL.md
# mo-arch - Code Architecture Query
Query code architecture using README_AI.md index files generated by codeindex.
## Workflow
### Step 1: Check Project Index
```bash
cat PROJECT_INDEX.md 2>/dev/null
```
If exists, this gives you the project overview with all modules listed.
### Step 2: Find Directory Indexes
```bash
find . -name "README_AI.md" -type f | head -10
```
### Step 3: Read Relevant Module Index
Based on user's question, locate the relevant module and read its README_AI.md:
```bash
# Example: user asks about parser
cat src/parser/README_AI.md
```
### Step 4: Trace Dependencies
Check the **Consumes** and **Provides** sections in README_AI.md to understand module relationships.
### Step 5: Deep Dive (if needed)
Only read actual source files when README_AI.md doesn't have enough detail.
## Response Format
When answering architecture questions:
1. **Start with the module location** - "The parser is in `src/codeindex/parser.py`"
2. **Explain its purpose** - From the Purpose section
3. **Show relationships** - From Consumes/Provides
4. **Provide code reference** - Line numbers if relevant
## Example
**User**: "Where is the parser implemented?"
**Response**:
```
Based on README_AI.md, the parser is in `src/codeindex/parser.py`.
**Purpose**: Tree-sitter based Python parser that extracts Symbol
(classes, functions, methods) and Import statements into ParseResult.
**Key exports**:
- `parse_file()` - Parse a single Python file
- `ParseResult` - Container for parsed data
- `Symbol` - Represents a code symbol
**Dependencies**: tree-sitter, tree-sitter-python
```
## When No Index Exists
If README_AI.md files don't exist, suggest:
```
This directory is not indexed. Run:
codeindex scan ./path/to/dir
Or for the entire project:
codeindex list-dirs | xargs -P 4 -I {} codeindex scan {}
codeindex index
```
Built on the Agent Skills standard
readme
Generate beautiful, comprehensive README.md files for any codebase. Use when asked to create a README, improve documentation, or when the user says "readme", "/readme", or wants help documenting their project. Analyzes the codebase structure, dependencies, and code to produce professional documentation.
by AgentHub Crawler
AI Assistant Instructions
Read `README.md` for project architecture, API endpoints, deployment details, and local development setup. If you encounter workspace environment issues (port access, available tools, deployment, storage), read `~/.workspace-info.md` for capabilities and constraints.
by AgentHub Crawler
orient
Orient yourself to this codebase by reading the README and documentation
by AgentHub Crawler
Sign in to leave a comment.
ZMK Project Coding Instructions for AI
For detailed project overview, features, and usage instructions, please refer to [README.md](mdc:../../README.md).
by AgentHub Crawler