@skedulo/memory-hub-mcp 0.2.27 → 0.2.29

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.
@@ -67,7 +67,7 @@ if [ -z "$TOKEN" ]; then
67
67
  else
68
68
  nohup "$CLAUDE_PLUGIN_ROOT/memory-hub-hook/mcp-server.sh" login </dev/null >"$STATE_DIR/login.log" 2>&1 &
69
69
  fi
70
- emit_context "This is the first session with Memory Hub, so a browser tab is opening on the Skedulo sign-in (the first time it can take a minute). Tell the user to sign in there; memory starts working from their next message. If no tab opened, call memory_login. Once they're signed in, offer once to stop Memory Hub's approval prompts with /memory-hub:setup."
70
+ emit_context "This is the first session with Memory Hub, so a browser tab is opening on the Skedulo sign-in (the first time it can take a minute). Tell the user to sign in there; memory starts working from their next message. If no tab opened, call memory_login. Once they're signed in, offer once to stop Memory Hub's approval prompts and turn on auto-update with /memory-hub:setup."
71
71
  else
72
72
  emit_context "Memory Hub isn't signed in, so memory is off. Offer once to sign the user in; if they agree, call memory_login, which opens a Skedulo sign-in in their browser."
73
73
  fi
@@ -46,7 +46,7 @@ Then pick the role to answer as, and read its file in this skill's folder before
46
46
  prompt, the role files follow this skill):
47
47
 
48
48
  - **delivery** (`references/delivery.md`): progress, dates, milestones, risks, releases, what is
49
- blocked or left;
49
+ blocked or left, how a WO or CR is going, and customer-ready status;
50
50
  - **developer** (`references/developer.md`): how the code works, where something lives, how to
51
51
  change or fix it;
52
52
  - **qa** (`references/qa.md`): test cases, UAT, defects, what to test or what is untested;
@@ -170,6 +170,11 @@ is not in the hub at all. Do this step:
170
170
 
171
171
  The role's file says what else to list.
172
172
 
173
+ For a progress question about a WO or CR, read `memory_getSkillGuide section="Progress reports"`
174
+ and follow it: it decides whether a snapshot is fresh enough, what to pull, the stage table and the
175
+ report. Its pull replaces the listing in 1 to 3 below for that WO, and when it says a snapshot is
176
+ fresh enough to reuse, skip that listing for that WO.
177
+
173
178
  1. **List recent work.** Pick the window: the last 14 days, or since the oldest status date among
174
179
  the items you rely on when that is earlier, never more than 30 days. Pick the repos: those of
175
180
  the items you rely on and, for a progress or status question that names a project, its team's
@@ -247,7 +252,8 @@ Then answer (step 8), and save what you found (step 9) without asking again.
247
252
 
248
253
  Answer briefly, shaped as the role's file says, in plain language unless it says otherwise. Back each claim with the item it came from: its uid, its title
249
254
  and, when it has one, its source as `<owner/name>@<short commit>`. Say plainly what the hub does not
250
- know. Mention anything flagged in steps 4 to 6.
255
+ know. Mention anything flagged in steps 4 to 6. For a progress question about a WO or CR, the
256
+ report's layout replaces the role's answer shape.
251
257
 
252
258
  ## 9. Save what was learned
253
259
 
@@ -22,7 +22,8 @@ cite (at most three projects, the most cited first).
22
22
  6's 100 tickets.
23
23
  4. Release and deploy tickets done in the window say what reached which environment.
24
24
 
25
- Then check PRs as step 6 says.
25
+ Then check PRs as step 6 says. For a WO or CR question, the guide's "Progress reports" pull covers
26
+ this, so don't run this listing as well.
26
27
 
27
28
  ## When Linear itself is behind
28
29
 
@@ -35,6 +36,10 @@ Flag these in the answer as "Linear may be behind", and never correct the hub fr
35
36
 
36
37
  ## Answer
37
38
 
39
+ For a WO or CR, answer with the progress report from the guide's "Progress reports" section. The
40
+ list below is for a whole project; when a project question names its WOs, you may offer the report
41
+ for one of them.
42
+
38
43
  1. One line on where the project stands against its next milestone date (on track, at risk or
39
44
  behind) and why.
40
45
  2. Milestones: the last one passed and the next two, each with its target date and progress.
@@ -174,17 +174,18 @@ With the Linear connector:
174
174
  1. List the parent's existing sub-issues, with their state, assignee, delegate, labels and linked PRs.
175
175
  Match them to the drafts by what they build: the same repo, overlapping "Files it may change" and
