issues-start
Start working on an issue by updating its status, committing to main, creating a feature branch, and entering plan mode with the issue context.
Arguments
The argument is the issue ID, e.g. 0001 or 1. If the ID is not zero-padded, pad it to 4 digits (e.g. 1 becomes 0001).
Steps
- •Parse the argument as an issue ID. Zero-pad it to 4 digits.
- •Use the Glob tool to verify
.issues/{id}.tomlexists. - •If the file does not exist, inform the user and stop.
- •Read the issue file using the Read tool and display all fields to the user.
- •Verify the working tree is clean by running
git status --porcelainusing the Bash tool. If there is any output (dirty tree), list the uncommitted files and stop — tell the user to commit or stash first. - •Verify we are on the
mainbranch by runninggit branch --show-currentusing the Bash tool. If the current branch is notmain, inform the user and stop. - •Update the issue file: set
status = "in_progress"using the Edit tool. - •Run
git config user.emailusing the Bash tool to get the current user's email. - •Append a
[[comments]]entry to the end of the issue file using the Edit tool to log that work has started. Use the current date inYYYY-MM-DDformat. Format:
toml
[[comments]]
author = "{email}"
date = "{today}"
message = "Started work on this issue"
- •Stage the issue file: run
git add .issues/{id}.tomlusing the Bash tool. - •Commit with message:
"Start issue {id}: {title} [skip-ci]"using the Bash tool. - •Push to main: run
git pushusing the Bash tool. - •Invoke
/git-feature-start issue-{id}using the Skill tool to create thefeature/issue-{id}branch. - •Enter plan mode using
EnterPlanMode. In the plan context, include the issue's title, description, and all comments as the requirements to plan against.
Allowed tools
- •
Bash(git *)- for git status, git config, git add, git commit, git push - •
Read- for reading the issue file - •
Edit- for updating status and appending comments - •
Glob- for verifying the issue file exists - •
Skill(git-feature-start)- for creating the feature branch - •
EnterPlanMode- for entering plan mode with issue context