You are helping the user start work on a GitHub issue.
Starts work on a GitHub issue by creating an isolated worktree or branch and generating an implementation plan.
/plugin marketplace add pietgk/vivief/plugin install devac@viviefYou are helping the user start work on a GitHub issue.
/devac:start-issue <issue-id> [quick]
<issue-id>: Issue number (e.g., 42) or full ID (e.g., ghvivief-42)quick (optional): Work in current directory with a branch instead of creating a worktreeFIRST: Check if quick argument was provided.
| Argument | Mode | Action |
|---|---|---|
No quick | Worktree Mode (DEFAULT) | Run devac-worktree start <issue-id> |
quick present | Quick Mode | Create branch with git checkout -b |
IMPORTANT: Without the quick argument, you MUST use devac-worktree start. Do NOT create a branch manually with git checkout -b.
Creates an isolated worktree for the issue. Fully automated via CLI.
Step 1: Create worktree
devac-worktree start <issue-id>
This handles:
../<repo>-<issue>-<slug>/Step 2: Detect context for session guidance
# Check if we're at workspace level or inside a repo
git rev-parse --show-toplevel 2>/dev/null
If at workspace level (command fails = not in a git repo):
Worktree created at
<path>You can work on it from this session - no need to start a new Claude.
If inside a repo (command succeeds):
Worktree created at
<path>Options:
- Start Claude in worktree:
cd <path> && claude- Start Claude at workspace:
cd ~/ws && claude(access all repos)- Continue here (suboptimal - limited access to worktree)
Step 3: Fetch issue with comments and enter plan mode
gh issue view <issue-number> --json number,title,body,comments,labels
Create a plan file at .claude/plans/<generated-name>.md with:
# Plan: [Issue Title]
> **Issue:** [#<number>](https://github.com/<owner>/<repo>/issues/<number>)
> **Status:** IN_PROGRESS
> **Created:** <date>
## From Issue
[Extracted from issue body and comments]
- Key requirements
- Acceptance criteria
- Context from discussion
## Implementation Plan
[Your designed approach]
- Task 1
- Task 2
Then enter plan mode to design the implementation.
For small fixes in the current directory. Creates a branch only.
Step 1: Fetch issue details
gh issue view <issue-number>
Extract:
Step 2: Detect current context
# Get current branch
git branch --show-current
# Check for existing plan files
ls .claude/plans/*.md 2>/dev/null
Context Detection Logic:
<issue-number>- → Already on issue branchStep 3: Take appropriate action
If already on issue branch:
If existing plan found:
If fresh start:
git checkout -b <issue-number>-<slug>gh issue view <issue-number> --json number,title,body,comments,labelsStep 4: Present summary and next steps
Show:
| Level | Location | Purpose | Lifespan |
|---|---|---|---|
| Long-term | GitHub Issue | Requirements, acceptance criteria, discussion | Until issue closed |
| Short-term | .claude/plans/*.md | Implementation details, tasks, progress | Until work shipped |
User: /devac:start-issue ghvivief-42
Claude: Creating worktree for issue #42...
[Runs: devac-worktree start ghvivief-42]
✓ Worktree created at ~/ws/vivief-42-add-watch-mode/
✓ Branch: 42-add-watch-mode
✓ Dependencies installed
You're at workspace level - you can work on it from this session.
Fetching issue details...
## Issue #42: Add watch mode for incremental analysis
**Labels:** enhancement, devac-cli
**Description:**
Add a `--watch` flag to the analyze command that monitors file changes.
**Acceptance Criteria:**
- [ ] `devac analyze --watch` starts file watcher
- [ ] Changes trigger incremental re-analysis
- [ ] Watcher can be stopped with Ctrl+C
Creating plan file...
[Enters plan mode with issue content as foundation]
User: /devac:start-issue 42 quick
Claude: Fetching issue #42...
## Issue #42: Add watch mode for incremental analysis
**Branch:** Creating `42-add-watch-mode`...
**Plan:** Creating `.claude/plans/42-add-watch-mode.md`
[Enters plan mode with issue content as foundation]
User: /devac:start-issue 31 quick
Claude: Fetching issue #31...
## Issue #31: Workspace Analysis Status & Registration
**Branch:** Already on `31-workspace-analysis-status-registration` ✓
**Plan:** Found `.claude/plans/structured-bouncing-eich.md`
Ready to implement. Would you like to:
1. Review the plan first
2. Start with Task 1
3. Modify the plan
| Scenario | Mode |
|---|---|
| New feature work | Default (worktree) |
| Multi-issue parallel work | Default (worktree) |
| Small bug fix | quick |
| Quick typo/doc fix | quick |
| Issue spans multiple repos | Default (worktree) with --repos |
devac-worktree start - CLI for worktree creationdevac-worktree status - Check worktree and PR statusdevac-worktree clean - Remove merged worktrees