Start new work with branch and session creation
Creates branches and sessions for new work from issues or maintenance tasks.
/plugin marketplace add flexion/claude-domestique/plugin install memento@claude-domestiqueissue|choreInteractive workflow to begin new work with proper branch and session setup.
If no argument provided, ask the user: "What type of work are you starting?
Ask for the issue identifier (e.g., #42, PROJ-123)
If user doesn't know the ID, help them find it:
# GitHub - list recent open issues
gh issue list --state open --limit 10
# Or search by keywords
gh issue list --search "keyword"
Fetch issue details:
gh issue view <number> --json number,title,body,state,labels
Extract from issue:
Generate branch name:
issue/<type>-<number>/<slug>issue/feature-42/user-authenticationCreate branch and session:
git fetch origin
git checkout -b issue/<type>-<number>/<slug> origin/main
Create session file primed with issue data:
Ask for a short description (1-5 words): "What are you working on? (e.g., 'update dependencies', 'fix linting')"
Optionally ask for goal: "What's the objective? (press Enter to skip)"
Generate branch name:
chore/<slug>chore/update-dependenciesCreate branch and session:
git fetch origin
git checkout -b chore/<slug> origin/main
Create session file with chore template:
Display the created session file and confirm:
Ask: "Does this look correct? Update the session file if you need to refine the goal or approach."
Starting from an issue:
User: /memento:start issue
Claude: What's the issue number?
User: 42
Claude: Fetching issue #42... "Add user authentication"
Creating branch: issue/feature-42/user-authentication
Session file: .claude/sessions/42-user-authentication.md
Goal: Add user authentication
Acceptance Criteria:
- [ ] Login form with email/password
- [ ] Form validation
- [ ] Secure token storage
Starting a chore:
User: /memento:start chore
Claude: What are you working on?
User: update npm dependencies
Claude: Creating branch: chore/update-npm-dependencies
Session file: .claude/sessions/chore-update-npm-dependencies.md
Templates are checked in this order (first found wins):
.claude/templates/ - Project-level overridesmemento/templates/ - Plugin defaultsAvailable templates:
feature.md - For feature issues (enhancements, new functionality)fix.md - For bug fixeschore.md - For maintenance work without an issueTo customize templates for your project, copy the defaults to .claude/templates/ and modify.
If onus plugin is installed, issue details may already be cached at:
~/.claude/onus/work-item-cache.json
Check cache before fetching to avoid redundant API calls.
/startInitiates the task orchestration workflow using the three-agent system (task-orchestrator, task-decomposer, and dependency-analyzer) to create a comprehensive execution plan.