itdove/devaiflow#344: Analysis session prompt includes command template that bypasses skill file learning#345
Conversation
Remove command templates from daf jira new and daf git new prompts that were bypassing skill file learning. Templates created cognitive shortcuts that discouraged AI agents from reading comprehensive skill documentation, leading to improper command usage. Changes: - Replaced explicit command templates with instructions to read skill files - Updated both single-project and multi-project prompt builders - Modified test to verify new instruction format - Verified skill files contain sufficient examples (they do) Benefits: - AI agents learn tools properly from authoritative skill documentation - Skill files remain single source of truth - No risk of templates becoming outdated - Better understanding of command nuances and options Fixes #344 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR does not need a corresponding Jira item.
Description
This PR fixes an issue where command templates in analysis session prompts were bypassing skill file learning. The command templates have been removed from the analysis session prompts in both
git_new_command.pyandjira_new_command.pyto ensure proper skill file learning occurs.The changes ensure that when users initiate analysis sessions through the devflow CLI, the system properly leverages skill file learning instead of relying on hardcoded command templates in the prompts.
Assisted-by: Claude
Testing
Steps to test
pytest tests/test_jira_new_command.pydevflow jira newcommand to create a new JIRA-based sessiondevflow git newcommand to create a new git-based sessionScenarios tested
Deployment considerations