@skedulo/memory-hub-mcp 0.2.15 → 0.2.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -71,9 +71,9 @@ else if (command === '--help' || command === '-h') {
71
71
  end, a background Claude run, using your Claude usage, saves what
72
72
  the session learned (new memories Private, updates keep their
73
73
  visibility). setup also asks.
74
- memory-hub-mcp import convert <packDir> --product <name> --prefix <PREFIX> [--by <name>] [--out <plan.json>] [--force]
74
+ memory-hub-mcp import convert <packDir> --project <name> --prefix <PREFIX> [--by <name>] [--out <plan.json>] [--force]
75
75
  turn a knowledge pack folder (domains/<name> in the shared memory
76
- repo) into a plan of product knowledge pages, plus a review file
76
+ repo) into a plan of project knowledge pages, plus a review file
77
77
  listing values that look like customer data. Saves nothing.
78
78
  memory-hub-mcp import apply <plan.json> --repo <owner/name>
79
79
  save a reviewed plan to the hub as Team items on that repo, with
@@ -8,7 +8,7 @@ const client_1 = require("./client");
8
8
  const pack_import_1 = require("./pack-import");
9
9
  const import_apply_1 = require("./import-apply");
10
10
  const git_remote_1 = require("./git-remote");
11
- exports.IMPORT_USAGE = `memory-hub-mcp import convert <packDir> --product <name> --prefix <PREFIX> [--by <name>] [--out <plan.json>] [--force]
11
+ exports.IMPORT_USAGE = `memory-hub-mcp import convert <packDir> --project <name> --prefix <PREFIX> [--by <name>] [--out <plan.json>] [--force]
12
12
  memory-hub-mcp import apply <plan.json> --repo <owner/name>`;
13
13
  function option(argv, name) {
14
14
  const index = argv.indexOf(`--${name}`);
@@ -49,10 +49,10 @@ async function runImport(argv, deps) {
49
49
  const [subcommand, rawTarget] = argv;
50
50
  const target = rawTarget && !rawTarget.startsWith('--') ? rawTarget : undefined;
51
51
  if (subcommand === 'convert' && target) {
52
- const product = option(argv, 'product');
52
+ const product = option(argv, 'project') ?? option(argv, 'product');
53
53
  const prefix = option(argv, 'prefix');
54
54
  if (!product || !prefix) {
55
- deps.log(`--product and --prefix are required.\n${exports.IMPORT_USAGE}`);
55
+ deps.log(`--project and --prefix are required.\n${exports.IMPORT_USAGE}`);
56
56
  return 2;
57
57
  }
58
58
  const packDir = (0, path_1.resolve)(target);
package/dist/index.js CHANGED
@@ -23,38 +23,7 @@ const revise_1 = require("./revise");
23
23
  const similar_notice_1 = require("./similar-notice");
24
24
  const session_context_1 = require("./session-context");
25
25
  const asset_sync_1 = require("./asset-sync");
26
- // Must match the AgentFacts/AgentSkills/AgentWikiPages Tags custom field's Picklist
27
- // allowedValues (src/object-model/custom-fields/{AgentFacts,AgentSkills,AgentWikiPages}/*-Tags.custom-field.json)
28
- // exactly — the connected function 400s on any value outside this set, with
29
- // no indication of what the valid values are. Validating here instead
30
- // turns that into a clear Zod error at the tool-call boundary.
31
- const TAG_VALUES = [
32
- 'ConnectedFunction',
33
- 'HorizonComponent',
34
- 'TriggeredAction',
35
- 'ObjectModel',
36
- 'MobileExtension',
37
- 'Deployment',
38
- 'Auth',
39
- 'Testing',
40
- 'BreezeUI',
41
- 'PSS',
42
- 'PSF',
43
- 'Optimization',
44
- 'Webhooks',
45
- 'Salesforce',
46
- 'Other',
47
- 'ArchitectureMap',
48
- 'SOW',
49
- 'TDD',
50
- 'AI',
51
- 'API',
52
- 'Mobile',
53
- 'Infrastructure',
54
- 'Security',
55
- 'Messaging',
56
- 'ProductRules',
57
- ];
26
+ const tags_1 = require("./tags");
58
27
  // The team's one deployed memory-hub function. MEMORY_HUB_FUNCTION_URL only needs to
59
28
  // be set to override this (e.g. pointing at a local `sked function dev` instance).
60
29
  const DEFAULT_FUNCTION_URL = 'https://dev-api.test.skl.io/function/memory-hub/memory-hub';
@@ -123,7 +92,7 @@ server.tool('memory_recall', "Recall this developer's (or their team's) Facts, S
123
92
  type: zod_1.z.enum(['Fact', 'Skill', 'Scenario', 'Wiki']),
124
93
  scope: zod_1.z.enum(['self', 'team']),
125
94
  query: zod_1.z.string().optional(),
126
- tags: zod_1.z.array(zod_1.z.enum(TAG_VALUES)).optional().describe('Fact only.'),
95
+ tags: zod_1.z.array(zod_1.z.enum(tags_1.TAG_VALUES)).optional().describe('Fact only.'),
127
96
  externalRef: zod_1.z.string().optional().describe("Fact, Scenario only — filter to items linked to this Linear/Jira ticket ref, e.g. 'SOL-1234'. Does not create a task if the ref doesn't resolve to one — returns no results instead."),
128
97
  maxCharsPerItem: zod_1.z.number().int().positive().optional().describe('Per-item content cap, default 500. Raise it to read longer items inline; prefer memory_get for a single long one.'),
129
98
  maxTotalChars: zod_1.z.number().int().positive().optional().describe('Cap across all items, default 6000.'),
@@ -151,7 +120,7 @@ const saveShape = {
151
120
  summary: zod_1.z.string().optional().describe('Required for Scenario.'),
152
121
  factIds: zod_1.z.array(zod_1.z.string()).optional().describe('Scenario only — UIDs of facts already saved this session that belong together.'),
153
122
  links: zod_1.z.array(zod_1.z.string()).optional().describe('Wiki only — UIDs of other wiki pages this one depends on.'),
154
- tags: zod_1.z.array(zod_1.z.enum(TAG_VALUES)).optional().describe('Fact, Skill, Wiki only.'),
123
+ tags: zod_1.z.array(zod_1.z.enum(tags_1.TAG_VALUES)).optional().describe('Fact, Skill, Wiki only.'),
155
124
  externalRef: zod_1.z.string().optional().describe("Fact, Scenario, Wiki only — the Linear/Jira ticket this relates to, e.g. 'SOL-1234' — pass it when the user mentions a ticket."),
156
125
  repo: zod_1.z.string().min(1).optional().describe('A DevRepos uid from memory_listRepos, or an owner/name that is already registered, overriding the current-directory auto-detected repo.'),
157
126
  visibility: zod_1.z.enum(['Private', 'Team', 'Org']).optional().describe('Only when the human approved sharing this item or batch in this conversation. Org is readable by everyone in the tenant. Omit it to get the default. Team is refused on a repo no team owns yet.'),
@@ -201,7 +170,7 @@ server.tool('memory_list', "List memory items of one type that you can see, newe
201
170
  repo: zod_1.z.string().min(1).nullable().optional().describe('A DevRepos uid from memory_listRepos. null lists only items with no repo; omit for any repo.'),
202
171
  visibility: zod_1.z.enum(['Private', 'Team', 'Restricted', 'Org']).optional(),
203
172
  titlePrefix: zod_1.z.string().min(1).optional().describe('Case-insensitive start of the title (Fact: content, Scenario: summary).'),
204
- tags: zod_1.z.array(zod_1.z.enum(TAG_VALUES)).optional().describe('Items carrying any of these tags. Not supported for Scenario.'),
173
+ tags: zod_1.z.array(zod_1.z.enum(tags_1.TAG_VALUES)).optional().describe('Items carrying any of these tags. Not supported for Scenario.'),
205
174
  mine: zod_1.z.boolean().optional().describe('true: only items you saved.'),
206
175
  createdAfter: zod_1.z.string().min(1).optional().describe('ISO date or datetime. Skills filter on last modified instead of created.'),
207
176
  sourceRepo: zod_1.z.string().min(1).optional().describe('owner/name, exact: only items whose source.repo is this.'),
@@ -290,7 +259,7 @@ server.tool('memory_update', "Revise a memory (yours, or a Team item on your tea
290
259
  content: zod_1.z.string().min(1).optional().describe('Fact, Skill, Wiki: the full new text, not a patch.'),
291
260
  title: zod_1.z.string().min(1).optional().describe('Skill, Wiki only.'),
292
261
  summary: zod_1.z.string().min(1).optional().describe('Scenario only: the full new summary.'),
293
- tags: zod_1.z.array(zod_1.z.enum(TAG_VALUES)).optional().describe('Fact, Skill, Wiki only. Replaces the existing tags.'),
262
+ tags: zod_1.z.array(zod_1.z.enum(tags_1.TAG_VALUES)).optional().describe('Fact, Skill, Wiki only. Replaces the existing tags.'),
294
263
  repo: zod_1.z.string().min(1).nullable().optional().describe('A DevRepos uid, or null to clear it.'),
295
264
  links: zod_1.z.array(zod_1.z.string().min(1)).optional().describe('Wiki only: the full new list of target wiki page uids; [] clears. Replaces, not appends.'),
296
265
  factIds: zod_1.z.array(zod_1.z.string().min(1)).optional().describe('Scenario only: the full new list of YOUR fact uids that belong to it; [] unlinks all. Facts that are not yours come back as skippedFactIds.'),
@@ -236,12 +236,12 @@ function rulesPages(opts, memory, changeLog) {
236
236
  const rules = lines('rules');
237
237
  const constraints = lines('constraints');
238
238
  const intro = `Rules and constraints for ${feature}. One per line: ID · tier · status — rule. Tiers: core (change only with the ` +
239
- "developer's explicit confirmation), standard, detail (a tunable default). Imported entries stay unverified until a developer reviews them.\n";
239
+ "developer's explicit confirmation), standard, detail (a tunable default). Imported entries stay unverified until they are checked against the code.\n";
240
240
  const blocks = [
241
241
  ...(rules.length ? ['\n## Rules\n\n', ...rules] : []),
242
242
  ...(constraints.length ? ['\n## Constraints\n\n', ...constraints] : []),
243
243
  ];
244
- return toPages(`rules-${feature}`, `${opts.product} › Rules › ${feature}`, ['ProductRules'], intro, blocks, changeLog);
244
+ return toPages(`rules-${feature}`, `${opts.product} › Rules › ${feature}`, ['ProjectRules'], intro, blocks, changeLog);
245
245
  });
246
246
  }
247
247
  function entryPages(opts, memory, kind, changeLog) {
@@ -363,7 +363,7 @@ function convertPack(opts) {
363
363
  const sourceLine = source && opts.checkout
364
364
  ? `- \`pack\` · ${source.repo} ${opts.checkout.pathInRepo || '.'} · commit ${source.commit.slice(0, 7)} · read ${opts.today}\n`
365
365
  : `- \`local\` · ${pack} · sha256 \`${hash.digest('hex')}\` · read ${opts.today}\n`;
366
- const sourcesPage = toPages('sources', `${opts.product} › Sources`, [], "Every source this product's knowledge was built from, with its version or hash. product-knowledge update re-reads these and compares.\n\n", [sourceLine], changeLog);
366
+ const sourcesPage = toPages('sources', `${opts.product} › Sources`, [], "Every source this project's knowledge was built from, with its version or hash. project-knowledge update re-reads these and compares.\n\n", [sourceLine], changeLog);
367
367
  const pages = [
368
368
  ...rulesPages(opts, memory, changeLog),
369
369
  ...entryPages(opts, memory, 'api', changeLog),
@@ -424,7 +424,7 @@ function renderReview(plan, planPath) {
424
424
  '',
425
425
  ...(likely.length ? likely : ['None.']),
426
426
  '',
427
- `### Probably product terms (${terms.length})`,
427
+ `### Probably project terms (${terms.length})`,
428
428
  '',
429
429
  'These match the name pattern but are used as capitalised terms throughout the pack. Check the list, then resolve them together.',
430
430
  '',
package/dist/tags.js ADDED
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TAG_VALUES = void 0;
4
+ // Must match the active values of the AgentFacts/AgentSkills/AgentWikiPages Tags custom field's
5
+ // Picklist allowedValues (src/object-model/custom-fields/{AgentFacts,AgentSkills,AgentWikiPages}/*-Tags.custom-field.json)
6
+ // exactly — the connected function 400s on any value outside this set, with
7
+ // no indication of what the valid values are. Validating here instead
8
+ // turns that into a clear Zod error at the tool-call boundary.
9
+ exports.TAG_VALUES = [
10
+ 'ConnectedFunction',
11
+ 'HorizonComponent',
12
+ 'TriggeredAction',
13
+ 'ObjectModel',
14
+ 'MobileExtension',
15
+ 'Deployment',
16
+ 'Auth',
17
+ 'Testing',
18
+ 'BreezeUI',
19
+ 'PSS',
20
+ 'PSF',
21
+ 'Optimization',
22
+ 'Webhooks',
23
+ 'Salesforce',
24
+ 'Other',
25
+ 'ArchitectureMap',
26
+ 'SOW',
27
+ 'TDD',
28
+ 'AI',
29
+ 'API',
30
+ 'Mobile',
31
+ 'Infrastructure',
32
+ 'Security',
33
+ 'Messaging',
34
+ 'ProjectRules',
35
+ // The old name for ProjectRules, still written by skills older than 0.2.16.
36
+ 'ProductRules',
37
+ ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/memory-hub-mcp",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
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": {
package/skill-guide.md CHANGED
@@ -74,8 +74,9 @@ Fact, Skill, or Wiki saves alike. Newer tags: `AI` (LLMs, agents, MCP, prompts),
74
74
  `API` (REST/GraphQL endpoints and schemas), `Mobile` (the Skedulo mobile app/v3 —
75
75
  not `MobileExtension`, which is MEX forms), `Infrastructure` (CI/CD, pipelines,
76
76
  hosting, environments), `Security` (permissions, secrets, vulnerabilities),
77
- `Messaging` (SMS, email, notifications, queues), `ProductRules` (a product's rules and
78
- don't-build wiki pages, written by the product-knowledge skill; see "Product knowledge"). The tool schema enforces this, so an invalid tag fails
77
+ `Messaging` (SMS, email, notifications, queues), `ProjectRules` (a project's rules and
78
+ don't-build wiki pages, written by the project-knowledge skill; see "Project knowledge"; `ProductRules`
79
+ is its old name, still accepted). The tool schema enforces this, so an invalid tag fails
79
80
  with a clear validation error rather than reaching the backend — if this
80
81
  list and the schema's actual error ever disagree, trust the error: this
81
82
  list is prose, kept in sync by hand.
@@ -531,13 +532,14 @@ verbatim (or close to it) the one time it appears** — it's the only signal
531
532
  they get that their saves are now shared with that team, and it won't
532
533
  repeat later in the same session even though the join already happened.
533
534
 
534
- ## Product knowledge
535
+ ## Project knowledge
535
536
 
536
- A customer product's rules, don't-build list, reference pages and sources live as Team wiki pages on
537
- the product's delivery repo, titled `<Product> › Rules › <feature>`, `<Product> › Don't build`,
538
- `<Product> › Reference › <topic>` and `<Product> › Sources`; the rules and don't-build pages carry the
539
- `ProductRules` tag. Find them with `memory_list type=Wiki titlePrefix="<Product> ›"`. Four skills work
540
- on them: product-knowledge (create, refresh from sources, import a knowledge pack), plan-ticket,
537
+ A customer project's rules, don't-build list, reference pages and sources live as Team wiki pages on
538
+ the project's delivery repo, titled `<Project> › Rules › <feature>`, `<Project> › Don't build`,
539
+ `<Project> › Reference › <topic>` and `<Project> › Sources`; the rules and don't-build pages carry the
540
+ `ProjectRules` tag, and `<Project> › Reference › feature-map` lists each feature's code, documents and
541
+ tickets. Find them with `memory_list type=Wiki titlePrefix="<Project> ›"`. Four skills work
542
+ on them: project-knowledge (create, refresh from sources, import a knowledge pack), plan-ticket,
541
543
  delegate-ticket and fold-findings. Change these pages through those skills, which keep the entry
542
544
  format and change log and always pass `expectedLastModified` to `memory_update`. Without those
543
545
  skills, edit with `memory_update` directly, keep the page's entry format, add a change-log line, and
@@ -1,150 +0,0 @@
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).
@@ -1,133 +0,0 @@
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.