@istmx/skills 1.0.1 → 1.2.0

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.
Files changed (50) hide show
  1. package/CODE_OF_CONDUCT.md +47 -0
  2. package/LICENSE +30 -0
  3. package/README.md +64 -27
  4. package/RELEASE_v1.2.0.md +40 -0
  5. package/bin/cli.js +99 -114
  6. package/istm-animate/SKILL.md +25 -60
  7. package/istm-architecture/SKILL.md +10 -1
  8. package/istm-awwward-designer/SKILL.md +16 -20
  9. package/istm-design/SKILL.md +2 -1
  10. package/istm-workflow/istm-audit/SKILL.md +7 -7
  11. package/istm-workflow/istm-audit/agent-prompt.md +20 -20
  12. package/istm-workflow/istm-audit/modes/area.md +1 -1
  13. package/istm-workflow/istm-audit/modes/greenfield.md +4 -4
  14. package/istm-workflow/istm-audit/modes/tool-skills.md +1 -1
  15. package/istm-workflow/istm-check/SKILL.md +10 -10
  16. package/istm-workflow/istm-check/modes/review.md +9 -9
  17. package/istm-workflow/istm-check/modes/verify.md +19 -19
  18. package/istm-workflow/istm-check/review-agent-prompt.md +2 -2
  19. package/istm-workflow/istm-check/review-guide.md +4 -4
  20. package/istm-workflow/istm-craft/SKILL.md +20 -11
  21. package/istm-workflow/istm-craft/agent-modes/architecture.md +1 -1
  22. package/istm-workflow/istm-craft/agent-prompt.md +8 -8
  23. package/istm-workflow/istm-craft/internal/after-subagent.md +11 -11
  24. package/istm-workflow/istm-craft/internal/design-conversation.md +9 -9
  25. package/istm-workflow/istm-craft/internal/tool-discovery.md +2 -2
  26. package/istm-workflow/istm-craft/spec-template.md +18 -18
  27. package/istm-workflow/istm-debug/SKILL.md +6 -6
  28. package/istm-workflow/istm-develop/SKILL.md +31 -16
  29. package/istm-workflow/istm-develop/checklist.md +1 -1
  30. package/istm-workflow/istm-develop/flow/build.md +21 -21
  31. package/istm-workflow/istm-develop/flow/git.md +4 -4
  32. package/istm-workflow/istm-develop/logical-guide.md +5 -5
  33. package/istm-workflow/istm-develop/ui/implementation.md +2 -2
  34. package/istm-workflow/istm-develop/ui-guide.md +3 -3
  35. package/istm-workflow/istm-document/SKILL.md +6 -6
  36. package/istm-workflow/istm-document/templates/postmortem.md +1 -1
  37. package/istm-workflow/istm-scope/SKILL.md +20 -20
  38. package/istm-workflow/istm-scope/modes/add.md +1 -1
  39. package/istm-workflow/istm-scope/modes/plan-brownfield.md +2 -2
  40. package/istm-workflow/istm-scope/modes/plan-greenfield.md +4 -4
  41. package/istm-workflow/istm-scope/modes/plan-monorepo.md +3 -3
  42. package/istm-workflow/istm-scope/modes/plan.md +16 -16
  43. package/istm-workflow/istm-scope/modes/replan.md +2 -2
  44. package/istm-workflow/istm-scope/scope-template.md +29 -29
  45. package/istm-workflow/istm-sync/SKILL.md +37 -25
  46. package/istm-workflow/istm-sync/agent-prompt.md +37 -19
  47. package/istm-workflow/istm-test/SKILL.md +12 -12
  48. package/istm-workflow/istm-test/modes/setup.md +6 -6
  49. package/istm-workflow/istm-test/writing-guide.md +1 -1
  50. package/package.json +4 -4
@@ -16,6 +16,24 @@ Claude Code loads it via the import below:
16
16
  @.istm-context/agents.md
