-
Notifications
You must be signed in to change notification settings - Fork 2
Analysis session prompt includes command template that bypasses skill file learning #344
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
When creating an analysis-only session via daf git new or daf jira new, the initial prompt includes a command template like:
⚠️ CRITICAL: Use EXACTLY this command format (do not modify syntax):
daf git create \
bug \
--summary "..." \
--description "<your analysis here>" \
--acceptance-criteria "..."
This template is counterproductive because:
- Bypasses skill file reading - AI agents copy the template instead of reading daf-git/daf-jira skill files
- Can become outdated - Template may not match actual tool implementation
- Undermines the requirement - Prompt says "READ ALL skill files" but then provides a shortcut
- Creates confusion - When template differs from skill documentation, which is correct?
- Prevents learning - AI doesn't understand tool nuances, options, or correct syntax
Example of the Problem
Observed behavior:
- AI agent copied the template verbatim without reading daf-git skill
- Used single
--acceptance-criteriaflag with multi-line content - Didn't notice skill file shows multiple
--acceptance-criteriaflags
Root cause:
- Template creates cognitive shortcut
- "Use EXACTLY this format" discourages reading documentation
- AI follows path of least resistance
Expected Behavior
The analysis session prompt should:
- Require reading skill files without providing shortcuts
- Trust that skill files contain sufficient documentation
- Let the tool's actual help/examples be the source of truth
Suggested Fix
Replace the template with a simple instruction:
⚠️ CRITICAL: Read the daf-git skill (or daf-jira skill) to understand
the correct command syntax for creating issues.
Use the `daf git create` command to create your bug/story/task based
on your analysis.
This forces the AI to:
- Actually read and understand the skill files
- Learn correct syntax from source of truth
- Notice nuances and important details
- Make informed decisions about command usage
Files Affected
Analysis session prompt generation in:
daf git newcommand (creates GitHub/GitLab analysis sessions)daf jira newcommand (creates JIRA analysis sessions)
Likely in:
devflow/cli/commands/git_new_command.pydevflow/cli/commands/jira_new_command.py
Impact
Benefits of removing template:
- AI agents learn tools properly instead of copying templates
- Reduces risk of outdated documentation
- Skill files remain single source of truth
- Better understanding leads to better tool usage
Minimal risk:
- Skill files already have comprehensive examples
- AI agents are instructed to read skills anyway
- Removing redundancy improves clarity
- Template removed from git new command prompt
- Template removed from jira new command prompt
- Prompt only instructs to read skill files
- Skill files verified to have sufficient examples
- All existing tests pass after change
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working