Skip to content

fix: Claude doesn't auto-detect repo owner, use issue templates, or assign issues #20

Description

@sagarsrc

Problem

When creating issues, Claude Code has multiple problems:

  1. Defaults to wrong owner - Uses "anthropics" instead of checking git remote -v
  2. Doesn't use github://issue-templates MCP resource - Even though it exists
  3. Doesn't use template parameter - Even when templates exist
  4. Overrides template body - Even after reading the template, Claude provided custom body that overrode it
  5. Doesn't assign issues - Forgot to assign to the user
  6. Closed issue unnecessarily - Closed #19 instead of just updating it
  7. Created as feature_request instead of bug - These are real problems, not feature requests

Trace 1 - Wrong owner:

❯ create a bug issue please in this repo for this -d dont mention sniffly as of now

⏺ manage_issues (MCP)(action: "create", owner: "anthropics", repo: "quickcall-supertrace", ...)
  ⎿  Error: Failed to create issue(s): 404 {"message": "Not Found", ...}

User had to manually correct:

! git remote -v
  ⎿  origin     https://github.com/quickcall-dev/quickcall-supertrace (fetch)

❯ this is my repo

Trace 2 - Overriding template after reading it:

❯ create issue for listing comments in an issue...

⏺ Read(.github/ISSUE_TEMPLATE/feature_request.yml)
  ⎿  Read 17 lines

⏺ manage_issues(action: "create", template: "feature_request", body: "## Problem\n\nWhen creating issues...")
  # Body parameter overrode the template!

Trace 3 - Not assigning to user:

❯ create an issue for this...

⏺ manage_issues(action: "create", title: "...", owner: "quickcall-dev", repo: "quickcall-integrations")
  # No assignees parameter provided!

❯ also why did you not assign it to me?

Proposed Solution

  1. Add instructions to SKILL.md for issue creation:

    • Always check git remote -v to detect owner/repo
    • Always read github://issue-templates before creating issues
    • Use template parameter and DO NOT provide custom body when using templates
    • Always assign to requesting user
    • Use appropriate template (bug vs feature)
  2. Auto-detect owner/repo in MCP tool:

    • If owner/repo not provided, infer from git remote in cwd

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions