Skip to content

Commit f1c8912

Browse files
author
catlog22
committed
chore: release v5.2.1 - SKILL workflow improvements
Major Changes: - Redesigned /memory:load-skill-memory as manual activation tool - Changed --regenerate to --update flag in skill-memory command - Enhanced context search strategy with SKILL first priority Details: 1. load-skill-memory command redesign: - Manual activation: user specifies SKILL name explicitly - Intent-driven doc loading: 5 levels based on task description - Memory-based validation: removed bash checks - File size: 355→132 lines (-62.8%) 2. Parameter naming consistency: - Renamed --regenerate to --update in skill-memory.md - Updated all references and examples 3. Context search strategy (global .claude): - Added SKILL packages as first priority tool - Emphasized use BEFORE Gemini analysis - Updated tool selection matrix and examples See CHANGELOG.md for complete details.
1 parent 8926611 commit f1c8912

File tree

2 files changed

+55
-2490
lines changed

2 files changed

+55
-2490
lines changed

.claude/commands/memory/skill-memory.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
name: skill-memory
33
description: Generate SKILL package index from project documentation
4-
argument-hint: "[path] [--tool <gemini|qwen|codex>] [--regenerate] [--mode <full|partial>] [--cli-execute]"
4+
argument-hint: "[path] [--tool <gemini|qwen|codex>] [--update] [--mode <full|partial>] [--cli-execute]"
55
allowed-tools: SlashCommand(*), TodoWrite(*), Bash(*), Read(*), Write(*)
66
---
77

@@ -70,7 +70,7 @@ bash(git rev-parse --show-toplevel 2>/dev/null || pwd)
7070
# Default values (use these unless user specifies otherwise):
7171
# - tool: "gemini"
7272
# - mode: "full"
73-
# - regenerate: false (no --regenerate flag)
73+
# - update: false (no --update flag)
7474
# - cli_execute: false (no --cli-execute flag)
7575
```
7676

@@ -87,9 +87,9 @@ bash(find .workflow/docs/my_project -name "*.md" 2>/dev/null | wc -l || echo 0)
8787
- `docs_exists`: `exists` or `not_exists`
8888
- `existing_docs`: `5` (or `0` if no docs)
8989

90-
**Step 4: Handle --regenerate Flag (If Specified)**
90+
**Step 4: Handle --update Flag (If Specified)**
9191
```bash
92-
# If user specified --regenerate, delete existing docs directory
92+
# If user specified --update, delete existing docs directory
9393
bash(rm -rf .workflow/docs/my_project 2>/dev/null || true)
9494

9595
# Verify deletion
@@ -103,8 +103,8 @@ bash(test -d .workflow/docs/my_project && echo "still_exists" || echo "deleted")
103103
- `TOOL`: `gemini` (default) or user-specified
104104
- `MODE`: `full` (default) or user-specified
105105
- `CLI_EXECUTE`: `false` (default) or `true` if --cli-execute flag
106-
- `REGENERATE`: `false` (default) or `true` if --regenerate flag
107-
- `EXISTING_DOCS`: `0` (after regenerate) or actual count
106+
- `UPDATE`: `false` (default) or `true` if --update flag
107+
- `EXISTING_DOCS`: `0` (after update) or actual count
108108

109109
**Completion Criteria**:
110110
- All parameters extracted and validated
@@ -133,7 +133,7 @@ SlashCommand(command="/memory:docs [targetPath] --tool [tool] --mode [mode] [--c
133133
/memory:docs /d/my_app --tool gemini --mode full --cli-execute
134134
```
135135

136-
**Note**: The `--regenerate` flag is handled in Phase 1 by deleting existing documentation. This command always calls `/memory:docs` without the regenerate flag, relying on docs.md's built-in update detection.
136+
**Note**: The `--update` flag is handled in Phase 1 by deleting existing documentation. This command always calls `/memory:docs` without the update flag, relying on docs.md's built-in update detection.
137137

138138
**Input**:
139139
- `targetPath` from Phase 1
@@ -375,15 +375,15 @@ User triggers command
375375
## Parameters
376376

377377
```bash
378-
/memory:skill-memory [path] [--tool <gemini|qwen|codex>] [--regenerate] [--mode <full|partial>] [--cli-execute]
378+
/memory:skill-memory [path] [--tool <gemini|qwen|codex>] [--update] [--mode <full|partial>] [--cli-execute]
379379
```
380380

381381
- **path**: Target directory (default: current directory)
382382
- **--tool**: CLI tool for documentation (default: gemini)
383383
- `gemini`: Comprehensive documentation
384384
- `qwen`: Architecture analysis
385385
- `codex`: Implementation validation
386-
- **--regenerate**: Force regenerate all documentation
386+
- **--update**: Force update all documentation
387387
- When enabled: Deletes existing `.workflow/docs/{project_name}/` before regeneration
388388
- Ensures fresh documentation from source code
389389
- **--mode**: Documentation mode (default: full)
@@ -407,16 +407,16 @@ User triggers command
407407
3. Phase 3: Executes documentation generation via `/workflow:execute`
408408
4. Phase 4: Generates SKILL.md at `.claude/skills/{project_name}/SKILL.md`
409409

410-
### Example 2: Regenerate with Qwen
410+
### Example 2: Update with Qwen
411411

412412
```bash
413-
/memory:skill-memory /d/my_app --tool qwen --regenerate
413+
/memory:skill-memory /d/my_app --tool qwen --update
414414
```
415415

416416
**Workflow**:
417-
1. Phase 1: Parses target path, detects regenerate flag
418-
2. Phase 2: Calls `/memory:docs /d/my_app --tool qwen --mode full` (regenerate handled in Phase 1)
419-
3. Phase 3: Executes documentation regeneration
417+
1. Phase 1: Parses target path, detects update flag
418+
2. Phase 2: Calls `/memory:docs /d/my_app --tool qwen --mode full` (update handled in Phase 1)
419+
3. Phase 3: Executes documentation update
420420
4. Phase 4: Generates updated SKILL.md
421421

422422
### Example 3: Partial Mode (Modules Only)

0 commit comments

Comments
 (0)