本文へ移動
cccskills
無料GitHub で公開

gh-issue

Fetch GitHub issue, create branch, plan and implement with TDD, then open PR

インストール方法を見る

含まれるファイル(1)

  • SKILL.md2.8 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

GitHub Issue Workflow

Fetch a GitHub issue, create branch, implement following TDD, and open a PR.

Arguments

  • $ARGUMENTS - Issue number (e.g., 42 or #42)

Instructions

Phase 1: Setup

  1. Parse the issue number from $ARGUMENTS (strip # if present)

  2. Fetch issue details:

    gh issue view <number> --json title,body,labels,assignees,milestone,state
    
  3. Assign yourself if unassigned:

    gh issue edit <number> --add-assignee @me
    
  4. Add appropriate labels if the issue doesn't have them:

    • bug - Something isn't working
    • enhancement - New feature or request
    • documentation - Improvements or additions to documentation
  5. Create a branch from main:

    Determine prefix from labels:

    • bug → fix/
    • enhancement → feat/
    • documentation → docs/
    • Default → feat/

    Branch name: <prefix><issue-number>-<slug> (slug: lowercase title, spaces → -, max 50 chars)

    git checkout main && git pull
    git checkout -b <branch-name>
    

Phase 2: Plan

  1. Analyze the issue: requirements, labels, referenced issues, affected areas

  2. Explore the codebase for context:

    • Find related code in src/
    • Find related tests in tests/
    • Study existing patterns
  3. Create implementation plan:

    • Acceptance Criteria
    • Test Strategy (which tests to write first)
    • Files to Change
    • Implementation Order (smallest first step)
  4. Use EnterPlanMode if implementation is non-trivial

Phase 3: Implement

  1. Follow strict TDD workflow (see @.claude/rules/tdd-workflow.md):

    For each test:

    • RED - Write failing test, verify it fails for the RIGHT reason
    • GREEN - Minimal code to pass
    • REFACTOR - Improve while keeping tests green
  2. Run full test suite frequently:

    ./bashunit tests/
    ./bashunit --parallel tests/
    
  3. Quality checks after each refactor:

    make sa && make lint
    

Phase 4: Ship

  1. Final verification:

    ./bashunit tests/ && ./bashunit --parallel tests/ && make sa && make lint
    
  2. Commit using conventional commits with Closes #<issue-number>

  3. Create PR using the /pr skill:

    /pr #<issue-number>
    

Output Format

After fetching, present:

## Issue #<number>: <title>

**Labels:** <labels>
**State:** <state>
**Branch:** <branch-name>

### Description
<body content>

### Next Steps
1. Explore codebase for context
2. Create implementation plan
3. Begin TDD cycle

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Add new assertion function with comprehensive tests following TDD

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

Analyze test coverage and identify untested code paths

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

commit

無料

Stage and commit changes using conventional commits format

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

fix-test

無料

Debug and fix failing tests systematically

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

gh-issues

無料

Walk over all open GitHub issues that are unassigned or assigned to the current user, and process each one via the /gh-issue skill, sequentially.

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

pr

無料

Push branch and create a GitHub PR with concise, issue-linked description

日本語の概要は準備中です。原文の説明を表示しています。

TypedDevs/bashunit4342026年10月10日 更新

TypedDevs のスキルをすべて見る

このスキルの問題を報告する