@skedulo/memory-hub-mcp 0.2.15 → 0.2.16
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 +10 -9
- package/assets/skills/delegate-ticket/SKILL.md +149 -47
- package/assets/skills/delegate-ticket/references/sub-issue-template.md +18 -9
- package/assets/skills/fold-findings/SKILL.md +119 -37
- package/assets/skills/plan-ticket/SKILL.md +136 -61
- package/assets/skills/project-knowledge/SKILL.md +497 -0
- package/assets/skills/project-knowledge/references/page-format.md +181 -0
- package/assets/skills/se-ai-memory-hub/SKILL.md +1 -0
- package/dist/cli.js +2 -2
- package/dist/import-cli.js +3 -3
- package/dist/index.js +5 -36
- package/dist/pack-import.js +4 -4
- package/dist/tags.js +37 -0
- package/package.json +1 -1
- package/skill-guide.md +10 -8
- package/assets/skills/product-knowledge/SKILL.md +0 -150
- package/assets/skills/product-knowledge/references/page-format.md +0 -133
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
# Project knowledge pages
|
|
2
|
+
|
|
3
|
+
Every skill that reads or writes project knowledge follows this file.
|
|
4
|
+
|
|
5
|
+
## Where it lives
|
|
6
|
+
|
|
7
|
+
A project is a memory-hub team (for example "Lindamood Bell"). Its knowledge is Team-visible wiki pages
|
|
8
|
+
on the project's delivery repo, the repo linked to that team. A project 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
|
+
- `<Project>` is the project's display name, written the same way in every title.
|
|
14
|
+
- `<PREFIX>` is the project's ID prefix, upper-case letters and digits (`LMB`, `WELBE`). Read it from the
|
|
15
|
+
existing rule IDs; never start a second prefix for the same project. For a new project, take a short
|
|
16
|
+
form of the team name.
|
|
17
|
+
|
|
18
|
+
## Page kinds
|
|
19
|
+
|
|
20
|
+
- `<Project> › Rules › <feature>`: the rules and constraints for one feature. Tag `ProjectRules`.
|
|
21
|
+
- `<Project> › Don't build`: work that is out of scope, with the reason and source. Tag `ProjectRules`.
|
|
22
|
+
- `<Project> › Reference › feature-map`: every feature, what it covers and where it lives. No tag.
|
|
23
|
+
- `<Project> › Reference › <topic>`: APIs, workflows, data model, glossary, troubleshooting,
|
|
24
|
+
overview. No tag.
|
|
25
|
+
- `<Project> › Sources`: every source the knowledge was built from, with its version or hash. No tag.
|
|
26
|
+
|
|
27
|
+
`<feature>` is a stable kebab-case key (`group-sessions`, `ride-automation`). It becomes a Knowledge Hub
|
|
28
|
+
area name later, so never derive it from a ticket key or a date, and never rename one. Every key on a
|
|
29
|
+
Rules page is listed in the feature map.
|
|
30
|
+
|
|
31
|
+
The feature map has one section per feature:
|
|
32
|
+
|
|
33
|
+
```
|
|
34
|
+
## ride-automation
|
|
35
|
+
Creates, times and allocates Ride jobs for appointments, and keeps them in step with changes.
|
|
36
|
+
- Code: Skedulo/CX-Welbe_Transporation src/core/object-services/rides-management/**, src/triggered-actions/*-adjust-rides.triggered-action.json
|
|
37
|
+
- Docs: TDD "Transportation Technical Design" §3.4, §9 · doc: Skedulo/CX-Welbe_Transporation@41e0297 docs/rides.md
|
|
38
|
+
- Tickets: label ride-automation · SOL-2198, SOL-2489
|
|
39
|
+
- Business: "Daily transport scheduling" process
|
|
40
|
+
- Slack: #welbe-transport
|
|
41
|
+
- Pages: Welbehealth › Rules › ride-automation
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Leave out a line that would be empty. Plan-ticket matches tickets to features with it, so keep the
|
|
45
|
+
code paths and labels precise.
|
|
46
|
+
|
|
47
|
+
A page over about 20,000 characters is split into parts titled `<title> (1/3)`, `(2/3)`, `(3/3)`. Each
|
|
48
|
+
part keeps its own change log. When an edit pushes a page over the limit, move whole entries into a
|
|
49
|
+
new last part and renumber the titles.
|
|
50
|
+
|
|
51
|
+
Find pages with `memory_list type=Wiki repo=<delivery repo uid> titlePrefix="<Project> ›"`, or
|
|
52
|
+
`tags=["ProjectRules"]` for the rules and don't-build pages only; it returns `total` and one page of
|
|
53
|
+
items, so call it again with `offset` until you have them all. Pages saved before the tag was renamed
|
|
54
|
+
carry `ProductRules`; the title prefix finds both. Read a page in full with
|
|
55
|
+
`memory_get type=Wiki uid=<uid>`, which also returns its `lastModifiedDate`.
|
|
56
|
+
|
|
57
|
+
## Entry lines
|
|
58
|
+
|
|
59
|
+
One entry per bullet, so a skill can copy it verbatim into a sub-issue:
|
|
60
|
+
|
|
61
|
+
```
|
|
62
|
+
- **LMB-R13** · core · verified — The Skedulo Optimizer is out of scope for both divisions. _Source: TDD For Schools §4.2_
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
- ID: `<PREFIX>-R<n>` for a rule, `<PREFIX>-C<n>` for a constraint, `<PREFIX>-D<n>` for a don't-build
|
|
66
|
+
item. IDs are unique within the project and never reused. The next ID is one more than the highest
|
|
67
|
+
existing number of that kind across all the project's pages. Imported entries keep their number.
|
|
68
|
+
- Tier: `core` (changing it later needs the developer's confirmation of that entry), `standard`, or
|
|
69
|
+
`detail` (wording, labels, defaults, configuration values). An entry is `core` when breaking it would
|
|
70
|
+
lose or corrupt data, change something another system relies on, bypass a permission, role, region
|
|
71
|
+
or tenant guard, or break contracted scope.
|
|
72
|
+
- Status: `verified` when the code shows it; for a don't-build entry, when a SOW, work order, change
|
|
73
|
+
request or completed ticket that is not a draft descopes it and no newer source brings it back; for
|
|
74
|
+
another entry the
|
|
75
|
+
code cannot show (a scope limit, an external constraint, a manual process), when two independent
|
|
76
|
+
documents agree.
|
|
77
|
+
Two documents are independent only if neither was written from the other or from the hub; Knowledge
|
|
78
|
+
Hub corpus files never count toward `verified`. `unverified` in every other case, including a rule
|
|
79
|
+
the code should show but does not, a claim only Slack makes, and a decided ticket that is still
|
|
80
|
+
pending.
|
|
81
|
+
- Source: the document and section, the Linear issue, `code: <owner/name>@<short sha> <path>`, or
|
|
82
|
+
`doc: <owner/name>@<short sha> <path>` for a document kept in a repo. Cite the source that
|
|
83
|
+
confirmed an entry, never a hub item on its own.
|
|
84
|
+
Add `(not found in code)` when a document rule has no match in the code, or when the ticket behind
|
|
85
|
+
a `Pending` note completed without the behaviour reaching the code (it replaces the `Pending` note),
|
|
86
|
+
and `Pending SOL-1234 (PR #452)` when a decided ticket changes it: workflow state type `started`, a
|
|
87
|
+
linked open PR, a confirmed bug report (Bug label, state type `unstarted` or `started`), or a ticket
|
|
88
|
+
whose delivery plan was approved, until it is `completed` or `canceled`.
|
|
89
|
+
- When another source wins over an entry, do not rewrite it silently. Keep the line and add
|
|
90
|
+
`Conflict: overridden by <PREFIX>-R<n> (<rule>: <one-line reason>)` after the source, for example
|
|
91
|
+
`(code over TDD: the code uses travel time, capped at 60 min)`, then add the winning entry with its
|
|
92
|
+
own ID. Older pages may carry the earlier form `Conflict: overridden by SOL-1234 (<reason>)`; read it
|
|
93
|
+
the same way.
|
|
94
|
+
- A retired entry moves to a `## Retired` section at the end of its page, before the change log, with
|
|
95
|
+
`Retired <date>: <reason>` after the source, or `Retired <date>: moved to <PREFIX>-D<n>` when it became
|
|
96
|
+
a don't-build entry (which cites `(was <PREFIX>-C<n>)`). Its ID is not reused.
|
|
97
|
+
|
|
98
|
+
Rules pages have `## Rules` and `## Constraints` sections. The don't-build page has one list:
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
- **LMB-D3** · core · verified — Do not build an automatic waitlist. Reason: the customer keeps waitlists in Salesforce. _Source: SOW §2.1 (scope as function)_
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
## Change log
|
|
105
|
+
|
|
106
|
+
Every page ends with:
|
|
107
|
+
|
|
108
|
+
```
|
|
109
|
+
## Change log
|
|
110
|
+
|
|
111
|
+
- 2026-10-21 · Sam Developer via project-knowledge · Added LMB-R74, changed LMB-R13 to core · TDD v1.4 §3 changed the session rules
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
Date, who (the developer, by name, plus `via project-knowledge` when the skill decided the change),
|
|
115
|
+
what changed (entry IDs), why (the source or decision). Newest last. The skills write it; it stands in
|
|
116
|
+
for the history git would otherwise give.
|
|
117
|
+
|
|
118
|
+
## Sources page
|
|
119
|
+
|
|
120
|
+
One line per source:
|
|
121
|
+
|
|
122
|
+
```
|
|
123
|
+
- `repo` · Skedulo/cx-lindamood-bell@main · commit 4be1c0d · read 2026-10-21
|
|
124
|
+
- `linear` · SOL-1234 · updatedAt 2026-10-20T03:00:00.000Z · read 2026-10-21
|
|
125
|
+
- `confluence` · page 123456789 "LC Technical Design" · version 14 · read 2026-10-21
|
|
126
|
+
- `local` · docs/TDD For Schools.pdf · sha256 `9f2c…` · read 2026-10-21
|
|
127
|
+
- `gdrive` · file 1AbCdEf "LC Statement of Work" · modifiedTime 2026-10-19T22:10:00.000Z · read 2026-10-21
|
|
128
|
+
- `slack` · #lmb-delivery · latest message 2026-10-20T08:15:00Z · read 2026-10-21
|
|
129
|
+
- `hub` · Fact 03ed1a2b-… · lastModifiedDate 2026-10-20T04:39:03Z · read 2026-10-21
|
|
130
|
+
- `pack` · <owner/name of the shared memory repo> domains/cx-lindamood-bell · commit 7a3e9b1 · read 2026-10-21
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
How to read each version now:
|
|
134
|
+
|
|
135
|
+
- `repo`: the default branch on the remote, never the checkout's HEAD: `git -C <checkout> fetch -q origin`
|
|
136
|
+
then `git -C <checkout> rev-parse origin/<default>` (find the default branch with
|
|
137
|
+
`gh api repos/<owner>/<name> --jq .default_branch`), or `gh api repos/<owner>/<name>/commits/<default> --jq .sha`.
|
|
138
|
+
- `linear`: the Linear connector's get-issue (or get-project/get-document) call; use `updatedAt`.
|
|
139
|
+
- `confluence`: the Atlassian connector's get-page call; use the page's `version.number`.
|
|
140
|
+
- `local`: `shasum -a 256 "<path>"`.
|
|
141
|
+
- `gdrive`: the Google Drive connector's file-metadata call; use `modifiedTime` (or `version`).
|
|
142
|
+
- `slack`: the Slack connector's read-channel call; use the newest message's time.
|
|
143
|
+
- `hub`: `memory_get` on the item; use its `lastModifiedDate`. Record only Team or Org items, by type
|
|
144
|
+
and uid, never by title. Hub items are leads: a changed one is re-checked against the sources it
|
|
145
|
+
points to.
|
|
146
|
+
- Documents kept in a repo are covered by that repo's `repo` line.
|
|
147
|
+
- `pack`: `git -C <checkout> rev-parse HEAD` in an up-to-date checkout of the shared memory repo, or
|
|
148
|
+
`memory_checkSources` run in that checkout, which lists imported pages whose commit is behind.
|
|
149
|
+
|
|
150
|
+
## Editing a page (team-safe)
|
|
151
|
+
|
|
152
|
+
Any member of the project team can edit these pages; two developers must not overwrite each other.
|
|
153
|
+
|
|
154
|
+
1. `memory_get type=Wiki uid=<uid>`; keep its `content` and `lastModifiedDate`.
|
|
155
|
+
2. Apply the change to the full text. Keep every other line exactly as it was.
|
|
156
|
+
3. Append the change-log line.
|
|
157
|
+
4. `memory_update type=Wiki uid=<uid> content=<full new text> expectedLastModified=<lastModifiedDate>`.
|
|
158
|
+
5. If it fails with `Conflict:`, someone else changed the page. Go back to step 1 and re-apply the
|
|
159
|
+
change to the new text. Keep their edit; if it changed the same entry, keep their version, record
|
|
160
|
+
your change as a new entry or a `Conflict:` note instead, and mention it in the summary.
|
|
161
|
+
|
|
162
|
+
Teammates can change a page's title, content and tags. Only the page's author can move it to another
|
|
163
|
+
repo or change its links. Deleting a page is author-only too; prefer retiring entries over deleting
|
|
164
|
+
pages.
|
|
165
|
+
|
|
166
|
+
## Confidentiality
|
|
167
|
+
|
|
168
|
+
Read sources in the session and store only distilled knowledge. The hub may hold: the customer's
|
|
169
|
+
organisation name, features and rules, scope stated as function, decisions attributed by role ("the
|
|
170
|
+
customer's operations lead"), schema and field API names, and Skedulo staff names.
|
|
171
|
+
|
|
172
|
+
Never store, on any page or fact:
|
|
173
|
+
|
|
174
|
+
- commercial terms: prices, rates, budgets, contract values, payment terms;
|
|
175
|
+
- customer personal data: names, emails or phone numbers of customer staff or end users;
|
|
176
|
+
- credentials, tokens or secrets;
|
|
177
|
+
- customer data rows or production record IDs (UUIDs, Salesforce record IDs);
|
|
178
|
+
- verbatim contract text: never quote a SOW, work order or change request; restate scope as function;
|
|
179
|
+
- Slack messages word for word.
|
|
180
|
+
|
|
181
|
+
When unsure, leave it out and list it under "Left out" in the summary.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: se-ai-memory-hub
|
|
3
3
|
description: Use when working in a repo where the memory-hub MCP tools (memory_recall, memory_list, memory_save, memory_saveBatch, memory_upsertPersona, memory_setVisibility, memory_bulkPromoteRepoScoped, memory_grantAccess, memory_checkRepoStatus, memory_linkRepoTeam, memory_moveResourceRepo, memory_listRepos, memory_registerRepo, memory_checkSources, memory_listTeams, memory_joinTeam, memory_addTeamMember, memory_listTeamMembers, memory_whoCanRead, memory_update, memory_getSkillGuide) are available, to recall prior context mid-session, save durable facts/skills/scenarios, update your persona, and share items with your team on explicit request
|
|
4
|
+
argument-hint: "[what to recall or save]"
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# SE AI Memory Hub
|
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> --
|
|
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
|
|
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
|
package/dist/import-cli.js
CHANGED
|
@@ -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> --
|
|
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(`--
|
|
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
|
-
|
|
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.'),
|
package/dist/pack-import.js
CHANGED
|
@@ -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
|
|
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}`, ['
|
|
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
|
|
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
|
|
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
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), `
|
|
78
|
-
don't-build wiki pages, written by the
|
|
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
|
-
##
|
|
535
|
+
## Project knowledge
|
|
535
536
|
|
|
536
|
-
A customer
|
|
537
|
-
the
|
|
538
|
-
`<
|
|
539
|
-
`
|
|
540
|
-
|
|
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).
|