@skedulo/memory-hub-mcp 0.2.14 → 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.
@@ -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 (`![<what it shows>](<image url>)`). 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.
@@ -0,0 +1,150 @@
1
+ ---
2
+ name: product-knowledge
3
+ description: Use when building, refreshing or importing a customer product's knowledge in the memory hub (rules with IDs and tiers, work not to build, reference pages, sources), e.g. "create the product knowledge for Lindamood-Bell from the TDD", "refresh the LMB knowledge", "import the knowledge pack for this customer", or when fold-findings hands over confirmed changes.
4
+ ---
5
+
6
+ # Product knowledge
7
+
8
+ Product knowledge is a set of Team wiki pages in the memory hub, one set per product (a hub team), on
9
+ the product's delivery repo. Read `references/page-format.md` in this skill's folder before reading or
10
+ writing any page: it defines the titles, the entry line format, IDs, tiers, the change log, the
11
+ Sources page, the team-safe editing steps and the confidentiality rules. Follow it exactly.
12
+
13
+ Pick the mode from what the developer asks: **create** (no pages yet), **update** (refresh from
14
+ sources, or apply changes another skill hands over), or **import** (from a knowledge pack in the
15
+ shared memory repo).
16
+
17
+ ## First, check the server version
18
+
19
+ Look at the parameters of the `memory_update` tool; if only its name is listed, load its schema first.
20
+ If there is no `memory_update` tool at all, the memory-hub server is not connected: say so and stop.
21
+ If it has no `expectedLastModified` parameter, the memory-hub server is older than this release and
22
+ cannot edit safely. Stop, do nothing else, and tell the developer to update it:
23
+
24
+ - plugin installs, and `setup` installs with auto-update: restart Claude Code;
25
+ - pinned installs: re-run `npx -y @skedulo/memory-hub-mcp@latest setup --no-auto-update`;
26
+ - a checkout of the se-ai-memory-hub repo: pull and re-run `scripts/setup-dev.sh`.
27
+
28
+ ## Before any mode
29
+
30
+ 1. Find the product and its delivery repo. In the delivery repo's checkout, `memory_checkRepoStatus`
31
+ shows the linked team; otherwise ask, and confirm with `memory_listRepos`. If the repo is not
32
+ linked to the product's team, stop and ask the developer to link it; call `memory_linkRepoTeam`
33
+ only when they say so.
34
+ 2. List the existing pages: `memory_list type=Wiki repo=<repo uid> titlePrefix="<Product> ›"` (page
35
+ through with `offset` when `total` is larger). Read the ID prefix from existing entries.
36
+ 3. Nothing is saved or changed until the developer confirms it in this conversation.
37
+
38
+ ## Create
39
+
40
+ 1. If pages already exist for the product, switch to update.
41
+ 2. Ask which sources to build from: TDD, SOW and change requests, Confluence pages (Atlassian
42
+ connector), Linear issues or projects (Linear connector), Google Drive documents (Drive connector),
43
+ the delivery repo. If a connector a source needs is not connected, say so and ask for the document
44
+ another way; do not skip it silently.
45
+ 3. Read each source and note its version as the Sources page records it.
46
+ 4. Draft, per feature: rules (`R`) and constraints (`C`) with proposed IDs and tiers; the don't-build
47
+ list (`D`) with the reason and source of each item; the reference topics worth a page (data model,
48
+ APIs, workflows, glossary, troubleshooting, overview). Agree feature keys with the developer first.
49
+ 5. Show the draft feature by feature: each entry's ID, tier, status and text, and its source. Ask the
50
+ developer to confirm, change or drop entries, and to confirm every `core` entry by ID. Entries they
51
+ confirm from documents are `verified`; entries taken from code stay `unverified`.
52
+ 6. Apply the confidentiality rules to the confirmed draft. Remove anything they forbid and say what
53
+ you removed.
54
+ 7. Save each page with `memory_save type=Wiki repo=<delivery repo uid> title=... content=...`, with
55
+ `tags=["ProductRules"]` on rules and don't-build pages. Every page ends with a change-log line
56
+ (`<date> · <developer> · Created · from <sources>`). Check each result reports `visibility: "Team"`; if one does not, stop
57
+ and tell the developer.
58
+ 8. Save the Sources page last. Report every page title with its uid.
59
+
60
+ ## Update
61
+
62
+ Use update to refresh from sources, to add sources, or to apply a confirmed change list handed over by
63
+ fold-findings or plan-ticket.
64
+
65
+ A change list handed over by another skill skips steps 1 and 2 and runs steps 3 to 5; its non-core
66
+ changes are already confirmed. Then report what changed.
67
+
68
+ A core change is a new `core` entry, a change to or from `core`, or any edit, `Conflict:` note or
69
+ retirement of a `core` entry. Each one needs the developer to confirm that entry by ID. Approving a
70
+ plan or a change list as a whole is not that confirmation, so ask about each core change in a
71
+ handed-over list too, unless the developer already confirmed that exact change by ID in this
72
+ conversation.
73
+
74
+ 1. Read the Sources page. For each source, read its current version (page-format.md lists how) and
75
+ compare it with the recorded one. A source you cannot reach is reported as unchecked, not as
76
+ unchanged.
77
+ 2. For each changed source, re-read it and compare with the pages it feeds. Propose, per feature:
78
+ new entries (next free IDs), changed text, tier changes, entries a newer decision overrides (a
79
+ `Conflict:` note plus a new entry), and entries to retire.
80
+
81
+ A `pack` source has moved when its recorded commit differs from the checkout's HEAD or
82
+ `memory_checkSources` reports its pages behind. Re-read it by running `import convert` again with
83
+ the same `--product` and `--prefix` and `--out "$TMPDIR/memory-hub-import/<PREFIX>-refresh.json"`
84
+ (it saves nothing, and nothing is written in the checkout). Compare that plan's pages with the hub
85
+ pages entry by entry, matched by ID, on rule text and source only: a fresh convert marks every
86
+ entry `standard` and `unverified`, so never propose reverting a hub entry's tier, status,
87
+ `Conflict:` note or retirement, and never propose removing an entry the pack does not have. If a
88
+ pack entry's ID is already used by a different hub entry, ask. Propose the differences as above,
89
+ and use the new review file's flags in step 4. Never run `import apply` for a product that
90
+ already has pages; the CLI refuses it. In step 6, also set each page the pack feeds to the new
91
+ commit (`memory_update ... source={repo: "<owner/name>", commit: "<sha>"}` with
92
+ `expectedLastModified`), so `memory_checkSources` stops reporting it. When you are done, offer to
93
+ delete the new plan and review files: they may hold flagged values.
94
+ 3. Show the proposals with each entry's exact current line and exact new line, and ask about each
95
+ core change by ID. Apply only what the developer confirms.
96
+ 4. Apply the confidentiality rules to the confirmed changes. Remove anything they forbid and say what
97
+ you removed.
98
+ 5. Apply each confirmed change with the team-safe editing steps in page-format.md: `memory_get`, edit
99
+ the full text, add the change-log line, `memory_update` with `expectedLastModified`, and retry on
100
+ `Conflict:`.
101
+ 6. Update the Sources page with the versions you read, through the same steps.
102
+
103
+ ## Import
104
+
105
+ Imports a knowledge pack, `domains/<name>/` in a checkout of the shared memory repo, through the
106
+ `memory-hub-mcp import` CLI, which saves through the same path as `memory_save`, so every page is
107
+ embedded. Each imported page records the pack's repo and commit as its source. Never edit the shared
108
+ memory repo from this skill: it changes only through its own publish tool.
109
+
110
+ 1. If pages already exist for the product, do not import: importing again would duplicate titles or
111
+ start a second ID prefix, and `import apply` refuses it. To pick up a pack that has moved, use
112
+ update mode.
113
+ 2. Ask for the path of the shared memory repo checkout and the pack name (`domains/<name>`), the
114
+ product name, the ID prefix, and the delivery repo as `owner/name` (linked to the product's team).
115
+ 3. The CLI needs `MEMORY_HUB_MCP_TOKEN` in the environment. `memory-hub-mcp setup` stores it in
116
+ `~/.claude/settings.json`, which Claude Code passes to commands. If it is missing, ask the developer
117
+ to run `npx -y @skedulo/memory-hub-mcp@latest setup --code`, or to export the token in this shell.
118
+ 4. Convert. This saves nothing:
119
+
120
+ ```bash
121
+ npx -y @skedulo/memory-hub-mcp@latest import convert "<checkout>/domains/<name>" --product "<Product>" --prefix <PREFIX> --by "<developer name>"
122
+ ```
123
+
124
+ It prints the plan file (JSON) and the review file (Markdown) beside it.
125
+ 5. Read the review file and go through its flags with the developer, the likely names first. For each
126
+ flagged value, the developer chooses: remove it (edit the content of every item the flag lists in
127
+ the plan JSON), skip a whole item (`"skip": true`), or keep it (`"resolved": true` on the flag,
128
+ only for Skedulo staff names and values that are not customer data). Show the "Probably product
129
+ terms" list and let the developer resolve it in one go. Apply the confidentiality rules to the rest
130
+ of the plan as you go.
131
+ 6. Every imported entry is `standard` and `unverified`. Ask whether any should be `core` now; edit
132
+ those lines in the plan JSON. Constraints with category `scope` are don't-build candidates: note
133
+ them for an update after the import.
134
+ 7. Before saving, tell the developer what apply will write: the number of pages and facts, the page
135
+ titles, and that each is a Team item on `<owner/name>`, visible to the product team. Run apply
136
+ only when they say go ahead.
137
+ 8. Save:
138
+
139
+ ```bash
140
+ npx -y @skedulo/memory-hub-mcp@latest import apply "<plan.json>" --repo <owner/name>
141
+ ```
142
+
143
+ It refuses while a flagged value is unresolved, when the repo has no team, or when the embedding
144
+ model does not load. It writes each saved uid into the plan file, so if it stops partway, run the
145
+ same command again and it resumes.
146
+ 9. The plan and review files still hold the flagged values. Once apply has finished without errors,
147
+ tell the developer where they are (the `Plan:` and `Review:` paths convert printed) and offer to
148
+ delete them. Keep them while an apply is unfinished: the plan file is what it resumes from.
149
+ 10. Ask the developer to check the pages in the hub. When they are happy, offer a don't-build page
150
+ from the `scope` constraints (update mode).
@@ -0,0 +1,133 @@
1
+ # Product knowledge pages
2
+
3
+ Every skill that reads or writes product knowledge follows this file.
4
+
5
+ ## Where it lives
6
+
7
+ A product is a memory-hub team (for example "Lindamood Bell"). Its knowledge is Team-visible wiki pages
8
+ on the product's delivery repo, the repo linked to that team. A product with several repos links them
9
+ all to the same team; the pages attach to the delivery repo only.
10
+
11
+ - Visibility is always Team: never Org, never Private. A repo-scoped save on a team-linked repo is
12
+ Team by default, so do not pass `visibility`; check that each save reports `visibility: "Team"`.
13
+ - `<Product>` is the product's display name, written the same way in every title.
14
+ - `<PREFIX>` is the product's ID prefix, upper-case letters and digits (`LMB`). Read it from the
15
+ existing rule IDs; never start a second prefix for the same product.
16
+
17
+ ## Page kinds
18
+
19
+ - `<Product> › Rules › <feature>`: the rules and constraints for one feature. Tag `ProductRules`.
20
+ - `<Product> › Don't build`: work that is out of scope, with the reason and source. Tag `ProductRules`.
21
+ - `<Product> › Reference › <topic>`: APIs, workflows, data model, glossary, troubleshooting,
22
+ overview. No tag.
23
+ - `<Product> › Sources`: every source the knowledge was built from, with its version or hash. No tag.
24
+
25
+ `<feature>` is a stable kebab-case key (`group-sessions`, `schedule-plans`). It becomes a Knowledge Hub
26
+ area name later, so never derive it from a ticket key or a date, and never rename one. Add a new
27
+ feature key only with the developer's agreement.
28
+
29
+ A page over about 20,000 characters is split into parts titled `<title> (1/3)`, `(2/3)`, `(3/3)`. Each
30
+ part keeps its own change log. When an edit pushes a page over the limit, move whole entries into a
31
+ new last part and renumber the titles.
32
+
33
+ Find pages with `memory_list type=Wiki repo=<delivery repo uid> titlePrefix="<Product> ›"`, or
34
+ `tags=["ProductRules"]` for the rules and don't-build pages only; it returns `total` and one page of
35
+ items, so call it again with `offset` until you have them all. Read a page in full with
36
+ `memory_get type=Wiki uid=<uid>`, which also returns its `lastModifiedDate`.
37
+
38
+ ## Entry lines
39
+
40
+ One entry per bullet, so a skill can copy it verbatim into a sub-issue:
41
+
42
+ ```
43
+ - **LMB-R13** · core · verified — The Skedulo Optimizer is out of scope for both divisions. _Source: TDD For Schools §4.2_
44
+ ```
45
+
46
+ - ID: `<PREFIX>-R<n>` for a rule, `<PREFIX>-C<n>` for a constraint, `<PREFIX>-D<n>` for a don't-build
47
+ item. IDs are unique within the product and never reused. The next ID is one more than the highest
48
+ existing number of that kind across all the product's pages. Imported entries keep their number.
49
+ - Tier: `core` (never change without the developer's explicit confirmation of that entry),
50
+ `standard`, or `detail` (a tunable default).
51
+ - Status: `verified` or `unverified`. Anything taken from code, an import or old files is
52
+ `unverified` until a developer reviews it. An entry the developer confirmed from a TDD, SOW,
53
+ Confluence page or Linear decision is `verified`.
54
+ - Source: the document and section, the Linear issue, or `code: <owner/name>@<short sha> <path>`.
55
+ - When a later decision overrides an entry, do not rewrite it silently. Keep the line and add
56
+ `Conflict: overridden by SOL-1234 (<one-line reason>)` after the source, then add the new entry with
57
+ its own ID.
58
+ - A retired entry moves to a `## Retired` section at the end of its page, before the change log, with
59
+ `Retired <date>: <reason>` after the source. Its ID is not reused.
60
+
61
+ Rules pages have `## Rules` and `## Constraints` sections. The don't-build page has one list:
62
+
63
+ ```
64
+ - **LMB-D3** · core · verified — Do not build an automatic waitlist. Reason: the customer keeps waitlists in Salesforce. _Source: SOW §2.1 (scope as function)_
65
+ ```
66
+
67
+ ## Change log
68
+
69
+ Every page ends with:
70
+
71
+ ```
72
+ ## Change log
73
+
74
+ - 2026-10-21 · Sam Developer · Added LMB-R74, changed LMB-R13 to core · TDD v1.4 §3 changed the session rules
75
+ ```
76
+
77
+ Date, who (the developer, by name), what changed (entry IDs), why (the source or decision). Newest
78
+ last. The skills write it; it stands in for the history git would otherwise give.
79
+
80
+ ## Sources page
81
+
82
+ One line per source:
83
+
84
+ ```
85
+ - `local` · docs/TDD For Schools.pdf · sha256 `9f2c…` · read 2026-10-21
86
+ - `confluence` · page 123456789 "LC Technical Design" · version 14 · read 2026-10-21
87
+ - `linear` · SOL-1234 · updatedAt 2026-10-20T03:00:00.000Z · read 2026-10-21
88
+ - `gdrive` · file 1AbCdEf "LC Statement of Work" · modifiedTime 2026-10-19T22:10:00.000Z · read 2026-10-21
89
+ - `repo` · Skedulo/cx-lindamood-bell@main · commit 4be1c0d · read 2026-10-21
90
+ - `pack` · <owner/name of the shared memory repo> domains/cx-lindamood-bell · commit 7a3e9b1 · read 2026-10-21
91
+ ```
92
+
93
+ How to read each version now:
94
+
95
+ - `local`: `shasum -a 256 "<path>"`.
96
+ - `confluence`: the Atlassian connector's get-page call; use the page's `version.number`.
97
+ - `linear`: the Linear connector's get-issue (or get-project/get-document) call; use `updatedAt`.
98
+ - `gdrive`: the Google Drive connector's file-metadata call; use `modifiedTime` (or `version`).
99
+ - `repo`: `git -C <checkout> rev-parse HEAD`, or `gh api repos/<owner>/<name>/commits/<branch> --jq .sha`.
100
+ - `pack`: `git -C <checkout> rev-parse HEAD` in an up-to-date checkout of the shared memory repo, or
101
+ `memory_checkSources` run in that checkout, which lists imported pages whose commit is behind.
102
+
103
+ ## Editing a page (team-safe)
104
+
105
+ Any member of the product team can edit these pages; two developers must not overwrite each other.
106
+
107
+ 1. `memory_get type=Wiki uid=<uid>`; keep its `content` and `lastModifiedDate`.
108
+ 2. Apply the change to the full text. Keep every other line exactly as it was.
109
+ 3. Append the change-log line.
110
+ 4. `memory_update type=Wiki uid=<uid> content=<full new text> expectedLastModified=<lastModifiedDate>`.
111
+ 5. If it fails with `Conflict:`, someone else changed the page. Go back to step 1, re-apply the change
112
+ to the new text, show the developer what the other person changed if it touches the same entries,
113
+ and retry.
114
+
115
+ Teammates can change a page's title, content and tags. Only the page's author can move it to another
116
+ repo or change its links; ask them if that is needed. Deleting a page is author-only too; prefer
117
+ retiring entries over deleting pages.
118
+
119
+ ## Confidentiality
120
+
121
+ Read documents in the session and store only distilled knowledge. The hub may hold: the customer's
122
+ organisation name, features and rules, scope stated as function, decisions attributed by role ("the
123
+ customer's operations lead"), schema and field API names, and Skedulo staff names.
124
+
125
+ Never store, on any page or fact:
126
+
127
+ - commercial terms: prices, rates, budgets, contract values, payment terms;
128
+ - customer personal data: names, emails or phone numbers of customer staff or end users;
129
+ - credentials, tokens or secrets;
130
+ - customer data rows or production record IDs (UUIDs, Salesforce record IDs);
131
+ - verbatim contract text: never quote a SOW or change request; restate scope as function.
132
+
133
+ When unsure, leave it out and tell the developer what you left out.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/memory-hub-mcp",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "MCP server for the SE AI Memory Hub: recall and save developer memory from Claude Code and Claude Desktop.",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {