Skip to content

Commit e2416cb

Browse files
authored
fix: align cursor rules with AOP date prefix convention and remove unused MCP files (#28)
- Add YYYYMMDD-feature-name date prefix convention to cursor rules - Update all spec folder paths to use YYYYMMDD-feature/ format - Add naming convention documentation with examples - Remove unused cursor/mcp.json (not copied by directive init) - Remove unused cursor/servers/directive.sh (not copied by directive init) Cursor rules now match agent_operating_procedure.md exactly.
1 parent 30ca337 commit e2416cb

File tree

3 files changed

+11
-44
lines changed

3 files changed

+11
-44
lines changed

src/directive/data/directive/cursor/mcp.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/directive/data/directive/cursor/rules/directive-core-protocol.mdc

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,22 @@ Authoritative sources (read first):
1111

1212
🚨 FIRST STEP — FEATURE BRANCH (BEFORE ANYTHING ELSE):
1313
- Check current branch: `git branch --show-current`
14-
- If not on a feature branch, create one from main: `feature/<spec-name>` (must match spec folder)
14+
- If not on a feature branch, create one from main: `feature/YYYYMMDD-feature-name` (must match spec folder)
1515
- NEVER work directly on main or master
1616

17+
**Naming Convention**:
18+
- All new specs use date-based prefixes: `YYYYMMDD-feature-name/`
19+
- Use the current date when creating the spec (e.g., `20251105-cursor-rules-alignment/`)
20+
- If multiple specs created same day, use distinct feature names to differentiate
21+
- Example: For a spec created on November 5, 2025 → `/directive/specs/20251105-feature-name/` → branch `feature/20251105-feature-name`
22+
1723
Pre‑implementation gates (must exist and be approved before any code):
18-
1) Spec → `/directive/specs/<feature>/spec.md`
19-
2) Impact Analysis → `/directive/specs/<feature>/impact.md`
20-
3) TDR (high‑level, decisive about interfaces) → `/directive/specs/<feature>/tdr.md`
24+
1) Spec → `/directive/specs/YYYYMMDD-feature/spec.md`
25+
2) Impact Analysis → `/directive/specs/YYYYMMDD-feature/impact.md`
26+
3) TDR (high‑level, decisive about interfaces) → `/directive/specs/YYYYMMDD-feature/tdr.md`
2127

2228
Location for new feature docs:
23-
- Create all new Spec, Impact, and TDR files under `/directive/specs/<feature>/` (one subfolder per feature).
29+
- Create all new Spec, Impact, and TDR files under `/directive/specs/YYYYMMDD-feature/` (one subfolder per feature).
2430

2531
Collaboration and approval:
2632
- Draft each document (Spec, Impact, TDR) collaboratively with the engineer.

src/directive/data/directive/cursor/servers/directive.sh

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)