midas-mcp 1.8.0 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.d.ts +1 -0
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +54 -1
- package/dist/cli.js.map +1 -1
- package/dist/docs/CURSORRULES_TEMPLATE.md +61 -46
- package/dist/docs/USER_RULES.md +62 -81
- package/dist/metrics.d.ts +36 -0
- package/dist/metrics.d.ts.map +1 -0
- package/dist/metrics.js +144 -0
- package/dist/metrics.js.map +1 -0
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +9 -4
- package/dist/server.js.map +1 -1
- package/dist/tui.d.ts.map +1 -1
- package/dist/tui.js +151 -7
- package/dist/tui.js.map +1 -1
- package/docs/CURSORRULES_TEMPLATE.md +61 -46
- package/docs/USER_RULES.md +62 -81
- package/package.json +1 -1
package/docs/USER_RULES.md
CHANGED
|
@@ -1,90 +1,71 @@
|
|
|
1
|
-
# User Rules
|
|
1
|
+
# Midas - Cursor User Rules
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Add these rules to your **Cursor User Rules** (Settings → Rules for AI) to make Cursor automatically follow the Golden Code methodology across ALL projects.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## The Rules to Add
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
- Simple short git commit after changes, no emojis or special characters
|
|
47
|
-
- Deploy Firebase rules/functions/indexes when changed
|
|
48
|
-
- Deploy Firebase cloud functions when updated
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Testing
|
|
53
|
-
|
|
54
|
-
- Use iPhone 16 or 16 Pro for Xcode iOS simulator
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## Full Rules Template
|
|
7
|
+
```
|
|
8
|
+
# Golden Code Methodology (via Midas MCP)
|
|
9
|
+
|
|
10
|
+
## AUTOMATIC BEHAVIOR - Do these without being asked:
|
|
11
|
+
|
|
12
|
+
### On EVERY new chat session:
|
|
13
|
+
1. Call `midas_journal_list` to load context from previous sessions
|
|
14
|
+
2. Call `midas_analyze` to understand current project phase
|
|
15
|
+
3. Follow the suggested approach from the analysis
|
|
16
|
+
|
|
17
|
+
### After EVERY significant code change:
|
|
18
|
+
1. Git commit with descriptive message before AND after major changes
|
|
19
|
+
2. Call `midas_journal_save` with title describing what was done
|
|
20
|
+
3. Include the full conversation in the journal entry
|
|
21
|
+
|
|
22
|
+
### Before EVERY implementation:
|
|
23
|
+
1. Call `midas_suggest_prompt` to get phase-appropriate guidance
|
|
24
|
+
2. Follow the Golden Code methodology for current phase
|
|
25
|
+
|
|
26
|
+
## When Things Go Wrong:
|
|
27
|
+
- **Stuck/confused**: Call `midas_tornado` for Research + Logs + Tests cycle
|
|
28
|
+
- **Output doesn't fit**: Call `midas_horizon` to expand context
|
|
29
|
+
- **Retry after error**: Call `midas_oneshot` to construct better retry
|
|
30
|
+
|
|
31
|
+
## Git Discipline:
|
|
32
|
+
- Commit BEFORE starting any significant change (checkpoint)
|
|
33
|
+
- Commit AFTER completing each logical unit of work
|
|
34
|
+
- Use descriptive commit messages that explain WHY not just WHAT
|
|
35
|
+
|
|
36
|
+
## The 7-Step BUILD Cycle:
|
|
37
|
+
RULES → INDEX → READ → RESEARCH → IMPLEMENT → TEST → DEBUG
|
|
38
|
+
Always complete earlier steps before jumping to implementation.
|
|
39
|
+
|
|
40
|
+
## The 4 Phases:
|
|
41
|
+
1. EAGLE_SIGHT: Plan before coding (brainlift, PRD, gameplan)
|
|
42
|
+
2. BUILD: The 7-step cycle above
|
|
43
|
+
3. SHIP: Review, deploy, monitor
|
|
44
|
+
4. GROW: Feedback, analyze, iterate back to EAGLE_SIGHT
|
|
45
|
+
```
|
|
59
46
|
|
|
60
|
-
|
|
61
|
-
# DOCUMENTATION
|
|
62
|
-
- No emojis, no ALL CAPS, no tables with dashes/pipes
|
|
63
|
-
- No em dashes, no excessive formatting
|
|
64
|
-
- Bold for emphasis, write tersely, casually, high IQ
|
|
47
|
+
## How to Add
|
|
65
48
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
49
|
+
1. Open Cursor Settings (Cmd+,)
|
|
50
|
+
2. Search for "Rules for AI" or navigate to it
|
|
51
|
+
3. Paste the rules above
|
|
52
|
+
4. Save
|
|
70
53
|
|
|
71
|
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
-
|
|
75
|
-
-
|
|
54
|
+
Now Cursor will automatically:
|
|
55
|
+
- Load journal context at session start
|
|
56
|
+
- Analyze project phase
|
|
57
|
+
- Save conversations to journal
|
|
58
|
+
- Git commit before/after changes
|
|
59
|
+
- Follow the Golden Code methodology
|
|
76
60
|
|
|
77
|
-
|
|
78
|
-
- Single responsibility principle
|
|
79
|
-
- Achieve each task in minimum tokens
|
|
80
|
-
- Add logs and look up documentation to debug
|
|
61
|
+
## Why User Rules Instead of .cursorrules
|
|
81
62
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
63
|
+
| Feature | User Rules | .cursorrules |
|
|
64
|
+
|---------|-----------|--------------|
|
|
65
|
+
| Scope | All projects | One project |
|
|
66
|
+
| Git tracked | No | Yes |
|
|
67
|
+
| Setup | Once | Per project |
|
|
68
|
+
| Override | Per-project can override | N/A |
|
|
87
69
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
```
|
|
70
|
+
User Rules are ideal for methodology/workflow rules that should apply everywhere.
|
|
71
|
+
Project `.cursorrules` are for project-specific conventions (TypeScript config, naming, etc).
|