176
176
  the same goal, not by title (the `Outcome:` line is a hint only, because a revision can renumber
177
- outcomes). A canceled sub-issue is never reused: leave it out of the matching, so a draft that
178
- matches only a canceled one is created anew. A matched sub-issue is reused: leave its body as it
179
- is, because someone may have edited it, and note any difference from the draft in your report.
180
- When two sub-issues match one draft, reuse neither and hold that draft back with every outcome that
181
- depends on it, directly or through others; list both sub-issues in your report for the developer
182
- to merge or cancel. An existing sub-issue that matches no
183
- draft and is not done or canceled is listed in your report as possibly replaced; if it is assigned,
184
- delegated or started and overlaps a draft's files, treat that draft as held back: create no
185
- sub-issue for it or for any outcome that depends on it, directly or through others, and list each
186
- with the in-flight sub-issue's ID. They are created when this skill runs again after that sub-issue
187
- is done or canceled.
177
+ outcomes). A sub-issue titled `Create test cases - …` (ignoring case and dash style) holds test
178
+ scripts, not an outcome: leave it out of the matching and of the possibly replaced list. A canceled
179
+ sub-issue is never reused: leave it out of the matching, so a draft that matches only a canceled
180
+ one is created anew. A matched sub-issue is reused: leave its body as it is, because someone may
181
+ have edited it, and note any difference from the draft in your report. When two sub-issues match
182
+ one draft, reuse neither and hold that draft back with every outcome that depends on it, directly
183
+ or through others; list both sub-issues in your report for the developer to merge or cancel. An
184
+ existing sub-issue that matches no draft and is not done or canceled is listed in your report as
185
+ possibly replaced; if it is assigned, delegated or started and overlaps a draft's files, treat that
186
+ draft as held back: create no sub-issue for it or for any outcome that depends on it, directly or
187
+ through others, and list each with the in-flight sub-issue's ID. They are created when this skill
188
+ runs again after that sub-issue is done or canceled.
188
189
  Create only the drafts that are left, each under the parent, in the parent's team and project, with
189
190
  the template body.
190
191
  2. Labels: `repo/skedulo/<repo>`, `plugin/<builder>` where one applies, and the parent's `ref-repo:*`
@@ -13,4 +13,4 @@ stale on this machine the way this stub's own content once did. This file
13
13
  stays intentionally thin: only what the harness needs to discover and
14
14
  trigger the skill.
15
15
 
16
- Give every save a deliberate visibility by the guide's "What to share" rule (work knowledge is Team, on the project's repo by name), and state the choice and the reason. When the person states something new or corrects a memory in this session, follow the guide's "Auto learn" section. Follow the guide's "Stale memories" rules before relying on an item with a `staleness` field, and its "Skill drift" rule when a plugin skill contradicts the code.
16
+ Give every save a deliberate visibility by the guide's "What to share" rule (work knowledge is Team, on the project's repo by name), and state the choice and the reason. When the person states something new or corrects a memory in this session, follow the guide's "Auto learn" section. Follow the guide's "Stale memories" rules before relying on an item with a `staleness` field, and its "Skill drift" rule when a plugin skill contradicts the code. For a question about how a project, WO/CR, release or ticket is going, follow the guide's "Progress reports" section.
@@ -12,10 +12,10 @@ is defined in the project-knowledge skill's `references/page-format.md`; the par
12
12
  restated here.
13
13
 
14
14
  Decide, then report. Resolve conflicts and gaps yourself with the rules in step 4 and write your
15
- reasoning into the plan. The developer is asked two things only: to approve the plan, and whether to
16
- post it on the ticket. Approval also
17
- starts delivery: the plan is delegated and the first sub-issues go to the Linear Dev Agent, unless the
18
- developer says "plan only" or "don't assign".
15
+ reasoning into the plan. The developer is asked three things only: to approve the plan, whether to
16
+ post it on the ticket, and whether to create test scripts for it. Approval also starts delivery: the
17
+ plan is delegated and the first sub-issues go to the Linear Dev Agent, unless the developer says
18
+ "plan only" or "don't assign".
19
19
 
20
20
  ## First, check the server version
21
21
 
@@ -32,8 +32,8 @@ nothing else, and tell the developer to update it:
32
32
  ## 1. Read the ticket
33
33
 
34
34
  With the Linear connector, read the parent issue: title, description, acceptance criteria, labels
35
- (keep every `ref-repo:*` label), project, comments, and linked or related issues. If the Linear
36
- connector is not connected, stop and tell the developer.
35
+ (keep every `ref-repo:*` label), project, comments, linked or related issues, and its sub-issues. If
36
+ the Linear connector is not connected, stop and tell the developer.
37
37
 
