Skip to content

Comments

agent: add make-task-issue command and agent type support#10

Merged
p-iknow merged 3 commits intomainfrom
i7-agent/create-custom-claude-code-command-for-make-task-issue
Oct 19, 2025
Merged

agent: add make-task-issue command and agent type support#10
p-iknow merged 3 commits intomainfrom
i7-agent/create-custom-claude-code-command-for-make-task-issue

Conversation

@p-iknow
Copy link
Contributor

@p-iknow p-iknow commented Oct 19, 2025

Requirement

Resolves #7

Create a custom Claude Code command /make-task-issue to streamline GitHub issue creation with automatic template selection, issue type assignment, and project board integration. Also add support for the 'agent' commit type across all custom commands to properly categorize agent-related changes.

Implementation

New /make-task-issue Command

  • Created .claude/commands/make-task-issue.md with comprehensive workflow
  • Supports 9 issue templates: feat, fix, doc, config, refactor, agent, bug, test, perf
  • Automatically sets GitHub issue type to "Task" using correct API field (type not issue_type)
  • Uses efficient GraphQL query (repository.projectsV2) to find repository-linked projects
  • Automatically adds issues to repository's GitHub Project
  • Includes argument parsing for template type and issue title
  • Provides interactive mode when arguments are not supplied
  • Comprehensive error handling and user feedback

Agent Type Support

  • Added 'agent' type to make-branch.md type prefix list
  • Added 'agent' type to make-commit.md type prefix list
  • Added 'agent' type to make-pr.md type prefix list

Test

Successfully tested by creating issue #9 for Conventional Commits documentation:

  • Command correctly parsed template type (doc) and issue title
  • Issue created with proper label and type set to "Task"
  • Issue automatically added to oss-kit-project GitHub Project
  • All workflow steps executed successfully

Reference

Human Check

🤖 Generated with Claude Code

  • I reviewed it

이영창(piknow) and others added 3 commits October 12, 2025 17:09
Requirement:
Create a custom Claude Code slash command that simplifies GitHub issue creation by utilizing existing templates, automatically setting issue type to "Task", and assigning issues to the repository's linked GitHub Project.

Implementation:
- Created .claude/commands/make-task-issue.md with comprehensive workflow
- Supports all 9 issue templates (feat, fix, doc, config, refactor, agent, bug, test, perf)
- Flexible usage: with arguments or interactive mode
- Automatic issue type setting to "Task" via GitHub API
- Automatic GitHub Project assignment using gh project item-add
- Template-based label application (e.g., feat template applies "feat" label)
- Auto-assignment to creator via existing auto-assign workflow
- Comprehensive error handling for invalid templates, missing CLI, and failed operations
- Graceful degradation when issue types or projects are not available

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Requirement:
Support 'agent' commit type across all custom commands to properly categorize
agent-related changes such as rules, commands, and automation updates.

Implementation:
- Added 'agent' type to make-branch type prefix list
- Added 'agent' type to make-commit type prefix list
- Added 'agent' type to make-pr type prefix list

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
… usage

Requirement:
Improve make-task-issue command to use efficient project lookup and correct GitHub API
field names for issue type assignment.

Implementation:
- Updated to use GraphQL repository.projectsV2 query for efficient project lookup
- Changed from listing all org projects to querying only repository-linked projects
- Fixed issue type API field from 'issue_type' to 'type' with capitalized values
- Added GraphQL query example and implementation notes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions github-actions bot added the agent Agent rules and commands label Oct 19, 2025
@p-iknow p-iknow marked this pull request as ready for review October 19, 2025 08:57
@p-iknow p-iknow requested a review from Copilot October 19, 2025 08:57
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a new /make-task-issue command for streamlined GitHub issue creation with automatic template selection, issue type assignment, and project board integration. It also adds support for the 'agent' commit type across all custom commands to properly categorize agent-related changes.

  • Adds /make-task-issue command with support for 9 issue templates and automatic GitHub Project integration
  • Adds 'agent' type to branch naming, commit, and PR title conventions
  • Implements GraphQL-based project discovery for efficient repository-linked project queries

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.claude/commands/make-task-issue.md New command definition with workflow for creating GitHub issues with template selection, type assignment, and project integration
.claude/commands/make-pr.md Added 'agent' type to PR title prefix conventions
.claude/commands/make-commit.md Added 'agent' type to commit type conventions
.claude/commands/make-branch.md Added 'agent' type to branch naming conventions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@p-iknow p-iknow merged commit 2f9667a into main Oct 19, 2025
3 checks passed
@p-iknow p-iknow deleted the i7-agent/create-custom-claude-code-command-for-make-task-issue branch October 19, 2025 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent Agent rules and commands

Projects

None yet

Development

Successfully merging this pull request may close these issues.

agent: create custom Claude Code command for make-task-issue

1 participant