All Skills are triggered via Claude Code's / command syntax.
Trigger: /repo-knowledge:rk-create <git-url>
Parameters:
| Parameter | Type | Description |
|---|---|---|
git-url |
string (required) | HTTPS or SSH Git URL |
Behavior:
- Infers project name from the URL (last segment, stripping
.git) - Clones the repository to
~/.repo-knowledge/_repos/<project>/ - Dispatches Indexer Agent to scan all code files and generate documentation
- Saves
_meta.md,_index.md, and registers the project in_registry.md
Example:
/repo-knowledge:rk-create https://github.com/anthropics/anthropic-sdk-python.git
/repo-knowledge:rk-create git@github.com:org/project.git
Notes:
- Warns to use
rk-updateif project name already exists - Private repos require SSH key or token configured
Trigger: /repo-knowledge:rk-search <query>
Parameters:
| Parameter | Type | Description |
|---|---|---|
query |
string (required) | Natural language query, any language |
Behavior:
- Reads
_registry.mdto determine the search target (auto-selects for single project, prompts for multiple) - Dispatches Searcher Agent to execute a 4-layer search strategy
- Returns matching document content
- Writes the query term as an alias into
_index.md
Example:
/repo-knowledge:rk-search how does authentication work
/repo-knowledge:rk-search window size
/repo-knowledge:rk-search JWT token validation
Notes:
- Supports cross-language queries (Chinese queries can match English documents)
- After each successful search, aliases in
_index.mdare updated (LRU, max 10) - On cache miss, automatically falls back to source code search and saves new documentation
Trigger: /repo-knowledge:rk-update <project-name>
Parameters:
| Parameter | Type | Description |
|---|---|---|
project-name |
string (required) | Registered project name |
Behavior:
- Reads
_meta.mdto obtainlast_commit - Runs
git pullto fetch the latest code - Runs
git diff --name-only <last_commit>..HEADto get the list of changed files - Performs incremental processing on changed files: rebuild modified, add new, clean deleted
- Updates
_meta.mdand_registry.md
Example:
/repo-knowledge:rk-update my-project
Notes:
- Suggests using
rk-createif the project is not in the registry - Reports "Already up to date" and exits when there are no new commits
Trigger: /repo-knowledge:rk-list
Parameters: None
Behavior:
Reads and displays ~/.repo-knowledge/_registry.md in a formatted table.
Example:
/repo-knowledge:rk-list
Expected output:
| Project | Git URL | Last Update | Docs |
|------------|----------------------------|-------------|------|
| my-project | https://github.com/org/... | 2026-04-14 | 129 |
Notes:
- Prompts to use
rk-createto create the first knowledge base when the registry is empty
Trigger: /repo-knowledge:rk-delete <project-name>
Parameters:
| Parameter | Type | Description |
|---|---|---|
project-name |
string (required) | Project name to delete |
Behavior:
- Asks the user to confirm deletion
- Deletes
~/.repo-knowledge/<project>/(cache directory) - Deletes
~/.repo-knowledge/_repos/<project>/(cloned repository) - Removes the corresponding entry from
_registry.md - Confirms deletion is complete
Example:
/repo-knowledge:rk-delete my-project
Notes:
- Operation is irreversible; the system requires confirmation before deleting
- Reports "No knowledge base found" if the project is not in the registry