Background
Investigation concluded that daf git create (444 lines) can be replaced by gh issue create / glab issue create combined with the enhanced daf link command (#383).
Session integration analysis
daf git create's session integration is conditional — it only triggers inside ticket_creation sessions (created by daf git new):
- Reads
CS_SESSION_NAME env var to find current session
- Renames session from
my-goal-abc123 to creation-owner-repo-456
- Sets
issue_key, issue_tracker, issue_metadata on session
When called standalone (from terminal), this session integration is skipped entirely.
Replacement flow
After #383 enhances daf link:
Inside ticket_creation session (daf git new):
# Claude creates issue with native CLI:
gh issue create --title "Add caching" --body "..." --label enhancement
# Returns: #456
# Claude links and renames session:
daf link my-session --jira "#456" --rename-prefix creation
Standalone usage:
gh issue create --title "Fix bug" --body "..." --label bug
Depends On
Files to Remove
devflow/cli/commands/git_create_command.py (444 lines)
tests/test_git_create_command.py
tests/test_git_create_session_rename.py
Files to Modify
devflow/cli/main.py — remove create subcommand from git group
devflow/cli/commands/git_commands.py — remove import
devflow/cli/commands/git_new_command.py — update _build_issue_creation_prompt() to instruct Claude to use gh issue create + daf link instead of daf git create
.claude/skills/daf-git/SKILL.md — replace daf git create section with gh issue create / glab issue create guidance
Issue type validation
daf git create validates issue types against config.github.issue_types. This validation should move to the daf-git skill as guidance for Claude, or into the daf link command.
Acceptance Criteria
Background
Investigation concluded that
daf git create(444 lines) can be replaced bygh issue create/glab issue createcombined with the enhanceddaf linkcommand (#383).Session integration analysis
daf git create's session integration is conditional — it only triggers insideticket_creationsessions (created bydaf git new):CS_SESSION_NAMEenv var to find current sessionmy-goal-abc123tocreation-owner-repo-456issue_key,issue_tracker,issue_metadataon sessionWhen called standalone (from terminal), this session integration is skipped entirely.
Replacement flow
After #383 enhances
daf link:Inside ticket_creation session (daf git new):
Standalone usage:
Depends On
daf linkto support session rename and in-agent usageFiles to Remove
devflow/cli/commands/git_create_command.py(444 lines)tests/test_git_create_command.pytests/test_git_create_session_rename.pyFiles to Modify
devflow/cli/main.py— removecreatesubcommand from git groupdevflow/cli/commands/git_commands.py— remove importdevflow/cli/commands/git_new_command.py— update_build_issue_creation_prompt()to instruct Claude to usegh issue create+daf linkinstead ofdaf git create.claude/skills/daf-git/SKILL.md— replacedaf git createsection withgh issue create/glab issue createguidanceIssue type validation
daf git createvalidates issue types againstconfig.github.issue_types. This validation should move to thedaf-gitskill as guidance for Claude, or into thedaf linkcommand.Acceptance Criteria