38
38
  ## 2. Load only the knowledge this ticket needs
39
39
 
@@ -234,6 +234,14 @@ starts the Linear Dev Agent on the ones that are not blocked; "plan only" or "do
234
234
  that. Then ask whether to also post the plan as a comment on <PARENT-ID>, where the customer and
235
235
  everyone on the ticket can read it. Post it only on an explicit yes to that question; a bare yes to
236
236
  the plan, or no answer, means do not post. "Plan only" and "don't assign" do not change this answer.
237
+
238
+ Then ask about test scripts. First check the parent's sub-issues for one titled
239
+ `Create test cases - …` that is not canceled, as `references/test-scripts.md` says, to choose between
240
+ "Create test scripts for <PARENT-ID>?" and "Update the test scripts on <SUB-ID>?". Create test
241
+ scripts only on an explicit yes to that question; a bare yes to the plan, or no answer, means no test
242
+ scripts. "Plan only" and "don't assign" do not change this answer either. The answer stands when the
243
+ plan is revised and shown again, unless the developer changes it.
244
+
237
245
  Approval is an explicit yes to the plan as last shown, with nothing to change. If the reply asks for
238
246
  any change, even next to a yes, revise the plan, show it again and ask again. Do not write anything
239
247
  to Linear or the hub before it is approved.
