@danielmarbach/mnemonic-mcp 0.25.4 → 0.26.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/CHANGELOG.md +23 -0
- package/README.md +2 -2
- package/build/cache.d.ts +8 -0
- package/build/cache.d.ts.map +1 -1
- package/build/cache.js +23 -0
- package/build/cache.js.map +1 -1
- package/build/index.js +78 -10
- package/build/index.js.map +1 -1
- package/build/lexical.d.ts +2 -2
- package/build/lexical.d.ts.map +1 -1
- package/build/lexical.js +6 -4
- package/build/lexical.js.map +1 -1
- package/build/recall.d.ts +39 -15
- package/build/recall.d.ts.map +1 -1
- package/build/recall.js +253 -25
- package/build/recall.js.map +1 -1
- package/package.json +1 -1
- package/skills/mnemonic-rpi-workflow/SKILL.md +62 -97
- package/skills/mnemonic-rpi-workflow/closeout-templates.md +19 -0
|
@@ -1,151 +1,116 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: mnemonic-rpi-workflow
|
|
3
|
-
description:
|
|
3
|
+
description: Executes multi-step research-plan-implement-review workflows using mnemonic for workflow artifacts. Triggers on multi-step feature or bugfix work, subagent handoffs, plan-heavy tasks, or any work needing structured RPIR artifacts with explicit handoffs and consistent role/relationship conventions.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
#
|
|
6
|
+
# RPIR Workflow: Research → Plan → Implement → Review
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
Use this skill when work needs structured workflow artifacts.
|
|
8
|
+
## Core Principle
|
|
11
9
|
|
|
12
|
-
|
|
10
|
+
mnemonic stores workflow artifacts; it does not run the workflow.
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
- Work delegated to subagents that needs explicit handoff and continuity.
|
|
16
|
-
- Tasks where plan drift risk is high and you want one current plan note.
|
|
12
|
+
## Relationship Conventions
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
mnemonic is the canonical store for workflow artifacts, not the workflow runtime.
|
|
14
|
+
Use `derives-from` for lineage and `follows` for sequence by default. Fall back to `related-to` only when direction is unclear. Keep relationships sparse — link only to immediate upstream artifacts.
|
|
21
15
|
|
|
22
16
|
## Stage Checklists
|
|
23
17
|
|
|
24
18
|
### 1. Research
|
|
25
19
|
|
|
26
|
-
- Create or update one request root
|
|
27
|
-
-
|
|
28
|
-
- Create research notes
|
|
29
|
-
- Distill
|
|
30
|
-
- Link research
|
|
20
|
+
- Create or update one request root: `role: context`, `lifecycle: temporary`, `tags: ["workflow", "request"]`.
|
|
21
|
+
- Call `recall` before creating notes to avoid duplicates.
|
|
22
|
+
- Create research notes: `role: research`, `lifecycle: temporary`.
|
|
23
|
+
- Distill when findings are scattered.
|
|
24
|
+
- Link research to request root (`derives-from` preferred).
|
|
31
25
|
|
|
32
26
|
### 2. Plan
|
|
33
27
|
|
|
34
|
-
- Create or update one current plan note
|
|
35
|
-
- Link
|
|
36
|
-
- Keep the plan concise
|
|
37
|
-
-
|
|
38
|
-
-
|
|
39
|
-
|
|
40
|
-
Material plan changes include architecture direction, file/module scope, ordering/dependencies, validation strategy, and key assumptions.
|
|
28
|
+
- Create or update one current plan note: `role: plan`, `lifecycle: temporary`.
|
|
29
|
+
- Link to request root and key research notes (`derives-from` for lineage, `follows` for sequence).
|
|
30
|
+
- Keep the plan concise and executable.
|
|
31
|
+
- For non-trivial work, include a short markdown checkbox list (`- [ ]`) for executable steps.
|
|
32
|
+
- One current plan per request; update or supersede as needed.
|
|
33
|
+
- Update plan note before continuing if scope, architecture, dependencies, or assumptions change materially.
|
|
41
34
|
|
|
42
35
|
### 3. Implement
|
|
43
36
|
|
|
44
|
-
- Create apply/task notes
|
|
45
|
-
-
|
|
46
|
-
-
|
|
47
|
-
- Link
|
|
48
|
-
- For non-trivial work, dispatch a subagent with narrow scope
|
|
37
|
+
- Create apply/task notes: `lifecycle: temporary`, tagged `apply`.
|
|
38
|
+
- `role: plan` for executable steps; `role: context` for observations and checkpoints.
|
|
39
|
+
- Keep checkbox state current as work advances (`[ ]` → `[x]`), and add new items when scope expands.
|
|
40
|
+
- Link to plan note (`follows` for ordered steps).
|
|
41
|
+
- For non-trivial work, dispatch a subagent with narrow scope (see [handoff template](#subagent-handoff-template)).
|
|
49
42
|
|
|
50
43
|
### 4. Review
|
|
51
44
|
|
|
52
|
-
- Create review notes
|
|
53
|
-
- Link
|
|
54
|
-
- Record
|
|
45
|
+
- Create review notes: `role: review`, `lifecycle: temporary`.
|
|
46
|
+
- Link to apply/task notes or plan (`derives-from` when conclusions derive from specific artifacts).
|
|
47
|
+
- Record outcome: continue, block, or update plan.
|
|
48
|
+
- Reconcile checklist state with verification evidence; call out any unchecked items explicitly.
|
|
55
49
|
- If review causes a material plan change, update plan note first.
|
|
50
|
+
- Every review note must include verification evidence:
|
|
51
|
+
|
|
52
|
+
```text
|
|
53
|
+
- Command: <run command>
|
|
54
|
+
- Result: pass | fail | partial
|
|
55
|
+
- Details: <counts, errors>
|
|
56
|
+
```
|
|
56
57
|
|
|
57
58
|
### 5. Consolidate
|
|
58
59
|
|
|
59
|
-
- Create permanent decision note(s)
|
|
60
|
-
- Create permanent summary note(s) for outcomes and verification.
|
|
60
|
+
- Create permanent decision note(s) and summary note(s).
|
|
61
61
|
- Promote reusable patterns into permanent reference notes.
|
|
62
|
-
- Let
|
|
62
|
+
- Let temporary scaffolding expire.
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
Use the templates in [closeout-templates.md](closeout-templates.md).
|
|
65
65
|
|
|
66
|
-
|
|
66
|
+
## Subagent Handoff Template
|
|
67
67
|
|
|
68
68
|
```text
|
|
69
|
-
Request note:
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
- <note-id/title>
|
|
74
|
-
|
|
75
|
-
Relevant research notes:
|
|
76
|
-
- <note-id/title>
|
|
77
|
-
- <note-id/title>
|
|
78
|
-
|
|
79
|
-
Durable recalled context:
|
|
80
|
-
- <note-id/title>
|
|
81
|
-
- <note-id/title>
|
|
69
|
+
Request note: <note-id/title>
|
|
70
|
+
Plan note: <note-id/title>
|
|
71
|
+
Research notes: <note-id/title>, ...
|
|
72
|
+
Durable context: <note-id/title>, ...
|
|
82
73
|
|
|
83
74
|
Task scope:
|
|
84
75
|
- Files/modules: <paths>
|
|
85
76
|
- Goal: <what to change>
|
|
86
77
|
- Validation: <tests/checks>
|
|
87
78
|
|
|
88
|
-
|
|
89
|
-
1) Updated apply note content
|
|
90
|
-
2) Optional review note content
|
|
91
|
-
3) Recommendation: continue | block | update plan
|
|
79
|
+
Must return: apply note content, optional review note, recommendation (continue | block | update plan)
|
|
92
80
|
```
|
|
93
81
|
|
|
94
|
-
##
|
|
95
|
-
|
|
96
|
-
- Request root: one per workflow, `role: context`, `lifecycle: temporary`, `tags: workflow/request`.
|
|
97
|
-
- Apply/task split: no new role; use existing `plan` and `context` roles plus `apply` tag.
|
|
98
|
-
- Relationship density: keep sparse; link only to immediate upstream artifacts.
|
|
99
|
-
- Plan currency: one current plan note per request.
|
|
100
|
-
|
|
101
|
-
Relationship preference order:
|
|
102
|
-
|
|
103
|
-
1. `derives-from` for explicit lineage.
|
|
104
|
-
2. `follows` for explicit sequence.
|
|
105
|
-
3. `related-to` only when direction is unknown or intentionally generic.
|
|
106
|
-
|
|
107
|
-
Canonical graph:
|
|
82
|
+
## Canonical Graph
|
|
108
83
|
|
|
109
84
|
```text
|
|
110
85
|
request root (context, temporary)
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
86
|
+
→ research (temporary)
|
|
87
|
+
→ plan (temporary)
|
|
88
|
+
→ apply/task (temporary; plan for steps, context for observations)
|
|
89
|
+
→ review (temporary)
|
|
90
|
+
→ outcome/decision/summary (permanent)
|
|
116
91
|
```
|
|
117
92
|
|
|
118
93
|
## Commit Discipline
|
|
119
94
|
|
|
120
|
-
|
|
95
|
+
Three commit classes:
|
|
121
96
|
|
|
122
|
-
1. Memory
|
|
123
|
-
2. Work
|
|
124
|
-
3. Memory
|
|
97
|
+
1. **Memory** — research/plan/review artifacts
|
|
98
|
+
2. **Work** — code/test/docs implementation
|
|
99
|
+
3. **Memory** — consolidation of durable knowledge
|
|
125
100
|
|
|
126
|
-
|
|
101
|
+
Never mix classes. Before every commit, run this sequence:
|
|
127
102
|
|
|
128
|
-
|
|
103
|
+
1. `git status --short`
|
|
104
|
+
2. Stage only intended paths (never `git add .` or `git add -A`)
|
|
105
|
+
3. If unsure whether dirty files belong together, ask before committing
|
|
106
|
+
4. `git status --short` after commit to confirm
|
|
129
107
|
|
|
130
|
-
|
|
108
|
+
Material plan changes during implementation: commit the memory update first.
|
|
131
109
|
|
|
132
|
-
|
|
133
|
-
- Link research to request.
|
|
134
|
-
- Write one plan note with validation steps.
|
|
135
|
-
- Execute with apply notes and one review note.
|
|
136
|
-
- Consolidate into permanent decision + summary notes.
|
|
137
|
-
|
|
138
|
-
### Example 2: Multi-file refactor with subagent
|
|
110
|
+
## Examples
|
|
139
111
|
|
|
140
|
-
-
|
|
141
|
-
- Hand subagent request/plan/research plus narrow file list.
|
|
142
|
-
- Receive updated apply note + recommendation.
|
|
143
|
-
- Add review note, update plan if material drift occurred.
|
|
144
|
-
- Promote reusable patterns into reference note.
|
|
112
|
+
**Research-heavy bug:** request root + research notes → plan with validation → apply + review → permanent decision + summary.
|
|
145
113
|
|
|
146
|
-
|
|
114
|
+
**Multi-file refactor:** request root + concise plan → subagent handoff → apply note + recommendation → review, consolidate.
|
|
147
115
|
|
|
148
|
-
|
|
149
|
-
- Implement directly with one apply note.
|
|
150
|
-
- Review note says continue and close.
|
|
151
|
-
- Consolidate to one permanent summary note.
|
|
116
|
+
**Small task:** request root + plan → one apply note → review says continue → one permanent summary.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Closeout Templates
|
|
2
|
+
|
|
3
|
+
## Decision Note (`role: decision`)
|
|
4
|
+
|
|
5
|
+
```text
|
|
6
|
+
**Decision:** <one-line ruling>
|
|
7
|
+
**Rationale:** <why, not what>
|
|
8
|
+
**Alternatives considered:** <brief list>
|
|
9
|
+
**Consequences:** <what this enables or prevents>
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
## Summary Note (`role: summary`)
|
|
13
|
+
|
|
14
|
+
```text
|
|
15
|
+
**What shipped:** <change list>
|
|
16
|
+
**Verification:** <test counts, commands run, outcomes>
|
|
17
|
+
**Status:** complete | partial | blocked
|
|
18
|
+
**Open items:** <remaining work or known gaps>
|
|
19
|
+
```
|