Skip to content

Remove daf git check-auth command — replace with gh/glab skills #385

@itdove

Description

@itdove

Background

Investigation concluded that daf git check-auth is a thin wrapper around gh auth status with added troubleshooting guidance for fine-grained tokens. It has zero session integration.

The gh-cli skill already documents authentication checks and fine-grained token troubleshooting in detail.

Files to Remove

  • devflow/cli/commands/git_check_auth_command.py (122 lines)
  • Related test files if any

Files to Modify

  • devflow/cli/main.py — remove check-auth subcommand registration
  • devflow/cli/commands/git_commands.py — remove import if present
  • .claude/skills/daf-git/SKILL.md — remove daf git check-auth references
  • .claude/skills/gh-cli/SKILL.md — already has auth troubleshooting, verify completeness

Skill-Based Replacement

The gh-cli skill already documents:

gh auth status
gh auth login
daf git check-auth owner/repo  →  gh auth status + gh api /repos/owner/repo

Fine-grained token guidance is already in the gh-cli skill under "Fine-Grained Personal Access Tokens" section.

Note

The pre-flight auth check logic in devflow/github/auth.py (183 lines) is still used by GitHubClient internally and should NOT be removed — only the CLI command wrapper is removed.

Risk

Low — no session integration, no downstream dependencies.

  • git_check_auth_command.py removed
  • CLI registration removed from main.py
  • daf-git skill updated
  • auth.py internal module preserved
  • 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