@@ -262,6 +270,11 @@ to Linear or the hub before it is approved.
262
270
  summary=<the plan> expectedLastModified=<its lastModifiedDate>`. If it fails with `Conflict:`,
263
271
  `memory_get` it again: if the other change is an older revision of the same plan, overwrite it with
264
272
  the approved one; otherwise save the approved plan as a new Scenario and say so.
265
- 5. Unless the developer said "plan only", run delegate-ticket straight away
266
- (`memory-hub:delegate-ticket` when installed as a plugin). Then report what you posted (or that
267
- the plan was not posted), saved and delegated in one message.
273
+ 5. Only if the developer said yes to test scripts, write them as `references/test-scripts.md` in
274
+ this skill's folder says, from the approved plan. Before creating the sub-issue or posting the
275
+ comment, check the scripts against the confidentiality rules and remove anything they forbid.
276
+ 6. Unless the developer said "plan only", run delegate-ticket straight away
277
+ (`memory-hub:delegate-ticket` when installed as a plugin).
278
+ 7. Report in one message what you posted (or that the plan was not posted), saved and delegated (or
279
+ that nothing was delegated), and where the test scripts went (the sub-issue link, or that none
280
+ were created), with the titles of the scripts and anything removed for confidentiality.
@@ -0,0 +1,151 @@
1
+ # Test scripts
2
+
3
+ Write test scripts for the approved plan and put them in a sub-issue of the parent. A script must
4
+ stand on its own: a tester or an agent who has never seen the ticket can run it and decide pass or
5
+ fail. They are written steps for a person or an agent, not test code. Do not run them.
6
+
7
+ Call them "test scripts" everywhere you write: the question, the comment heading and the report.
8
+
9
+ ## Ground the scripts
10
+
11
+ Use only these sources. Steps 1 to 3 of the skill already read all but the last two.
12
+
13
+ 1. The ticket's acceptance criteria, and their testable rewrites from the plan's Decisions.
14
+ 2. The rules, constraints and don't-build entries the outcomes name, with their entry text.
15
+ 3. Each outcome's Edge cases and Verify lines.
16
+ 4. The reference pages already read (data model, APIs, workflows, troubleshooting).
17
+ 5. The code read in step 3, for exact messages, labels and limits.
18
+ 6. Earlier test cases in the hub: `memory_recall type=Fact scope=team tags=["Testing"]` and
19
+ `memory_recall type=Scenario scope=team`, with the ticket's title as the query. Use only items
20
+ whose `repoName` is the delivery repo. An item from another project is wording precedent only,
21
+ never its data, names or values.
22
+ 7. Earlier test-case tickets in Linear: sub-issues titled `Create test cases - …` (ignoring case and
23
+ dash style) of the parent and of the tickets behind the matched features. Read at most 10, for
24
+ wording and to avoid repeats.
25
+
26
+ Never script behaviour that no source states. Do not invent fields, screens, buttons, endpoints or
27
+ outcomes to make a script look complete. List it under "Not covered" with what is missing. A script
28
+ whose Checks line names no acceptance criterion, no entry ID and no `Knowledge change <n>` moves to
29
+ "Not covered" too.
30
+
31
+ ## Decide what to script
32
+
33
+ Derive the scripts from the plan, not from a count:
34
+
35
+ - at least one happy-path script per acceptance criterion;
36
+ - one negative script per validation, restriction or error that the acceptance criteria or the named
37
+ rules state;
38
+ - one script per Edge cases line, unless another script already checks it;
39
+ - boundary scripts only where a source names a numeric or length limit.
40
+
41
+ Do not pad: no scripts that repeat each other. When another ticket's test cases already cover a
42
+ check, name it ("Covered by <ID>") instead of repeating the check.
43
+
44
+ Script what the approved plan builds:
45
+
46
+ - An acceptance criterion the plan rewrote as a testable check is scripted as rewritten.
47
+ - An acceptance criterion the plan does not build as written, because it conflicts with a `core` rule
48
+ or a don't-build item, goes under "Not covered" with the open question. So does an outcome that an
49
+ open question affects. It gets scripts once the question is settled and the plan revised.
50
+ - An outcome marked `Done upstream` is still scripted: the behaviour exists and needs testing.
51
+ - Under "plan only", a rule that is still `new: Knowledge change <n>` has no entry ID yet. Cite
52
+ `Knowledge change <n>` on the Checks line and state the rule in the Then sentence, so the script
53
+ reads correctly without the ID.
54
+
55
+ ## Format
56
+
57
+ The sub-issue body:
58
+
59
+ ```markdown
60
+ # Test scripts: <PARENT-ID> <title>
61
+
62
+ Project: <Project> · From: Delivery plan (approved <date>)
63
+ Environment: <sked alias from the plan's Verify lines, or `<reviewer's alias>`> · Seed data: <from
64
+ the Verify lines or reference pages, or none> · Roles: <the actors the scripts need>
65
+ Sources: <the pages, tickets and memories the scripts came from>
66
+
67
+ ## TS-1 Verify that <subject> <outcome>
68
+ - Checks: AC <n>; <entry IDs, e.g. LMB-R13, LMB-D4>
69
+ - Outcomes: <plan outcome numbers>
70
+ - Type: Happy | Negative | Edge | Boundary · Priority: High | Medium | Low
71
+ - Actor: <role>
72
+ - Given:
73
+ 1. <condition, no values>
74
+
75
+ Test data:
76
+ 1. <field> = <fictitious value>
77
+ - When:
78
+ 1. <one action> (e.g. <value from Test data>)
79
+ - Then: <one sentence stating the rule>:
80
+ 1. <observable result>
81
+
82
+ Sample outcome:
83
+ 1. <the result for this test data>
84
+
85
+ ## Not covered
86
+ - <an acceptance criterion, rule or edge case no script checks, and what is missing>
87
+
88
+ To turn these into full test cases or Playwright tests: `/ai-qa-engineer:gen-testcase <SUB-ID>`
89
+ ```
90
+
91
+ - Number the scripts `TS-1`, `TS-2`, and so on; the numbers are local to the sub-issue. In a comment
92
+ on an existing sub-issue, continue from the highest `TS-<n>` already on it, in its body and its
93
+ earlier comments.
94
+ - Each script names the acceptance criteria and entry IDs it checks.
95
+ - State the environment once at the top, by sked alias. Take the alias and seed data from the plan's
96
+ Verify lines or the reference pages; never guess one.
97
+ - Put conditions under Given without values, and the values under Test data.
98
+ - One action per When step. The first step names the entry point (app, screen or route), taken from
99
+ a workflow or reference page. When the Environment is `<reviewer's alias>`, say so under
100
+ "Not covered".
101
+ - Start Then with one sentence stating the rule, then the observable results.
102
+ - A negative script states what was rejected, what is shown, and that nothing changed. The message
103
+ is quoted only when a source gives it; otherwise say that an error is shown.
104
+ - Keep the hand-off line last. `gen-testcase` reads the ticket it is given, so these scripts become
105
+ its grounding.
106
+
107
+ ## Confidentiality
108
+
109
+ Apply the same confidentiality rules as the plan: no commercial terms, no customer personal data, no
110
+ verbatim contract text, no customer data rows or production record IDs, no credentials, tokens or
111
+ tenant URLs that carry one. Make test data clearly fictitious ("Test Client A", "Install Modem"),
112
+ never real customer data.
113
+
114
+ Before creating the sub-issue or posting the comment, check the scripts against these rules and
115
+ remove anything they forbid. Note each removal in the report, and list the titles of the scripts in
116
+ it.
117
+
118
+ ## Create the sub-issue
119
+
120
+ Create it under the parent, in its team and project, titled exactly
121
+ `Create test cases - <parent title>`. The `ask` skill's QA role finds test-case tickets by this title.
122
+ Then replace `<SUB-ID>` in the last line of its body with the identifier Linear returned for it.
123
+
124
+ Leave it with no assignee, no delegate and no `plugin/*` label, so neither delegate-ticket nor
125
+ fold-findings starts the Linear Dev Agent on it.
126
+
127
+ ## When the parent already has a test-case sub-issue
128
+
129
+ Each story keeps one test-case ticket. Check the parent's sub-issues for one titled
130
+ `Create test cases - …`, ignoring case and dash style, that is not canceled. Ignore a canceled one.
131
+ Ask "Update the test scripts on <SUB-ID>?" in place of "Create test scripts for <PARENT-ID>?" and add
132
+ to it instead of creating another. When several are not canceled, use the most recently updated one
133
+ and name the others in the report.
134
+
135
+ Whoever made it, read its body and earlier comments as existing coverage. On yes, post the scripts
136
+ for the checks it does not already cover as one comment headed
137
+ `Test scripts from the delivery plan (<date>)`. Write the comment in the Format above without the
138
+ `#` title line, so it keeps From, Environment, Sources, "Not covered" and the hand-off line (with
139
+ that issue's ID), and number its scripts on from the highest `TS-<n>` already on the issue (a new
140
+ sub-issue starts at `TS-1`). In the comment, list a check the issue already covers as
141
+ "Covered by TS-<n>" instead of repeating it; "Covered by <ID>" stays for checks covered by other
142
+ tickets. If everything is covered and no earlier script is stale, post nothing and say so in the
143
+ report.
144
+
145
+ When a plan revision changes what an earlier script checks, the revision comment lists each earlier
146
+ script the revised plan no longer matches, as "TS-<n> no longer applies: <reason>" or
147
+ "TS-<n> replaced by TS-<m>". Never edit the body of an existing test-case sub-issue that this run did
148
+ not create: a tester may have edited it. A plan revision adds another dated comment, like the plan's
149
+ own approval comments.
150
+
151
+ The report says the sub-issue's state, so a completed one can be reopened if needed.
@@ -98,6 +98,26 @@ every Memory Hub tool, including deleting and sharing memories. Do nothing witho
98
98
  first time Claude asks before a Memory Hub tool, or to change it later in the Claude app's