17
17
  ```
18
18
 
19
+
20
+ ## If MODE is Restore
21
+
22
+ If you were invoked as `/istm-sync restore`:
23
+ 1. Read all the loaded files (`progress.md`, `memory.md`, scope files, agents.md).
24
+ 2. Synthesize the project state.
25
+ 3. Output a "Context Restored" summary containing:
26
+ - **Architecture & Tech Stack**: Core technologies in use.
27
+ - **Recent Decisions**: From memory or decisions logs.
28
+ - **Progress**: What was just finished (from `progress.md` or scope `[x]`).
29
+ - **Active Task**: What is currently `In Progress`.
30
+ - **Next Steps**: The immediate TODOs to tackle next.
31
+ 4. Stop execution here. Do not attempt to reconcile git diffs or edit files.
32
+
33
+ ---
34
+
35
+ ## If MODE is Save (Default Maintenance)
36
+
19
37
  ## The change
20
38
 
21
39
  - **Scope mode**: MODE
@@ -44,7 +62,7 @@ ROOT_AGENTS_MD
44
62
 
45
63
  SPEC_PATHS
46
64
 
47
- ## Feature scope for the relevant workspace(s) the diff touches, NOT all of .istm-context/scope/ (you may RECONCILE status only, never add/remove/reorder features)
65
+ ## Feature scope for the relevant workspace(s) the diff touches, NOT all of .istm-context/istm-scope/ (you may RECONCILE status only, never add/remove/reorder features)
48
66
 
49
67
  SCOPE_PATH_OR_NONE
50
68
 
@@ -60,7 +78,7 @@ SCOPE_PATH_OR_NONE
60
78
 
61
79
  ### 1. Update existing .istm-context/agents.md files (only where the change made them inaccurate)
62
80
 
63
- Read the diff. For each existing root/nested .istm-context/agents.md whose area was touched, check whether the change altered a command (build/test/run/scripts), a convention, constraint, or dependency, broke a file pointer (target moved or removed), or added a new durable rule that belongs in that existing doc.
81
+ Read the diff. For each existing root/nested .istm-context/agents.md whose area was touched, check whether the change altered a command (build/istm-test/run/scripts), a convention, constraint, or dependency, broke a file pointer (target moved or removed), or added a new durable rule that belongs in that existing doc.
64
82
 
65
83
  Make the edit only if it is:
66
84
  - **Surgical**: change or add specific lines, never rewrite sections.
@@ -69,21 +87,21 @@ Make the edit only if it is:
69
87
 
70
88
  ### The mirrored root fields
71
89
 
72
- <!-- ROOT-FIELD-CONTRACT:START (identical in /audit and /sync; edit both or neither) -->
90
+ <!-- ROOT-FIELD-CONTRACT:START (identical in /istm-audit and /istm-sync; edit both or neither) -->
73
91
  Root `.istm-context/agents.md` carries two mirrored fields. Each has exactly one source of truth outside the file, and no skill may invent a value for either:
74
92
 
75
93
  - `## Stack` mirrors the architecture spec, the one under `.istm-context/specs/` with a `## Proposed stack` section.
76
- - `## Build approach` mirrors the scope header's build approach line, the one `/scope` records.
94
+ - `## Build approach` mirrors the scope header's build approach line, the one `/istm-scope` records.
77
95
 
78
96
  Three rules bind every skill that touches them. Never overwrite curated prose in either field. Fill a field only when it is missing or still a placeholder. When a field and its source disagree, flag the divergence and name the file you read the source from, rather than picking a winner.
79
97
  <!-- ROOT-FIELD-CONTRACT:END -->
80
98
 
81
- What `/sync` does with them: reconcile, one line at a time.
99
+ What `/istm-sync` does with them: reconcile, one line at a time.
82
100
 
83
101
  - **Missing the value its source sets** (e.g. a greenfield root seeded before the architecture spec landed, or a root with no build approach line while the scope header names one): add that one line surgically, and record it under `AGENTS_UPDATED`.
84
102
  - **Field and source disagree**, or root's version is elaborated curated prose, or you cannot tell which side is authoritative: do not overwrite. Flag it under `CONFLICTS`, naming the spec or scope file you compared against.
85
103
 
86
- `/sync` never restructures root or creates it; that is `/audit`'s job (see the Boundaries table in `SKILL.md`).
104
+ `/istm-sync` never restructures root or creates it; that is `/istm-audit`'s job (see the Boundaries table in `SKILL.md`).
87
105
 
88
106
  **Agent Skill and MCP records:** if `INSTALLED_SKILLS_OR_NONE`, `MCP_SERVERS_OR_NONE`, or `DECLINED_TOOLS_OR_NONE` is not `none`, record it surgically in the most specific relevant .istm-context/agents.md:
89
107
  - Project wide tools (framework, ORM, styling, core DB, hosting, test runner) belong in root .istm-context/agents.md.
@@ -96,7 +114,7 @@ What `/sync` does with them: reconcile, one line at a time.
96
114
  **Design system pointer:** if this change added or established a `.istm-context/design.md` (the UI design system, art direction plus the build mandate) and the nearest .istm-context/agents.md has no pointer to it, add one surgical line so the mandate is discoverable and loads automatically for UI work: `` - Design system: build all UI to `.istm-context/design.md` (art direction and the maximalist product bar); token values live in CSS. `` Put it in root .istm-context/agents.md for a project-wide `.istm-context/design.md`, or the UI area's nested .istm-context/agents.md if the system is area-scoped. Idempotent: skip if a `.istm-context/design.md` pointer already exists. Never paste .istm-context/design.md content into .istm-context/agents.md; it is a pointer, not a copy.
97
115
 
98
116
  Rules you must not break:
99
- - **Idempotent, check before you add.** Read the target doc again now (a teammate or another session may have edited it). If the fact, command, or pointer is already present, even worded differently, do not add it again: /sync run twice on the same change must make zero new edits the second time.
117
+ - **Idempotent, check before you add.** Read the target doc again now (a teammate or another session may have edited it). If the fact, command, or pointer is already present, even worded differently, do not add it again: /istm-sync run twice on the same change must make zero new edits the second time.
100
118
  - **Never overwrite or rewrite curated prose.** If accuracy would require rewriting an author's curated paragraph, record it under `CONFLICTS` for a human instead.
