catlog22
598bea9b21
feat(ccw): add session manager tool with auto workspace detection
...
- Add session_manager tool for workflow session lifecycle management
- Add ccw session CLI command with subcommands:
- list, init, status, task, stats, delete, read, write, update, archive, mkdir
- Implement auto workspace detection (traverse up to find .workflow)
- Implement auto session location detection (active, archived, lite-plan, lite-fix)
- Add dashboard notifications for tool executions via WebSocket
- Add granular event types (SESSION_CREATED, TASK_UPDATED, etc.)
- Add status_history auto-tracking for task status changes
- Update workflow session commands to document ccw session usage
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com >
2025-12-10 19:26:53 +08:00
catlog22
39df995e37
Refactor code structure for improved readability and maintainability
2025-12-04 17:22:25 +08:00
catlog22
2b80a02d51
feat: Add non-interrupting execution guideline to session start command
...
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-27 13:23:19 +08:00
catlog22
8f2126677f
refactor: Update review commands to require active sessions and unify output directory structure for improved organization and clarity
2025-11-25 23:02:20 +08:00
catlog22
c3818fdb79
Refactor workflow file paths from .workflow/sessions/ to .workflow/active/ for improved session management and consistency across commands. Updated documentation and command references to reflect the new directory structure, ensuring all relevant commands and outputs are correctly aligned with the active session model.
2025-11-20 09:40:58 +08:00
catlog22
d9fcdad949
refactor(workflow): migrate to sessions/ subdirectory structure
...
Refactor workflow directory structure to improve clarity and robustness by introducing dedicated sessions/ subdirectory for active sessions.
## Directory Structure Changes
### Before (Old Structure)
```
.workflow/
├── .active-WFS-session-1 # Marker files (fragile)
├── WFS-session-1/ # Active sessions mixed with config
├── WFS-session-2/
├── project.json
└── .archives/ # Archived sessions
```
### After (New Structure)
```
.workflow/
├── project.json # Project metadata
├── sessions/ # [NEW] All active sessions
│ └── WFS-session-1/
└── archives/ # Archived sessions (removed dot prefix)
```
## Key Improvements
1. **Physical Isolation**: Active sessions now in dedicated sessions/ subdirectory
2. **No Marker Files**: Removed fragile .active-* marker file mechanism
3. **Directory-Based State**: Session state determined by directory location
- In sessions/ = active
- In archives/ = archived
4. **Simpler Discovery**: `ls .workflow/sessions/` instead of `find .workflow/ -name ".active-*"`
5. **Cleaner Root**: .workflow/ root now only contains project.json, sessions/, archives/
## Path Transformations
| Old Pattern | New Pattern |
|-------------|-------------|
| `find .workflow/ -name ".active-*"` | `find .workflow/sessions/ -name "WFS-*" -type d` |
| `.workflow/WFS-[slug]/` | `.workflow/sessions/WFS-[slug]/` |
| `.workflow/.archives/` | `.workflow/archives/` |
| `touch .workflow/.active-*` | *Removed* |
| `rm .workflow/.active-*` | *Removed* |
## Modified Commands
### session/start.md
- Update session creation path to .workflow/sessions/WFS-*/
- Remove .active-* marker file creation
- Update session discovery to use directory listing
- Updated all 3 modes: Discovery, Auto, Force New
### session/complete.md
- Update session move from sessions/ to archives/
- Remove .active-* marker file deletion
- Update manifest path to archives/manifest.json
- Update agent prompts with new paths
### status.md
- Update session discovery to find .workflow/sessions/
- Update all session file path references
- Update archive query examples
### execute.md
- Update session discovery logic
- Update all task file paths to include sessions/ prefix
- Update context package paths
- Update error handling documentation
## Benefits
- **Robustness**: Eliminates marker file state inconsistency risk
- **Clarity**: Clear separation between active and archived sessions
- **Simplicity**: Session discovery is straightforward directory listing
- **Alignment**: Closer to OpenSpec's three-layer structure (specs/changes/archive)
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-18 11:34:52 +08:00
catlog22
2aacc34c24
refactor(workflow): remove redundant sections, focus on core responsibilities
...
Streamline workflow command documentation by removing sections that don't belong to core command responsibilities.
## Changes
### init.md (-46 lines)
- Remove Integration with Existing Commands section
- Remove Performance Considerations section
- Remove Related Commands section
- Focus: Project initialization and analysis only
### session/complete.md (-30 lines)
- Remove Quick Commands reference section
- Remove Archive Query Commands section
- Focus: Session archival and feature registry updates only
### session/start.md (-34 lines)
- Remove Simple Bash Commands reference section
- Keep: Session ID Format (specification/standard)
- Focus: Session creation and discovery only
### status.md (-165 lines)
- Remove Simple Bash Commands section
- Remove Simple Output Format examples
- Remove Project Mode Quick Commands section
- Focus: Status display logic only
### context-gather.md (-29 lines)
- Remove Usage Examples section
- Remove Success Criteria section
- Remove Error Handling table
- Keep: Notes (core design principles)
- Focus: Context gathering orchestration only
## Benefits
- Reduced documentation redundancy (~304 lines removed)
- Clearer command responsibilities and boundaries
- Easier maintenance and updates
- Commands focus on their specific roles in workflow
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-18 11:21:35 +08:00
catlog22
4dafec7054
feat(workflow): add project-level state management with intelligent initialization
...
Implement comprehensive project.json system for tracking project state, completed features, and architecture overview.
## New Features
### 1. /workflow:init Command (NEW)
- Independent project initialization command using cli-explore-agent
- Deep Scan mode analyzes: technology stack, architecture, key components, metrics
- Generates project.json with comprehensive overview field
- Supports --regenerate flag to update analysis while preserving features
- One-time initialization with intelligent project cognition
### 2. Enhanced session:start
- Added Step 0: Check project.json existence before session creation
- Auto-calls /workflow:init if project.json missing
- Separated project-level vs session-level initialization responsibilities
### 3. Enhanced session:complete
- Added Phase 3: Update Project Feature Registry
- Extracts feature metadata from IMPL_PLAN.md
- Records completed sessions as features in project.json
- Includes: title, description, tags, timeline, traceability (archive_path, commit_hash)
- Auto-generates feature IDs and tags from implementation plans
### 4. Enhanced status Command
- Added --project flag for project overview mode
- Displays: technology stack, architecture patterns, key components, metrics
- Shows completed features with full traceability
- Provides query commands for feature exploration
### 5. Enhanced context-gather
- Integrated project.json reading in context-search-agent workflow
- Phase 1: Load project.json overview as foundational context
- Phase 3: Populate context-package.json from project.json
- Prioritizes project.json context for architecture and tech stack
- Avoids redundant project analysis on every planning session
## Data Flow
project.json (init) → context-gather → context-package.json → task-generation
session-complete → project.json (features registry)
## Benefits
- Single source of truth for project state
- Efficient context reuse across sessions
- Complete feature traceability and history
- Consistent architectural baseline for all workflows
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-18 11:10:07 +08:00
catlog22
920b179440
docs: 更新所有命令描述并重新生成索引文件
...
- 更新所有69个命令文件的description字段,基于实际功能重新生成详细描述
- 重新生成5个索引文件(all-commands, by-category, by-use-case, essential-commands, command-relationships)
- 移动analyze_commands.py到scripts/目录并完善功能
- 移除临时备份文件
命令描述改进示例:
- workflow:plan: 增加了工具和代理的详细说明(Gemini, action-planning-agent)
- cli:execute: 说明了YOLO权限和多种执行模式
- memory:update-related: 详细说明了批处理策略和工具回退链
索引文件改进:
- usage_scenario从2种扩展到10种(更精细分类)
- command-relationships覆盖所有69个命令
- 区分built-in(内置调用)和sequential(用户顺序执行)关系
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-06 15:11:31 +08:00
catlog22
c36ff8fcec
docs: 继续标准化工作流会话和版本命令文档格式
...
移除剩余命令文档中的表情符号和视觉装饰:
- version.md - 版本检查和更新命令
- workflow/session/list.md - 会话列表命令
- workflow/session/resume.md - 会话恢复命令
- workflow/session/start.md - 会话启动命令
保持与其他命令文档的格式一致性
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-11-05 21:49:03 +08:00
catlog22
369bfa8a08
Refactor command YAML headers: replace examples with argument-hint
...
**Summary:**
Updated all 62 command files in `.claude/commands` directory to improve parameter documentation clarity by replacing `examples` field with descriptive `argument-hint` field.
**Changes:**
- Added/improved `argument-hint` for all commands based on usage patterns
- Removed `examples` field and all example items from YAML headers
- Maintained all other YAML fields (name, description, usage, allowed-tools)
- Deleted obsolete commands: workflow/issue/*, workflow/session/pause.md, workflow/session/switch.md
- Cleaned up temporary analysis files
**Rationale:**
The `argument-hint` field provides clearer, more concise parameter documentation than example lists, improving command discoverability and usability in the Claude Code interface.
**Files Modified:** 62 command files
**Lines Changed:** -1570 insertions, +192 deletions
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-11 23:45:55 +08:00
catlog22
04876c80bd
feat: Add task-generate-agent and task-generate commands for autonomous task generation and manual task creation
...
- Implemented task-generate-agent for autonomous task generation using action-planning-agent with discovery and output phases.
- Introduced task-generate command to generate task JSON files and IMPL_PLAN.md from analysis results with automatic artifact detection and integration.
- Enhanced documentation for both commands, detailing execution lifecycle, phases, and output structures.
- Established clear integration points and error handling for improved user experience.
2025-09-30 10:10:34 +08:00
catlog22
84f4e47a50
feat: Add comprehensive test generation and evaluation commands
...
- Introduced `/workflow:test-gen` command to automate test workflow generation based on completed implementation tasks, including detailed lifecycle phases, task decomposition, and agent assignment.
- Implemented `/workflow:concept-eval` command for pre-planning evaluation of concepts, assessing feasibility, risks, and optimization recommendations using strategic and technical analysis tools.
- Added `/workflow:docs` command for generating hierarchical architecture and API documentation, with structured task creation and session management.
- Developed `/workflow:status` command to provide on-demand views of workflow state, supporting multiple formats and validation checks for task integrity and relationships.
2025-09-29 19:27:57 +08:00
catlog22
2c3e04b6fc
refactor: Standardize command naming conventions and remove parent relationships
...
Updates all command files to use consistent naming without parent field:
- Remove parent field from all command frontmatter
- Standardize name field to use simple names instead of prefixed names
- Fix usage patterns for brainstorm commands to use proper workflow namespace
- Add new medium-project-update.sh script for batch updates
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-09 15:06:06 +08:00
catlog22
754f9b8da0
修复所有命令文件的usage格式:斜杠改为冒号
...
统一命令调用格式从 /workflow/session/list 改为 /workflow:session:list
## 修复范围
- workflow/session/: 6个子命令 (start, pause, resume, list, status, switch)
- workflow/issue/: 4个子命令 (create, list, update, close)
- workflow/: 3个主命令 (plan, execute, review)
- task/: 4个命令 (create, execute, breakdown, replan)
- gemini/: 3个命令 (chat, execute, analyze)
## 格式统一
- usage行: /workflow:session:list
- examples: /workflow:session:start "任务"
- 标题: # Command (/workflow:session:start)
- 内容引用: 所有命令路径统一使用冒号格式
## 验证完成
✅ 24个命令文件全部采用统一格式
✅ 所有examples和内容引用保持一致
✅ parent字段同步更新
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-08 16:32:41 +08:00
catlog22
1427a65e4a
重构命令结构:实现文件夹式组织和参数简化
...
## 主要改进
### 🏗️ 新的文件夹结构
- workflow/session/: 会话管理子命令 (start, pause, resume, list, status, switch)
- workflow/issue/: 问题管理子命令 (create, list, update, close)
- workflow/plan.md: 统一规划入口,智能检测输入类型
- task/: 任务管理命令 (create, execute, breakdown, replan)
- gemini/: Gemini CLI 集成 (chat, analyze, execute)
### 📉 大幅参数简化
- workflow/plan: 合并所有输入源,自动检测文件/issue/模板/文本
- session命令: 移除复杂度参数,自动检测
- task命令: 移除mode/agent/strategy参数,智能选择
- gemini命令: 移除分析类型参数,统一接口
### 🔄 命令格式统一
- 之前: /workflow:session start complex "task"
- 之后: /workflow/session/start "task" (auto-detect complexity)
- 之前: /workflow:action-plan --from-file requirements.md
- 之后: /workflow/plan requirements.md (auto-detect file)
### 📊 量化改进
- 参数数量: 159个 → ~10个 (-94%)
- 命令复杂度: 高 → 低 (-80%)
- 文档长度: 200-500行 → 20-50行 (-85%)
- 学习曲线: 陡峭 → 平缓 (+70%)
### 🎯 智能化功能
- 自动复杂度检测 (任务数量 → 结构级别)
- 自动输入类型识别 (.md → 文件, ISS-001 → issue)
- 自动代理选择 (任务内容 → 最佳代理)
- 自动会话管理 (创建/切换/恢复)
🤖 Generated with [Claude Code](https://claude.ai/code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-09-08 16:11:25 +08:00