99
99
  settings for the Memory Hub extension.
100
100
 
101
+ ## 4b. Turn on auto-update (plugin installs only)
102
+
103
+ Skip this if you already offered it in this session, or when `${CLAUDE_PLUGIN_ROOT}` is empty.
104
+
105
+ Claude Code does not update plugins from this marketplace unless auto-update is on, so new hooks and
106
+ skills would never arrive. Ask the person once whether the Memory Hub plugin should update itself.
107
+ Do nothing without a yes. On yes, with the same safe merge as step 4:
108
+
109
+ ```bash
110
+ bash -c 'settings="$HOME/.claude/settings.json"
111
+ [ -f "$settings" ] || echo "{}" > "$settings"
112
+ jq -e ".extraKnownMarketplaces[\"memory-hub\"].autoUpdate == true" "$settings" >/dev/null 2>&1 && { echo "already on"; exit 0; }
113
+ cp "$settings" "$settings.bak-$(date +%Y%m%d%H%M%S)" \
114
+ && jq ".extraKnownMarketplaces[\"memory-hub\"] = ((.extraKnownMarketplaces[\"memory-hub\"] // {source: {source: \"github\", repo: \"Skedulo/se-ai-memory-hub\", ref: \"main\"}}) + {autoUpdate: true})" "$settings" > "$settings.new" \
115
+ && mv "$settings.new" "$settings"'
116
+ ```
117
+
118
+ Say it applies from their next session. If `jq` is missing, tell them to turn it on in `/plugin` →
119
+ Marketplaces → memory-hub instead.
120
+
101
121
  ## 5. Auto-capture (Claude Code only)
102
122
 
103
123
  Auto-capture saves what a session learned when it ends, by running `claude` in the background.
@@ -120,6 +120,15 @@ ticket_refs() {
120
120
  END { for (i = 1; i <= n; i++) print order[i] "\t" kind[order[i]] }'
121
121
  }
122
122
 
