Files
2025-11-30 08:41:46 +08:00

67 lines
2.2 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 実装計画の作成
このコマンドは、実装計画をチェックリスト形式で作成し、ファイルに保存します。
## 手順
1. **ファイル名の決定**:
- `$ARGUMENTS` が指定されている場合: そのファイル名を使用
- `$ARGUMENTS` がない場合: 会話内容から実装内容を分析し、適切な英名を生成
- 例: "ユーザー認証機能" → `user-authentication-plan.md`
- 例: "決済機能の実装" → `payment-feature-plan.md`
- 例: "APIエンドポイント追加" → `api-endpoints-plan.md`
2. **会話内容から実装計画を抽出**:
- 実装の目的・概要
- 必要な作業項目(機能実装、テスト、ドキュメント作成など)
- 各項目の依存関係や順序
3. **チェックリスト形式で整形**:
```markdown
# [実装の名前]
## 概要
[実装の目的と概要を簡潔に記述]
## 実装計画
- [ ] 作業項目1
- [ ] 作業項目2
- [ ] 作業項目3
## 備考
[追加の注意事項や参考情報]
```
4. **ファイルに書き込み**:
- `.ai-agent/plans/` ディレクトリが存在しない場合は作成(`mkdir -p .ai-agent/plans`
- 指定されたファイル名(または自動生成されたファイル名)で `.ai-agent/plans/` 以下に保存
- 保存先: `.ai-agent/plans/<ファイル名>`
5. **保存完了を報告**:
- 保存したファイル名
- チェックリストの項目数
- 実装計画の概要
## 引数
`$ARGUMENTS` (オプション) - ファイル名(例: `user-registration-plan.md`
## 使用例
```bash
# ファイル名を指定して作成
/create-plan authentication-feature-plan.md
# → .ai-agent/plans/authentication-feature-plan.md に保存
# ファイル名を省略(自動生成)
/create-plan
# 例: .ai-agent/plans/user-authentication-plan.md が生成される
```
## 注意事項
- 既存のファイルが存在する場合は、上書き前に確認します
- ファイル名は英数字とハイフンを使用することを推奨します
- このコマンドは新規作成用です。既存の計画を更新する場合は `/update-plan` を使用してください