Skip to content

Remove daf git view command — replace with gh/glab skills #387

@itdove

Description

@itdove

Background

Investigation concluded that daf git view (225 lines) has minimal session integration — its only session link is auto-detecting the issue key when called with no arguments (reads CS_SESSION_NAME env var, looks up session, gets issue_key).

After that, it is purely a client.get_ticket() call + Claude-friendly formatting. The gh issue view and glab issue view commands already produce readable output.

Session integration analysis

The auto-detect flow (lines 122-156):

current_session_id = capture.get_current_session_id()  # from CS_SESSION_NAME
session = next(s for s in sessions if s.session_id == current_session_id)
issue_key = session.issue_key

This convenience can be replaced by:

  • Claude already knows the issue key from the session prompt/goal
  • daf status shows the current session's issue key
  • The daf-git skill can guide Claude to extract it

Files to Remove

  • devflow/cli/commands/git_view_command.py (225 lines)
  • tests/test_git_view_command.py

Files to Modify

  • devflow/cli/main.py — remove view subcommand from git group
  • devflow/cli/commands/git_commands.py — remove import
  • .claude/skills/daf-git/SKILL.md — replace daf git view section with gh issue view / glab issue view guidance
  • Update any prompts in git_new_command.py or git_open_command.py that reference daf git view

Skill-Based Replacement

# GitHub
gh issue view 123
gh issue view 123 --comments

# GitLab
glab issue view 123
glab issue view 123 --comments

Risk

Low — minimal session integration, skills already document replacements.

  • git_view_command.py removed
  • Test file removed
  • CLI registration removed from main.py
  • daf-git skill updated with gh/glab view guidance
  • References in other commands updated
  • 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