-
Notifications
You must be signed in to change notification settings - Fork 2
Fix confusing instructions in ticket creation session prompts #351
Description
Problem
The session prompts for daf jira new and daf git new contain confusing instructions that tell the AI to create tickets using daf jira create or daf git create commands, but this creates ambiguity:
Current prompts say:
- "Create a detailed JIRA Story using the 'daf jira create' command"
- "Create a detailed GitHub/GitLab issue using the 'daf git create' command"
Why this is confusing:
- Users already ran
daf jira newordaf git newto start the session - The AI should use the SAME command type that the user used
- Mentioning both creates uncertainty about which to use
- The prompt should NOT suggest switching between JIRA and GitHub/GitLab
Files Affected
Based on grep search:
-
devflow/cli/commands/jira_new_command.py (line 878)
f"3. Create a detailed JIRA {issue_type} using the 'daf jira create' command", -
devflow/cli/commands/git_new_command.py (line 879)
f"3. Create a detailed GitHub/GitLab issue{' (' + issue_type + ')' if issue_type else ''} using the 'daf git create' command", -
devflow/cli/commands/investigate_command.py (lines 547, 554, 662, 670)
- Multiple mentions of "create issue tracker tickets using 'daf jira create' (for JIRA) or 'daf git create' (for GitHub/GitLab)"
- This is less critical since investigate sessions allow flexibility
Proposed Changes
For jira_new_command.py
Current (line 878):
3. Create a detailed JIRA {issue_type} using the 'daf jira create' command
Proposed:
3. Create a detailed JIRA {issue_type} using the 'daf jira create' command (same backend as this session)
OR simpler:
3. Create the JIRA {issue_type} using 'daf jira create'
For git_new_command.py
Current (line 879):
3. Create a detailed GitHub/GitLab issue using the 'daf git create' command
Proposed:
3. Create the GitHub/GitLab issue using 'daf git create' (same backend as this session)
For investigate_command.py
Keep as-is since investigation sessions intentionally allow flexibility to create tickets in any backend.
Acceptance Criteria
- jira_new_command.py prompt clarifies to use 'daf jira create' for consistency
- git_new_command.py prompt clarifies to use 'daf git create' for consistency
- Prompts don't create ambiguity about which command to use
- investigate_command.py references can remain (they're intentionally flexible)
- Documentation in daf-workflow skill is consistent
- Test ticket creation sessions to verify prompts are clear
Notes
Alternative approach: Remove mention of the command entirely:
3. Create a detailed JIRA {issue_type} based on your analysis
This assumes the AI knows to use the appropriate command, but might be less explicit.
Recommendation: Keep the command name but add "(same backend as this session)" to reinforce consistency.