Read a GitHub issue, create an appropriate feature or bugfix branch, and set up working context
Automates the workflow of starting work on a GitHub issue by reading the issue details, creating an appropriate branch, and providing working context.
/start-issue <issue-number>
When invoked with an issue number, execute the following steps:
First, identify the current repository from git remote:
git remote -v | grep origin | head -n 1
Parse the owner and repo from the output (e.g., https://github.com/owner/repo.git or [email protected]:owner/repo.git).
Use the GitHub MCP tool to read the full issue details:
Analyze the issue labels to determine branch type:
bug, bugfix, fix, or similar → create bugfix/ branchfeature, enhancement, improvement, or similar → create feature/ branchGenerate a branch name from the issue:
{type}/{issue-number}-{slug}{slug} is a kebab-case version of the issue title (lowercase, spaces to dashes, max 50 chars)feature/42-add-user-authentication or bugfix/123-fix-login-errorCreate the new branch from the current main/master/develop branch (check which is the default):
git checkout -b {branch-name}
Present a clear summary of the issue to work on:
# Issue #{number}: {title}
**Type**: {feature/bugfix}
**Branch**: {branch-name}
**Labels**: {labels}
**Assignee**: {assignee or "Unassigned"}
## Description
{issue body}
## Checklist
- [ ] Read and understand the issue
- [ ] Implement the changes
- [ ] Write/update tests
- [ ] Update documentation if needed (verify docs/ builds)
- [ ] Run documentation build verification
- [ ] Create pull request
---
Ready to start working on this issue!
Confirm that:
After setting up the branch, check if documentation updates are needed:
# Check current documentation state
ls -la docs/
# Verify documentation builds successfully
cd docs && make clean && make html
If the issue involves:
.rst files in docs/docs/configuration/Display a reminder:
📚 Documentation Check:
- [ ] Review if docs/ needs updates for this issue
- [ ] Run: cd docs && make html (to verify docs build)
- [ ] Check: docs/_build/html/index.html (to preview changes)
Relevant documentation areas:
- User guide: docs/user/
- Developer guide: docs/developer/
- API reference: docs/api/
$ /start-issue 42
Reading issue #42 from github/repo...
# Issue #42: Add user authentication system
**Type**: Feature
**Branch**: feature/42-add-user-authentication
**Labels**: enhancement, user-experience
**Assignee**: @username
## Description
We need to implement a user authentication system with the following features:
- Login/logout functionality
- Password reset
- OAuth integration
Created branch: feature/42-add-user-authentication
Ready to start working!
$ /start-issue 123
Reading issue #123 from github/repo...
# Issue #123: Login button throws 500 error
**Type**: Bugfix
**Branch**: bugfix/123-login-button-throws-500-error
**Labels**: bug, critical, backend
**Assignee**: Unassigned
## Description
When clicking the login button on the home page, the application returns a 500 error...
Created branch: bugfix/123-login-button-throws-500-error
Ready to start working!
When implementing this workflow:
cd docs && make html