101
119
  - Keep root .istm-context/agents.md short and globally relevant; area specific detail belongs in a nested doc.
102
120
 
@@ -104,15 +122,15 @@ Rules you must not break:
104
122
 
105
123
  You may create **one** nested `<area>/.istm-context/agents.md` for an area the change introduced wholesale. The test is **context, not policy**:
106
124
 
107
- - **Create it** when every source file in that area carries status `A` (added) in CHANGED_FILES: the diff shows you the entire area. If any file in the area is `M` (modified), the area already existed: do NOT create. Write a focused doc: local file pointers, local commands, conventions/constraints visible in the new code, links to any governing spec. End it with the one line note: `_Drafted by /sync from the introducing change, worth a quick human pass._` Then add exactly one pointer line to root .istm-context/agents.md under `## Context files`:
125
+ - **Create it** when every source file in that area carries status `A` (added) in CHANGED_FILES: the diff shows you the entire area. If any file in the area is `M` (modified), the area already existed: do NOT create. Write a focused doc: local file pointers, local commands, conventions/constraints visible in the new code, links to any governing spec. End it with the one line note: `_Drafted by /istm-sync from the introducing change, worth a quick human pass._` Then add exactly one pointer line to root .istm-context/agents.md under `## Context files`:
108
126
  ```
109
127
  - [<area>/.istm-context/agents.md](<area>/.istm-context/agents.md): <one-line description>
110
128
  ```
111
129
  **Idempotency + missing section**: skip the pointer if already present; if root has no `## Context files` heading, create it (append near the end of root) and add the pointer under it.
112
130
 
113
131
  Also create the sibling **`<area>/CLAUDE.md` pointer** (a one line note plus `@.istm-context/agents.md`) so Claude Code picks up the new area too.
114
- - **Area that already exists, defer to /audit**: the diff shows only a slice of an area that predates this change, so you lack the whole area context to write a good doc. Record it under `CONTEXT_GAPS`.
115
- - **Never create or restructure the root .istm-context/agents.md.** If the repo has no root .istm-context/agents.md at all, that's /audit's job; record under `CONTEXT_GAPS`.
132
+ - **Area that already exists, defer to /istm-audit**: the diff shows only a slice of an area that predates this change, so you lack the whole area context to write a good doc. Record it under `CONTEXT_GAPS`.
133
+ - **Never create or restructure the root .istm-context/agents.md.** If the repo has no root .istm-context/agents.md at all, that's /istm-audit's job; record under `CONTEXT_GAPS`.
116
134
  - One nested doc per genuinely distinct new area, never one per folder.
117
135
 
118
136
  ### 3. Clean up orphans from deletions
@@ -149,29 +167,29 @@ Be **strict**, noise erodes trust. Read a spec only if the changed paths plausib
149
167
 
150
168
  ### 6. Reconcile the feature scope (only if SCOPE_PATH_OR_NONE is a path)
151
169
 
152
- **Scope:** only the scope file(s) you were handed. Never hunt for or reconcile other files under `.istm-context/scope/`; one workspace's change does not license editing another's.
170
+ **Scope:** only the scope file(s) you were handed. Never hunt for or reconcile other files under `.istm-context/istm-scope/`; one workspace's change does not license editing another's.
153
171
 
154
- You are the **universal sub task reconciler**: `/develop` ticks its own sub tasks; `/test`, `/audit`, and `/sync` sub tasks have no one else. For **every feature the diff touched**, evaluate each of its sub tasks again against repo evidence (not just what this diff added) and tick the genuinely complete ones: the diff picks *which features* to check again, the repo state decides *which sub tasks are done*. Look directly with Read/Bash/Grep/Glob.
172
+ You are the **universal sub task reconciler**: `/istm-develop` ticks its own sub tasks; `/istm-test`, `/istm-audit`, and `/istm-sync` sub tasks have no one else. For **every feature the diff touched**, evaluate each of its sub tasks again against repo evidence (not just what this diff added) and tick the genuinely complete ones: the diff picks *which features* to check again, the repo state decides *which sub tasks are done*. Look directly with Read/Bash/Grep/Glob.
155
173
 
156
- **Malformed scope** (no `At-a-glance` table or feature sections, a status that is not standard, broken headings, a bad hand edit): do not edit it; note `scope malformed: <file>, needs a human or /scope re-run` under `SCOPE_RECONCILED` and skip it. Never act on a misread.
174
+ **Malformed scope** (no `At-a-glance` table or feature sections, a status that is not standard, broken headings, a bad hand edit): do not edit it; note `scope malformed: <file>, needs a human or /istm-scope re-run` under `SCOPE_RECONCILED` and skip it. Never act on a misread.
157
175
 
158
176
  > Step 1's source file filtering (dropping `*.test.*`, `.istm-context/**`) governs what you sync .istm-context/agents.md from; it does not limit reconciliation. Here you may and should inspect test files, .istm-context/agents.md, and config to judge completion.
