@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.
@@ -1,151 +1,116 @@
1
1
  ---
2
2
  name: mnemonic-rpi-workflow
3
- description: Use when executing multi-step research-plan-implement-review workflows, especially when you need explicit handoffs, one current plan note, and consistent role/relationship conventions.
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
- # Skill: mnemonic-rpi-workflow
6
+ # RPIR Workflow: Research → Plan → Implement → Review
7
7
 
8
- # RPIR Workflow: Research -> Plan -> Implement -> Review
9
-
10
- Use this skill when work needs structured workflow artifacts.
8
+ ## Core Principle
11
9
 
12
- ## When to Use
10
+ mnemonic stores workflow artifacts; it does not run the workflow.
13
11
 
14
- - Multi-step feature or bugfix work where you need research, plan, execution, and review artifacts.
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
- ## Core Principle
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 note with `role: context`, `lifecycle: temporary`, `tags: ["workflow", "request"]`.
27
- - Before creating new notes, call `recall` for related prior work.
28
- - Create research notes with `role: research`, `lifecycle: temporary`.
29
- - Distill a short research summary when findings are scattered.
30
- - Link research notes to request root. Prefer `derives-from` when lineage is explicit; otherwise use `related-to`.
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 with `role: plan`, `lifecycle: temporary`.
35
- - Link plan note to request root and key research notes. Prefer `derives-from` for lineage and `follows` for sequence; fallback to `related-to` when direction is unclear.
36
- - Keep the plan concise, executable, and scoped to the current request.
37
- - Prefer one current plan per request; update or supersede as needed.
38
- - If the plan changes materially, update the plan note before continuing implementation.
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 as `lifecycle: temporary`, tagged with `apply`.
45
- - Use `role: plan` for intended executable steps.
46
- - Use `role: context` for observations, checkpoints, and execution notes.
47
- - Link apply/task notes to the plan note. Prefer `follows` for ordered execution steps.
48
- - For non-trivial work, dispatch a subagent with narrow scope and explicit handoff context.
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 with `role: review`, `lifecycle: temporary`.
53
- - Link review notes to apply/task notes or plan. Use `derives-from` when review conclusions derive from specific artifacts.
54
- - Record outcomes: continue, block, or update plan.
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) for resolved approaches.
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 pure temporary scaffolding expire when no longer useful.
62
+ - Let temporary scaffolding expire.
63
63
 
64
- ## Subagent Handoff Template
64
+ Use the templates in [closeout-templates.md](closeout-templates.md).
65
65
 
66
- Use this template for subagent delegation:
66
+ ## Subagent Handoff Template
67
67
 
68
68
  ```text
69
- Request note:
70
- - <note-id/title>
71
-
72
- Current plan note (or relevant slice):
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
- Subagent must return:
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
- ## Note Conventions
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
- -> research (temporary)
112
- -> plan (temporary)
113
- -> apply/task (temporary; plan for steps, context for observations)
114
- -> review (temporary)
115
- -> outcome/decision/summary (permanent)
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
- Use three commit classes through the workflow:
95
+ Three commit classes:
121
96
 
122
- 1. Memory commit: research/plan/review artifacts.
123
- 2. Work commit: code/test/docs implementation.
124
- 3. Memory commit: consolidation and promotion of durable knowledge.
97
+ 1. **Memory** research/plan/review artifacts
98
+ 2. **Work** code/test/docs implementation
99
+ 3. **Memory** consolidation of durable knowledge
125
100
 
126
- If plan changes materially during implementation, do memory update first, then continue work.
101
+ Never mix classes. Before every commit, run this sequence:
127
102
 
128
- ## Examples
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
- ### Example 1: Research-heavy bug investigation
108
+ Material plan changes during implementation: commit the memory update first.
131
109
 
132
- - Create request root + two research notes.
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
- - Create request root and concise plan note.
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
- ### Example 3: Small task with no iteration
114
+ **Multi-file refactor:** request root + concise plan → subagent handoff → apply note + recommendation → review, consolidate.
147
115
 
148
- - Create/update request root and one plan note.
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
+ ```