123
+ PROGRESS_WORDS='progress|status|going|stands?|standing|done|finished|blocked|blockers?|released?|deployed|uat|prod|production|signed off|sign-?off|eta|on[ -]?track|at risk|report'
124
+ PROGRESS_HINT='Progress question: follow "Progress reports" in memory_getSkillGuide (reuse a status snapshot under 60 minutes old, else pull live through the user'"'"'s own connections).'
125
+
126
+ progress_hint() {
127
+ [ -n "$(ticket_refs)" ] || return 0
128
+ printf '%s' "$PROMPT" | jq -Rse --arg w "$PROGRESS_WORDS" 'test("\\b(?:" + $w + ")\\b"; "i")' >/dev/null 2>&1 || return 0
129
+ printf '%s' "$PROGRESS_HINT"
130
+ }
131
+
123
132
  ticket_call() {
124
133
  local path="$1" kind="$2" ref="$3" out="$TMP_DIR/ticket-$2-$3.json" body
125
134
  body=$(jq -nc --arg r "$ref" --argjson cap "$((BUDGET / 2))" '{scope: "team", externalRef: $r, maxCharsPerItem: 500, maxTotalChars: $cap}')
@@ -147,6 +156,9 @@ ticket_valid() {
147
156
  jq -e --arg k "$2" 'type == "object" and (.[$k] | type) == "array"' "$1" >/dev/null 2>&1
148
157
  }
149
158
 
159
+ HINT=$(progress_hint)
160
+ [ -z "$HINT" ] || NOTICES="${NOTICES}${HINT}${NL}${NL}"
161
+
150
162
  TICKET_OUT=""
151
163
  NEW_REFS=()
152
164
  while IFS=$'\t' read -r ref kind; do
package/dist/index.js CHANGED
@@ -51,6 +51,8 @@ const INSTRUCTIONS = [
51
51
  'Questions about a project or team work without a repo: find project pages with',
52
52
  'memory_list type=Wiki titlePrefix="<Project> ›", and when the hub has nothing, ask',
53
53
  'for sources and say reading them costs tokens.',
54
+ 'Progress questions (how a project, WO/CR, release or ticket is going): follow "Progress reports" in memory_getSkillGuide;',
55
+ "reuse a status snapshot under 60 minutes old, else pull live through the user's own connections.",
54
56
  'Every save gets a deliberate visibility (see "What to share" in memory_getSkillGuide):',
55
57
  'Team for work knowledge about a project or customer, saved with repo: "<owner/name>"',
56
58
  'even from here, passing only a repo that memory_listRepos lists; Org for customer-free',
@@ -7,6 +7,7 @@ const setup_1 = require("./setup");
7
7
  const SIGNED_IN = 'Signed in. Memory Hub works now, no restart needed.';
8
8
  const EXTENSION_ALLOW_NOTE = " If Claude asks before each Memory Hub tool, the user can choose Always allow, or change it later in the Claude app's settings for the Memory Hub extension.";
9
9
  const allowOffer = (rule) => ` Then offer once to stop Memory Hub's approval prompts (this covers all its tools, including deleting and sharing memories): if the user agrees, add "${rule}" to permissions.allow in ~/.claude/settings.json (merge it, keep a backup), and say it applies from their next session.`;
10
+ const AUTO_UPDATE_OFFER = ` Also offer once to turn on auto-update, so the Memory Hub plugin gets new versions by itself: if the user agrees, set extraKnownMarketplaces["${setup_1.MARKETPLACE_NAME}"].autoUpdate to true in ~/.claude/settings.json, adding the entry with source {"source": "github", "repo": "${setup_1.MARKETPLACE_REPO}", "ref": "${setup_1.MARKETPLACE_REF}"} if it is missing (merge it, keep a backup).`;
10
11
  const FIRST_CALL_WAIT_MS = 5000;
11
12
  const POLL_MS = 25;
12
13
  const sleep = (ms) => new Promise(resolve => setTimeout(resolve, ms));
@@ -55,7 +56,9 @@ function createLoginTool(deps) {
55
56
  const signedIn = () => {
56
57
  if (deps.extension)
57
58
  return `${SIGNED_IN}${EXTENSION_ALLOW_NOTE}`;
58
- return `${SIGNED_IN}${allowOffer(deps.viaPlugin ? setup_1.PLUGIN_ALLOW_RULE : setup_1.DIRECT_ALLOW_RULE)}`;
59
+ if (deps.viaPlugin)
60
+ return `${SIGNED_IN}${allowOffer(setup_1.PLUGIN_ALLOW_RULE)}${AUTO_UPDATE_OFFER}`;
61
+ return `${SIGNED_IN}${allowOffer(setup_1.DIRECT_ALLOW_RULE)}`;
59
62
  };
60
63
  const call = async () => {
61
64
  if (pending)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skedulo/memory-hub-mcp",
3
- "version": "0.2.27",
3
+ "version": "0.2.29",
4
4
  "description": "MCP server for the 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
@@ -658,6 +658,129 @@ Rules:
658
658
  - Never write stale text into content: no "may be out of date" notes. Staleness is worked out each
659
659
  time an item is read, never stored.
660
660
 
661
+ ## Progress reports
662
+
663
+ A **progress question** asks where work stands (progress, status, what is done, open, blocked,
664
+ released, signed off or next) for a named project, WO/CR (work order or change request), release or
665
+ ticket: "how is WO-012 going?", "is SOLE-10697 in UAT?". For a WO or CR question, settle the
666
+ customer first (see "Finding the WO"), and never reuse a snapshot found by the WO number alone.
667
+ Then find the latest snapshot with `memory_list type=Fact titlePrefix="<Customer> <WO> status
668
+ snapshot"` and take the newest, since the list is newest first. Call `memory_get` on that uid
669
+ before reusing it, because list and recall results are cut short. Reuse it when it is under 60
670
+ minutes old, measured from the ISO time in its content, and say its age. Otherwise pull live
671
+ through the person's own connections, report, and save a new snapshot. A whole-project progress
672
+ question lists the customer's WOs and CRs as "Only a customer" describes, and inside `ask` keeps
673
+ the delivery role's answer. Any other question does not pull.
674
+
675
+ ### Finding the WO
676
+
677
+ A WO number is unique only within a customer, so a WO is always customer plus number. Match
678
+ `WO-nnn` or `CR-nnn` (`(WO|CR)-\d+(\.\d+)?`) with the customer name, never part of a word
679
+ (`LIKE '%WO%'` matches "Networks"). Resolve its **source map**: `{customer, number, psaProject?,
680
+ tracker? {kind: linear or jira, ref}, docs? [{title, url}], slackChannel?}`. Look in this order:
681
+ the PSA project name; the tracker (Linear project name, then a parent ticket or `Work Order`
682
+ label, then a label that names the WO; Jira stories and tasks whose summary holds the token); Drive
683
+ and Confluence titles; the customer's Slack channel.
684
+
685
+ - No customer in the question: use the project folder's customer, which wins when two customers
686
+ share the number. With no folder customer, and more than one customer having the number, ask
687
+ which.
688
+ - Only a customer: list its WOs and CRs, one line each (PSA projects and tracker projects matching
689
+ the token), and offer the detail for one.
690
+ - A bare ticket question ("is SOLE-10697 in UAT?"): first resolve the ticket's WO through its parent
691
+ or project. With none, answer for that ticket alone and save no WO snapshot.
692
+ - Save the map as a Team Fact "<Customer> <WO> source map" so the next pull skips discovery. When a
693
+ lookup through it fails (renamed project, moved doc), re-resolve and update the Fact.
694
+
695
+ ### Pulling
696
+
697
+ Only PSA and the tracker decide stage and headline. Documents and Slack are cited, not parsed for
698
+ stage.
699
+
700
+ - **PSA** (Salesforce `pse__Proj__c`): RAG status, start and end dates, milestones (name, status
701
+ `Open` or `Customer Approved`, target date). Never budget, rates, hours or other financial fields.
702
+ - **Tracker:** Linear (current work) and Jira (legacy), whichever the WO uses; one customer can use
703
+ both. The WO's issues with sub-issues: title, state, state type or status category, labels,
704
+ assignee, completed date, parent. For Linear also the project's status, target date, lead,
705
+ milestones and latest update.
706
+ - **GitHub:** PRs and commits linked to each story's ticket (Linear attachments, Jira's development
707
+ panel), else PRs whose branch or title names the ticket. Skip it with a notice when the asker
708
+ cannot reach GitHub.
709
+ - **Documents:** titles and links from the map. Read a scope document only when asked what is in
710
+ scope or a scope gap is suspected.
711
+ - **Slack:** the latest few messages naming the WO or its tickets in the customer's channel,
712
+ summarised as a "latest signal" ("2 Nov: UAT deploy requested"), never quoted.
713
+
714
+ The hub holds no Linear, Jira, Salesforce or GitHub keys: always pull through the person's own
715
+ connections (connectors, or `gh`), so nobody sees more than their own access allows.
716
+
717
+ Say which systems were checked. Say each one that could not be reached in one line, as early as
718
+ possible, with what it costs and how to fix it: "Not checked: Salesforce PSA (no RAG or sign-off).
719
+ Connect Salesforce in Claude's connectors to include it." A missing tracker connection is said
720
+ before the report, since the stage table needs it. Carry on with what you can reach and never
721
+ pretend a system was checked.
722
+
723
+ ### Stages
724
+
725
+ Per story, from the tracker:
726
+
727
+ | Stage | Linear | Jira |
728
+ | --- | --- | --- |
729
+ | Built | story Done, or a PR for it merged | status category Done, or status `QA`, `Undergoing UAT` or `Released`, or a PR merged |
730
+ | QA | its "QA - ..." sub-task Done | its "QA - ..." sub-task Done, or status `Undergoing UAT`, `Released` or `Done` after QA |
731
+ | UAT | its "Deploy UAT - ..." sub-task Done (with that date) | status `Undergoing UAT` or `Released`, or a UAT deploy task for the release Done |
732
+ | PROD | its "Deploy PROD - ..." sub-task Done (with that date) | status `Released`, or the release's "Deploy ... to Production" task Done (with that date) |
733
+ | Bugs | "[BUG]" sub-issues | Bug issues linked to or under the story |
734
+
735
+ - A stage no task or state tracks is **not tracked**, never "done".
736
+ - A Jira status the table does not name falls back to its status category (To Do, In Progress,
737
+ Done), never a guessed stage.
738
+ - A deploy task that names the WO rather than a story counts for every story in the WO.
739
+ - Canceled or won't-do stories are left out of the counts and listed once as dropped.
740
+ - **Blocker:** an open bug or story with priority Urgent or Highest, or a label or status that says
741
+ blocked. **Needs a decision:** a story or comment waiting on the customer, by label, status or the
742
+ latest comment's wording; say what you read.
743
+
744
+ ### Headline
745
+
746
+ One of: **Not started**; **In progress**; **In UAT**; **Delivered** (every story in PROD);
747
+ **Blocked** (an open blocker, or a story waiting on a decision); **At risk** (end or target date
748
+ within 7 days, or passed, with stories not in PROD). When PROD is not tracked, the most it can say
749
+ is "Done in tracker, PROD deploy not tracked". Add **Signed off** when the PSA milestone is
750
+ `Customer Approved`. Flag "may be behind" when PSA's RAG or milestones, or the Linear project's
751
+ status or target date, disagree with the stories.
752
+
753
+ ### Report
754
+
755
+ Internal, by default:
756
+
757
+ 1. Title, customer, WO/CR number, **as of** time, fresh pull or snapshot (with its age), systems
758
+ checked.
759
+ 2. Headline and one line why, plus PSA RAG and sign-off.
760
+ 3. A stage table: one row per story, with Built, QA, UAT and PROD (tick and date, what is next, or
761
+ not tracked).
762
+ 4. Bugs: counts, and each open blocker by name.
763
+ 5. Blocked or needs a decision, latest signal (Slack), next, related CRs.
764
+ 6. Ticket, PR and document links, assignees, "may be behind" flags.
765
+
766
+ Customer version, only when asked ("make it customer-ready"): the same report without assignees,
767
+ internal ticket IDs and links, internal bug detail (counts become "issues found in testing, all
768
+ fixed" or "N being fixed"), RAG, "may be behind" flags, Slack signals, estimates and anything the
769
+ confidentiality rules forbid; the stories stay. Ask once first whether dates are by week (the
770
+ default, "week of 9 Nov") or exact. Offer to publish either version as a page the person can share.
771
+
772
+ ### Saving
773
+
774
+ Save to the repo of the linked PRs or commits when `memory_listRepos` lists it, else the project
775
+ folder's repo. With neither, skip the snapshot and the source map and say so in one line; the report
776
+ is unchanged. Each pull saves one Team Fact there, whose content starts with "<Customer> <WO/CR
777
+ number> status snapshot, <ISO time>": a JSON block (stories with stages and dates, headline, flags,
778
+ systems checked) and one readable line, so a reuse can render the report again. A snapshot keeps no
779
+ latest signal, so a reused report says the latest signal needs a fresh pull. `externalRef` is the WO's
780
+ parent ticket when there is one; `supersedes` is the previous snapshot of that WO. A snapshot or
781
+ source map never holds PSA financial fields; it has no Slack text and no scope-document text. A
782
+ project-level question keeps "<Project> status snapshot, <date>".
783
+
661
784
  ## Skill drift
662
785
 
663
786
  When a plugin skill's instruction contradicts the code you are working in, save a Fact tagged