mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-13 02:41:50 +08:00
133 lines
4.7 KiB
Markdown
133 lines
4.7 KiB
Markdown
---
|
|
name: load-skill-memory
|
|
description: Manually activate specified SKILL package and load documentation based on task intent
|
|
argument-hint: "<skill_name> \"task intent description\""
|
|
allowed-tools: Bash(*), Read(*), Skill(*)
|
|
---
|
|
|
|
# Memory Load SKILL Command (/memory:load-skill-memory)
|
|
|
|
## 1. Overview
|
|
|
|
The `memory:load-skill-memory` command **manually activates a specified SKILL package** and intelligently loads documentation based on user's task intent. The system automatically determines which documentation files to read based on the intent description.
|
|
|
|
**Core Philosophy**:
|
|
- **Manual Activation**: User explicitly specifies which SKILL to activate
|
|
- **Intent-Driven Loading**: System analyzes task intent to determine documentation scope
|
|
- **Intelligent Selection**: Automatically chooses appropriate documentation level and modules
|
|
- **Direct Context Loading**: Loads selected documentation into conversation memory
|
|
|
|
**When to Use**:
|
|
- Manually activate a known SKILL package for a specific task
|
|
- Load SKILL context when system hasn't auto-triggered it
|
|
- Force reload SKILL documentation with specific intent focus
|
|
|
|
**Note**: Normal SKILL activation happens automatically via description triggers. Use this command only when manual activation is needed.
|
|
|
|
## 2. Parameters
|
|
|
|
- `<skill_name>` (Required): Name of SKILL package to activate
|
|
- Example: `hydro_generator_module`, `Claude_dms3`
|
|
- Must match directory name under `.claude/skills/`
|
|
|
|
- `"task intent description"` (Required): Description of what you want to do
|
|
- **Analysis tasks**: "分析builder pattern实现", "理解参数系统架构"
|
|
- **Modification tasks**: "修改workflow逻辑", "增强thermal template功能"
|
|
- **Learning tasks**: "学习接口设计模式", "了解测试框架使用"
|
|
|
|
## 3. Execution Flow
|
|
|
|
### Step 1: Activate SKILL and Analyze Intent
|
|
|
|
**Activate SKILL Package**:
|
|
```javascript
|
|
Skill(command: "${skill_name}")
|
|
```
|
|
|
|
**What Happens After Activation**:
|
|
1. If SKILL exists in memory: System reads `.claude/skills/${skill_name}/SKILL.md`
|
|
2. If SKILL not found in memory: Error - SKILL package doesn't exist
|
|
3. SKILL description triggers are loaded into memory
|
|
4. Progressive loading mechanism becomes available
|
|
5. Documentation structure is now accessible
|
|
|
|
**Intent Analysis**:
|
|
Based on task intent description, system determines:
|
|
- **Action type**: analyzing, modifying, learning
|
|
- **Scope**: specific module, architecture overview, complete system
|
|
- **Depth**: quick reference, detailed API, full documentation
|
|
|
|
### Step 2: Intelligent Documentation Loading
|
|
|
|
**Loading Strategy**:
|
|
|
|
The system automatically selects documentation based on intent keywords:
|
|
|
|
1. **Quick Understanding** ("了解", "快速理解", "什么是"):
|
|
- Load: Level 0 (README.md only, ~2K tokens)
|
|
- Use case: Quick overview of capabilities
|
|
|
|
2. **Specific Module Analysis** ("分析XXX模块", "理解XXX实现"):
|
|
- Load: Module-specific README.md + API.md (~5K tokens)
|
|
- Use case: Deep dive into specific component
|
|
|
|
3. **Architecture Review** ("架构", "设计模式", "整体结构"):
|
|
- Load: README.md + ARCHITECTURE.md (~10K tokens)
|
|
- Use case: System design understanding
|
|
|
|
4. **Implementation/Modification** ("修改", "增强", "实现"):
|
|
- Load: Relevant module docs + EXAMPLES.md (~15K tokens)
|
|
- Use case: Code modification with examples
|
|
|
|
5. **Comprehensive Learning** ("学习", "完整了解", "深入理解"):
|
|
- Load: Level 3 (All documentation, ~40K tokens)
|
|
- Use case: Complete system mastery
|
|
|
|
**Documentation Loaded into Memory**:
|
|
After loading, the selected documentation content is available in conversation memory for subsequent operations.
|
|
|
|
## 4. Usage Example
|
|
|
|
**User Command**:
|
|
```bash
|
|
/memory:load-skill-memory my_project "修改认证模块增加OAuth支持"
|
|
```
|
|
|
|
**Execution**:
|
|
```javascript
|
|
// Step 1: Activate SKILL
|
|
Skill(command: "my_project")
|
|
|
|
// Intent Analysis
|
|
Keywords: ["修改", "认证模块", "增加", "OAuth"]
|
|
Action: modifying (implementation)
|
|
Scope: auth module + examples
|
|
|
|
// Step 2: Load documentation based on intent
|
|
Read(.workflow/docs/my_project/auth/README.md)
|
|
Read(.workflow/docs/my_project/auth/API.md)
|
|
Read(.workflow/docs/my_project/EXAMPLES.md)
|
|
```
|
|
|
|
## 5. Intent Keyword Mapping
|
|
|
|
**Quick Reference**:
|
|
- **Triggers**: "了解", "快速", "什么是", "简介"
|
|
- **Loads**: README.md only (~2K)
|
|
|
|
**Module-Specific**:
|
|
- **Triggers**: "XXX模块", "XXX组件", "分析XXX"
|
|
- **Loads**: Module README + API (~5K)
|
|
|
|
**Architecture**:
|
|
- **Triggers**: "架构", "设计", "整体结构", "系统设计"
|
|
- **Loads**: README + ARCHITECTURE (~10K)
|
|
|
|
**Implementation**:
|
|
- **Triggers**: "修改", "增强", "实现", "开发", "集成"
|
|
- **Loads**: Relevant module + EXAMPLES (~15K)
|
|
|
|
**Comprehensive**:
|
|
- **Triggers**: "完整", "深入", "全面", "学习整个"
|
|
- **Loads**: All documentation (~40K)
|