You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .claude/commands/speckit.clarify.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
description: Identify underspecified areas in the current feature spec by asking up to 5 highly targeted clarification questions and encoding answers back into the spec.
3
-
handoffs:
3
+
handoffs:
4
4
- label: Build Technical Plan
5
5
agent: speckit.plan
6
6
prompt: Create a plan for the spec. I am building with...
# Function to generate branch name with stop word filtering and length filtering
188
188
generate_branch_name() {
189
189
local description="$1"
190
-
190
+
191
191
# Common stop words to filter out
192
192
local stop_words="^(i|a|an|the|to|for|of|in|on|at|by|with|from|is|are|was|were|be|been|being|have|has|had|do|does|did|will|would|should|could|can|may|might|must|shall|this|that|these|those|my|your|our|their|want|need|add|get|set)$"
193
-
193
+
194
194
# Convert to lowercase and split into words
195
195
local clean_name=$(echo "$description"| tr '[:upper:]''[:lower:]'| sed 's/[^a-z0-9]/ /g')
196
-
196
+
197
197
# Filter words: remove stop words and words shorter than 3 chars (unless they're uppercase acronyms in original)
198
198
local meaningful_words=()
199
199
forwordin$clean_name;do
200
200
# Skip empty words
201
201
[ -z"$word" ] &&continue
202
-
202
+
203
203
# Keep words that are NOT stop words AND (length >= 3 OR are potential acronyms)
204
204
if!echo"$word"| grep -qiE "$stop_words";then
205
205
if [ ${#word}-ge 3 ];then
@@ -210,12 +210,12 @@ generate_branch_name() {
210
210
fi
211
211
fi
212
212
done
213
-
213
+
214
214
# If we have meaningful words, use first 3-4 of them
215
215
if [ ${#meaningful_words[@]}-gt 0 ];then
216
216
local max_words=3
217
217
if [ ${#meaningful_words[@]}-eq 4 ];then max_words=4;fi
218
-
218
+
219
219
local result=""
220
220
local count=0
221
221
forwordin"${meaningful_words[@]}";do
@@ -264,15 +264,15 @@ if [ ${#BRANCH_NAME} -gt $MAX_BRANCH_LENGTH ]; then
0 commit comments