Skip to content

Remove daf git create command — replace with gh/glab + daf link #386

@itdove

Description

@itdove

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

  • git_create_command.py removed
  • Test files removed
  • CLI registration removed from main.py
  • daf git new prompt updated to use gh/glab + daf link
  • daf-git skill updated with gh/glab create guidance
  • End-to-end ticket creation workflow verified
  • All existing tests pass

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions