From f62c821233508cb2d0a0030783fe4612927e4e66 Mon Sep 17 00:00:00 2001 From: itdove Date: Tue, 31 Mar 2026 12:31:35 -0400 Subject: [PATCH] refactor(prompts): remove explicit command instructions from creation prompts MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Remove redundant `daf git create` instruction from git issue creation prompts - Remove redundant `daf jira create` instruction from JIRA ticket creation prompts - Update tests to verify CRITICAL instruction presence instead of command examples 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- devflow/cli/commands/git_new_command.py | 4 ---- devflow/cli/commands/jira_new_command.py | 4 ---- tests/test_jira_new_command.py | 4 ++-- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/devflow/cli/commands/git_new_command.py b/devflow/cli/commands/git_new_command.py index b0c7867..ad68065 100644 --- a/devflow/cli/commands/git_new_command.py +++ b/devflow/cli/commands/git_new_command.py @@ -884,8 +884,6 @@ def _build_issue_creation_prompt( prompt_parts.extend([ "⚠️ CRITICAL: Read the daf-git skill to understand the correct command syntax for creating GitHub/GitLab issues.", "", - "Use the `daf git create` command to create your issue based on your analysis.", - "", "After you create the issue, the session will be automatically renamed to 'creation-'", "for easy identification. Users can reopen with: daf open creation-", "", @@ -1009,8 +1007,6 @@ def _build_multiproject_issue_creation_prompt( "", "⚠️ CRITICAL: Read the daf-git skill to understand the correct command syntax for creating GitHub/GitLab issues.", "", - "Use the `daf git create` command to create your issue based on your cross-project analysis.", - "", "After you create the issue, the session will be automatically renamed to 'creation-'", "for easy identification. Users can reopen with: daf open creation-", "", diff --git a/devflow/cli/commands/jira_new_command.py b/devflow/cli/commands/jira_new_command.py index c6ecec8..d798098 100644 --- a/devflow/cli/commands/jira_new_command.py +++ b/devflow/cli/commands/jira_new_command.py @@ -885,8 +885,6 @@ def _build_ticket_creation_prompt( prompt_parts.extend([ "⚠️ CRITICAL: Read the daf-jira skill to understand the correct command syntax for creating JIRA issues.", "", - "Use the `daf jira create` command to create your ticket based on your analysis.", - "", parent_note, ]) @@ -986,8 +984,6 @@ def _build_multiproject_ticket_creation_prompt( "", "⚠️ CRITICAL: Read the daf-jira skill to understand the correct command syntax for creating JIRA issues.", "", - "Use the `daf jira create` command to create your ticket based on your cross-project analysis.", - "", parent_note, ] diff --git a/tests/test_jira_new_command.py b/tests/test_jira_new_command.py index 94958cd..8fd9f37 100644 --- a/tests/test_jira_new_command.py +++ b/tests/test_jira_new_command.py @@ -774,9 +774,9 @@ def test_mock_mode_creates_claude_session(self, temp_daf_home): # Verify initial prompt contains ticket creation instructions initial_prompt = claude_session["messages"][0]["content"] assert "ANALYSIS-ONLY" in initial_prompt - # Verify the prompt instructs to read skill files instead of providing template + # Verify the prompt instructs to read skill files for command syntax assert "Read the daf-jira skill" in initial_prompt - assert "`daf jira create`" in initial_prompt + assert "CRITICAL" in initial_prompt # Verify CRITICAL instruction is present # Verify assistant response mentions ticket creation assistant_response = claude_session["messages"][1]["content"]