@skedulo/memory-hub-mcp 0.2.13 → 0.2.15
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/README.md +36 -4
- package/assets/skills/delegate-ticket/SKILL.md +108 -0
- package/assets/skills/delegate-ticket/references/sub-issue-template.md +133 -0
- package/assets/skills/fold-findings/SKILL.md +69 -0
- package/assets/skills/plan-ticket/SKILL.md +128 -0
- package/assets/skills/product-knowledge/SKILL.md +150 -0
- package/assets/skills/product-knowledge/references/page-format.md +133 -0
- package/dist/asset-sync.js +158 -6
- package/dist/cli.js +29 -0
- package/dist/git-remote.js +19 -1
- package/dist/import-apply.js +88 -0
- package/dist/import-cli.js +99 -0
- package/dist/index.js +4 -2
- package/dist/pack-import.js +443 -0
- package/dist/revise.js +8 -1
- package/dist/setup.js +11 -10
- package/package.json +1 -1
- package/skill-guide.md +26 -6
- /package/assets/{SKILL.md → skills/se-ai-memory-hub/SKILL.md} +0 -0
package/README.md
CHANGED
|
@@ -79,7 +79,7 @@ mints a personal token from that session. For **Claude Code** it does everything
|
|
|
79
79
|
`scripts/setup-dev.sh` does for contributors: registers the MCP server in `~/.claude.json`, puts
|
|
80
80
|
the token in `~/.claude/settings.json`, installs the `SessionStart` hook into
|
|
81
81
|
`~/.claude/memory-hub-hook/` and registers it (appending, never stacking duplicates), and syncs
|
|
82
|
-
|
|
82
|
+
every skill folder into `~/.claude/skills/`. For **Claude Desktop** it writes
|
|
83
83
|
`claude_desktop_config.json` — no hook, because Desktop has none. Every file is merged, never
|
|
84
84
|
clobbered, and a `.bak` is left behind. Then it makes one real call to confirm the token works
|
|
85
85
|
before it says done.
|
|
@@ -97,8 +97,8 @@ Re-run `memory-hub-mcp setup` anytime — it keeps a token that's already config
|
|
|
97
97
|
### Updates
|
|
98
98
|
|
|
99
99
|
`setup` registers the server as `npx -y @skedulo/memory-hub-mcp@latest`, so every Claude start runs
|
|
100
|
-
the newest published version. On start, that server brings the hooks and
|
|
101
|
-
copied into `~/.claude` up to its own version (never down), so nobody re-runs anything after a
|
|
100
|
+
the newest published version. On start, that server brings the hooks and skills that `setup`
|
|
101
|
+
copied into `~/.claude` up to its own version (never down), adding any skill a release introduced, so nobody re-runs anything after a
|
|
102
102
|
release. Two exceptions: a release that adds a new kind of hook still needs `memory-hub-mcp setup`
|
|
103
103
|
once, and `setup --no-auto-update` pins the installed binary instead (update it with
|
|
104
104
|
`npm i -g @skedulo/memory-hub-mcp`, then re-run `setup`).
|
|
@@ -163,6 +163,38 @@ design, discovery). `memory_checkRepoStatus` will not work from Desktop. `memory
|
|
|
163
163
|
does, but only if you name the repo — pass `repoName` explicitly, since there is nothing to
|
|
164
164
|
detect; `memory_listTeams` shows the team names to link it to.
|
|
165
165
|
|
|
166
|
+
## Importing product knowledge
|
|
167
|
+
|
|
168
|
+
`memory-hub-mcp import` copies a knowledge pack into the hub as product knowledge pages. A pack is
|
|
169
|
+
one folder per core or project team, `domains/<name>/` in the shared memory repo, holding
|
|
170
|
+
`rules.json`, `constraints.json`, `api.json` and `workflow.json`, each optionally split into
|
|
171
|
+
`<kind>-<area>.json` shards. The product-knowledge skill runs the import and walks you through the
|
|
172
|
+
review; it has two steps, and only the second saves anything:
|
|
173
|
+
|
|
174
|
+
npx -y @skedulo/memory-hub-mcp@latest import convert <shared-memory-repo>/domains/<name> --product "<Product>" --prefix <PREFIX> --by "<your name>"
|
|
175
|
+
npx -y @skedulo/memory-hub-mcp@latest import apply <plan.json> --repo <owner/name>
|
|
176
|
+
|
|
177
|
+
`convert` writes a plan (JSON) and a review file (Markdown) that lists every value that looks like
|
|
178
|
+
customer data, both readable only by you; it will not overwrite a plan that already records saved
|
|
179
|
+
items unless you pass `--force`. It also warns about IDs it cannot prefix, IDs used twice, and
|
|
180
|
+
uncommitted changes in the pack. When the pack is in a git checkout, the Sources page records the
|
|
181
|
+
repo, the pack's path and the HEAD commit, and every saved item carries that repo and commit as its
|
|
182
|
+
`source`, so `memory_checkSources` run in a checkout of the shared memory repo shows when the pack
|
|
183
|
+
has moved on.
|
|
184
|
+
|
|
185
|
+
`apply` refuses until each flagged value is removed or marked `resolved`, and refuses a repo that
|
|
186
|
+
already has pages titled `<Product> ›` that this plan did not save, so a lost plan file cannot
|
|
187
|
+
cause a second import. It saves every page as Team on the repo with an embedding, and records each
|
|
188
|
+
saved uid in the plan, so running it again resumes. Packs in the older layout (JSON under
|
|
189
|
+
`memory/`, with `knowledge/` docs and clarification Q&A files) still convert; their clarifications
|
|
190
|
+
become facts that keep their ticket IDs in the text but link no hub task, so old tickets do not
|
|
191
|
+
appear as Open tasks. `apply` reads `MEMORY_HUB_MCP_TOKEN` and `MEMORY_HUB_FUNCTION_URL` from the
|
|
192
|
+
environment, as the hooks do.
|
|
193
|
+
|
|
194
|
+
After the import, the hub copy is the one developers edit. When the pack repo moves on,
|
|
195
|
+
product-knowledge update converts the pack again and proposes the differences through the usual
|
|
196
|
+
confirmed edits.
|
|
197
|
+
|
|
166
198
|
## Tags
|
|
167
199
|
|
|
168
200
|
`memory_save`/`memory_recall`'s `tags` parameter is a fixed picklist
|
|
@@ -170,7 +202,7 @@ matching the `AgentFacts`/`AgentSkills`/`AgentWikiPages` custom objects' `Tags`
|
|
|
170
202
|
`ConnectedFunction`, `HorizonComponent`, `TriggeredAction`, `ObjectModel`, `MobileExtension`,
|
|
171
203
|
`Deployment`, `Auth`, `Testing`, `BreezeUI`, `PSS`, `PSF`, `Optimization`, `Webhooks`, `Salesforce`,
|
|
172
204
|
`Other`, `ArchitectureMap`, `SOW`, `TDD`, `AI`, `API`, `Mobile`, `Infrastructure`, `Security`,
|
|
173
|
-
`Messaging` (
|
|
205
|
+
`Messaging`, `ProductRules` (25 in all; `TAG_VALUES` in `src/index.ts` is the source of truth). The tool's Zod schema enforces this — any other value fails validation
|
|
174
206
|
before the request reaches the connected function (which otherwise 400s with no indication of
|
|
175
207
|
what went wrong). If the underlying Picklist's `allowedValues` ever changes, update `TAG_VALUES`
|
|
176
208
|
in `src/index.ts` to match.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: delegate-ticket
|
|
3
|
+
description: Use when a ticket's plan from plan-ticket is approved and should become Linear sub-issues that the Linear Dev Agent or a developer can implement without reading anything else, e.g. "delegate SOL-1234", "create the sub-issues for this plan".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Delegate a planned ticket
|
|
7
|
+
|
|
8
|
+
Create one Linear sub-issue per outcome of an approved plan. Each sub-issue must stand alone: the
|
|
9
|
+
Linear Dev Agent reads only the sub-issue's title, description, labels and comments, never the parent,
|
|
10
|
+
the hub or this conversation. Write every body from `references/sub-issue-template.md` in this
|
|
11
|
+
skill's folder.
|
|
12
|
+
|
|
13
|
+
## First, check the server version
|
|
14
|
+
|
|
15
|
+
Look at the parameters of the `memory_update` tool; if only its name is listed, load its schema first.
|
|
16
|
+
If there is no `memory_update` tool at all, the memory-hub server is not connected: say so and stop.
|
|
17
|
+
If it has no `expectedLastModified` parameter, the memory-hub server is older than this release and
|
|
18
|
+
cannot edit safely. Stop, do nothing else, and tell the developer to update it:
|
|
19
|
+
|
|
20
|
+
- plugin installs, and `setup` installs with auto-update: restart Claude Code;
|
|
21
|
+
- pinned installs: re-run `npx -y @skedulo/memory-hub-mcp@latest setup --no-auto-update`;
|
|
22
|
+
- a checkout of the se-ai-memory-hub repo: pull and re-run `scripts/setup-dev.sh`.
|
|
23
|
+
|
|
24
|
+
## 1. Load the approved plan
|
|
25
|
+
|
|
26
|
+
1. If the Linear connector is not connected, stop and tell the developer.
|
|
27
|
+
2. Read the plan: `memory_recall type=Scenario scope=team externalRef=<parent>`, then
|
|
28
|
+
`memory_get type=Scenario uid=<uid>` on the one whose summary starts with
|
|
29
|
+
`# Delivery plan: <PARENT-ID>`. Note its `repoId` from the recall result: it is the delivery repo
|
|
30
|
+
uid. Check the plan against the latest `Delivery plan (approved <date>)` comment on the parent issue
|
|
31
|
+
(Linear connector); if they differ, ask which is current.
|
|
32
|
+
3. If there is no approved plan, stop and offer plan-ticket.
|
|
33
|
+
4. If the plan's `Knowledge changes` is not `None`, check each change is on the product pages; if one
|
|
34
|
+
is not, stop and offer the product-knowledge skill in update mode. If its `Open questions` is not
|
|
35
|
+
`None`, ask the developer about them before drafting.
|
|
36
|
+
|
|
37
|
+
## 2. Gather what each sub-issue must carry
|
|
38
|
+
|
|
39
|
+
For each outcome:
|
|
40
|
+
|
|
41
|
+
1. Copy the exact entry lines for every rule and don't-build ID the outcome names, from the product's
|
|
42
|
+
pages (`memory_list type=Wiki repo=<delivery repo uid> tags=["ProductRules"]`, paging with
|
|
43
|
+
`offset` until you have all `total` items, then `memory_get type=Wiki uid=<uid>` on every part of
|
|
44
|
+
a split page). If an ID is missing or retired, stop and ask. If an entry is `unverified` or has a
|
|
45
|
+
`Conflict:` note, stop and ask the developer before delegating: verify it first
|
|
46
|
+
(product-knowledge update mode), leave it out, or include it as it is. An entry they include goes
|
|
47
|
+
under the template's "Unverified entries", never under the rules the issue must satisfy.
|
|
48
|
+
2. Pin the commit: take this repo's sha from the plan's `Read at:` line and compare it with
|
|
49
|
+
`gh api repos/<owner>/<name>/commits/<base branch> --jq .sha` (the default branch is
|
|
50
|
+
`gh api repos/<owner>/<name> --jq .default_branch`). If it moved, look at what changed in the files
|
|
51
|
+
the outcome may touch (`gh api repos/<owner>/<name>/compare/<old>...<new>`) and tell the developer
|
|
52
|
+
if it affects the plan. Use the plan's sha in the Delivery contract unless the developer accepts
|
|
53
|
+
re-pinning to the new one.
|
|
54
|
+
3. Read the files the outcome may change at the pinned commit (the local checkout, or
|
|
55
|
+
`gh api "repos/<owner>/<name>/contents/<path>?ref=<sha>"`) and collect file paths, a pattern file
|
|
56
|
+
and pitfalls from them. Take the mockups for UI work from the parent issue. Each one needs an
|
|
57
|
+
image URL that can be embedded in the description. If a mockup has none, ask the developer for
|
|
58
|
+
one, or describe the mockup in text in the body (layout, fields, labels, states). Never point the
|
|
59
|
+
agent at a Linear attachment: it cannot read attachments.
|
|
60
|
+
|
|
61
|
+
## 3. Draft and check
|
|
62
|
+
|
|
63
|
+
1. One sub-issue per outcome, sized for one agent session and one PR. Split an outcome that is bigger,
|
|
64
|
+
and say so.
|
|
65
|
+
2. Fill the template. Put `Base branch: <name>` as a plain line (no leading `- `) only when the base is
|
|
66
|
+
not the repo's default branch. Embed mockups as images in the description; never rely on
|
|
67
|
+
attachments.
|
|
68
|
+
3. Check each draft before showing it:
|
|
69
|
+
- Could an agent implement it with only this issue? No "see parent", no hub links needed, every
|
|
70
|
+
rule copied in full with its ID, and any unverified entry labelled as one.
|
|
71
|
+
- Is every acceptance criterion testable?
|
|
72
|
+
- Does it name the repo, the pinned commit, and the files it may change?
|
|
73
|
+
- Does it hold anything the confidentiality rules forbid (commercial terms, customer personal data,
|
|
74
|
+
verbatim contract text, customer data rows or production record IDs, credentials, tokens or
|
|
75
|
+
secrets)? Remove it.
|
|
76
|
+
4. Show all drafts with their labels and dependencies (by title until the sub-issues exist). Create nothing until the developer confirms.
|
|
77
|
+
|
|
78
|
+
## 4. Create the sub-issues
|
|
79
|
+
|
|
80
|
+
With the Linear connector:
|
|
81
|
+
|
|
82
|
+
1. Before creating anything, and again after a failure partway through, list the parent's existing
|
|
83
|
+
sub-issues. Reuse one whose title matches a draft instead of creating a duplicate; if its body
|
|
84
|
+
differs from the draft, show the difference and ask before changing it. Create only the missing
|
|
85
|
+
ones, each under the parent, in the parent's team and project, with the template body.
|
|
86
|
+
2. Labels: `repo/skedulo/<repo>`, `plugin/<builder>` where one applies, and the parent's `ref-repo:*`
|
|
87
|
+
labels (see the template's Labels section). If a needed label does not exist, ask before creating
|
|
88
|
+
it.
|
|
89
|
+
3. Leave them unassigned unless the developer asks to assign the Linear Dev Agent.
|
|
90
|
+
4. Create them in dependency order: object model, then functions and automations, then UI, plus any
|
|
91
|
+
"Depends on" from the plan (mapped to the sub-issues an outcome was split into). Then set the
|
|
92
|
+
blocked-by relations that are not set yet and update each body's Dependencies section with the
|
|
93
|
+
real IDs.
|
|
94
|
+
|
|
95
|
+
## 5. Record them in the hub
|
|
96
|
+
|
|
97
|
+
For each sub-issue, save a Fact on the product's delivery repo, which records the sub-issue as an Open
|
|
98
|
+
hub task:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
memory_save type=Fact repo=<delivery repo uid> externalRef=<SUB-ID> content="Delegated <SUB-ID> (<title>) from <PARENT-ID>. When its PR merges, run fold-findings on it."
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Skip a reused sub-issue that already has this Fact (`memory_recall type=Fact scope=team
|
|
105
|
+
externalRef=<SUB-ID>`). Check each result reports `visibility: "Team"`. Ignore duplicate notices
|
|
106
|
+
between these Facts; each one stands for its own sub-issue.
|
|
107
|
+
|
|
108
|
+
Report the sub-issues with their links and the blocked-by chain.
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
# Sub-issue template
|
|
2
|
+
|
|
3
|
+
The sections follow the marketplace `agent-issue-template.md` (Context, Requirements, Implementation
|
|
4
|
+
Guide, Agent Instructions, Technical Details, Acceptance Criteria, Dependencies, Agent Notes), so
|
|
5
|
+
reviewers who know that template recognise these, plus a Delivery contract and PR Description
|
|
6
|
+
Instructions. Omit a section only where it says so.
|
|
7
|
+
|
|
8
|
+
The Linear Dev Agent reads the sub-issue's title, description, labels and comments, and nothing else:
|
|
9
|
+
not the parent issue, not the hub, not the planning chat. Every fact the work needs is in the body.
|
|
10
|
+
|
|
11
|
+
````markdown
|
|
12
|
+
# <Component type>: <specific item>
|
|
13
|
+
|
|
14
|
+
## Context
|
|
15
|
+
|
|
16
|
+
<One or two paragraphs: what this is, why it is needed, the business requirement in the customer's
|
|
17
|
+
terms. Name the customer and the feature. Restate what the parent story says that matters here; do not
|
|
18
|
+
write "see parent".>
|
|
19
|
+
|
|
20
|
+
**Feature:** <feature key and name>
|
|
21
|
+
**Parent:** <PARENT-ID> (for people; everything the work needs is in this issue)
|
|
22
|
+
|
|
23
|
+
## Requirements
|
|
24
|
+
|
|
25
|
+
- <specific requirement>
|
|
26
|
+
- <specific requirement>
|
|
27
|
+
|
|
28
|
+
## Implementation Guide
|
|
29
|
+
|
|
30
|
+
- **GitHub Repo:** `Skedulo/<repo>`
|
|
31
|
+
- **Directory:** `<target directory>`
|
|
32
|
+
- **Key Files to Create/Modify:**
|
|
33
|
+
- `<path>` — <what to do>
|
|
34
|
+
- **Extension Point:** <mechanism>
|
|
35
|
+
- **Pattern to Follow:** <an existing file in the repo, by path>
|
|
36
|
+
|
|
37
|
+
## Agent Instructions
|
|
38
|
+
|
|
39
|
+
<For a plugin-backed component:>
|
|
40
|
+
- **Plugin Required:** `<plugin>`
|
|
41
|
+
- **Setup:** Install the `<plugin>` plugin from the Skedulo Plugin Marketplace
|
|
42
|
+
- **Build:** Use the plugin's `/build` agent to implement the requirements
|
|
43
|
+
- **Review:** Use `/review` before submitting the PR
|
|
44
|
+
|
|
45
|
+
<For a JSON-only component: "Plugin Required: None — JSON configuration only", with the naming
|
|
46
|
+
convention and how to validate.>
|
|
47
|
+
|
|
48
|
+
## Technical Details
|
|
49
|
+
|
|
50
|
+
<Key SDKs and imports, JSON structure, key patterns and pitfalls, from the code you read. Copy a
|
|
51
|
+
structure from a file in the repo rather than writing it from memory.>
|
|
52
|
+
|
|
53
|
+
## Acceptance Criteria
|
|
54
|
+
|
|
55
|
+
- [ ] <each "Done when" check from the plan, as a testable statement>
|
|
56
|
+
- [ ] Tests pass (`<the repo's test command>`)
|
|
57
|
+
- [ ] Every rule under "Product rules this issue must satisfy" holds, and nothing under "Do not
|
|
58
|
+
build" is built
|
|
59
|
+
|
|
60
|
+
## Dependencies
|
|
61
|
+
|
|
62
|
+
- **Blocked by:** <sub-issue IDs and titles, or None>
|
|
63
|
+
- **Blocks:** <sub-issue IDs and titles, or None>
|
|
64
|
+
|
|
65
|
+
## Agent Notes
|
|
66
|
+
|
|
67
|
+
<Quirks found while planning: data volumes, external API details, testing approach. Omit if none.>
|
|
68
|
+
|
|
69
|
+
## Delivery contract
|
|
70
|
+
|
|
71
|
+
<Only when the base is not the repo's default branch:>
|
|
72
|
+
Base branch: <branch>
|
|
73
|
+
|
|
74
|
+
- **Repo:** Skedulo/<repo>
|
|
75
|
+
- **Read at:** commit `<full sha>` on `<branch>` (the plan was made against this commit)
|
|
76
|
+
- **Files you may change:** <paths or globs>; if the work needs any other file, stop under the stop
|
|
77
|
+
rule and explain why in the PR
|
|
78
|
+
|
|
79
|
+
**Product rules this issue must satisfy** (copied verbatim; the IDs are stable):
|
|
80
|
+
|
|
81
|
+
- **LMB-R13** · core · verified — <rule text> _Source: <source>_
|
|
82
|
+
|
|
83
|
+
**Do not build:**
|
|
84
|
+
|
|
85
|
+
- **LMB-D3** · core · verified — <item> Reason: <reason> _Source: <source>_
|
|
86
|
+
- <any exclusion specific to this issue>
|
|
87
|
+
|
|
88
|
+
<Only when the developer chose to include unverified or `Conflict:` entries:>
|
|
89
|
+
**Unverified entries** (not yet confirmed; check each against the code, and if one does not hold,
|
|
90
|
+
say so under Findings rather than forcing it):
|
|
91
|
+
|
|
92
|
+
- **LMB-R20** · standard · unverified — <rule text> _Source: <source>_
|
|
93
|
+
|
|
94
|
+
**Stop rule:** if a step cannot be done as written (a rule this issue must satisfy cannot hold, a
|
|
95
|
+
file or API is not as described, a requirement conflicts with a rule), stop and explain it in the PR
|
|
96
|
+
description. Do not invent a different design.
|
|
97
|
+
|
|
98
|
+
## PR Description Instructions
|
|
99
|
+
|
|
100
|
+
End the PR description with a `## Findings` section listing what a later change to this product would
|
|
101
|
+
need to know that this issue did not say: a rule that turned out different, a platform limit, a field
|
|
102
|
+
or API that behaves unexpectedly, a decision you had to make. Write "None" if there is nothing. If you
|
|
103
|
+
stopped under the stop rule, say what blocked you there.
|
|
104
|
+
````
|
|
105
|
+
|
|
106
|
+
Notes on the template:
|
|
107
|
+
|
|
108
|
+
- `Base branch: <branch>` is a plain line with no leading `- `, and only when the base is not the
|
|
109
|
+
repo's default branch; otherwise leave the line out. The agent's directive parser ignores the
|
|
110
|
+
bulleted form.
|
|
111
|
+
- Mockups go in the description as embedded images (``). The agent does
|
|
112
|
+
not read attachments, so never refer it to one. Without an image URL, ask the developer for one or
|
|
113
|
+
describe the mockup in text (layout, fields, labels, states).
|
|
114
|
+
- Rule and don't-build lines are copied exactly as they appear on the hub pages, ID first.
|
|
115
|
+
|
|
116
|
+
## Labels
|
|
117
|
+
|
|
118
|
+
- `repo/skedulo/<repo>`: in the `repo` label group, `<repo>` is the bare repository name (the part
|
|
119
|
+
after the last `/`). Never guess it. If the label does not exist, ask the developer before creating it.
|
|
120
|
+
- `plugin/<builder>` where a builder plugin applies (one per sub-issue):
|
|
121
|
+
- Connected Function: `plugin/connected-function`
|
|
122
|
+
- Custom Object, Custom Field: `plugin/object-models`
|
|
123
|
+
- Horizon Component Bundle: `plugin/horizon-component`
|
|
124
|
+
- Horizon Page, Horizon Template: `plugin/horizon-page`
|
|
125
|
+
- Horizon List Config: `plugin/horizon-list-config`
|
|
126
|
+
- Triggered Action: `plugin/triggered-actions`
|
|
127
|
+
- User Role: `plugin/user-role`
|
|
128
|
+
- Optimisation Extension: `plugin/optimization-extension`
|
|
129
|
+
- Mobile Extension: `plugin/mobile-extension`
|
|
130
|
+
- Webhook: `plugin/webhooks`
|
|
131
|
+
- Config Variable: `plugin/config-variable`
|
|
132
|
+
- Public Page, and anything else: no plugin label
|
|
133
|
+
- Every `ref-repo:<owner>/<name>` label the parent carries, unchanged.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: fold-findings
|
|
3
|
+
description: Use when a sub-issue created by delegate-ticket has a merged PR and what the implementing agent learned should go back into the product knowledge, e.g. "fold the findings from SOL-1235", "fold findings for PR 42".
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Fold findings into product knowledge
|
|
7
|
+
|
|
8
|
+
The implementing agent ends each PR with a `## Findings` section. This skill turns those findings into
|
|
9
|
+
proposed changes to the product's knowledge and saves only what the developer confirms.
|
|
10
|
+
|
|
11
|
+
## First, check the server version
|
|
12
|
+
|
|
13
|
+
Look at the parameters of the `memory_update` tool; if only its name is listed, load its schema first.
|
|
14
|
+
If there is no `memory_update` tool at all, the memory-hub server is not connected: say so and stop.
|
|
15
|
+
If it has no `expectedLastModified` parameter, the memory-hub server is older than this release and
|
|
16
|
+
cannot edit safely. Stop, do nothing else, and tell the developer to update it:
|
|
17
|
+
|
|
18
|
+
- plugin installs, and `setup` installs with auto-update: restart Claude Code;
|
|
19
|
+
- pinned installs: re-run `npx -y @skedulo/memory-hub-mcp@latest setup --no-auto-update`;
|
|
20
|
+
- a checkout of the se-ai-memory-hub repo: pull and re-run `scripts/setup-dev.sh`.
|
|
21
|
+
|
|
22
|
+
## 1. Find the merged PR
|
|
23
|
+
|
|
24
|
+
1. From a PR: `gh pr view <number or url> --repo <owner/name> --json url,title,body,mergedAt,headRefName`;
|
|
25
|
+
take `<SUB-ID>` from the head branch or the PR body's Linear link, and ask if neither names one.
|
|
26
|
+
From a sub-issue: read it with the Linear connector and take the PR from its links or attachments.
|
|
27
|
+
If the Linear connector is not connected, ask for the PR link and say the sub-issue's comments were
|
|
28
|
+
not checked.
|
|
29
|
+
2. If the PR is not merged, stop: findings from unmerged work are not knowledge yet.
|
|
30
|
+
3. Read the PR's `## Findings` section. If it is missing, also check the sub-issue's comments; if the
|
|
31
|
+
agent stopped under the stop rule, its explanation is a finding.
|
|
32
|
+
|
|
33
|
+
## 2. Propose changes
|
|
34
|
+
|
|
35
|
+
1. Find the delivery repo uid: `memory_recall type=Fact scope=team externalRef=<SUB-ID>` and take
|
|
36
|
+
`repoId` from the Fact delegate-ticket saved; if there is none, ask and confirm with
|
|
37
|
+
`memory_listRepos`. Load only the pages the findings touch
|
|
38
|
+
(`memory_list type=Wiki repo=<delivery repo uid> titlePrefix="<Product> ›"`, then
|
|
39
|
+
`memory_get type=Wiki uid=<uid>` on every part of a split page). For new IDs, read every page from
|
|
40
|
+
`memory_list type=Wiki repo=<delivery repo uid> tags=["ProductRules"]`. `memory_list` returns
|
|
41
|
+
`total` and one page of items; call it again with `offset` until you have all of them. The entry
|
|
42
|
+
format and the confidentiality rules are in the product-knowledge skill's
|
|
43
|
+
`references/page-format.md`.
|
|
44
|
+
2. Sort each finding into one of:
|
|
45
|
+
- a change to an existing entry (quote its current line and the new line; a finding that overrides
|
|
46
|
+
a decision gets a `Conflict: overridden by <SUB-ID> (<reason>)` note and a new entry, not a
|
|
47
|
+
silent rewrite);
|
|
48
|
+
- an entry the finding shows no longer applies (retire it, with the reason);
|
|
49
|
+
- a new rule, constraint or don't-build item (next free ID, `unverified` unless the developer
|
|
50
|
+
verifies it, source `<SUB-ID> / <PR url>`);
|
|
51
|
+
- a reference page change (API, data model, troubleshooting);
|
|
52
|
+
- a plain fact about this ticket, which becomes a Fact, not a page edit;
|
|
53
|
+
- nothing to keep.
|
|
54
|
+
3. Show the proposals. Ask about each `core` entry separately. Drop anything the confidentiality rules
|
|
55
|
+
forbid.
|
|
56
|
+
|
|
57
|
+
## 3. Save what is confirmed
|
|
58
|
+
|
|
59
|
+
1. Page changes: run the product-knowledge skill in update mode
|
|
60
|
+
(`memory-hub:product-knowledge` when installed as a plugin) with the confirmed change list and the
|
|
61
|
+
reason "findings from <SUB-ID> (<PR url>)". It applies them with `expectedLastModified` and writes
|
|
62
|
+
the change-log lines.
|
|
63
|
+
2. Facts: `memory_save type=Fact repo=<delivery repo uid> externalRef=<SUB-ID> content=...`. Check
|
|
64
|
+
each result reports `visibility: "Team"`, and ignore duplicate notices against the delegate-ticket
|
|
65
|
+
Fact for the same sub-issue.
|
|
66
|
+
3. When the page changes and Facts are saved (or there were none, including findings of "None"), mark
|
|
67
|
+
the sub-issue's hub task done: `memory_setTaskStatus externalRef=<SUB-ID> status=Done`.
|
|
68
|
+
|
|
69
|
+
Report what changed, by page title and entry ID, and what the developer declined.
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: plan-ticket
|
|
3
|
+
description: Use when a developer wants to plan a Linear ticket for a customer product against that product's knowledge in the memory hub, e.g. "plan SOL-1234", "break this story down", before creating sub-issues with delegate-ticket.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Plan a ticket
|
|
7
|
+
|
|
8
|
+
Turn one Linear issue (the parent) into a master plan of outcomes that the developer approves, using
|
|
9
|
+
the product's rules, don't-build list and reference pages from the memory hub, and the code. The
|
|
10
|
+
product knowledge format is defined in the product-knowledge skill's `references/page-format.md`;
|
|
11
|
+
the parts you need are restated here.
|
|
12
|
+
|
|
13
|
+
## First, check the server version
|
|
14
|
+
|
|
15
|
+
Look at the parameters of the `memory_update` tool; if only its name is listed, load its schema first.
|
|
16
|
+
If there is no `memory_update` tool at all, the memory-hub server is not connected: say so and stop.
|
|
17
|
+
If it has no `expectedLastModified` parameter, the memory-hub server is older than this release and
|
|
18
|
+
cannot edit safely. Stop, do nothing else, and tell the developer to update it:
|
|
19
|
+
|
|
20
|
+
- plugin installs, and `setup` installs with auto-update: restart Claude Code;
|
|
21
|
+
- pinned installs: re-run `npx -y @skedulo/memory-hub-mcp@latest setup --no-auto-update`;
|
|
22
|
+
- a checkout of the se-ai-memory-hub repo: pull and re-run `scripts/setup-dev.sh`.
|
|
23
|
+
|
|
24
|
+
## 1. Read the ticket
|
|
25
|
+
|
|
26
|
+
With the Linear connector, read the parent issue: title, description, acceptance criteria, labels
|
|
27
|
+
(keep every `ref-repo:*` label), project, comments, and linked or related issues. If the Linear
|
|
28
|
+
connector is not connected, stop and tell the developer.
|
|
29
|
+
|
|
30
|
+
## 2. Load only the knowledge this ticket needs
|
|
31
|
+
|
|
32
|
+
`memory_list` returns `total` and one page of items; call it again with `offset` until you have all
|
|
33
|
+
`total` of them.
|
|
34
|
+
|
|
35
|
+
1. Find the product: `memory_checkRepoStatus` in the delivery repo's checkout, or ask and take the
|
|
36
|
+
repo's uid from `memory_listRepos`. Then
|
|
37
|
+
`memory_list type=Wiki repo=<delivery repo uid> tags=["ProductRules"]`, which lists the Rules pages
|
|
38
|
+
and the Don't build page. If there are no Rules pages, stop and offer the product-knowledge skill in
|
|
39
|
+
create mode.
|
|
40
|
+
2. Pick the features the ticket touches from those titles and read them in full with
|
|
41
|
+
`memory_get type=Wiki uid=<uid>` (every part of a split page). Always read `<Product> › Don't build`
|
|
42
|
+
(every part).
|
|
43
|
+
3. Read only the reference pages the work needs (data model, APIs, workflows), found the same way
|
|
44
|
+
with `titlePrefix="<Product> › Reference ›"`.
|
|
45
|
+
4. Read what the hub already knows about this ticket: `memory_recall type=Fact scope=team
|
|
46
|
+
externalRef=<parent>` and `memory_recall type=Scenario scope=team externalRef=<parent>`.
|
|
47
|
+
5. For each repo involved, read its architecture map: `memory_list type=Skill tags=["ArchitectureMap"]`,
|
|
48
|
+
then `memory_get type=Skill uid=<uid>` on the ones for those repos.
|
|
49
|
+
|
|
50
|
+
Entry lines look like `- **LMB-R13** · core · verified — <rule> _Source: ..._`. `core` entries never
|
|
51
|
+
change without the developer's explicit confirmation; `unverified` entries came from code or an import
|
|
52
|
+
and need checking before you rely on them. Ignore entries under a page's `## Retired` section. For an
|
|
53
|
+
entry marked `Conflict: overridden by ...`, use the entry that overrides it, never the overridden one.
|
|
54
|
+
|
|
55
|
+
## 3. Read the code
|
|
56
|
+
|
|
57
|
+
1. Search the local checkout first.
|
|
58
|
+
2. Then the other repos the work touches: those named in `package.json` dependencies, in imports, and
|
|
59
|
+
in architecture-map edges (runtime calls that imports miss). Read them with `gh`:
|
|
60
|
+
`gh search code --repo <owner/name> "<term>"`, `gh api repos/<owner>/<name>/contents/<path>`.
|
|
61
|
+
3. Note the commit each repo was read at: `git rev-parse HEAD` locally, or
|
|
62
|
+
`gh api repos/<owner>/<name>/commits/<branch> --jq .sha`. The plan records it.
|
|
63
|
+
|
|
64
|
+
## 4. Ask before deciding
|
|
65
|
+
|
|
66
|
+
Stop and ask the developer, with the entries and sources side by side, when:
|
|
67
|
+
|
|
68
|
+
- two rules conflict, or the ticket contradicts a rule or a don't-build item;
|
|
69
|
+
- an acceptance criterion cannot be tested as written;
|
|
70
|
+
- sources disagree (TDD against code, ticket against a rule, a rule against a recent decision).
|
|
71
|
+
|
|
72
|
+
Never resolve a conflict on a `core` entry yourself. Record each answer; if it changes product
|
|
73
|
+
knowledge, list it under "Knowledge changes" in the plan.
|
|
74
|
+
|
|
75
|
+
## 5. Write the plan
|
|
76
|
+
|
|
77
|
+
Outcomes are grouped by milestone and ordered: object model first, then functions and automations,
|
|
78
|
+
then UI. Each outcome is one pull request in one repo, small enough for one agent session. If one is
|
|
79
|
+
bigger, split it.
|
|
80
|
+
|
|
81
|
+
```markdown
|
|
82
|
+
# Delivery plan: <PARENT-ID> <title>
|
|
83
|
+
|
|
84
|
+
Product: <Product> · Read at: <owner/name>@<full sha>, ...
|
|
85
|
+
|
|
86
|
+
## Milestone 1: <name>
|
|
87
|
+
|
|
88
|
+
### 1.1 <outcome title>
|
|
89
|
+
- Repo: <owner/name> · Base branch: <branch>
|
|
90
|
+
- Goal: <one sentence>
|
|
91
|
+
- Done when: <testable checks: commands to run, observable behaviour>
|
|
92
|
+
- Rules: <IDs it must satisfy, e.g. LMB-R13, LMB-C4>
|
|
93
|
+
- Must not: <don't-build IDs and explicit exclusions>
|
|
94
|
+
- Files it may change: <paths or globs>
|
|
95
|
+
- Depends on: <outcome numbers, or none>
|
|
96
|
+
|
|
97
|
+
## Knowledge changes
|
|
98
|
+
- <proposed new or changed entries, with the decision that prompted each, or "None">
|
|
99
|
+
|
|
100
|
+
## Open questions
|
|
101
|
+
- <anything still unanswered, or "None">
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
Show the plan and revise it until the developer says it is approved. Do not write anything to Linear
|
|
105
|
+
or the hub before that.
|
|
106
|
+
|
|
107
|
+
## 6. Record the approved plan
|
|
108
|
+
|
|
109
|
+
1. Before writing anything, check the approved plan against the confidentiality rules. Remove:
|
|
110
|
+
commercial terms (prices, rates, budgets, contract values, payment terms); customer personal data
|
|
111
|
+
(names, emails or phone numbers of customer staff or end users); verbatim contract text (restate
|
|
112
|
+
scope as function); customer data rows and production record IDs (UUIDs, Salesforce record IDs);
|
|
113
|
+
credentials, tokens and secrets. Tell the developer what you removed. If that changes an outcome,
|
|
114
|
+
show the plan again and get it approved before going on.
|
|
115
|
+
2. Post the plan as a comment on the parent issue, headed `Delivery plan (approved <date>)`. A later
|
|
116
|
+
revision is a new comment with a new date, so the history stays on the issue.
|
|
117
|
+
3. Save it in the hub as a Scenario on the delivery repo:
|
|
118
|
+
`memory_save type=Scenario repo=<delivery repo uid> externalRef=<parent> summary=<the plan>`, and
|
|
119
|
+
check the result reports `visibility: "Team"`. If step 2.4 found a plan Scenario for this ticket (a
|
|
120
|
+
Scenario whose summary starts with `# Delivery plan: <PARENT-ID>`), update that one instead:
|
|
121
|
+
`memory_get type=Scenario uid=<its uid>`, then `memory_update type=Scenario uid=<its uid>
|
|
122
|
+
summary=<the plan> expectedLastModified=<its lastModifiedDate>`. If it fails with `Conflict:`,
|
|
123
|
+
someone else changed the plan since you read it: `memory_get` it again, show the developer what
|
|
124
|
+
changed, and ask before updating.
|
|
125
|
+
4. If "Knowledge changes" is not empty, offer to apply them with the product-knowledge skill in update
|
|
126
|
+
mode (`memory-hub:product-knowledge` when installed as a plugin). Approving the plan does not
|
|
127
|
+
confirm a change to a `core` entry; update mode asks about each one by ID.
|
|
128
|
+
5. Offer the next step: delegate-ticket.
|