load
Purpose
Section titled “Purpose”Load specific project components into context for focused work. Uses the project index to efficiently load relevant files.
Load the requested component(s) into context.
Loading Process
Section titled “Loading Process”Step 1: Check for Index
Section titled “Step 1: Check for Index”First, check if PROJECT_INDEX.md exists:
- If exists: Use index for efficient loading
- If not: Suggest running
/indexfirst, or do quick scan
Step 2: Identify Component
Section titled “Step 2: Identify Component”Parse the requested component:
| Request Type | Action |
|---|---|
| Category name | Load all files in category |
| File path | Load specific file |
| Pattern | Load matching files |
--all | Load key files from all categories |
Step 3: Load Files
Section titled “Step 3: Load Files”Read the identified files and summarize:
- File purposes
- Key exports/functions
- Dependencies
- Current state
Step 4: Context Summary
Section titled “Step 4: Context Summary”Provide a brief summary:
## Loaded Context
### Files Loaded (N)- `path/to/file1.ts` - [purpose]- `path/to/file2.ts` - [purpose]
### Key Components- [Component]: [description]
### Ready For- [Suggested actions based on loaded context]Component Categories
Section titled “Component Categories”| Category | What It Loads |
|---|---|
api | API routes and endpoints |
models | Data models and types |
services | Business logic services |
utils | Utility functions |
tests | Test files |
config | Configuration files |
auth | Authentication related |
db | Database related |
| Flag | Description |
|---|---|
--all | Load all key components |
--shallow | Load only file summaries |
--deep | Load full file contents |
--related | Include related files |
Usage Examples
Section titled “Usage Examples”/load api # Load all API routes/load models # Load all data models/load src/services/user.ts # Load specific file/load auth --related # Load auth + related files/load --all # Load all key components/load --all --shallow # Quick overview of everythingArguments
Section titled “Arguments”$ARGUMENTS
If no arguments, show available components from index.
Best Practices
Section titled “Best Practices”- Start Narrow: Load specific components first
- Expand as Needed: Use
--relatedwhen you need more context - Check Index: Run
/indexif loading seems slow - Use Categories: Category names are faster than patterns
After Loading
Section titled “After Loading”Suggest next actions:
- “Ready to work on [component]. What would you like to do?”
- “I see [patterns/issues]. Want me to address them?”
- “Related files that might be relevant: [list]“
Gap Analysis Rule
Section titled “Gap Analysis Rule”Always identify gaps and suggest next steps to users. In case there is no gaps anymore, then AI should clearly state that there is no gap left.