feat: Optimize ccw-help skill with user-prompted update mechanism

- Add auto-update.py script for simple index regeneration
- Update SKILL.md with clear update instructions
- Simplify update mechanism: prompt user on skill execution
- Support both automatic and manual update workflows
- Clean version 2.3.0 metadata in command.json
This commit is contained in:
catlog22
2026-01-29 15:58:51 +08:00
parent 86d5be8288
commit f5e435f791
3 changed files with 59 additions and 5 deletions

View File

@@ -132,14 +132,33 @@ Single source of truth: **[command.json](command.json)**
## Maintenance
### Update Index
### Update Mechanism
CCW-Help skill supports manual updates through user confirmation dialog.
#### How to Update
**Option 1: When executing the skill, user will be prompted:**
```
Would you like to update CCW-Help command index?
- Yes: Run auto-update and regenerate command.json
- No: Use current index
```
**Option 2: Manual update**
```bash
cd D:/Claude_dms3/.claude/skills/ccw-help
python scripts/analyze_commands.py
python scripts/auto-update.py
```
脚本功能:扫描 commands/ agents/ 目录,生成统一的 command.json
This runs `analyze_commands.py` to scan commands/ and agents/ directories and regenerate `command.json`.
#### Update Scripts
- **`auto-update.py`**: Simple wrapper that runs analyze_commands.py
- **`analyze_commands.py`**: Scans directories and generates command index
## Statistics