memtrace-skills 1.2.10 → 1.2.13
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/commands/install.d.ts +1 -0
- package/dist/commands/install.js +3 -2
- package/dist/index.js +9 -0
- package/dist/managed-skills.d.ts +4 -0
- package/dist/managed-skills.js +95 -0
- package/dist/rail-hook.js +28 -12
- package/dist/rail-lifecycle.js +45 -2
- package/dist/rail-runtime.d.ts +38 -2
- package/dist/rail-runtime.js +141 -8
- package/dist/tool-names.js +1 -0
- package/dist/transformers/claude.d.ts +6 -4
- package/dist/transformers/claude.js +54 -65
- package/dist/transformers/codex-config.d.ts +2 -0
- package/dist/transformers/codex-config.js +33 -0
- package/dist/transformers/codex.js +18 -22
- package/dist/transformers/cursor.js +7 -21
- package/dist/transformers/gemini.js +5 -4
- package/dist/transformers/kiro.js +5 -14
- package/dist/transformers/opencode.js +8 -7
- package/dist/transformers/pi.js +8 -6
- package/dist/transformers/rail-hooks.js +42 -5
- package/dist/transformers/shared.js +6 -13
- package/dist/transformers/types.d.ts +2 -0
- package/package.json +4 -3
- package/plugins/memtrace-skills/references/mcp-parameters.md +14 -1
- package/plugins/memtrace-skills/skills/memtrace-first/SKILL.md +42 -17
- package/skills/managed-stock-sha256.txt +364 -0
- package/skills/workflows/memtrace-first.md +42 -17
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: memtrace-first
|
|
3
|
-
description: "
|
|
3
|
+
description: "Use indexed graph and decision context for nontrivial code discovery, debugging, caller or consumer analysis, cross-file changes, impact, history, and recorded contracts. Follow useful retrieval with relevant relationships and current-source verification. Ordinary tools remain available; explicit user and project workflows take precedence."
|
|
4
4
|
allowed-tools:
|
|
5
5
|
- mcp__memtrace__list_indexed_repositories
|
|
6
6
|
- mcp__memtrace__index_directory
|
|
@@ -37,9 +37,22 @@ metadata:
|
|
|
37
37
|
---
|
|
38
38
|
# Memtrace First
|
|
39
39
|
|
|
40
|
-
Use Memtrace
|
|
41
|
-
|
|
42
|
-
|
|
40
|
+
Use Memtrace when indexed context helps resolve a concrete question about code,
|
|
41
|
+
relationships, processes, change impact or recorded decisions. Retrieval is
|
|
42
|
+
evidence, not a guarantee of complete coverage or correct behavior.
|
|
43
|
+
|
|
44
|
+
## Respect the chosen workflow
|
|
45
|
+
|
|
46
|
+
This is the managed contextual default. Explicit user and project instructions,
|
|
47
|
+
including custom strict workflows and opt-outs, take precedence. Keep the existing
|
|
48
|
+
Rail setting: `off`, `observe`, `nudge`, `rail` or `strict`. Do not change a user's
|
|
49
|
+
mode or treat this default as authorization for indexing or other external actions.
|
|
50
|
+
|
|
51
|
+
Ordinary source search, reads, edits and tests remain available. Use them directly
|
|
52
|
+
for small, known local changes, exact text searches, or questions the graph cannot
|
|
53
|
+
answer. There is no mandatory first call, query quota or minimum tool count. For
|
|
54
|
+
nontrivial discovery or shared behavior, prefer Memtrace's indexed context and
|
|
55
|
+
follow useful hits with the relationships that answer the open question.
|
|
43
56
|
|
|
44
57
|
## Establish scope
|
|
45
58
|
|
|
@@ -162,9 +175,11 @@ searched nothing. The `diagnostic` block names the store that answered, its
|
|
|
162
175
|
problem: the id matches more than one repository in *this* store, and the
|
|
163
176
|
message says to pass the exact id. Do that and stop here. Everything below
|
|
164
177
|
applies to the `not_in_store` reason.
|
|
165
|
-
2.
|
|
166
|
-
|
|
167
|
-
|
|
178
|
+
2. Route graph questions to the owning store. A filesystem match cannot turn
|
|
179
|
+
this refusal into successful graph retrieval or prove that graph edges are
|
|
180
|
+
absent. Ordinary source work may continue when the actual checkout, path and
|
|
181
|
+
branch have been verified; keep that evidence separate from the unavailable
|
|
182
|
+
graph answer. Do not freeze the user's workflow while waiting for a store.
|
|
168
183
|
3. Do not call `index_directory`. The repository is already indexed in the
|
|
169
184
|
store `repo_lives_in` names. Indexing it here would build a second copy in
|
|
170
185
|
the wrong store — writes are never routed to another store, so the call
|
|
@@ -176,7 +191,9 @@ searched nothing. The `diagnostic` block names the store that answered, its
|
|
|
176
191
|
or `--workspace <name>` when a manifest or a Named Workspace owns its
|
|
177
192
|
scope.
|
|
178
193
|
5. If `repo_lives_in` is absent, no live Memtrace runtime declares the
|
|
179
|
-
repository.
|
|
194
|
+
repository. If graph access is needed and setup is authorized, start Memtrace
|
|
195
|
+
in that repository's own workspace. Ordinary verified source work need not
|
|
196
|
+
wait; a retrieval refusal is not authorization to create another index.
|
|
180
197
|
|
|
181
198
|
A refusal is not the only outcome. When the runtime whose store declares the
|
|
182
199
|
repository is live and publishes a reachable control port, the same read is
|
|
@@ -205,8 +222,9 @@ that sets no `repo_in_store` key, is handled in the section above, not here.
|
|
|
205
222
|
tool that sets no `repo_in_store` key, missing scope, wrong branch, pending
|
|
206
223
|
index/embedding job, stale index and a valid empty result. Do not treat an
|
|
207
224
|
error as a clean miss, and do not treat a refusal or a keyless zero as one
|
|
208
|
-
either
|
|
209
|
-
|
|
225
|
+
either. Use a membership-checking tool when a membership or absence claim
|
|
226
|
+
matters; a keyless zero alone cannot establish it. Ordinary source
|
|
227
|
+
verification remains available without an extra graph-call prerequisite.
|
|
210
228
|
2. For an ambiguous query, make at most one targeted reformulation, using an
|
|
211
229
|
identifier or path hint where available, and a `file_path` filter such as
|
|
212
230
|
`ui/`, `memtrace-ui/`, `src/` or the framework directory when one applies.
|
|
@@ -233,8 +251,9 @@ are also appropriate uses of file tools.
|
|
|
233
251
|
|
|
234
252
|
## Check rationale before changing code
|
|
235
253
|
|
|
236
|
-
|
|
237
|
-
Cortex `recall_decision("<symbol/subsystem/approach>")`
|
|
254
|
+
When changing shared behavior, deleting code, or revisiting an approach that may
|
|
255
|
+
have a recorded contract, use Cortex `recall_decision("<symbol/subsystem/approach>")`
|
|
256
|
+
when available and relevant. If a symbol
|
|
238
257
|
ID is available, consult `why_is_this_here(symbol_id)` and
|
|
239
258
|
`governing_contracts(symbol_id)`. Verify a
|
|
240
259
|
matching decision with `verify_intent` before relying on it. Unknown rationale
|
|
@@ -246,7 +265,8 @@ when choosing among competing local idioms.
|
|
|
246
265
|
|
|
247
266
|
Use JSON numbers for limits/depths and booleans for switches. Use symbol names
|
|
248
267
|
for `get_symbol_context.symbol`, `get_impact.target` and relationship targets;
|
|
249
|
-
use
|
|
268
|
+
use a returned exact UUID when that tool supports identity-based recovery. Check
|
|
269
|
+
the actual schema rather than guessing an argument name. When a call is rejected,
|
|
250
270
|
check that tool's schema rather than retrying from memory; do not pre-read schemas.
|
|
251
271
|
`find_code` has no `kind` filter; use `find_symbol` for it.
|
|
252
272
|
Search without an explicit repository uses safe scope inference, not an implicit
|
|
@@ -261,12 +281,17 @@ receipts; preserve evidence internally and report meaningful findings and limits
|
|
|
261
281
|
- The right repository and branch were used.
|
|
262
282
|
- Graph claims are supported by retrieved edges, with missing/truncated data
|
|
263
283
|
made explicit, and exact behavioral claims are checked against source.
|
|
264
|
-
- A `repo_not_in_store`
|
|
265
|
-
|
|
284
|
+
- A `repo_not_in_store` graph question was routed on `diagnostic.repo_lives_in`,
|
|
285
|
+
not answered by indexing another copy into this store. Any ordinary source
|
|
286
|
+
fallback verified the actual checkout and was not reported as graph evidence.
|
|
266
287
|
- A zero from a tool that sets no `repo_in_store` key was re-checked through a
|
|
267
288
|
membership-checking tool before it was called an absence.
|
|
268
289
|
- Failed retrieval on a genuine zero (`repo_in_store: true`) is diagnosed and
|
|
269
290
|
bounded; it does not trigger query or reindex loops, and fallbacks remain
|
|
270
291
|
distinguishable from retrieval successes.
|
|
271
|
-
-
|
|
272
|
-
|
|
292
|
+
- Source inspection was scoped to the question; exact claims and edits were
|
|
293
|
+
verified against the current source rather than inferred from graph edges.
|
|
294
|
+
- Relevant recorded rationale and contracts were checked when available.
|
|
295
|
+
- Before finishing, compare the requested requirements with the implementation
|
|
296
|
+
and verification: state any remaining unverified behavior. This checklist is
|
|
297
|
+
a review aid, not machine-verified correctness or an extra approval gate.
|