You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reorganize template setup workflow for better agent clarity (#11)
* feat: add self-disable step to template setup workflow
- Add final step to change alwaysApply from true to false after template initialization
- Prevents detailed template setup instructions from consuming context window space
- Ensures template setup rules are visible during one-time setup but hidden afterwards
- Maintains accessibility via reference in workflow.mdc if needed later
* feat(template): Add branch protection and issues setup to template workflow
- Add GitHub CLI commands to enable issues in new repos
- Include complete branch protection rules that match template repo
- Provide both CLI and manual setup instructions
- Document all protection settings for consistency across projects
* refactor(template): Reorganize template setup workflow for better clarity
- Nest Environment File Distinction under step 2 (Remove template content)
- Nest Branch Protection Rules Summary and Manual Setup under step 4
- Eliminate duplicate sections and improve contextual flow
- Group related information with their respective steps
- Reduce cognitive load for agents following the workflow
* docs: add step to return to main after creating PR
- Added step 6 to git workflow: 'Return to Main'
- Ensures developers always checkout main and pull after creating PR
- Prevents feature mixing and keeps local environment current
- Renumbered final step to 7 for clarity
- **Admin Enforcement**: Disabled (admins can bypass)
68
-
69
-
### Alternative: Manual Setup
70
-
1. Go to repository Settings → Branches
71
-
2. Add rule for `main` branch
72
-
3. Enable "Require a pull request before merging"
73
-
4. Set "Required number of approvals before merging" to 1
74
-
5. Enable "Require status checks to pass before merging"
75
-
6. Check "Require branches to be up to date before merging"
76
-
77
-
## After Template Initialization
78
-
Template initialization is complete after customizing the project files. TaskMaster, PRD creation, and git setup are separate workflows that require explicit user requests.
79
-
80
-
### Final Step: Remove from Context Window
81
-
After completing template initialization, update this rule file to stop consuming context space:
82
-
- **Change `alwaysApply: true` to `alwaysApply: false`** in the frontmatter of `.cursor/rules/template_setup.mdc`
83
-
- This prevents the detailed template setup instructions from taking up context window space after the one-time setup is complete
0 commit comments