Skip to content

Commit f5a746f

Browse files
Nick Sullivanclaude
andcommitted
✨ Add AskUserQuestion guidance to ai-coding-config command
Encourage using AskUserQuestion tool for discrete choices that save user time: - Selecting personalities - Handling file conflicts (overwrite/skip/diff) - Choosing update strategy (all/none/individual) Added "Interaction Guidelines" section explaining when to use the tool - only when it genuinely speeds up the interaction while still allowing free-form text via "Other" option. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 1a86717 commit f5a746f

File tree

1 file changed

+15
-5
lines changed

1 file changed

+15
-5
lines changed

.claude/commands/ai-coding-config.md

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,13 @@ personalities, and GitHub workflows.
1515
- `/ai-coding-config update` - Update existing configs to latest versions
1616
- `/ai-coding-config add` - Add new command/skill/agent/plugin to the repo
1717

18+
## Interaction Guidelines
19+
20+
Use AskUserQuestion when presenting discrete choices that save the user time (e.g.,
21+
selecting a personality, choosing update strategy, handling file conflicts). This lets
22+
users quickly click options while still allowing free-form text via "Other". Only use
23+
when it genuinely speeds up the interaction.
24+
1825
---
1926

2027
## Setup Mode (no arguments)
@@ -54,7 +61,8 @@ users understand their choices, not just list files.
5461
**Rules** - `.cursor/rules/` subdirectories and files
5562

5663
**Personalities** - One personality or none. Common-personality is always included as
57-
baseline. Read `~/.ai_coding_config/.cursor/rules/personalities/` for options.
64+
baseline. Read `~/.ai_coding_config/.cursor/rules/personalities/` for options. Use
65+
AskUserQuestion to present available personalities as quick-select options.
5866

5967
**Agents** - Specialized AI assistants for specific tasks. Default to all agents -
6068
they're useful for most projects and take minimal space. Read
@@ -73,8 +81,9 @@ default.
7381
### Install Selected Configurations
7482

7583
Use `cp` for efficiency. Before copying each file, check if it exists. If it does, use
76-
`diff` to compare. If identical, skip it. If different, show what changed and ask what
77-
to do. Don't silently overwrite. When in doubt, ask.
84+
`diff` to compare. If identical, skip it. If different, show what changed and use
85+
AskUserQuestion to offer quick choices (overwrite, skip, show diff, or custom action).
86+
Don't silently overwrite. When in doubt, ask.
7887

7988
Copy to these locations:
8089

@@ -138,8 +147,9 @@ comments) or significant.
138147
List files that exist in repo but not in project. List files in project that aren't in
139148
repo (possible local customizations).
140149

141-
Explain what changed and why they might want to update. Let the user choose - "all",
142-
"none", or pick individually. Be careful with customized files.
150+
Explain what changed and why they might want to update. Use AskUserQuestion to let the
151+
user quickly choose: "Update all", "Update none", "Pick individually", or type custom
152+
instructions. Be careful with customized files.
143153

144154
Copy selected files using `cp`. Don't silently overwrite. Re-verify and highlight what
145155
changed.

0 commit comments

Comments
 (0)