body method
Defines the actual body code. path is passed relative to lib, baseName is the filename, and className is the filename converted to Pascal case.
実際の本体コードを定義します。pathにlibからの相対パス、baseNameにファイル名が渡され、classNameにファイル名をパスカルケースに変換した値が渡されます。
Implementation
@override
String body(String path, String baseName, String className) {
return """
name: ❓ 質問・技術相談
description: コードの内容や技術的な質問がある際に使用してください
title: "[質問] "
labels: ["question", "discussion"]
body:
- type: markdown
attributes:
value: |
## 質問・技術相談
このテンプレートはコードの内容や技術的な質問がある際に使用してください。
詳細な情報を提供することで、適切な回答やサポートを受けることができます。
- type: textarea
id: detailed-question
attributes:
label: 質問内容
description: 質問の詳細な内容と背景を記載してください
placeholder: |
## 質問の背景
現在実装している機能の説明
## 具体的に知りたいこと
- 疑問点1
- 疑問点2
## 試したこと
- 試行錯誤した内容
- 参照したドキュメント
validations:
required: true
- type: textarea
id: additional-context
attributes:
label: 補足情報
description: その他の重要な情報があれば記載してください
placeholder: |
- 関連するIssueのリンク
- チーム内での議論内容
- 外部サービスとの連携要件
- セキュリティ要件
- type: textarea
id: instructions
attributes:
label: 作業実施の手順やルール
description: ClaudeCodeに依頼する作業実施の手順やルールを記載してください
value: |
@claude
上記の質問に対する回答を行ってください。
validations:
required: true
""";
}