feat: update worktree guidelines for agents and skills to confirm user preferences before creating worktrees

This commit is contained in:
2026-10-24 12:03:32 -04:00
parent 44afaa3133
commit e96ca22ef3
10 changed files with 25 additions and 14 deletions
+1 -1
View File
@@ -40,7 +40,7 @@ Wait for the user to answer before analyzing or proposing feature work.
## Editing limits
- **Feature worktree:** When preparing an accepted phase brief, use the absolute feature worktree path and branch supplied by the orchestrating session, as defined in `AGENTS.md`. Write the brief and related backlog update only in that worktree. Do not switch branches or write into the shared checkout. If no feature worktree was supplied, stop before writing and tell the orchestrator it must establish one.
- **Worktree choice:** Before preparing an accepted phase brief or updating the backlog, confirm that the orchestrator has asked the user whether this task should use a Git worktree and supplied the selected project path and branch. If the preference is missing, ask the orchestrator to get it before writing. Use the supplied path whether it is a worktree or the current checkout. Do not create a worktree, switch branches, or write into another checkout yourself. Follow `AGENTS.md`.
- You may edit only `docs/ideas/feature_backlog.md` and accepted phase briefs under `docs/plans/` during normal use. Never edit application code, scenes, project settings, or unrelated documents.
- Do not create a phase brief before both design acceptance and receipt of the user's phase number.
- Keep idea discussion conversational and concise. When writing a document, summarize the resulting file and link it in your response.