159
177
 
160
178
  Evidence per sub task type (tick `[ ]` → `[x]` when the evidence is clearly present):
161
179
  - **UI / data model / backend / integration / data integration** → the corresponding files exist in the feature's code area (components/pages, schema/migrations, services/endpoints, the mock replaced by a real query).
162
- - **Build it (+ milestones)** → the feature's code exists in its area (milestone chunks present); `/develop` usually ticks these itself.
180
+ - **Build it (+ milestones)** → the feature's code exists in its area (milestone chunks present); `/istm-develop` usually ticks these itself.
163
181
  - **Verify it** → a `verify.md` beside the spec, or a recorded passing runtime verification for the feature.
164
182
  - **Test it** → test files cover this feature's area (search the area + test dirs).
165
- - **Review it (fresh model)** → a findings file for this feature under `.istm-context/reviews/` (`/check review`'s output).
166
- - **Document it** → a PR body, a `CHANGELOG.md` entry, or a release note covering this feature (`/document`'s output).
183
+ - **Review it (fresh model)** → a findings file for this feature under `.istm-context/reviews/` (`/istm-check review`'s output).
184
+ - **Document it** → a PR body, a `CHANGELOG.md` entry, or a release note covering this feature (`/istm-document`'s output).
167
185
  - **SEO & metadata** → metadata/structured data present on the feature's pages.
168
186
  - **Sync (record conventions)** → the area's `.istm-context/agents.md` exists and reflects the feature.
169
187
  - **Coding standards / tooling** → linter/formatter/`pre-commit` config present in the repo.
170
188
 
171
189
  Then update the feature's **status**, in the `At-a-glance` table AND beside its heading: `in-progress` while any box (`Build it` + its milestones, `Verify it`, `Test it`) is unticked; `done` **only when `Design`, `Build` (+ milestones), `Verify`, and `Test` are all ticked**.
172
190
 
173
- - **Strictly status only.** Never add, remove, rename, or reorder features or checkboxes (that's /scope's). Skip `existing` and `dropped` features entirely. Never invent a feature for code that has no section; if shipped code clearly matches no feature, note "unmapped: <area>, run /scope to enroll this off plan work" under `SCOPE_RECONCILED`.
174
- - **Attribution across features and workspaces.** Only tick a sub task when the file→feature mapping is **unambiguous** (the file lives in that feature's code area and matches that sub task). In a monorepo, a changed file's **workspace** (`apps/<x>/…`) selects the scope to update, `.istm-context/scope/<x>/`; never tick a feature in the wrong workspace's scope. If an area maps to more than one feature, do not guess; note `ambiguous: <area> → <featureA> / <featureB>` under `SCOPE_RECONCILED`.
191
+ - **Strictly status only.** Never add, remove, rename, or reorder features or checkboxes (that's /istm-scope's). Skip `existing` and `dropped` features entirely. Never invent a feature for code that has no section; if shipped code clearly matches no feature, note "unmapped: <area>, run /istm-scope to enroll this off plan work" under `SCOPE_RECONCILED`.
192
+ - **Attribution across features and workspaces.** Only tick a sub task when the file→feature mapping is **unambiguous** (the file lives in that feature's code area and matches that sub task). In a monorepo, a changed file's **workspace** (`apps/<x>/…`) selects the scope to update, `.istm-context/istm-scope/<x>/`; never tick a feature in the wrong workspace's scope. If an area maps to more than one feature, do not guess; note `ambiguous: <area> → <featureA> / <featureB>` under `SCOPE_RECONCILED`.
175
193
  - **Idempotent**: a box already `[x]` stays `[x]`; running it again changes nothing.
176
194
  - **Conservative**: tick only on clearly present evidence; when unsure, leave it.
177
195
  - **Git**: if root `.istm-context/agents.md` `## Git` says `integration: on` and `commit` is not `manual`, offer to commit the reconciliation with a one line subject (`chore(sync): reconcile docs`) plus the `Co-Authored-By` trailer; never push.
@@ -202,7 +220,7 @@ STALE_SPECS:
202
220
  - <.istm-context/specs/file>, <why the change makes it stale, or a status mismatch you couldn't safely reconcile>
203
221
 
204
222
  CONTEXT_GAPS:
205
- - <area>, <pre-existing undocumented area only sliced by this change; suggest /audit>
223
+ - <area>, <pre-existing undocumented area only sliced by this change; suggest /istm-audit>
206
224
 
207
225
  CONFLICTS:
208
226
  - <path>, <curated content that would need rewriting; left for a human>
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: test
2
+ name: istm-test
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
4
- description: "Run /test to write a test suite for code you just built or changed, after implementing a feature, route, or fix. Targets uncommitted changes automatically, reads test preferences.json for your framework (asks and saves it if absent), and picks the right strategy per file: happy path, edge cases, error states, accessibility."
4
+ description: "Run /istm-test to write a test suite for code you just built or changed, after implementing a feature, route, or fix. Targets uncommitted changes automatically, reads test preferences.json for your framework (asks and saves it if absent), and picks the right strategy per file: happy path, edge cases, error states, accessibility."
5
5
  ---
6
6
 
7
7
  ## Output style (plain words, no dashes, no hyphens)
@@ -16,7 +16,7 @@ Role: a senior test engineer writing the suite the code deserves, no more, no le
16
16
 
17
17
  Target: the code changed in this branch but not yet committed. Each changed file is classified (pure logic, component, API route, page/flow) and tested with the right strategy; tests verify real behavior and catch regressions, not coverage farming. The main thread writes the tests itself (a read only `scout` may do the heavy file reading for a large set); with a governing spec, tests trace to its acceptance criteria (Steps 7 and 8).
18
18
 
19
- Does not write application code. Does not update `.istm-context/agents.md`/`CLAUDE.md` context files (/sync owns that).
19
+ Does not write application code. Does not update `.istm-context/agents.md`/`CLAUDE.md` context files (/istm-sync owns that).
20
20
 
21
21
  ## Asks vs acts
22
22
 
@@ -92,7 +92,7 @@ Monorepo resolution: find each scoped file's nearest enclosing `package.json` (w
92
92
 
93
93
  Read `test-preferences.json` at the project root (file tool; "not found" = no prefs). Branch on whether it names a `tool`, not on whether the file exists:
94
94
  - **`tool` is set** (the common write path): load `tool`, `additionalTools`, `e2eTool`, `testDir`, `filePattern`, `packageManager`; skip to Step 5.
95
- - **`tool` is `null` and `gate` is set** (`GATE_ONLY`): this project gates without a test runner, by an earlier deliberate choice. Do not write a suite, do not install a runner, do not ask again, and do not read `modes/setup.md`. Run the project's typecheck/lint gate, then stop and report: "This project gates on `<gate>`, not a test suite. Ran the typecheck gate; use `/check verify` to confirm behavior."
95
+ - **`tool` is `null` and `gate` is set** (`GATE_ONLY`): this project gates without a test runner, by an earlier deliberate choice. Do not write a suite, do not install a runner, do not ask again, and do not read `modes/setup.md`. Run the project's typecheck/lint gate, then stop and report: "This project gates on `<gate>`, not a test suite. Ran the typecheck gate; use `/istm-check verify` to confirm behavior."
96
96
  - **No file** (`NO_PREFS`, first run): read `modes/setup.md` and do its Step 4 (stack detection and framework questions), then return here for Step 5 (installation check), then do its Step 6 (save preferences), then continue at Step 7. Do not read `modes/setup.md` on a write run.
97
97
  - **Malformed** (a file with neither `tool` nor `gate`, or unparseable JSON): say so, then treat it as `NO_PREFS` and run setup again, which overwrites it.
98
98
 
@@ -106,7 +106,7 @@ Empty scope: skip the framework questions, tell the engineer, offer fallbacks:
106
106
  Ask: "No uncommitted source changes found. What should I test?" (header: "No changes")
107
107
  - "The last commit": "Diff HEAD~1..HEAD and test what that commit changed"
108
108
  - "Specific files": "I'll test the files or directory you name"
109
- - "Nothing right now": "Stop. I'll run /test after I make changes"
109
+ - "Nothing right now": "Stop. I'll run /istm-test after I make changes"
110
110
  ```
111
111
 
112
112
  - Last commit: scope = `git diff --name-only --diff-filter=ACMR HEAD~1 HEAD`, run Step 1b again.
@@ -135,7 +135,7 @@ Yes: install with the project's package manager (`pnpm` shown; substitute the de
135
135
  ```bash
136
136
  pnpm add -D vitest # unit
137
137
  pnpm add -D @testing-library/react @testing-library/user-event @testing-library/jest-dom # addon
138
- pnpm add -D @playwright/test && pnpm exec playwright install # E2E (Playwright)
138
+ pnpm add -D @playwright/istm-test && pnpm exec playwright install # E2E (Playwright)
139
139
  pnpm add -D cypress # E2E (Cypress)
140
140
  pip install pytest pytest-mock # Python
141
141
  go get github.com/stretchr/testify # Go
@@ -151,7 +151,7 @@ Paths and cheap signals only; the heavy reading happens at write time (by you, o
151
151
 
152
152
  With file tools:
153
153
  - List the 3 most recently modified spec paths under `.istm-context/specs/` (paths only).
154
- - Identify the governing spec: the feature dir `.istm-context/specs/NNNN-<feature>/` (or single `.istm-context/specs/NNNN-<feature>.md`) these files implement, matched by branch/feature name or touched surfaces (a `.istm-context/scope/` entry, if present, points to it). Note its path and whether a `verify.md` sits beside it (`.istm-context/specs/NNNN-<feature>/verify.md`). This contract is what tests trace to; it may not be among the 3 recent paths. Set `TRACE_TO_CONTRACT = yes` when a governing spec exists, else `no`.
154
+ - Identify the governing spec: the feature dir `.istm-context/specs/NNNN-<feature>/` (or single `.istm-context/specs/NNNN-<feature>.md`) these files implement, matched by branch/feature name or touched surfaces (a `.istm-context/istm-scope/` entry, if present, points to it). Note its path and whether a `verify.md` sits beside it (`.istm-context/specs/NNNN-<feature>/verify.md`). This contract is what tests trace to; it may not be among the 3 recent paths. Set `TRACE_TO_CONTRACT = yes` when a governing spec exists, else `no`.
155
155
  - Note whether `.istm-context/design.md` exists at the project root; use its path only when a **component** or **page/flow** file is in scope, else `none`.
156
156
  - Read `.istm-context/agents.md` (canonical; `CLAUDE.md` if absent) as project context (short and cheap). Also note the build approach as one line: the slice shaping approach the team chose, recorded in the scope header (or root `.istm-context/agents.md`), e.g. thin end to end path, thinnest usable whole core loop, UI first shell on placeholders, full user journey per phase. It doesn't branch the logic; it calibrates your judgment when writing (Step 8, rule a).
157
157
  - Read `package.json`, note `scripts.test`. `RUN_COMMAND` = `<pkgmgr> test` when a `test` script exists (`<pkgmgr> run test` for npm); a raw invocation (e.g. `pnpm exec vitest run`) only when none does.
@@ -174,7 +174,7 @@ The main thread writes the tests itself. Do not spawn a writer. Resolve this ski
174
174
 
175
175
  The inputs to apply (the labeled values you gathered):
176
176
  1. unit tool, E2E tool, additional tools, `INSTALL` state; `testDir`, `filePattern`, package manager, stack/framework, `packageRoot`; the classified scope (each file path with its class: logic / component / page flow / api server / cli); `RUN_COMMAND`, `RUN_AFTER`; project context plus the build approach line; the 3 recent spec paths or `none` (read only if relevant to what you're testing); the .istm-context/design.md path or `none`; `TRACE_TO_CONTRACT`, the governing spec path, and the `verify.md` path (each `none` if absent).
177
- 2. Two rules to apply: (a) let the build approach calibrate which behaviors are durably real for this slice (lock those in as stable assertions) versus deliberate scaffolding the slice fakes by design (don't assert a real implementation the plan hasn't built yet, e.g. a real backend expectation on a shell that stubs its data). (b) when `TRACE_TO_CONTRACT = yes`, read the acceptance criteria (from `verify.md` if present, preferring its already resolved `AC-N`-tagged checklist, else the spec's `## Requirements`) and lock in the durable ones: an automated test for every criterion that can be pinned as a stable assertion, each test tagged with the `AC-N` it covers (e.g. a `covers: AC-3` comment, or `AC-3` in the test title) so the suite traces back to the contract. Never fake a criterion that can't be automated (visual/manual/environmental, e.g. "email actually arrives"); record it in `NOT_COVERED` as `AC-N, <why not automatable> → defer to /check verify manual step`.
177
+ 2. Two rules to apply: (a) let the build approach calibrate which behaviors are durably real for this slice (lock those in as stable assertions) versus deliberate scaffolding the slice fakes by design (don't assert a real implementation the plan hasn't built yet, e.g. a real backend expectation on a shell that stubs its data). (b) when `TRACE_TO_CONTRACT = yes`, read the acceptance criteria (from `verify.md` if present, preferring its already resolved `AC-N`-tagged checklist, else the spec's `## Requirements`) and lock in the durable ones: an automated test for every criterion that can be pinned as a stable assertion, each test tagged with the `AC-N` it covers (e.g. a `covers: AC-3` comment, or `AC-3` in the test title) so the suite traces back to the contract. Never fake a criterion that can't be automated (visual/manual/environmental, e.g. "email actually arrives"); record it in `NOT_COVERED` as `AC-N, <why not automatable> → defer to /istm-check verify manual step`.
178
178
 
179
179
  Monorepo (multiple package roots from Step 1b): write each root's suite in turn, scoped to its root's files, tool, and package manager (offload each root's file reading to its own `scout` if large). Single root (common case): just write it.
180
180
 
@@ -184,12 +184,12 @@ Monorepo (multiple package roots from Step 1b): write each root's suite in turn,
184
184
 
185
185
  If the write failed or produced no report: say so and do it again; never report a passing or failing suite you didn't actually produce. Otherwise relay the format matching `RUN_AFTER`.
186
186
 
187
- Update the scope: if this feature is on the scope (`.istm-context/scope/`) and the suite passes, tick its `Test it` box. If `Design`, `Build` (+ its milestones), `Verify`, and `Test` are now all ticked, set the feature's status to `done` (in the At a glance table and beside the heading), unless its governing spec is still `Assumed` (a decision built on an unratified assumption): then leave it `in-progress` and point to `/architect <feature>` to ratify first. If tests fail or coverage is partial, leave `Test it` unticked and the status `in-progress`. **Confirm the update as a closing gate** (don't skip it): report exactly what you ticked in each file, e.g. "Scope: ticked `Test it`, status → `done`. Spec: status → `Accepted`." No matching scope row → say so, don't finish silently. On `done`, advise `/clear` before the next feature: the scope and spec hold everything, a fresh session keeps the next build cheap. **Git:** if the nearest `.istm-context/agents.md` `## Git` says `integration: on` and `commit` is not `manual`, offer to commit the suite with a one line subject (`test(<scope>): …`) plus the `Co-Authored-By` trailer; never push. (`/test` is the closer for the `Medium` and `Full` workflow tiers; `Vibe` closes at `/develop` and `Lean` at `/check verify`, so on those tiers this feature would already be `done` or not use `/test`.)
187
+ Update the scope: if this feature is on the scope (`.istm-context/istm-scope/`) and the suite passes, tick its `Test it` box. If `Design`, `Build` (+ its milestones), `Verify`, and `Test` are now all ticked, set the feature's status to `done` (in the At a glance table and beside the heading), unless its governing spec is still `Assumed` (a decision built on an unratified assumption): then leave it `in-progress` and point to `/architect <feature>` to ratify first. If tests fail or coverage is partial, leave `Test it` unticked and the status `in-progress`. **Confirm the update as a closing gate** (don't skip it): report exactly what you ticked in each file, e.g. "Scope: ticked `Test it`, status → `done`. Spec: status → `Accepted`." No matching scope row → say so, don't finish silently. On `done`, advise `/clear` before the next feature: the scope and spec hold everything, a fresh session keeps the next build cheap. **Git:** if the nearest `.istm-context/agents.md` `## Git` says `integration: on` and `commit` is not `manual`, offer to commit the suite with a one line subject (`test(<scope>): …`) plus the `Co-Authored-By` trailer; never push. (`/istm-test` is the closer for the `Medium` and `Full` workflow tiers; `Vibe` closes at `/istm-develop` and `Lean` at `/istm-check verify`, so on those tiers this feature would already be `done` or not use `/istm-test`.)
188
188
 
189
189
  Parse from the report: `TESTS_WRITTEN`, `NOT_COVERED`, plus `RUN_RESULT` and `BUGS_FOUND` when `RUN_AFTER = yes`, or `MANUAL_INSTRUCTIONS` when `RUN_AFTER = no`. Relay this template: keep lines marked `← yes` only when `RUN_AFTER = yes`, `← no` only when `RUN_AFTER = no` (a marked heading carries its list lines), unmarked lines always; strip the markers.
190
190
 
191
191
  ```
192
- ## /test complete (suite run) ← yes; when no, use: ## /test complete (not run)
192
+ ## /istm-test complete (suite run) ← yes; when no, use: ## /istm-test complete (not run)
193
193
 
194
194
  **Scope**: <N> changed files (uncommitted)
195
195
  **Tool**: <unit tool> [+ E2E tool] [+ addons]
@@ -217,10 +217,10 @@ Parse from the report: `TESTS_WRITTEN`, `NOT_COVERED`, plus `RUN_RESULT` and `BU
217
217
 
218
218
  **Not covered** (consider adding):
219
219
  - <gap and why>
220
- - AC-N, <criterion that can't be automated (visual/manual/env)> → defer to /check verify manual step ← when TRACE_TO_CONTRACT=yes
220
+ - AC-N, <criterion that can't be automated (visual/manual/env)> → defer to /istm-check verify manual step ← when TRACE_TO_CONTRACT=yes
221
221
  ```
222
222
 
223
- If `BUGS_FOUND` is not empty, lead with it: a test that correctly fails on real broken code is a genuine finding, not something to silence. /test does not modify application code to make a test pass.
223
+ If `BUGS_FOUND` is not empty, lead with it: a test that correctly fails on real broken code is a genuine finding, not something to silence. /istm-test does not modify application code to make a test pass.
224
224
 
225
225
  This skill is complete after relaying the report: it does not invoke other skills.
226
226
 
@@ -7,12 +7,12 @@ Read this only when `test-preferences.json` is absent. It holds the two first ru
7
7
  With file tools (not shell utilities), determine:
8
8
  - Package manager by lockfile: `pnpm-lock.yaml` → pnpm, `yarn.lock` → yarn, `bun.lockb` → bun, `package-lock.json` → npm.
9
9
  - Language and framework: `package.json` for `next`/`vite`/`nuxt`/`svelte`/`react`; `pyproject.toml` (pytest/unittest) → Python; `go.mod` → Go; `Cargo.toml` → Rust.
10
- - Installed test tools: `vitest`/`jest`/`@playwright/test`/`cypress`/`@testing-library/*` in `package.json`. A different runner already in use (`bun test`, `node:test`, `ava`, `deno test`, etc.): detect and use it instead of installing a new one.
10
+ - Installed test tools: `vitest`/`jest`/`@playwright/istm-test`/`cypress`/`@testing-library/*` in `package.json`. A different runner already in use (`bun test`, `node:test`, `ava`, `deno test`, etc.): detect and use it instead of installing a new one.
11
11
 
12
12
  **Q0: No test setup at all? Don't assume they want one.** No test tool installed (whole repo, or this package in a monorepo): first check for a deliberate no test runner convention.
13
- - Stated in the nearest `.istm-context/agents.md` or governing spec (e.g. "no test runner, typecheck + `/check verify` is the gate"): respect it, don't push a framework. Save the **gate shape** of `test-preferences.json` (Step 6), run the project's typecheck/lint as the gate, point to `/check verify` for behavior. Report: "This project gates on typecheck + `/check verify`, not a test suite. Ran the typecheck gate; use `/check verify` to confirm behavior."
14
- - Not stated: ask (don't default to installing): "This has no test setup. How do you want to gate changes here?" → `Set up a test framework` (→ Q1, install with confirmation) · `No test runner, typecheck + /check verify` (→ save the gate shape, run typecheck, defer behavior to `/check verify`; never install) · `Just typecheck for now` (→ also the gate shape).
15
- - Per package in a monorepo: a package with no tests by design gates on typecheck/`/check verify` even if a sibling has a full suite; apply per resolved package root.
13
+ - Stated in the nearest `.istm-context/agents.md` or governing spec (e.g. "no test runner, typecheck + `/istm-check verify` is the gate"): respect it, don't push a framework. Save the **gate shape** of `test-preferences.json` (Step 6), run the project's typecheck/lint as the gate, point to `/istm-check verify` for behavior. Report: "This project gates on typecheck + `/istm-check verify`, not a test suite. Ran the typecheck gate; use `/istm-check verify` to confirm behavior."
14
+ - Not stated: ask (don't default to installing): "This has no test setup. How do you want to gate changes here?" → `Set up a test framework` (→ Q1, install with confirmation) · `No test runner, typecheck + /istm-check verify` (→ save the gate shape, run typecheck, defer behavior to `/istm-check verify`; never install) · `Just typecheck for now` (→ also the gate shape).
15
+ - Per package in a monorepo: a package with no tests by design gates on typecheck/`/istm-check verify` even if a sibling has a full suite; apply per resolved package root.
16
16
 
17
17
  Skip Q1 unless the engineer chose "set up a framework".
18
18
 
@@ -71,7 +71,7 @@ Write `test-preferences.json` at the project root. It has two shapes, and which
71
71
  }
72
72
  ```
73
73
 
74
- **Gate shape** (the project gates without a runner, by convention or by the engineer's Q0 answer). `tool` is `null` and `gate` names the gate. Write both keys, never just one: `/test` reads `tool` to decide whether to write a suite, and `/check review` reads `gate` to tell a deliberate no runner project apart from one that simply never set tests up. A file with neither key is malformed.
74
+ **Gate shape** (the project gates without a runner, by convention or by the engineer's Q0 answer). `tool` is `null` and `gate` names the gate. Write both keys, never just one: `/istm-test` reads `tool` to decide whether to write a suite, and `/istm-check review` reads `gate` to tell a deliberate no runner project apart from one that simply never set tests up. A file with neither key is malformed.
75
75
 
76
76
  ```json
77
77
  {
@@ -94,4 +94,4 @@ Conventional directories and patterns:
94
94
  | Rust | `#[cfg(test)]` in file / `tests/` | n/a |
95
95
 
96
96
  Then tell the engineer:
97
- > "Preferences saved to `test-preferences.json`. Future `/test` runs load these and skip straight to writing."
97
+ > "Preferences saved to `test-preferences.json`. Future `/istm-test` runs load these and skip straight to writing."
@@ -6,7 +6,7 @@ The main thread reads this file in full at write time (Step 8), just before it w
6
6
 
7
7
  ## Rules of engagement
8
8
 
9
- **You must not modify application source files.** /test writes tests; it never changes the code under test to make a test pass.
9
+ **You must not modify application source files.** /istm-test writes tests; it never changes the code under test to make a test pass.
10
10
 
11
11
  ### Existing tests: extend, never duplicate or clobber
12
12
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@istmx/skills",
3
- "version": "1.0.1",
4
- "description": "Context-as-a-Service (CaaS) for AI Coding Agents. Elite orchestrators for Cursor, Windsurf, Claude Code, and Gemini. Build Awwwards-winning UI, full-stack Next.js architecture, and strictly typed APIs with zero hallucinations.",
3
+ "version": "1.2.0",
4
+ "description": "The Elite AI Orchestration Engine for Cursor, Windsurf, Claude Code, and Gemini. Build Awwwards-winning UI, full-stack Next.js architecture, and strictly typed APIs with zero hallucinations.",
5
5
  "type": "module",
6
6
  "bin": "bin/cli.js",
7
7
  "scripts": {
@@ -16,8 +16,8 @@
16
16
  "istmx",
17
17
  "skills",
18
18
  "istm skills",
19
- "caas",
20
- "context-as-a-service",
19
+ "agentic-orchestration",
20
+ "orchestration-engine",
21
21
  "zenix",
22
22
  "ai",
23
23
  "ai-agents",