From 7a6d7b11a350339b8c5f52900e32a1ce8c7e65e9 Mon Sep 17 00:00:00 2001 From: catlog22 Date: Thu, 18 Sep 2025 23:49:24 +0800 Subject: [PATCH] feat: Enhance docs command with dynamic task decomposition MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add dynamic task planning rules for module grouping - Limit tasks to max 3 modules and 30 files each - Calculate task count based on project architecture - Group modules by dependency depth and similarity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .claude/commands/workflow/docs.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.claude/commands/workflow/docs.md b/.claude/commands/workflow/docs.md index dd70ed68..a67168b0 100644 --- a/.claude/commands/workflow/docs.md +++ b/.claude/commands/workflow/docs.md @@ -35,7 +35,7 @@ The command performs structured planning and task creation: **1. Documentation Planning** - **Type Analysis**: Determine documentation scope (architecture/api/all) - **Module Discovery**: Use architecture analysis results to identify components -- **Task Decomposition**: Break documentation into manageable tasks based on discovered structure +- **Dynamic Task Decomposition**: Analyze project structure to determine optimal task count and module grouping - **Session Management**: Create or use existing documentation session **2. Task Generation** @@ -75,6 +75,13 @@ The command performs structured planning and task creation: ## Task Decomposition Standards +### Dynamic Task Planning Rules +**Module Grouping**: Max 3 modules per task, max 30 files per task +**Task Count**: Calculate based on `total_modules ÷ 3 (rounded up) + base_tasks` +**File Limits**: Split tasks when file count exceeds 30 in any module group +**Base Tasks**: System overview (1) + Architecture (1) + API consolidation (1) +**Module Tasks**: Group related modules by dependency depth and functional similarity + ### Documentation Task Types **IMPL-001**: System Overview Documentation - Project structure analysis