Skip to content

Commit cfa5812

Browse files
authored
Merge pull request #19 from shinpr/feat/enhance-pre-implementation-planning
feat: enhance pre-implementation planning with self-reflection questions
2 parents 1f4e8b5 + 60a71a6 commit cfa5812

7 files changed

Lines changed: 51 additions & 5 deletions

File tree

.claude/command-en/task.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: Execute tasks following appropriate rules
3+
---
4+
5+
Task: $ARGUMENTS
6+
7+
Before execution, clarify the following:
8+
9+
1. **Applicable Rules**: Which development rules apply to this task?
10+
2. **Initial Action**: Based on the rules, what should be the first step?
11+
3. **Prohibitions**: What should be avoided in this task?
12+
13+
Proceed with the task after making the above explicit.

.claude/command-ja/task.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
description: タスクを適切なルールに従って実行
3+
---
4+
5+
タスク: $ARGUMENTS
6+
7+
実行前に、以下を明確にしてください:
8+
9+
1. **適用ルール**: このタスクに該当する開発ルールは?
10+
2. **初動**: ルールに基づく最初のアクションは?
11+
3. **禁止事項**: このタスクで避けるべきことは?
12+
13+
上記を明示してから作業を開始します。

CLAUDE.en.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@ Once the user approves implementation, the following activities can be performed
2828

2929
### 📋 Mandatory Pre-Implementation Flow
3030
1. **Report Investigation Results**: "XX is the cause, and there is a problem with YY"
31-
2. **Present Implementation Plan**: "I will now fix XX. Specifically..."
31+
2. **Present Implementation Plan**: When formulating a plan, ask yourself the following questions and reflect them in the plan before presenting:
32+
- What is the essence of this task, and which rules should guide the approach?
33+
- According to the rules, what should be tackled first?
34+
- Based on past experience, what failures commonly occur with this type of task?
3235
3. **Wait for Explicit User Approval**: Approval such as "OK", "proceed", "go ahead"
3336
4. **Start Implementation After Approval**: Use Edit/Write and other tools
3437

CLAUDE.ja.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828

2929
### 📋 実装前の必須フロー
3030
1. **調査結果を報告**:「〇〇が原因で、△△に問題があることがわかりました」
31-
2. **実装計画を提示**:「これから〇〇を修正します。具体的には...」
31+
2. **実装計画を提示**:計画立案時に以下を自問し、計画に反映し、提示すること
32+
- このタスクの本質は何か、どのルールに従って進めるべきか
33+
- ルールに基づくと、最初に着手すべきは何か
34+
- 過去の経験から、このタスクで起こりがちな失敗は何か
3235
3. **ユーザーの明示的な承認を待つ**:「いいよ」「進めて」「OK」などの承認
3336
4. **承認後に実装開始**:Edit/Write等のツールを使用
3437

README.ja.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ npm run cleanup:processes # テストプロセスクリーンアップ
170170

171171
## 🎯 Claude Code カスタムスラッシュコマンド
172172

173-
このボイラープレートには、Claude Codeでの開発を効率化する5つのカスタムスラッシュコマンドが含まれています
173+
このボイラープレートには、Claude Codeでの開発を効率化する6つのカスタムスラッシュコマンドが含まれています
174174

175175
### `/onboard`
176176
プロジェクトのルールファイルを読み込み、開発規約を徹底します。
@@ -206,6 +206,13 @@ npm run cleanup:processes # テストプロセスクリーンアップ
206206
- 要件変更や重大エラーの検知と適切な対応
207207
- 実装完了後のサマリーとカバレッジ報告
208208

209+
### `/task`
210+
タスクを適切なルールに従って実行します。
211+
- 実行前に適用すべき開発ルールを明確化
212+
- ルールに基づく初動アクションの決定
213+
- タスクで避けるべき禁止事項の確認
214+
- メタ認知を促進し、実装エラーを事前に防止
215+
209216
これらのコマンドは `.claude/commands/` に配置されており、プロジェクト内でのみ使用可能です。
210217

211218
## 🤖 Claude Code専用ワークフロー

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ npm run cleanup:processes # Cleanup test processes
169169

170170
## 🎯 Claude Code Custom Slash Commands
171171

172-
This boilerplate includes 5 custom slash commands to streamline development with Claude Code:
172+
This boilerplate includes 6 custom slash commands to streamline development with Claude Code:
173173

174174
### `/onboard`
175175
Loads project rule files and enforces development conventions.
@@ -205,6 +205,13 @@ Implements decomposed tasks in autonomous execution mode.
205205
- Detect requirement changes or critical errors with appropriate responses
206206
- Post-implementation summary and coverage reporting
207207

208+
### `/task`
209+
Executes tasks following appropriate rules.
210+
- Clarify applicable development rules before execution
211+
- Determine initial actions based on rules
212+
- Identify prohibitions to avoid in the task
213+
- Promote metacognition and prevent implementation errors proactively
214+
208215
These commands are located in `.claude/commands/` and are only available within the project.
209216

210217
## 🤖 Claude Code Specialized Workflow

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-coding-project-boilerplate",
3-
"version": "1.3.0",
3+
"version": "1.3.1",
44
"description": "TypeScript project boilerplate optimized for Claude Code development with comprehensive development rules, architecture patterns, and quality assurance tools",
55
"main": "dist/index.js",
66
"keywords": [

0 commit comments

Comments
 (0)