feat: add dedicated Claude Code templates with AskUserQuestion tool

Create claude-specific template set (agent, task, tool, workflow,
workflow-yaml) that explicitly references the `AskUserQuestion` tool,
matching how gemini/kiro/opencode each have their own templates with
IDE-specific tool names.

- Change Claude Code template_type from "default" to "claude" in
  platform-codes.yaml
- Replace symlinks with real template files
- Create new claude-task.md and claude-tool.md
- default-* templates remain as generic fallbacks for cursor, auggie,
  and other IDEs using numbered-list wording
- Fix default-tool.md RULE placement (move before execution instructions)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
sidtheone 2026-02-28 12:36:54 +01:00
parent dc6c1a1b45
commit 85e81389ee
7 changed files with 68 additions and 6 deletions

View File

@ -39,7 +39,7 @@ platforms:
description: "Anthropic's official CLI for Claude" description: "Anthropic's official CLI for Claude"
installer: installer:
target_dir: .claude/commands target_dir: .claude/commands
template_type: default template_type: claude
ancestor_conflict_check: true ancestor_conflict_check: true
cline: cline:

View File

@ -1 +0,0 @@
default-agent.md

View File

@ -0,0 +1,17 @@
---
name: '{{name}}'
description: '{{description}}'
---
You must fully embody this agent's persona and follow all activation instructions exactly as specified. NEVER break character until given an exit command.
RULE: When interaction_style is "structured", EVERY question to the user MUST call the `AskUserQuestion` tool unless the workflow or user explicitly requests free-form input.
<agent-activation CRITICAL="TRUE">
1. LOAD the FULL agent file from {project-root}/{{bmadFolderName}}/{{path}}
2. READ its entire contents - this contains the complete agent persona, menu, and instructions
3. FOLLOW every step in the <activation> section precisely
4. DISPLAY the welcome/greeting as instructed
5. PRESENT the numbered menu
6. WAIT for user input before proceeding
</agent-activation>

View File

@ -0,0 +1,12 @@
---
name: '{{name}}'
description: '{{description}}'
---
# {{name}}
RULE: When interaction_style is "structured", EVERY question to the user MUST call the `AskUserQuestion` tool unless the workflow or user explicitly requests free-form input.
Read the entire task file at: {project-root}/{{bmadFolderName}}/{{path}}
Follow all instructions in the task file exactly as written.

View File

@ -0,0 +1,12 @@
---
name: '{{name}}'
description: '{{description}}'
---
# {{name}}
RULE: When interaction_style is "structured", EVERY question to the user MUST call the `AskUserQuestion` tool unless the workflow or user explicitly requests free-form input.
Read the entire tool file at: {project-root}/{{bmadFolderName}}/{{path}}
Follow all instructions in the tool file exactly as written.

View File

@ -1 +0,0 @@
default-workflow-yaml.md

View File

@ -0,0 +1,16 @@
---
name: '{{name}}'
description: '{{description}}'
---
RULE: When interaction_style is "structured", EVERY question to the user MUST call the `AskUserQuestion` tool unless the workflow or user explicitly requests free-form input.
IT IS CRITICAL THAT YOU FOLLOW THESE STEPS - while staying in character as the current agent persona you may have loaded:
<steps CRITICAL="TRUE">
1. Always LOAD the FULL @{project-root}/{{bmadFolderName}}/core/tasks/workflow.xml
2. READ its entire contents - this is the CORE OS for EXECUTING the specific workflow-config @{project-root}/{{bmadFolderName}}/{{path}}
3. Pass the yaml path @{project-root}/{{bmadFolderName}}/{{path}} as 'workflow-config' parameter to the workflow.xml instructions
4. Follow workflow.xml instructions EXACTLY as written to process and follow the specific workflow config and its instructions
5. Save outputs after EACH section when generating any documents from templates
</steps>

View File

@ -1 +0,0 @@
default-workflow.md

View File

@ -0,0 +1,8 @@
---
name: '{{name}}'
description: '{{description}}'
---
RULE: When interaction_style is "structured", EVERY question to the user MUST call the `AskUserQuestion` tool unless the workflow or user explicitly requests free-form input.
IT IS CRITICAL THAT YOU FOLLOW THIS COMMAND: LOAD the FULL @{project-root}/{{bmadFolderName}}/{{path}}, READ its entire contents and follow its directions exactly!

View File

@ -5,8 +5,8 @@ description: '{{description}}'
# {{name}} # {{name}}
RULE: When interaction_style is "structured", questions to the user MUST use structured options with a numbered list unless the workflow or user explicitly requests free-form input.
Read the entire tool file at: {project-root}/{{bmadFolderName}}/{{path}} Read the entire tool file at: {project-root}/{{bmadFolderName}}/{{path}}
Follow all instructions in the tool file exactly as written. Follow all instructions in the tool file exactly as written.
RULE: When interaction_style is "structured", questions to the user MUST use structured options with a numbered list unless the workflow or user explicitly requests free-form input.