tamirs-superpowers / rules
Cursor rule2 starsChanged 3 months agoMITView on GitHub
Objective/worker/integration worktrees — provider is metadata, not path identity. Canonical: rules/dev/git-worktree-agent-workflow.md
In this repository46 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- .cursor/rules/commit-conventions.mdcCursor rule
- .cursor/rules/cross-platform-handoff.mdcCursor rule
- .cursor/rules/dev-files-workspace.mdcCursor rule
- .cursor/rules/documentation-standards.mdcCursor rule
- .cursor/rules/gh-cli-preference.mdcCursor rule
- .cursor/rules/github-repository-policy.mdcCursor rule
- .cursor/rules/hooks-guide.mdcCursor rule
- .cursor/rules/plugin-structure.mdcCursor rule
- .cursor/rules/plugin-version-bump.mdcCursor rule
- .cursor/rules/skill-frontmatter.mdcCursor rule
- .cursor/rules/skill-quality-standards.mdcCursor rule
- .cursor/rules/skills-guide.mdcCursor rule
- .cursor/rules/user-facing-script-standards.mdcCursor rule
- run-tamirs-superpowersSkill
- field-notebook-uiSkill
- diagnose-refusalSkill
- targeted-debugSkill
- decisionSkill
- deliver-devSkill
- diagnose-objectiveSkill
- orchestrate-devSkill
- plan-devSkill
- pr-devSkill
- start-devSkill
- switch-devSkill
- worker-devSkill
- changelog-reviewSkill
- dark-terminal-docSkill
- docs-reviewSkill
- platform-syncSkill
- mcp-builderSkill
- mcp-paginationSkill
- cleanupSkill
- github-policySkill
- multi-agent-repoSkill
- repo-scaffoldSkill
- repo-standardsSkill
- capture-configSkill
- find-skillSkill
- notify-setupSkill
- retroSkill
- session-reportSkill
- skill-creatorSkill
- usage-captureSkill
The file
Files
---
description: "Objective/worker/integration worktrees — provider is metadata, not path identity. Canonical: rules/dev/git-worktree-agent-workflow.md"
alwaysApply: false
globs: ".agent-worktrees/**/*,.claude/.worktrees/**/*,.cursor/.worktrees/**/*,.codex/.worktrees/**/*"
---
<!-- GENERATED FILE — DO NOT EDIT.
Source: rules/dev/git-worktree-agent-workflow.md (frontmatter + summary: platforms/cursor/rules.map.json)
Generator: scripts/build-cursor-rules.sh
Regenerate: make cursor-rules -->
# Git Worktree Agent Workflow
Canonical rule: `rules/dev/git-worktree-agent-workflow.md`. Read it before creating any worktree — the summary below is orientation only.
One objective → zero or more worker worktrees → one integration worktree. The path and branch encode the **objective and task**, never the provider.
```text
.agent-worktrees/<objective>/{integration,task-001,task-002}
main → objective/<slug> → worker/<slug>/NNN
```
A worker ends at **commit + handoff**, never at a PR. Delivery happens once, from the integration worktree.
## Cursor-specific
Cursor has no built-in worktree tool and no `EnterWorktree` equivalent — create worktrees explicitly before editing tracked files from an agent session:
```bash
skills/dev-workflow/_shared/scripts/resolve-worktree.sh --objective <slug> --task 001
```
Legacy `.cursor/.worktrees/<name>` worktrees remain valid and are never orphaned; `resolve-worktree.sh --list` shows them and `--migrate` moves one opt-in.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

