Skip to content

load

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.

First, check if PROJECT_INDEX.md exists:

  • If exists: Use index for efficient loading
  • If not: Suggest running /index first, or do quick scan

Parse the requested component:

Request TypeAction
Category nameLoad all files in category
File pathLoad specific file
PatternLoad matching files
--allLoad key files from all categories

Read the identified files and summarize:

  • File purposes
  • Key exports/functions
  • Dependencies
  • Current state

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]
CategoryWhat It Loads
apiAPI routes and endpoints
modelsData models and types
servicesBusiness logic services
utilsUtility functions
testsTest files
configConfiguration files
authAuthentication related
dbDatabase related
FlagDescription
--allLoad all key components
--shallowLoad only file summaries
--deepLoad full file contents
--relatedInclude related files
Terminal window
/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 everything

$ARGUMENTS

If no arguments, show available components from index.


  1. Start Narrow: Load specific components first
  2. Expand as Needed: Use --related when you need more context
  3. Check Index: Run /index if loading seems slow
  4. Use Categories: Category names are faster than patterns

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]“

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.