Skip to content

Commit 973b4f7

Browse files
authored
Merge pull request #32 from shinpr/feature/improve-autonomous-execution-accuracy
fix: improve stability of autonomous execution mode in build command
2 parents f726b03 + b404b0a commit 973b4f7

File tree

2 files changed

+27
-17
lines changed

2 files changed

+27
-17
lines changed

.claude/commands-en/build.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,27 @@
22
description: Execute decomposed tasks in autonomous execution mode
33
---
44

5-
**Command Context**: This command is dedicated to the implementation phase.
5+
**Command Context**: This command is dedicated to the implementation phase with autonomous execution.
66

7-
Following the autonomous execution mode described in @docs/guides/sub-agents.md, execute **from task-decomposer to implementation completion**.
7+
Strictly follow @docs/guides/sub-agents.md and act as an orchestrator.
88

9-
! ls -la docs/plans/*.md | head -10
9+
Work plan: $ARGUMENTS
10+
11+
## Metacognition for Each Task
12+
**Required cycle**: `task-executor → quality-fixer → commit`
1013

11-
Check for the existence of work plans and verify their approval status.
12-
If not approved, request approval.
14+
Before starting any task, always:
15+
1. **Execute rule-advisor**: Understand the essence of the task
16+
2. **Update TodoWrite**: Structure progress tracking
17+
3. **Process structured responses**: When `readyForQualityCheck: true` is detected, execute quality-fixer immediately
1318

14-
**Think carefully** While maintaining the quality of each task, carefully monitor signs of requirement changes or error patterns, and make appropriate decisions.
19+
**Think deeply** Monitor structured responses carefully and ensure all quality gates are passed without exception.
20+
21+
! ls -la docs/plans/*.md | head -10
1522

16-
If approved, start autonomous execution mode.
23+
Verify approval status before proceeding. Once confirmed, initiate autonomous execution mode.
1724

18-
**Scope**: From task decomposition to implementation completion. Stop immediately when requirement changes are detected.
25+
**Scope**: From task decomposition through implementation completion. Immediate halt upon detecting requirement changes.
1926

2027
## Output Example
2128
Implementation phase completed.
@@ -24,4 +31,4 @@ Implementation phase completed.
2431
- Quality checks: All passed
2532
- Commits: [number] commits created
2633

27-
**Important**: This command handles from task decomposition to implementation completion. Automatically stops when requirement changes are detected.
34+
**Important**: This command manages the entire autonomous execution flow from task decomposition to implementation completion. Automatically stops when requirement changes are detected.

.claude/commands-ja/build.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,23 @@
22
description: 分解済みタスクを自律実行モードで実装
33
---
44

5-
**コマンドコンテキスト**: このコマンドは実装フェーズ専用です
5+
@docs/guides/sub-agents.md を厳守し、**オーケストレーター**として振る舞います
66

7-
@docs/guides/sub-agents.md の自律実行モードに従い、**task-decomposer から実装完了まで**を実行します。
7+
作業計画書: $ARGUMENTS
88

9-
! ls -la docs/plans/*.md | head -10
9+
## 🧠 各タスクでメタ認知
10+
**必須サイクル**: `task-executor → quality-fixer → commit`
1011

11-
作業計画書の存在を確認し、承認状態を確認します。
12-
未承認の場合は承認取得を求めます。
12+
タスク開始前に必ず:
13+
1. **rule-advisor実行**: タスクの本質を理解
14+
2. **TodoWrite更新**: 進捗を構造化
15+
3. **構造化レスポンス処理**: `readyForQualityCheck: true` → quality-fixer即実行
1316

14-
**Think carefully** 各タスクの品質を維持しながら、要件変更の兆候やエラーパターンを注意深く監視し、適切な判断を行います
17+
**Think deeply** 構造化レスポンスを見落とさず、品質ゲートを確実に通過させます
1518

16-
承認済みの場合、自律実行モードを開始します。
19+
! ls -la docs/plans/*.md | head -10
1720

18-
**スコープ**: タスク分解から実装完了まで。要件変更検知時は即座に停止。
21+
承認確認後、自律実行モードを開始。要件変更検知時は即座に停止。
1922

2023
## 出力例
2124
実装フェーズが完了しました。

0 commit comments

Comments
 (0)