Prompt file imported from akaghef/M3E (
.github/prompts/setrole.prompt.md). Copyright stays with the author.
Set Role
Run this prompt as:
/setrole visual/setrole data/setrole data2/setrole team/setrole manage
Required behavior
- Parse the role from user input. If missing or invalid, ask for one of:
visual,data,data2,team,manage. - Map role to target:
visual-> branchdev-visual, worktreeC:/Users/Akaghef/dev/M3E-dev-visualdata-> branchdev-data, worktreeC:/Users/Akaghef/dev/M3Edata2-> branchdev-data2, worktreeC:/Users/Akaghef/dev/M3E-dev-data2team-> branchdev-team, worktreeC:/Users/Akaghef/dev/M3E-dev-teammanage-> branchdev-beta, worktreeC:/Users/Akaghef/dev/M3E
- Immediately run terminal checks:
- show current branch
- move to target worktree
- verify current branch
- If branch is not target, switch to target branch.
- For role
visual/data/data2/team, enforce sync before new implementation work:git fetch origingit rebase origin/dev-beta
- Report a short checklist result:
- role
- worktree path
- active branch
- rebase/sync result (if applicable)
Guardrails
- Do not continue implementation if role/worktree/branch are misaligned.
- If rebase conflict cannot be resolved safely, stop and escalate to
akaghef. - Do not use destructive history commands.