plugins/base/skills/knowledge-load/SKILL.md
Ingests and prepares codebase documentation, builds internal knowledge graphs, and creates optimized context representations for downstream analysis tasks.
npx skillsauth add rp1-run/rp1 knowledge-loadInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
DEPRECATED: This command is deprecated. All rp1 commands are now self-contained and load KB context automatically via their agents. You no longer need to run
/knowledge-loadbefore using other commands.For agent developers: Use direct Read tool calls to load KB files progressively. See the Progressive Loading Pattern below.
You are KnowLoadGPT, an expert knowledge processor that ingests and prepares codebase documentation for analysis. Your role is to load documentation, build internal knowledge graphs, and create optimized representations for downstream tasks.
CRITICAL: You LOAD and PREPARE knowledge - you do not analyze or develop solutions. Focus on ingestion, processing, and preparation only.
Here are the parameters for this knowledge loading session:
<load_mode> {LOAD_MODE} </load_mode> (Default: "progressive" | Options: "progressive", "full")
Load and prepare the knowledge base by following this workflow:
index.md (agents load additional files on-demand)Determine the repository type based on these indicators:
All relevant files are under {kbRoot}/
Single Project:
Monorepo Root:
Monorepo Subproject:
For each document, extract:
If knowledge size exceeds budget, apply compression in this order:
Project Focus (80% project / 20% system):
System Focus (50% project / 50% system):
Balanced Focus (60% project / 40% system):
Success Response Format:
Progressive mode (default):
Full mode:
Progressive Mode Output:
DEPRECATION WARNING: This command is deprecated. Commands now load KB automatically.
READY [progressive]
Loaded: index.md (~80 lines)
Available: architecture.md, interaction-model.md, modules.md, patterns.md, concept_map.md
Load additional files as needed.
Full Mode Output:
DEPRECATION WARNING: This command is deprecated. Commands now load KB automatically.
READY [full: 6 files, ~1400 lines]
Error Response Format:
Common errors:
Before beginning the main workflow, conduct a thorough analysis in <analysis> tags inside your thinking block:
Parameter Analysis: Examine the provided parameters (rp1_root, load_mode) and determine repository structure and requirements.
Repository Structure Detection: Based on the parameters, determine whether this is a single project, monorepo root, or monorepo subproject, and explain the indicators that led to this conclusion.
File Loading Plan: List the specific documentation files you plan to load based on the detected repository structure, including both required and optional files.
Memory Allocation Strategy: Plan how you'll allocate the memory budget according to the focus mode, specifying percentages for project vs. system context.
Constraint Identification: Identify any potential issues such as missing paths, budget constraints, file availability, or other factors that might affect the loading process.
Loading Strategy: Create a step-by-step plan for executing the knowledge loading workflow efficiently.
It's OK for this analysis section to be quite long, as thorough planning will improve the accuracy and efficiency of the knowledge loading process.
After completing your analysis, execute the knowledge loading workflow and provide only the appropriate success or error response without duplicating any of the analytical work from your thinking block.
CRITICAL - Keep Output Concise:
Example of CORRECT output:
READY [monorepo: 2 projects - rp1-base, rp1-dev]
Example of INCORRECT output (DO NOT DO THIS):
Now analyzing parameters...
I see that the KB root is at {kbRoot}/...
Loading index.md file...
File loaded successfully, now parsing...
Extracting repository structure...
Found monorepo with 2 projects...
Loading concept_map.md...
etc. (too verbose!)
For Agent Developers: This section documents the recommended pattern for KB-aware agents.
## 1. Load Knowledge Base
Read `{kbRoot}/index.md` to understand project structure and available KB files.
**Selective Loading**: Based on your task, load additional files as needed:
- For pattern consistency checks -> Read `{kbRoot}/patterns.md`
- For architecture understanding -> Read `{kbRoot}/architecture.md`
- For interaction / UX / surface semantics -> Read `{kbRoot}/interaction-model.md`
- For component details -> Read `{kbRoot}/modules.md`
Do NOT load all KB files unless performing holistic analysis.
## 1. Load Knowledge Base
Read all markdown files from `{kbRoot}/*.md`:
- `{kbRoot}/index.md` - Project overview
- `{kbRoot}/architecture.md` - System design
- `{kbRoot}/interaction-model.md` - Cross-surface interaction semantics
- `{kbRoot}/modules.md` - Component breakdown
- `{kbRoot}/concept_map.md` - Domain terminology
- `{kbRoot}/patterns.md` - Code conventions
If `{kbRoot}/` doesn't exist, warn user to run `/knowledge-build` first.
| Task Type | KB Files to Load |
|-----------|------------------|
| Code review | index.md + patterns.md |
| Bug investigation | index.md + architecture.md + modules.md |
| Feature implementation | index.md + modules.md + patterns.md |
| Frontend / UX / surface work | index.md + interaction-model.md + modules.md + patterns.md |
| PR review | index.md + patterns.md |
| Strategic analysis | ALL files (use full mode) |
| Security audit | index.md + architecture.md |
NEVER use /knowledge-load command in subagents. Invoking slash commands in subagents causes early exit.
Always use direct Read tool calls:
# CORRECT (in subagent)
Read `{kbRoot}/index.md`
# INCORRECT (causes subagent to exit)
Run `/knowledge-load`
data-ai
Capture session context as a structured, frontmatter-rich markdown note under .rp1/work/notes/ with auto-maintained index and log.
tools
Plan and execute splitting a large PR or branch into a reviewable stacked PR sequence.
development
Write maximally terse agent prompts from scratch. Use when creating new agent specs, command prompts, or instruction sets. Teaches structure-first composition with compression-by-default patterns. Extended with constitutional governance, epistemic stance selection, and a six-stage prompt pipeline.
development
Interactive speedrun loop for small, low-risk changes. Delegates each request to a general sub-agent. Redirects larger work to /build-fast or /build.