mirror of
https://github.com/catlog22/Claude-Code-Workflow.git
synced 2026-02-05 01:50:27 +08:00
docs: 移除完成工作流会话的SKILL包更新选项,简化文档并优化流程描述
This commit is contained in:
@@ -4,19 +4,17 @@ description: Mark the active workflow session as complete, archive it with lesso
|
||||
examples:
|
||||
- /workflow:session:complete
|
||||
- /workflow:session:complete --detailed
|
||||
- /workflow:session:complete --skip-skill
|
||||
---
|
||||
|
||||
# Complete Workflow Session (/workflow:session:complete)
|
||||
|
||||
## Overview
|
||||
Mark the currently active workflow session as complete, analyze it for lessons learned, move it to the archive directory, remove the active flag marker, and optionally update the workflow SKILL package.
|
||||
Mark the currently active workflow session as complete, analyze it for lessons learned, move it to the archive directory, and remove the active flag marker.
|
||||
|
||||
## Usage
|
||||
```bash
|
||||
/workflow:session:complete # Complete current active session
|
||||
/workflow:session:complete --detailed # Show detailed completion summary
|
||||
/workflow:session:complete --skip-skill # Complete without updating SKILL package
|
||||
/workflow:session:complete # Complete current active session
|
||||
/workflow:session:complete --detailed # Show detailed completion summary
|
||||
```
|
||||
|
||||
## Implementation Flow
|
||||
@@ -96,43 +94,9 @@ Complete workflow session archival. Session already moved to archive location.
|
||||
- Agent returns JSON result confirming successful archival
|
||||
- Display completion summary to user based on agent response
|
||||
|
||||
### Phase 3: Auto-Generate SKILL Package (Optional)
|
||||
|
||||
**Purpose**: Automatically update workflow progress SKILL package with newly archived session.
|
||||
|
||||
**Note**: This phase can be skipped with `--skip-skill` flag.
|
||||
|
||||
#### Command Invocation
|
||||
|
||||
After Phase 2 completes successfully, invoke workflow SKILL memory generator with session ID:
|
||||
|
||||
```bash
|
||||
SlashCommand(command="/memory:workflow-skill-memory session WFS-session-name")
|
||||
```
|
||||
|
||||
**What This Does**:
|
||||
- Processes single archived session incrementally
|
||||
- Agent analyzes session data and uses Gemini for intelligent aggregation
|
||||
- Updates SKILL package files: sessions-timeline.md, lessons-learned.md, conflict-patterns.md
|
||||
- Regenerates SKILL.md index with latest session
|
||||
- Fast execution through agent-driven incremental update
|
||||
|
||||
**Skip Condition**:
|
||||
- If user provides `--skip-skill` flag, skip this phase entirely
|
||||
- Useful when batching multiple session completions
|
||||
|
||||
**Error Handling**:
|
||||
- If SKILL generation fails, log warning but do NOT fail the completion
|
||||
- Session is still marked as completed and archived
|
||||
- User can manually run `/memory:workflow-skill-memory` later
|
||||
|
||||
**Expected Output**:
|
||||
- SKILL package updated with new session
|
||||
- Confirmation message: "Workflow SKILL package updated"
|
||||
|
||||
## Workflow Execution Strategy
|
||||
|
||||
### Three-Phase Approach (Optimized)
|
||||
### Two-Phase Approach (Optimized)
|
||||
|
||||
**Phase 1: Minimal Manual Setup** (2 simple operations)
|
||||
- Find active session and extract name
|
||||
@@ -150,12 +114,6 @@ SlashCommand(command="/memory:workflow-skill-memory session WFS-session-name")
|
||||
- Remove active marker
|
||||
- Return success/error result
|
||||
|
||||
**Phase 3: SKILL Package Update** (1 slash command, optional)
|
||||
- Invoke `/memory:workflow-skill-memory session {session_id}`
|
||||
- Update workflow progress SKILL package with new session
|
||||
- Agent-driven incremental update with intelligent aggregation
|
||||
- Can be skipped with `--skip-skill` flag
|
||||
|
||||
## Quick Commands
|
||||
|
||||
```bash
|
||||
@@ -167,9 +125,6 @@ bash(mv .workflow/WFS-session-name .workflow/.archives/WFS-session-name)
|
||||
|
||||
# Phase 2: Agent completes archival
|
||||
Task(subagent_type="universal-executor", description="Complete session archival", prompt=`...`)
|
||||
|
||||
# Phase 3: Update SKILL package (optional)
|
||||
SlashCommand(command="/memory:workflow-skill-memory session WFS-session-name")
|
||||
```
|
||||
|
||||
## Archive Query Commands
|
||||
@@ -189,3 +144,4 @@ jq '.archives[] | select(.session_id == "WFS-user-auth")' .workflow/.archives/ma
|
||||
# List all watch patterns across sessions
|
||||
jq '.archives[].lessons.watch_patterns[]' .workflow/.archives/manifest.json
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user