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
Copy file name to clipboardExpand all lines: .cursor/rules/workflow.mdc
+7-3Lines changed: 7 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -5,11 +5,13 @@ alwaysApply: true
5
5
---
6
6
7
7
## Template Setup Workflow
8
-
- **Agent-Driven Initialization**: When a user prompts "initialize the repo" or similar, I will automatically handle template setup:
8
+
- **Agent-Driven Initialization**: When a user prompts "set up the template" or "initialize the repo" (for cloned templates), I will automatically handle template setup:
9
9
1. **Copy `.cursor/.mcp.json.example` to `.cursor/mcp.json`** and prompt user for their API keys
10
10
2. **Optionally copy `.env.example` to `.env`** only if they plan to use TaskMaster CLI (not needed for MCP workflow)
11
11
3. **Remove template-specific content** and customize for their project:
12
-
- Replace `README.md` with their project-specific README
12
+
- **Move `README.md` to `docs/how_to_use_this_template.md`** to preserve template documentation
13
+
- **Create new project-specific `README.md`** using the template from `.cursor/templates/project_readme.md`
14
+
- Replace `[Project Name]` placeholder with user-provided name or "My Project"
13
15
- Update `SECURITY.md` to remove template references
14
16
- Remove or update any hardcoded paths in configuration files
15
17
- **Environment File Distinction**:
@@ -46,7 +48,9 @@ alwaysApply: true
46
48
## Git Workflow
47
49
48
50
### Repository Initialization
49
-
When you request to "initialize git repo", I will perform the following steps:
51
+
**Note**: This is only needed when cloning the template directly. When using this as a GitHub template (recommended), a fresh repository is automatically created.
52
+
53
+
When you request to "initialize git repo" (only needed for cloned templates), I will perform the following steps:
50
54
1. **Clear template git history**: Remove the existing `.git` directory to start fresh (`rm -rf .git`).
51
55
2. Initialize a local Git repository (`git init`).
52
56
3. Create a `.gitignore` file with at least the following entries:
0 commit comments