@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.
- package/CODE_OF_CONDUCT.md +47 -0
- package/LICENSE +30 -0
- package/README.md +64 -27
- package/RELEASE_v1.2.0.md +40 -0
- package/bin/cli.js +99 -114
- package/istm-animate/SKILL.md +25 -60
- package/istm-architecture/SKILL.md +10 -1
- package/istm-awwward-designer/SKILL.md +16 -20
- package/istm-design/SKILL.md +2 -1
- package/istm-workflow/istm-audit/SKILL.md +7 -7
- package/istm-workflow/istm-audit/agent-prompt.md +20 -20
- package/istm-workflow/istm-audit/modes/area.md +1 -1
- package/istm-workflow/istm-audit/modes/greenfield.md +4 -4
- package/istm-workflow/istm-audit/modes/tool-skills.md +1 -1
- package/istm-workflow/istm-check/SKILL.md +10 -10
- package/istm-workflow/istm-check/modes/review.md +9 -9
- package/istm-workflow/istm-check/modes/verify.md +19 -19
- package/istm-workflow/istm-check/review-agent-prompt.md +2 -2
- package/istm-workflow/istm-check/review-guide.md +4 -4
- package/istm-workflow/istm-craft/SKILL.md +20 -11
- package/istm-workflow/istm-craft/agent-modes/architecture.md +1 -1
- package/istm-workflow/istm-craft/agent-prompt.md +8 -8
- package/istm-workflow/istm-craft/internal/after-subagent.md +11 -11
- package/istm-workflow/istm-craft/internal/design-conversation.md +9 -9
- package/istm-workflow/istm-craft/internal/tool-discovery.md +2 -2
- package/istm-workflow/istm-craft/spec-template.md +18 -18
- package/istm-workflow/istm-debug/SKILL.md +6 -6
- package/istm-workflow/istm-develop/SKILL.md +31 -16
- package/istm-workflow/istm-develop/checklist.md +1 -1
- package/istm-workflow/istm-develop/flow/build.md +21 -21
- package/istm-workflow/istm-develop/flow/git.md +4 -4
- package/istm-workflow/istm-develop/logical-guide.md +5 -5
- package/istm-workflow/istm-develop/ui/implementation.md +2 -2
- package/istm-workflow/istm-develop/ui-guide.md +3 -3
- package/istm-workflow/istm-document/SKILL.md +6 -6
- package/istm-workflow/istm-document/templates/postmortem.md +1 -1
- package/istm-workflow/istm-scope/SKILL.md +20 -20
- package/istm-workflow/istm-scope/modes/add.md +1 -1
- package/istm-workflow/istm-scope/modes/plan-brownfield.md +2 -2
- package/istm-workflow/istm-scope/modes/plan-greenfield.md +4 -4
- package/istm-workflow/istm-scope/modes/plan-monorepo.md +3 -3
- package/istm-workflow/istm-scope/modes/plan.md +16 -16
- package/istm-workflow/istm-scope/modes/replan.md +2 -2
- package/istm-workflow/istm-scope/scope-template.md +29 -29
- package/istm-workflow/istm-sync/SKILL.md +37 -25
- package/istm-workflow/istm-sync/agent-prompt.md +37 -19
- package/istm-workflow/istm-test/SKILL.md +12 -12
- package/istm-workflow/istm-test/modes/setup.md +6 -6
- package/istm-workflow/istm-test/writing-guide.md +1 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: scope
|
|
2
|
+
name: istm-scope
|
|
3
3
|
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
-
description: "Run /scope to turn a product idea into a living, coarse scope in .istm-context/scope/ and keep it current: plan a new product, plan the next slice, enroll one named feature, or run with no argument to reconcile after shipping and queue what is next. Seeds WHAT to build; /architect designs, /develop builds."
|
|
4
|
+
description: "Run /istm-scope to turn a product idea into a living, coarse scope in .istm-context/istm-scope/ and keep it current: plan a new product, plan the next slice, enroll one named feature, or run with no argument to reconcile after shipping and queue what is next. Seeds WHAT to build; /architect designs, /istm-develop builds."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Output style (plain words, no dashes, no hyphens)
|
|
@@ -12,16 +12,16 @@ Write everything this skill produces, files and messages alike, in plain simple
|
|
|
12
12
|
|
|
13
13
|
## What this skill does
|
|
14
14
|
|
|
15
|
-
Turns an idea into an ordered, coarse, living plan and keeps it honest as the product ships. Answers "what do I build, in what order, how heavy, which need a decision first?", not "how do I build this one thing?" (that is `/architect` and `/develop`).
|
|
15
|
+
Turns an idea into an ordered, coarse, living plan and keeps it honest as the product ships. Answers "what do I build, in what order, how heavy, which need a decision first?", not "how do I build this one thing?" (that is `/architect` and `/istm-develop`).
|
|
16
16
|
|
|
17
17
|
Scope shape, coarse and small: a slim At a glance table (`# · Feature · Phase · Status`) + feature sections grouped by phase (see `scope-template.md`). Each section: heading `### N. Name` with short tags only when they matter (`needs a decision`, an approach override, a workflow tier override like `· Full`), a 1 to 2 line intent, one `Done when:` line (acceptance criteria seeds, the WHAT), checkbox steps.
|
|
18
18
|
|
|
19
|
-
Feature shape lifecycle: not yet designed → one box, its entry command. On spec capture, `/architect` fills the built ready shape: `Design it (spec)` ticked, spec linked, `Build it: /develop <feature>` with 2 to 5 milestone sub items rolled up from the spec's `## Build plan`, then `Verify it: /check verify <feature>` and `Test it: /test <feature>`. Atomic build tasks stay in the spec's `## Build plan`, never here; every box is a command or tracked milestone. Status: in the table and beside the heading; spec and code pointers once they exist. `/scope` seeds the what; `/architect` designs the how and defines milestones; `/develop` builds; `/check verify` and `/test` close; `/sync` reconciles conventions after.
|
|
19
|
+
Feature shape lifecycle: not yet designed → one box, its entry command. On spec capture, `/architect` fills the built ready shape: `Design it (spec)` ticked, spec linked, `Build it: /istm-develop <feature>` with 2 to 5 milestone sub items rolled up from the spec's `## Build plan`, then `Verify it: /istm-check verify <feature>` and `Test it: /istm-test <feature>`. Atomic build tasks stay in the spec's `## Build plan`, never here; every box is a command or tracked milestone. Status: in the table and beside the heading; spec and code pointers once they exist. `/istm-scope` seeds the what; `/architect` designs the how and defines milestones; `/istm-develop` builds; `/istm-check verify` and `/istm-test` close; `/istm-sync` reconciles conventions after.
|
|
20
20
|
|
|
21
|
-
One command, inferred intent (`/scope [what]`, never a subcommand):
|
|
21
|
+
One command, inferred intent (`/istm-scope [what]`, never a subcommand):
|
|
22
22
|
- **plan** (default): no scope yet + a product sized idea, or asking for the next slice. Full pass: ask → decompose into coarse feature sections → order + phase → write.
|
|
23
|
-
- **replan**: scope exists + no argument. Opens with a short where things stand readout (git branch and ahead/behind the remote, feature counts by status, and each in-progress feature's resume point) so a bare `/scope` doubles as the "where was I, what is safe to pick up" orientation, then reconciles what shipped, surfaces plan vs reality drift (code or specs with no scope row), enrolls needs surfaced during the build, reorders, and queues the next slice. The normal living rhythm, not rare: run bare `/scope` again.
|
|
24
|
-
- **add**: scope exists + argument names a single feature. Enroll one coarse row (intent + order + tier + Needs spec) without planning again: `/scope <a feature>`.
|
|
23
|
+
- **replan**: scope exists + no argument. Opens with a short where things stand readout (git branch and ahead/behind the remote, feature counts by status, and each in-progress feature's resume point) so a bare `/istm-scope` doubles as the "where was I, what is safe to pick up" orientation, then reconciles what shipped, surfaces plan vs reality drift (code or specs with no scope row), enrolls needs surfaced during the build, reorders, and queues the next slice. The normal living rhythm, not rare: run bare `/istm-scope` again.
|
|
24
|
+
- **add**: scope exists + argument names a single feature. Enroll one coarse row (intent + order + tier + Needs spec) without planning again: `/istm-scope <a feature>`.
|
|
25
25
|
|
|
26
26
|
## Asks vs acts
|
|
27
27
|
|
|
@@ -35,26 +35,26 @@ Every choice is an options panel, never a neutral menu: 2 to 4 concrete options
|
|
|
35
35
|
|
|
36
36
|
## Artifact ownership
|
|
37
37
|
|
|
38
|
-
`.istm-context/scope/` is the feature scope, owned by this skill; `/architect` owns `.istm-context/specs/`. Other skills find a feature by scanning `.istm-context/scope/` for its row. Living document: `plan`, `replan`, `add` all edit in place (reconcile and append, never a new dated file). Writes nothing else: no specs, code, or `.istm-context/agents.md`. `.istm-context/scope/` holds scope files only; inventories, analyses, research docs live with the spec in its `rationale.md` (owned by `/architect`).
|
|
38
|
+
`.istm-context/istm-scope/` is the feature scope, owned by this skill; `/architect` owns `.istm-context/specs/`. Other skills find a feature by scanning `.istm-context/istm-scope/` for its row. Living document: `plan`, `replan`, `add` all edit in place (reconcile and append, never a new dated file). Writes nothing else: no specs, code, or `.istm-context/agents.md`. `.istm-context/istm-scope/` holds scope files only; inventories, analyses, research docs live with the spec in its `rationale.md` (owned by `/architect`).
|
|
39
39
|
|
|
40
40
|
File shape:
|
|
41
|
-
- Small product: one file, `.istm-context/scope/scope.md` (At a glance table + phase grouped sections + legend).
|
|
42
|
-
- Large product: epic split: `.istm-context/scope/index.md` (At a glance table across epics + one line status rollup per epic, each linking its epic file) + one file per epic named by area (`.istm-context/scope/auth.md`, …).
|
|
41
|
+
- Small product: one file, `.istm-context/istm-scope/istm-scope.md` (At a glance table + phase grouped sections + legend).
|
|
42
|
+
- Large product: epic split: `.istm-context/istm-scope/index.md` (At a glance table across epics + one line status rollup per epic, each linking its epic file) + one file per epic named by area (`.istm-context/istm-scope/auth.md`, …).
|
|
43
43
|
- Promote on demand: start single file; when `scope.md` outgrows a comfortable scan (roughly a dozen plus features across clearly distinct areas), rename to `index.md` (keep table + per epic rollup), move each area's sections into its own `<epic>.md`. Never split it early. Names semantic (`scope.md` / `index.md` / `<epic>.md`), never numbered.
|
|
44
44
|
- Keep every file coarse and small; a long epic file needs finer features and tighter intent, not a build task dump.
|
|
45
45
|
|
|
46
|
-
Status lifecycle (`/scope` sets initial status; the pipeline advances it):
|
|
47
|
-
- New features start `planned`. Brownfield: also enroll features that are already there as `existing` (complete) or `in-progress` (partial), the only other statuses `/scope` writes.
|
|
48
|
-
- `/develop` advances pipeline built work (`planned` → `in-progress` → `done`); `/sync` reconciles against the diff. A feature built on an **assumed decision** (its governing spec is `Assumed`, recorded by `/develop` when the engineer chose to build before deciding) stays `in-progress` with an `assumed decision (spec NNNN)` note until `/architect` ratifies the decision; it cannot reach `done` before then.
|
|
49
|
-
- `done` ≠ `existing`: `done` = this pipeline built and verified it; `existing` predates the workflow; `/develop` and `/sync` never touch `existing` rows.
|
|
50
|
-
- `replan` may set a feature dropped from scope to `dropped`, never deletes rows; `dropped` keeps history, excluded from active counts and work; `/develop` and `/sync` skip it.
|
|
46
|
+
Status lifecycle (`/istm-scope` sets initial status; the pipeline advances it):
|
|
47
|
+
- New features start `planned`. Brownfield: also enroll features that are already there as `existing` (complete) or `in-progress` (partial), the only other statuses `/istm-scope` writes.
|
|
48
|
+
- `/istm-develop` advances pipeline built work (`planned` → `in-progress` → `done`); `/istm-sync` reconciles against the diff. A feature built on an **assumed decision** (its governing spec is `Assumed`, recorded by `/istm-develop` when the engineer chose to build before deciding) stays `in-progress` with an `assumed decision (spec NNNN)` note until `/architect` ratifies the decision; it cannot reach `done` before then.
|
|
49
|
+
- `done` ≠ `existing`: `done` = this pipeline built and verified it; `existing` predates the workflow; `/istm-develop` and `/istm-sync` never touch `existing` rows.
|
|
50
|
+
- `replan` may set a feature dropped from scope to `dropped`, never deletes rows; `dropped` keeps history, excluded from active counts and work; `/istm-develop` and `/istm-sync` skip it.
|
|
51
51
|
|
|
52
52
|
Workflow tier (one rigor dial per feature, `Vibe` · `Lean` · `Medium` · `Full`): how much process a feature warrants, replacing the older separate "weight". It is a recommendation the engineer overrides, never a forced track. There is ONE project default (recommended once, plan Step 5b, recorded on the scope header `**Workflow:**` line) and a per feature override (a tag beside the heading, e.g. `· Full`, only when a feature differs from the default; no tag = inherit). What the tier drives:
|
|
53
53
|
- **Design time**: higher tier → more likely `Needs spec: yes`, and the spec's cross model decision critic runs (auto at `Full`/`Medium`). `Vibe`/`Lean` features are often `Needs spec: no`.
|
|
54
|
-
- **After `/develop`** (the verification tail): `Vibe` = nothing (rely on `/develop`'s own build time self check); `Lean` = `/check verify`; `Medium` = `/check verify` + `/test`; `Full` = adds a fresh model `/check review` + `/document`.
|
|
55
|
-
- **What closes `done`** (the last required stage marks it): `Vibe` → `/develop` (build + self check); `Lean` → `/check verify`; `Medium`/`Full` → `/test`. An `Assumed` spec still blocks `done` at every tier.
|
|
54
|
+
- **After `/istm-develop`** (the verification tail): `Vibe` = nothing (rely on `/istm-develop`'s own build time self check); `Lean` = `/istm-check verify`; `Medium` = `/istm-check verify` + `/istm-test`; `Full` = adds a fresh model `/istm-check review` + `/istm-document`.
|
|
55
|
+
- **What closes `done`** (the last required stage marks it): `Vibe` → `/istm-develop` (build + self check); `Lean` → `/istm-check verify`; `Medium`/`Full` → `/istm-test`. An `Assumed` spec still blocks `done` at every tier.
|
|
56
56
|
|
|
57
|
-
`/scope` recommends the project default from the risk and size of the feature mix (Step 5b), the same signals `/architect` and `/develop` read; `/develop` reads the effective tier (feature override, else project default, else inferred) to scale the next steps it recommends, so a `Vibe` project is not told to run verify and a `Lean` project is not told to run a full review chain. Not a global playbook a feature is slotted into: it is a per project, per feature judgment.
|
|
57
|
+
`/istm-scope` recommends the project default from the risk and size of the feature mix (Step 5b), the same signals `/architect` and `/istm-develop` read; `/istm-develop` reads the effective tier (feature override, else project default, else inferred) to scale the next steps it recommends, so a `Vibe` project is not told to run verify and a `Lean` project is not told to run a full review chain. Not a global playbook a feature is slotted into: it is a per project, per feature judgment.
|
|
58
58
|
|
|
59
59
|
|
|
60
60
|
|
|
@@ -62,7 +62,7 @@ Concurrency: shared across sessions and teammates. Read again immediately before
|
|
|
62
62
|
|
|
63
63
|
## Reference files
|
|
64
64
|
|
|
65
|
-
- `scope-template.md`: format rules, At a glance table, per feature sections (heading + intent + Done when + checkbox tasks + pointer line), brownfield enrollment and epic split shapes, the `## /scope complete` report block. Read it when writing the scope and the report.
|
|
65
|
+
- `scope-template.md`: format rules, At a glance table, per feature sections (heading + intent + Done when + checkbox tasks + pointer line), brownfield enrollment and epic split shapes, the `## /istm-scope complete` report block. Read it when writing the scope and the report.
|
|
66
66
|
|
|
67
67
|
## Portability (any OS, any agent)
|
|
68
68
|
|
|
@@ -72,7 +72,7 @@ Any Agent Skills client on macOS, Linux, Windows. Detection snippets are POSIX r
|
|
|
72
72
|
|
|
73
73
|
### Step 0: Infer intent & idea check
|
|
74
74
|
|
|
75
|
-
No subcommand. First check whether a scope exists under `.istm-context/scope/` (or `.workflow/scope/` if that is the artifact base), then infer:
|
|
75
|
+
No subcommand. First check whether a scope exists under `.istm-context/istm-scope/` (or `.workflow/istm-scope/` if that is the artifact base), then infer:
|
|
76
76
|
- Scope exists + no argument (or running again, described as "reconcile / what's next") → replan behavior (`modes/replan.md`).
|
|
77
77
|
- Scope exists + argument names a single feature → add behavior (`modes/add.md`).
|
|
78
78
|
- No scope yet + a product sized idea, or scoping the next slice (including brownfield) → plan behavior, below.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Add (enroll one ad hoc feature, lightweight)
|
|
4
4
|
|
|
5
|
-
Inferred when a scope exists and the argument names a single feature: `/scope <a feature>` enrolls one coarse row without planning again, for a feature invented partway through. No `add` subcommand to type.
|
|
5
|
+
Inferred when a scope exists and the argument names a single feature: `/istm-scope <a feature>` enrolls one coarse row without planning again, for a feature invented partway through. No `add` subcommand to type.
|
|
6
6
|
|
|
7
7
|
1. Read the scope again and dedup: present at any status → extend that row, don't duplicate.
|
|
8
8
|
2. Ask only what's needed (a short panel if intent/tier is ambiguous, else infer): intent, workflow tier (only if it differs from the project default, else inherit), placement (`Order` / `Phasing`).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Scope Plan Route: brownfield
|
|
2
2
|
|
|
3
3
|
Brownfield: read root `.istm-context/agents.md` (and any existing scope) to plan the next slice on top:
|
|
4
|
-
1. Enroll already built features for context, from `.istm-context/agents.md` (nested area docs map to existing areas) + a light code scan, each with a `Code area` pointer. Large repo: offload the scan to a read only subagent (on Claude Code the `scout` subagent type, which is read only and pins a fast, low cost model; else set the model explicitly to a fast, low cost tier, not inherited; `Read`/`Grep`/`Glob`) returning a compact map, don't read the tree inline. Assess completeness honestly from the code, don't stamp everything done: complete and shipped → `existing` (distinct from `done`); partially built → `in-progress` (so `/develop` can resume). Never mark a half built feature `existing`.
|
|
5
|
-
2. Plan the next slice as `planned` rows; don't plan `existing` features again. No root `.istm-context/agents.md`: note in the report that `/audit` should run first for real context.
|
|
4
|
+
1. Enroll already built features for context, from `.istm-context/agents.md` (nested area docs map to existing areas) + a light code scan, each with a `Code area` pointer. Large repo: offload the scan to a read only subagent (on Claude Code the `scout` subagent type, which is read only and pins a fast, low cost model; else set the model explicitly to a fast, low cost tier, not inherited; `Read`/`Grep`/`Glob`) returning a compact map, don't read the tree inline. Assess completeness honestly from the code, don't stamp everything done: complete and shipped → `existing` (distinct from `done`); partially built → `in-progress` (so `/istm-develop` can resume). Never mark a half built feature `existing`.
|
|
5
|
+
2. Plan the next slice as `planned` rows; don't plan `existing` features again. No root `.istm-context/agents.md`: note in the report that `/istm-audit` should run first for real context.
|
|
6
6
|
|
|
7
7
|
Run again (scope exists): read the union, don't duplicate or fragment:
|
|
8
8
|
- Read the whole scope (single file, or `index.md` + every epic file); all features at any status (`planned`, `in-progress`, `done`, `existing`, `dropped`) are the dedup baseline.
|
|
@@ -4,11 +4,11 @@ Greenfield: decompose the whole MVP from scratch, foundations first. Apply the f
|
|
|
4
4
|
|
|
5
5
|
## Foundations first sequencing (a principle every build approach obeys)
|
|
6
6
|
|
|
7
|
-
No approach starts a feature slice before the ground it stands on exists (working skeleton before features). Lead with these explicit foundation features (never buried sub tasks), default order below (cheaper foundation precedes what depends on it). Crucially, stack decided + project scaffolded before `/audit` runs: `/audit` seeds root `.istm-context/agents.md` conventions + tooling from the real project.
|
|
7
|
+
No approach starts a feature slice before the ground it stands on exists (working skeleton before features). Lead with these explicit foundation features (never buried sub tasks), default order below (cheaper foundation precedes what depends on it). Crucially, stack decided + project scaffolded before `/istm-audit` runs: `/istm-audit` seeds root `.istm-context/agents.md` conventions + tooling from the real project.
|
|
8
8
|
|
|
9
|
-
1. **Standards preferences**: light preferences that can't be inferred (architecture style leanings, formatting taste). Keep light; may fold into the stack feature rather than its own row. Heavy convention + tooling capture is `/audit`, after scaffold. `Needs spec: no`.
|
|
10
|
-
2. **Stack and architecture**: ONE foundation feature, built like any other (a decision box, `Decide the stack (spec)`, then an execution box, `Scaffold from the decision: /develop …`), never two rows. `/architect` decides the stack (ARCHITECTURE spec: the one place tools/providers/frameworks are chosen; nothing tooling related runs before it); `/develop` then scaffolds from it (framework init, dependency install, directory layout, runnable dev server/build). `Needs spec: yes`, tier `Medium`+. The spec records only the decision; `/develop` derives scaffold steps at build time (writing them in both places is the double spec bug). Scaffold installs only the runnable skeleton the first slice needs (framework, language, core runtime), never every eventual library: deciding the full stack up front is correct (the spec's job), installing it all is not; each later feature installs its own dependencies when built (e.g. the billing SDK when billing is built). Exception: cross cutting tooling (lint, format, type strictness, `pre-commit`, CI) comes early via `/audit` + `/develop tooling`, since all later code must follow it.
|
|
11
|
-
3. **Coding standards & tooling**: two sub tasks: `/audit` (greenfield) captures conventions AND tooling choices into root `.istm-context/agents.md` from the real scaffolded project, not guesses; then `/develop tooling` installs the chosen tooling (packages, config files, `pre-commit` hooks, CI) per what audit captured. `/audit` decides and records, never installs; `/develop` installs. `Needs spec: no`. After the stack and scaffold feature, never before.
|
|
9
|
+
1. **Standards preferences**: light preferences that can't be inferred (architecture style leanings, formatting taste). Keep light; may fold into the stack feature rather than its own row. Heavy convention + tooling capture is `/istm-audit`, after scaffold. `Needs spec: no`.
|
|
10
|
+
2. **Stack and architecture**: ONE foundation feature, built like any other (a decision box, `Decide the stack (spec)`, then an execution box, `Scaffold from the decision: /istm-develop …`), never two rows. `/architect` decides the stack (ARCHITECTURE spec: the one place tools/providers/frameworks are chosen; nothing tooling related runs before it); `/istm-develop` then scaffolds from it (framework init, dependency install, directory layout, runnable dev server/build). `Needs spec: yes`, tier `Medium`+. The spec records only the decision; `/istm-develop` derives scaffold steps at build time (writing them in both places is the double spec bug). Scaffold installs only the runnable skeleton the first slice needs (framework, language, core runtime), never every eventual library: deciding the full stack up front is correct (the spec's job), installing it all is not; each later feature installs its own dependencies when built (e.g. the billing SDK when billing is built). Exception: cross cutting tooling (lint, format, type strictness, `pre-commit`, CI) comes early via `/istm-audit` + `/istm-develop tooling`, since all later code must follow it.
|
|
11
|
+
3. **Coding standards & tooling**: two sub tasks: `/istm-audit` (greenfield) captures conventions AND tooling choices into root `.istm-context/agents.md` from the real scaffolded project, not guesses; then `/istm-develop tooling` installs the chosen tooling (packages, config files, `pre-commit` hooks, CI) per what audit captured. `/istm-audit` decides and records, never installs; `/istm-develop` installs. `Needs spec: no`. After the stack and scaffold feature, never before.
|
|
12
12
|
4. **Data model**: explicit, never skipped (`Needs spec: yes`): core entities, relationships, persistence shape. Never fold into another feature or skip; a wrong data model is the most expensive thing to redo.
|
|
13
13
|
5. **Design system / UI foundation**: `/architect` → `.istm-context/design.md`, then base components (`Needs spec: yes`), if the product has meaningful UI; every page depends on it.
|
|
14
14
|
6. **Walking skeleton slice**: a thin vertical slice wired end to end (DB → API → UI) doing one trivial real thing (e.g. one record created and rendered), proving the stack is connected before feature work. Tier `Medium`; usually leans on the foundation specs, not its own. Under Tracer Bullet it merges with the first real slice (below).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Scope Plan Route: monorepo
|
|
2
2
|
|
|
3
3
|
Monorepo (workspaces config: `pnpm-workspace.yaml`, `turbo.json`, `nx.json`, `lerna.json`, `workspaces` in root `package.json`; or multiple manifests under `apps/*` / `packages/*`): plan per workspace, never mix apps:
|
|
4
|
-
- Each workspace: `.istm-context/scope/<workspace>/` (`scope.md`, or `index.md` + epics if large). Repo wide planning (monorepo tooling, cross cutting infra, e.g. a shared design system in `packages/ui`): `.istm-context/scope/_root/`.
|
|
5
|
-
- Top level `.istm-context/scope/index.md` maps the monorepo: one line per workspace (and `_root`) linking its scope with a status rollup (features done / total); create or update whenever a workspace scope is added or its rollup changes.
|
|
6
|
-
- `/scope web <idea>` plans the `web` app; bare `/scope` on a monorepo asks which workspace(s) (or "repo wide") as a panel. Read that workspace's nested `.istm-context/agents.md` for its stack/conventions; apps differ, don't assume one.
|
|
4
|
+
- Each workspace: `.istm-context/istm-scope/<workspace>/` (`scope.md`, or `index.md` + epics if large). Repo wide planning (monorepo tooling, cross cutting infra, e.g. a shared design system in `packages/ui`): `.istm-context/istm-scope/_root/`.
|
|
5
|
+
- Top level `.istm-context/istm-scope/index.md` maps the monorepo: one line per workspace (and `_root`) linking its scope with a status rollup (features done / total); create or update whenever a workspace scope is added or its rollup changes.
|
|
6
|
+
- `/istm-scope web <idea>` plans the `web` app; bare `/istm-scope` on a monorepo asks which workspace(s) (or "repo wide") as a panel. Read that workspace's nested `.istm-context/agents.md` for its stack/conventions; apps differ, don't assume one.
|
|
7
7
|
- Each feature's `Code area` points into its workspace (`apps/web/...`). Foundations are per workspace, except genuinely shared ones (monorepo tooling, a shared UI package), which live in `_root` and the apps depend on. A greenfield workspace (no code yet) follows the foundations first sequencing in `modes/plan-greenfield.md`, applied per workspace; an already built workspace enrolls per `modes/plan-brownfield.md`.
|
|
8
8
|
- Feature spanning workspaces: plan in `_root` (tag intent by workspace) or split into coordinated per workspace features; never bury cross app work in one app's scope.
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
### Step 1: Locate the scope; greenfield / brownfield / monorepo
|
|
4
4
|
|
|
5
|
-
Detect (skip `node_modules/` and `.git/`): source files (any `.ts`, `.tsx`, `.js`, `.py`, `.go`, `.rs`; presence ⇒ brownfield, none ⇒ greenfield); root `.istm-context/agents.md`; existing scope under `.istm-context/scope/` (`scope.md`, or `index.md` + epic files; monorepo: `.istm-context/scope/<workspace>/`), noting the shape.
|
|
5
|
+
Detect (skip `node_modules/` and `.git/`): source files (any `.ts`, `.tsx`, `.js`, `.py`, `.go`, `.rs`; presence ⇒ brownfield, none ⇒ greenfield); root `.istm-context/agents.md`; existing scope under `.istm-context/istm-scope/` (`scope.md`, or `index.md` + epic files; monorepo: `.istm-context/istm-scope/<workspace>/`), noting the shape.
|
|
6
6
|
|
|
7
7
|
Read exactly one route file before continuing to Step 2:
|
|
8
8
|
|
|
@@ -37,7 +37,7 @@ Reason out the pick, never hardcode it or its mechanics: default for a proper pr
|
|
|
37
37
|
|
|
38
38
|
**Once the approach is chosen, read its persona file and adopt that engineer's role for decomposition** (`approaches/tracer-bullet.md`, `approaches/skateboard.md`, `approaches/facade.md`, or `approaches/journey.md`). Read only the chosen one. Each persona defines how that engineer slices, what the first slice or deliverable is, what is real vs deferred, and the sequencing, with a worked example. All slicing and sequencing in Step 4 and Step 5 follows that persona, so the four approaches produce genuinely different scopes for the same product, not the same list relabeled. A per feature override (Step 5) reads that feature's chosen persona and applies it to that feature only.
|
|
39
39
|
|
|
40
|
-
Record it (the propagation source) in the scope header: `Build approach: <name> (<one-line principle>)`. A project wide convention: `/audit` and `/sync` persist it into root `.istm-context/agents.md`; `/architect`, `/develop`, `/check verify` read and honor it. It also sets each feature's Phase (its slice / journey), shown in the At a glance table and as section grouping.
|
|
40
|
+
Record it (the propagation source) in the scope header: `Build approach: <name> (<one-line principle>)`. A project wide convention: `/istm-audit` and `/istm-sync` persist it into root `.istm-context/agents.md`; `/architect`, `/istm-develop`, `/istm-check verify` read and honor it. It also sets each feature's Phase (its slice / journey), shown in the At a glance table and as section grouping.
|
|
41
41
|
|
|
42
42
|
Header value = project default; a single feature may override via the optional per feature Approach (Step 5), a tag beside its heading (e.g. `· Facade`). Precedence: own tag if set, else project default; tag only when it differs (no tag = inherit).
|
|
43
43
|
|
|
@@ -60,36 +60,36 @@ From the answers, produce the feature list: foundations first (Step 4), then sli
|
|
|
60
60
|
- **Needs spec?**: the invent test: would building it require a decision the engineer hasn't made? Yes for a provider/library choice, a data model, a cross cutting pattern, the design system, a whole page/screen with no spec yet, or behavior that is not trivial (search, filtering, recommendations). No only for genuinely pure implementation an existing `.istm-context/design.md`/spec/convention covers. Unsure → yes; an unflagged decision is the expensive miss. `Full`/`Medium` tier → almost always yes.
|
|
61
61
|
- One decision per spec: multiple distinct decisions in one feature → one `Needs spec: yes` item each, never one lumped "strategy" spec. Several sharing one broad decision that then splits → an umbrella that dependents reference; never mark a dependent `no` when it carries its own decision.
|
|
62
62
|
|
|
63
|
-
No build task breakdown here. A not yet designed feature gets exactly one checkbox, its entry command: `/architect <feature>` when it `needs a decision`, else `/develop <feature>` (the coding standards and tooling foundation's first box is `/audit`, never `/develop`). Never enumerate UI / data model / API / test sub tasks; `/architect` fills the built ready shape on spec capture (see What this skill does; atomic tasks stay in the spec). The next step is then always the first unticked box, always a command or tracked milestone (no separate `Next:` line). See the lifecycle table in `scope-template.md`.
|
|
63
|
+
No build task breakdown here. A not yet designed feature gets exactly one checkbox, its entry command: `/architect <feature>` when it `needs a decision`, else `/istm-develop <feature>` (the coding standards and tooling foundation's first box is `/istm-audit`, never `/istm-develop`). Never enumerate UI / data model / API / test sub tasks; `/architect` fills the built ready shape on spec capture (see What this skill does; atomic tasks stay in the spec). The next step is then always the first unticked box, always a command or tracked milestone (no separate `Next:` line). See the lifecycle table in `scope-template.md`.
|
|
64
64
|
|
|
65
|
-
Analysis/inventory is not a scope row: cataloguing duplication, listing call sites, auditing current state is decision support research living with the spec (`/architect` puts it in the spec's `rationale.md`). Never plan a row or step that writes a `.md` into `.istm-context/scope/`.
|
|
65
|
+
Analysis/inventory is not a scope row: cataloguing duplication, listing call sites, auditing current state is decision support research living with the spec (`/architect` puts it in the spec's `rationale.md`). Never plan a row or step that writes a `.md` into `.istm-context/istm-scope/`.
|
|
66
66
|
|
|
67
67
|
### Step 5b: Recommend the workflow depth (decision panel)
|
|
68
68
|
|
|
69
|
-
Now that the features exist, propose the project's default **workflow depth**: how many stages a feature normally runs after `/develop`. This is a recommendation, not a question you ask cold: reason from the product (throwaway prototype vs internal tool vs real product vs payments/auth/compliance/regulated/team work) and the mix of feature weights you just assigned, then present a panel with exactly one recommended. Each level names the stages it runs, so the tradeoff is visible. Frame it: "Based on what you're building, here's the workflow I recommend. You can override, and any single feature can still run heavier."
|
|
69
|
+
Now that the features exist, propose the project's default **workflow depth**: how many stages a feature normally runs after `/istm-develop`. This is a recommendation, not a question you ask cold: reason from the product (throwaway prototype vs internal tool vs real product vs payments/auth/compliance/regulated/team work) and the mix of feature weights you just assigned, then present a panel with exactly one recommended. Each level names the stages it runs, so the tradeoff is visible. Frame it: "Based on what you're building, here's the workflow I recommend. You can override, and any single feature can still run heavier."
|
|
70
70
|
|
|
71
|
-
Depth governs only the stages **after** `/develop` (verify, test, review, document). It does **not** turn off the `/architect` gate: at every depth, a feature that needs a load bearing decision still runs `/architect` first (or records an `Assumed` spec). Lean does not mean "skip architect"; it means lean features are usually `Needs spec: no`, so you rarely reach it.
|
|
71
|
+
Depth governs only the stages **after** `/istm-develop` (verify, test, review, document). It does **not** turn off the `/architect` gate: at every depth, a feature that needs a load bearing decision still runs `/architect` first (or records an `Assumed` spec). Lean does not mean "skip architect"; it means lean features are usually `Needs spec: no`, so you rarely reach it.
|
|
72
72
|
|
|
73
|
-
- **question**: "How much workflow do you want by default for this project? Each level sets the stages a feature normally runs after `/develop`; a risky feature can still be bumped up, and `/architect` still applies whenever a decision is owed."
|
|
73
|
+
- **question**: "How much workflow do you want by default for this project? Each level sets the stages a feature normally runs after `/istm-develop`; a risky feature can still be bumped up, and `/architect` still applies whenever a decision is owed."
|
|
74
74
|
- **header**: "Workflow"
|
|
75
75
|
- **options** (mark exactly one `(recommended)` by the product signals, one line why):
|
|
76
|
-
- `Vibe`: "Just `/develop`. Nothing after it, you rely on `/develop`'s own build time self check (typecheck, and rendering the screen when it can) and your own eye. No `/check verify`, no test suite, no review. `/develop` can mark the feature `done` itself. Best for throwaway prototypes, experiments, and personal projects."
|
|
77
|
-
- `Lean`: "After `/develop`, `/check verify` on the real app. No separate test suite or second model review unless a feature needs it. Best for low risk features and internal tools you still want proven."
|
|
78
|
-
- `Medium`: "After `/develop`, `/check verify` then `/test`. No fresh model review by default. Best for most real products."
|
|
79
|
-
- `Full`: "After `/develop`, `/check verify`, `/test`, a fresh model `/check review`, then `/document`; and most features are treated as needing a spec. Best for high risk, payments, auth, compliance, regulated, or team projects."
|
|
76
|
+
- `Vibe`: "Just `/istm-develop`. Nothing after it, you rely on `/istm-develop`'s own build time self check (typecheck, and rendering the screen when it can) and your own eye. No `/istm-check verify`, no test suite, no review. `/istm-develop` can mark the feature `done` itself. Best for throwaway prototypes, experiments, and personal projects."
|
|
77
|
+
- `Lean`: "After `/istm-develop`, `/istm-check verify` on the real app. No separate test suite or second model review unless a feature needs it. Best for low risk features and internal tools you still want proven."
|
|
78
|
+
- `Medium`: "After `/istm-develop`, `/istm-check verify` then `/istm-test`. No fresh model review by default. Best for most real products."
|
|
79
|
+
- `Full`: "After `/istm-develop`, `/istm-check verify`, `/istm-test`, a fresh model `/istm-check review`, then `/istm-document`; and most features are treated as needing a spec. Best for high risk, payments, auth, compliance, regulated, or team projects."
|
|
80
80
|
|
|
81
81
|
The picker appends a free text Other automatically; in a plain text fallback offer the same four. Recommend by signal: throwaway prototype, experiment, or a personal one off → `Vibe`; a low risk product or internal tool you still want proven → `Lean`; a normal production product → `Medium`; payments, auth, PII, compliance, regulated, or a team codebase → `Full`.
|
|
82
82
|
|
|
83
|
-
Each tier also sets what `done` means (see `scope-template.md`): `Vibe` closes on build plus self check (`/develop` marks it), `Lean` on `/check verify` passing, `Medium`/`Full` on the tests being in (and the review for `Full`). The `Assumed` spec done gate still holds at every tier: a feature built on an unratified assumption cannot be `done` until `/architect` ratifies it.
|
|
83
|
+
Each tier also sets what `done` means (see `scope-template.md`): `Vibe` closes on build plus self check (`/istm-develop` marks it), `Lean` on `/istm-check verify` passing, `Medium`/`Full` on the tests being in (and the review for `Full`). The `Assumed` spec done gate still holds at every tier: a feature built on an unratified assumption cannot be `done` until `/architect` ratifies it.
|
|
84
84
|
|
|
85
|
-
Record the pick as the project default in the scope header `**Workflow:**` line (see `scope-template.md`). It sets the baseline each feature inherits; a feature tagged with a higher tier than the project default (Step 5) runs its heavier path, and one tagged lower runs lighter. This default is what `/develop` reads (via the effective tier) to scale the next steps it recommends after a build.
|
|
85
|
+
Record the pick as the project default in the scope header `**Workflow:**` line (see `scope-template.md`). It sets the baseline each feature inherits; a feature tagged with a higher tier than the project default (Step 5) runs its heavier path, and one tagged lower runs lighter. This default is what `/istm-develop` reads (via the effective tier) to scale the next steps it recommends after a build.
|
|
86
86
|
|
|
87
87
|
### Step 6: Write the scope (single file or epic split)
|
|
88
88
|
|
|
89
89
|
List the scope location again immediately before writing (a teammate may have changed it), then write per `scope-template.md`:
|
|
90
90
|
|
|
91
|
-
- Small product → single file `.istm-context/scope/scope.md` (monorepo: `.istm-context/scope/<workspace>/scope.md`): At a glance table (including brownfield enrolled features) + phase grouped feature sections + legend.
|
|
92
|
-
- Large product → epic split per Artifact ownership (`.istm-context/scope/index.md` + `.istm-context/scope/<epic>.md`); promote only when `scope.md` has outgrown a comfortable scan, else stay single file.
|
|
91
|
+
- Small product → single file `.istm-context/istm-scope/istm-scope.md` (monorepo: `.istm-context/istm-scope/<workspace>/istm-scope.md`): At a glance table (including brownfield enrolled features) + phase grouped feature sections + legend.
|
|
92
|
+
- Large product → epic split per Artifact ownership (`.istm-context/istm-scope/index.md` + `.istm-context/istm-scope/<epic>.md`); promote only when `scope.md` has outgrown a comfortable scan, else stay single file.
|
|
93
93
|
- Run again (living update): edit in place, never a dated file: append new rows with the next free `#`, sharpen existing rows' intent/seeds, leave existing statuses untouched; set a now out of scope row to `dropped` (never delete). Brownfield: append enrolled `existing`/`in-progress` rows above the `planned` ones.
|
|
94
94
|
|
|
95
95
|
Citations are gated by Step 6b: ask that panel first (or confirm the chosen level) before adding any `(basis: …)` or `## References` content, and honor its level.
|
|
@@ -117,4 +117,4 @@ Sources plus web verified links: as Sources only, then verify the links with a r
|
|
|
117
117
|
|
|
118
118
|
### Step 7: Report and hand off
|
|
119
119
|
|
|
120
|
-
Print the completion report using the `## /scope complete` block in `scope-template.md`, filled with this run's specifics. `/scope` does not run `/architect` or `/develop` for you; it hands you the ordered, coarse, weighted list to walk feature by feature (architect the `Needs spec: yes` ones, then build).
|
|
120
|
+
Print the completion report using the `## /istm-scope complete` block in `scope-template.md`, filled with this run's specifics. `/istm-scope` does not run `/architect` or `/istm-develop` for you; it hands you the ordered, coarse, weighted list to walk feature by feature (architect the `Needs spec: yes` ones, then build).
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
The default cadence, not rare: run each time a feature or phase lands, keeping the scope matching reality and queueing the next slice. Reconciles in place, never spawns a new file; coarse and surgical (reconcile cells, append rows, don't rewrite the file).
|
|
6
6
|
|
|
7
7
|
1. Read the whole scope again (single file, or `index.md` + epics; the workspace's in a monorepo) and the code/specs for what just shipped.
|
|
8
|
-
2. Reconcile what shipped: mark completed features `done` (verify from code/spec, don't stamp); tick nothing unconfirmed; leave rows `/develop`/`/sync` already advanced. **A feature whose governing spec is `Assumed` cannot be `done`**: it was built on a decision that was recorded but not deliberated. Leave it `in-progress` with its `assumed decision (spec NNNN)` note, and surface it (below) as decision debt.
|
|
8
|
+
2. Reconcile what shipped: mark completed features `done` (verify from code/spec, don't stamp); tick nothing unconfirmed; leave rows `/istm-develop`/`/istm-sync` already advanced. **A feature whose governing spec is `Assumed` cannot be `done`**: it was built on a decision that was recorded but not deliberated. Leave it `in-progress` with its `assumed decision (spec NNNN)` note, and surface it (below) as decision debt.
|
|
9
9
|
2a. Surface assumed decisions in the readout and report: for each feature with an `Assumed` spec, list it as "built, awaiting ratification (spec NNNN)" and point to `/architect <feature>`. They block `done` until ratified.
|
|
10
10
|
3. Enroll needs surfaced during the build: read shipped features' spec `## Consequences` and `## Follow-up` sections; a follow-up (e.g. "add rate limiting") not yet a scope row becomes a new `planned` row with intent, tier, `Needs spec?`; the scope grows from real build feedback.
|
|
11
11
|
4. Reprioritize / reorder: sequence `Order` again, adjust `Phasing` for work not yet built; foundations stay first; work dropped from scope → `dropped`. If the project's risk profile has clearly shifted (e.g. payments or auth were added), recommend the `**Workflow:**` default again via the plan Step 5b panel; otherwise leave it.
|
|
12
|
-
5. Queue the next slice: which feature(s) are next (lowest `Order` `planned` rows), each `Needs spec: yes` (→ `/architect` next) or `no` (→ `/develop`).
|
|
12
|
+
5. Queue the next slice: which feature(s) are next (lowest `Order` `planned` rows), each `Needs spec: yes` (→ `/architect` next) or `no` (→ `/istm-develop`).
|
|
13
13
|
6. Report via the completion block (mode: replan): marked done, enrolled from spec follow-up items, reordered/dropped, next step.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Scope structure `/scope` writes to: the reference shapes read while writing the scope and the completion report. All rules and guidance live in `SKILL.md`.
|
|
1
|
+
Scope structure `/istm-scope` writes to: the reference shapes read while writing the scope and the completion report. All rules and guidance live in `SKILL.md`.
|
|
2
2
|
|
|
3
3
|
## What keeps it readable (the format rules)
|
|
4
4
|
|
|
5
5
|
- **Two parts:** a slim **At a glance** table for a quick scan, then **the plan** as clean feature sections grouped by phase. Build order is just the section order. There is no separate "build order" list to keep in sync.
|
|
6
6
|
- **Clean headings.** A heading is `### <N>. <Feature name>` plus a short status word and short tags **only when they carry real information** (`needs a decision`, a per feature approach override, a workflow tier override like `· Full`). Never a pipe delimited metadata row like `Title | P0 | inherit | …`.
|
|
7
7
|
- **Each fact appears once.** Intent, the definition of done, tasks, and pointers live in the section; the At a glance table is the quick index. Status is shown in the table and beside the heading, and nowhere else.
|
|
8
|
-
- **Only what is set.** No `n/a`, no `inherit`, no empty fields. A pointer line (`spec <n> · code in <path>`) appears **only once those exist**: the spec link added by `/architect` at capture, the code path by `/develop`.
|
|
9
|
-
- **A feature grows a defined shape.** It has a one or two line **intent**, a single **Done when:** line (the acceptance criteria seeds), and **checkbox steps**. A **not yet designed** feature has **one box** (its entry command: `/architect` when it `needs a decision`, else `/develop`, or `/audit` for standards & tooling). **When its spec is captured, `/architect` fills in the built ready shape:** `Design it` (ticked) → `Build it: /develop <feature>` with **2 to 5 milestone sub items rolled up from the spec** → `Verify it: /check verify <feature>` → `Test it: /test <feature>`. **The atomic build tasks stay in the spec's `## Build plan`, never here**. The scope carries only the milestone rollup. The next step is always the first unticked box.
|
|
8
|
+
- **Only what is set.** No `n/a`, no `inherit`, no empty fields. A pointer line (`spec <n> · code in <path>`) appears **only once those exist**: the spec link added by `/architect` at capture, the code path by `/istm-develop`.
|
|
9
|
+
- **A feature grows a defined shape.** It has a one or two line **intent**, a single **Done when:** line (the acceptance criteria seeds), and **checkbox steps**. A **not yet designed** feature has **one box** (its entry command: `/architect` when it `needs a decision`, else `/istm-develop`, or `/istm-audit` for standards & tooling). **When its spec is captured, `/architect` fills in the built ready shape:** `Design it` (ticked) → `Build it: /istm-develop <feature>` with **2 to 5 milestone sub items rolled up from the spec** → `Verify it: /istm-check verify <feature>` → `Test it: /istm-test <feature>`. **The atomic build tasks stay in the spec's `## Build plan`, never here**. The scope carries only the milestone rollup. The next step is always the first unticked box.
|
|
10
10
|
|
|
11
11
|
## Single file scope
|
|
12
12
|
|
|
@@ -36,16 +36,16 @@ Scope structure `/scope` writes to: the reference shapes read while writing the
|
|
|
36
36
|
Decide the stack and scaffold a runnable project so every later slice builds on real structure.
|
|
37
37
|
**Done when:** the stack is recorded in a spec and the empty scaffold boots locally and passes build.
|
|
38
38
|
- [x] Decide the stack (spec): `/architect stack & architecture`
|
|
39
|
-
- [x] Scaffold from the decision: `/develop stack & architecture`
|
|
40
|
-
- [ ] Smoke-check it runs: `/test`
|
|
39
|
+
- [x] Scaffold from the decision: `/istm-develop stack & architecture`
|
|
40
|
+
- [ ] Smoke-check it runs: `/istm-test`
|
|
41
41
|
Spec 0001 · code in `./`
|
|
42
42
|
|
|
43
43
|
### 2. Coding standards & tooling
|
|
44
44
|
Capture conventions, then install lint, format, and pre-commit enforcement from the real scaffolded project.
|
|
45
45
|
**Done when:** root `.istm-context/agents.md` reflects the real stack, and lint/format/pre-commit run clean.
|
|
46
|
-
- [ ] Capture conventions + tooling choices: `/audit`
|
|
47
|
-
- [ ] Install the tooling: `/develop tooling`
|
|
48
|
-
- [ ] Check it runs clean: `/test`
|
|
46
|
+
- [ ] Capture conventions + tooling choices: `/istm-audit`
|
|
47
|
+
- [ ] Install the tooling: `/istm-develop tooling`
|
|
48
|
+
- [ ] Check it runs clean: `/istm-test`
|
|
49
49
|
|
|
50
50
|
### 3. Data model · in-progress
|
|
51
51
|
<!-- DESIGNED: /architect captured spec 0002 and filled in the shape below. The 2 to 5 boxes under
|
|
@@ -54,13 +54,13 @@ Capture conventions, then install lint, format, and pre-commit enforcement from
|
|
|
54
54
|
Core entities every feature builds on: users, teams, memberships, standup entries, template.
|
|
55
55
|
**Done when:** entities and relationships support later slices (reminders, templates, history) without a breaking migration.
|
|
56
56
|
- [x] Design it (spec): `/architect data model`
|
|
57
|
-
- [ ] Build it: `/develop data model`
|
|
58
|
-
- [ ] Schema + constraints: tables, keys, unique/check, cascades (AC-1..6)
|
|
57
|
+
- [ ] Build it: `/istm-develop data model`
|
|
58
|
+
- [ ] Schema + constraints: tables, keys, unique/istm-check, cascades (AC-1..6)
|
|
59
59
|
- [ ] Row-level security: per-table policies + helpers (AC-7..9)
|
|
60
60
|
- [ ] Apply migration, confirm live, generate types (AC-1..9)
|
|
61
|
-
- [ ] Verify it: `/check verify data model`
|
|
62
|
-
- [ ] Test it: `/test data model`
|
|
63
|
-
Spec 0002 · code (filled by /develop)
|
|
61
|
+
- [ ] Verify it: `/istm-check verify data model`
|
|
62
|
+
- [ ] Test it: `/istm-test data model`
|
|
63
|
+
Spec 0002 · code (filled by /istm-develop)
|
|
64
64
|
|
|
65
65
|
### 4. Design system & UI foundation · needs a decision
|
|
66
66
|
Visual language, layout primitives, and base components so the flows feel cohesive and accessible.
|
|
@@ -96,53 +96,53 @@ Out of scope for the current build pass, kept so the plan stays honest.
|
|
|
96
96
|
|
|
97
97
|
| State | Set by | The feature shows |
|
|
98
98
|
|---|---|---|
|
|
99
|
-
| `planned` · needs a decision | `/scope` | one box: `Design it (spec): /architect <feature>` |
|
|
100
|
-
| `in-progress` (designed) | **`/architect` at spec capture** | `Design it` ticked; spec linked; `Build it: /develop <feature>` + **2 to 5 milestones**; the tier's closing boxes (`Verify it` Lean+, `Test it` Medium+, `Review it` + `Document it` Full); any surfaced follow-up enrolled |
|
|
101
|
-
| `in-progress` (building) | `/develop` | milestone sub-boxes tick one by one; code pointer filled |
|
|
102
|
-
| `in-progress` (verified) | `/check verify` | `Build it` + milestones ticked; `Verify it` ticked |
|
|
103
|
-
| `done` | the tier's last required stage (`Vibe` → `/develop`; `Lean` → `/check verify`; `Medium`/`Full` → `/test`), then `/sync` | required boxes ticked; `Review it`/`Document it` (Full) ticked by `/check review`/`/document`, tracked but not part of the `done` gate (Design/Build/Verify/Test); `/sync` captures conventions |
|
|
99
|
+
| `planned` · needs a decision | `/istm-scope` | one box: `Design it (spec): /architect <feature>` |
|
|
100
|
+
| `in-progress` (designed) | **`/architect` at spec capture** | `Design it` ticked; spec linked; `Build it: /istm-develop <feature>` + **2 to 5 milestones**; the tier's closing boxes (`Verify it` Lean+, `Test it` Medium+, `Review it` + `Document it` Full); any surfaced follow-up enrolled |
|
|
101
|
+
| `in-progress` (building) | `/istm-develop` | milestone sub-boxes tick one by one; code pointer filled |
|
|
102
|
+
| `in-progress` (verified) | `/istm-check verify` | `Build it` + milestones ticked; `Verify it` ticked |
|
|
103
|
+
| `done` | the tier's last required stage (`Vibe` → `/istm-develop`; `Lean` → `/istm-check verify`; `Medium`/`Full` → `/istm-test`), then `/istm-sync` | required boxes ticked; `Review it`/`Document it` (Full) ticked by `/istm-check review`/`/istm-document`, tracked but not part of the `done` gate (Design/Build/Verify/Test); `/istm-sync` captures conventions |
|
|
104
104
|
|
|
105
105
|
- **Next step** = the first unticked box (always a command or a tracked milestone).
|
|
106
|
-
- **needs a decision** = run `/architect` first; otherwise straight to `/develop` (or `/audit` for standards & tooling). The tag drops once the spec is captured.
|
|
106
|
+
- **needs a decision** = run `/architect` first; otherwise straight to `/istm-develop` (or `/istm-audit` for standards & tooling). The tag drops once the spec is captured.
|
|
107
107
|
- **Atomic build tasks live in the spec's `## Build plan`, not here**: the scope carries only the milestone rollup.
|
|
108
108
|
- **Status** `planned` → `in-progress` → `done`, plus `existing` (pre-workflow) and `dropped` (de-scoped, kept for history).
|
|
109
109
|
- **Approach tag** beside a heading (e.g. `· Facade`) overrides the project default for that feature; no tag = inherits it.
|
|
110
110
|
- **Workflow tier tag** beside a heading (e.g. `· Full`, `· Vibe`) overrides the project default `**Workflow:**` tier for that one feature; no tag = inherit. It is the single rigor dial (there is no separate "weight").
|
|
111
|
-
- **Workflow** (header line) is the project default tier, the stages each feature runs **after** `/develop`: **Vibe** = nothing after `/develop` (rely on its build time self check); **Lean** = `/check verify`; **Medium** = `/check verify` then `/test`; **Full** = `/check verify`, `/test`, a fresh model `/check review`, then `/document` (and most features need a spec). The tier also sets what closes a feature to `done`, the last required stage marks it: **Vibe** → `/develop` (build + self check); **Lean** → `/check verify` on PASS; **Medium**/**Full** → `/test` (with verify passed). At every tier an `Assumed` spec still blocks `done` until `/architect` ratifies it, and `/architect` still gates any feature that needs a decision (tier does not turn the gate off). A feature's own tier tag overrides this default. `/develop` reads the effective tier to scale the next steps it recommends.
|
|
112
|
-
- **Pointer line** (`spec <n> · code in <path>`): the spec link added by `/architect`, the code path by `/develop`.
|
|
111
|
+
- **Workflow** (header line) is the project default tier, the stages each feature runs **after** `/istm-develop`: **Vibe** = nothing after `/istm-develop` (rely on its build time self check); **Lean** = `/istm-check verify`; **Medium** = `/istm-check verify` then `/istm-test`; **Full** = `/istm-check verify`, `/istm-test`, a fresh model `/istm-check review`, then `/istm-document` (and most features need a spec). The tier also sets what closes a feature to `done`, the last required stage marks it: **Vibe** → `/istm-develop` (build + self check); **Lean** → `/istm-check verify` on PASS; **Medium**/**Full** → `/istm-test` (with verify passed). At every tier an `Assumed` spec still blocks `done` until `/architect` ratifies it, and `/architect` still gates any feature that needs a decision (tier does not turn the gate off). A feature's own tier tag overrides this default. `/istm-develop` reads the effective tier to scale the next steps it recommends.
|
|
112
|
+
- **Pointer line** (`spec <n> · code in <path>`): the spec link added by `/architect`, the code path by `/istm-develop`.
|
|
113
113
|
```
|
|
114
114
|
|
|
115
115
|
## Brownfield enrollment
|
|
116
116
|
|
|
117
|
-
Already built features are enrolled **for context**, above the planned ones, with status `existing` (complete, no task list) or `in-progress` (partial, finish via `/develop`), each with a code pointer. They also appear in the At a glance table.
|
|
117
|
+
Already built features are enrolled **for context**, above the planned ones, with status `existing` (complete, no task list) or `in-progress` (partial, finish via `/istm-develop`), each with a code pointer. They also appear in the At a glance table.
|
|
118
118
|
|
|
119
119
|
```markdown
|
|
120
120
|
### A. Auth · existing
|
|
121
121
|
Pre-workflow auth: sign in, sessions, reset. code in `src/auth/`
|
|
122
122
|
|
|
123
123
|
### B. Product catalog · in-progress
|
|
124
|
-
Partial catalog; finish the remaining pieces via /develop. code in `src/catalog/`
|
|
124
|
+
Partial catalog; finish the remaining pieces via /istm-develop. code in `src/catalog/`
|
|
125
125
|
```
|
|
126
126
|
|
|
127
|
-
`existing` is not `done`: it predates the workflow, so `/develop` and `/sync` leave it alone.
|
|
127
|
+
`existing` is not `done`: it predates the workflow, so `/istm-develop` and `/istm-sync` leave it alone.
|
|
128
128
|
|
|
129
129
|
## Large product: epic split
|
|
130
130
|
|
|
131
|
-
When `scope.md` outgrows a comfortable scan (roughly a dozen plus features across clearly distinct areas), split by epic: **rename `scope.md` to `.istm-context/scope/index.md`** (keep the At a glance table across all epics + a one line status rollup per epic, each linking its file), and **move each area's feature sections out into its own `.istm-context/scope/<epic>.md`**. Promote **on demand**; don't split a small product early. File names are always **semantic** (`scope.md` / `index.md` / `<epic>.md`), never numbered. In a monorepo, each workspace gets its own `.istm-context/scope/<workspace>/` the same way, with a top level `.istm-context/scope/index.md` mapping the workspaces (one line + rollup each).
|
|
131
|
+
When `scope.md` outgrows a comfortable scan (roughly a dozen plus features across clearly distinct areas), split by epic: **rename `scope.md` to `.istm-context/istm-scope/index.md`** (keep the At a glance table across all epics + a one line status rollup per epic, each linking its file), and **move each area's feature sections out into its own `.istm-context/istm-scope/<epic>.md`**. Promote **on demand**; don't split a small product early. File names are always **semantic** (`scope.md` / `index.md` / `<epic>.md`), never numbered. In a monorepo, each workspace gets its own `.istm-context/istm-scope/<workspace>/` the same way, with a top level `.istm-context/istm-scope/index.md` mapping the workspaces (one line + rollup each).
|
|
132
132
|
|
|
133
133
|
## Completion report block
|
|
134
134
|
|
|
135
135
|
```
|
|
136
|
-
## /scope complete
|
|
136
|
+
## /istm-scope complete
|
|
137
137
|
|
|
138
138
|
**Product**: <one line>
|
|
139
139
|
**Behavior**: <plan | replan | add (inferred from the situation, not a typed subcommand)>
|
|
140
140
|
**Build approach**: <name (one-line principle)> · **Per-feature overrides**: <feature → approach, … (or "none, all inherit")>
|
|
141
141
|
**Workflow**: <Vibe | Lean | Medium | Full> (<the stages it runs; why recommended for this product>) · **Per-feature tier overrides**: <feature → tier, … (or "none, all inherit")>
|
|
142
|
-
**Scope file**: <.istm-context/scope/scope.md> (<created new | updated in place | new epic file for <area>>)
|
|
142
|
+
**Scope file**: <.istm-context/istm-scope/istm-scope.md> (<created new | updated in place | new epic file for <area>>)
|
|
143
143
|
**Scope (this pass)**: <N> new features to build, <M> already on the scope, <K> deferred
|
|
144
144
|
**Build order**: <feature 1> → <feature 2> → …
|
|
145
|
-
**First step**: <run `/clear` first, then the first unticked box, usually `/architect <first feature>` (or `/audit` if a brownfield repo has no root .istm-context/agents.md), each skill reads its inputs from the files just written, so a fresh session keeps every step cheap>
|
|
145
|
+
**First step**: <run `/clear` first, then the first unticked box, usually `/architect <first feature>` (or `/istm-audit` if a brownfield repo has no root .istm-context/agents.md), each skill reads its inputs from the files just written, so a fresh session keeps every step cheap>
|
|
146
146
|
```
|
|
147
147
|
|
|
148
|
-
_Context hygiene: the scope, the specs, and `.istm-context/agents.md` are the durable state, so the workflow hands off through files, not the chat. Advise `/clear` between units (after `/scope`, after each `/architect`, between features) and `/compact` mid unit if one run gets long. On Claude Code use `/clear` / `/compact`; use your agent's fresh session equivalent elsewhere._
|
|
148
|
+
_Context hygiene: the scope, the specs, and `.istm-context/agents.md` are the durable state, so the workflow hands off through files, not the chat. Advise `/clear` between units (after `/istm-scope`, after each `/architect`, between features) and `/compact` mid unit if one run gets long. On Claude Code use `/clear` / `/compact`; use your agent's fresh session equivalent elsewhere._
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: sync
|
|
2
|
+
name: istm-sync
|
|
3
3
|
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent
|
|
4
|
-
description: "Run /sync as the last step after a change is complete, around merge, to keep durable knowledge current. Updates root and nested .istm-context/agents.md, reconciles the scope from repo evidence, and flags specs the change made stale. Surgical edits only: it adds lines, and rewrites single lines it owns. Never a whole section, never curated prose."
|
|
4
|
+
description: "Run /istm-sync as the last step after a change is complete, around merge, to keep durable knowledge current. Updates root and nested .istm-context/agents.md, reconciles the scope from repo evidence, and flags specs the change made stale. Surgical edits only: it adds lines, and rewrites single lines it owns. Never a whole section, never curated prose."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Output style (plain words, no dashes, no hyphens)
|
|
@@ -12,30 +12,32 @@ Write everything this skill produces, files and messages alike, in plain simple
|
|
|
12
12
|
|
|
13
13
|
## What this skill does
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Dual-mode orchestrator:
|
|
16
|
+
1. **Save mode** (default): Closes the loop on a completed change, syncing `.istm-context/agents.md`, the scope, and linked spec `**Status**:` lines to repo evidence.
|
|
17
|
+
2. **Restore mode** (`/istm-sync restore`): Reads all progress files (`progress.md`, `memory.md`, `.istm-context/istm-scope/*`, and `agents.md`) to fully rehydrate the AI's context for a new session, establishing exactly what was last completed and what is pending.
|
|
16
18
|
|
|
17
19
|
**`agent-prompt.md`** is the single source of truth for the maintenance rules; SKILL.md covers only orchestration. The main thread reads it and does the maintenance itself (see Step 3).
|
|
18
20
|
|
|
19
|
-
**Canonical file:** durable context lives in the tool agnostic **`.istm-context/agents.md`**; **`CLAUDE.md` is only a pointer** to it. /sync edits/creates both, treating them only as targets, never as a change source.
|
|
21
|
+
**Canonical file:** durable context lives in the tool agnostic **`.istm-context/agents.md`**; **`CLAUDE.md` is only a pointer** to it. /istm-sync edits/creates both, treating them only as targets, never as a change source.
|
|
20
22
|
|
|
21
23
|
## Boundaries (these keep the skill from sprawling)
|
|
22
24
|
|
|
23
|
-
| Action | /sync | Owner |
|
|
25
|
+
| Action | /istm-sync | Owner |
|
|
24
26
|
|---|---|---|
|
|
25
|
-
| Edit existing root/nested .istm-context/agents.md | ✅ maintains | /sync |
|
|
26
|
-
| Reconcile root .istm-context/agents.md's `## Build approach` line to the scope header's approach (surgical single line edit, like the stack) | ✅ maintains; flags a curated divergence | /sync |
|
|
27
|
-
| Add a one line pointer to `.istm-context/design.md` (the UI design system) in the nearest .istm-context/agents.md when a change establishes one | ✅ maintains (pointer only) | /sync |
|
|
28
|
-
| Create nested `<area>/.istm-context/agents.md` for an area **net new in this change** | ✅ creates (diff = full area context) + adds root pointer | /sync |
|
|
29
|
-
| Create nested doc for an **already existing** undocumented area (only sliced by the diff) | ❌ flags "run /audit" | /audit |
|
|
30
|
-
| Create or restructure the **root** .istm-context/agents.md | ❌ flags "run /audit" | /audit |
|
|
31
|
-
| Reconcile a spec's `**Status**:` line to its feature's scope status (`planned`→`Proposed`, `in-progress`→`In Progress`, `done`→`Accepted`) | ✅ Status line only | /sync |
|
|
27
|
+
| Edit existing root/nested .istm-context/agents.md | ✅ maintains | /istm-sync |
|
|
28
|
+
| Reconcile root .istm-context/agents.md's `## Build approach` line to the scope header's approach (surgical single line edit, like the stack) | ✅ maintains; flags a curated divergence | /istm-sync |
|
|
29
|
+
| Add a one line pointer to `.istm-context/design.md` (the UI design system) in the nearest .istm-context/agents.md when a change establishes one | ✅ maintains (pointer only) | /istm-sync |
|
|
30
|
+
| Create nested `<area>/.istm-context/agents.md` for an area **net new in this change** | ✅ creates (diff = full area context) + adds root pointer | /istm-sync |
|
|
31
|
+
| Create nested doc for an **already existing** undocumented area (only sliced by the diff) | ❌ flags "run /istm-audit" | /istm-audit |
|
|
32
|
+
| Create or restructure the **root** .istm-context/agents.md | ❌ flags "run /istm-audit" | /istm-audit |
|
|
33
|
+
| Reconcile a spec's `**Status**:` line to its feature's scope status (`planned`→`Proposed`, `in-progress`→`In Progress`, `done`→`Accepted`) | ✅ Status line only | /istm-sync |
|
|
32
34
|
| Clear an `Assumed` spec (move it out of `Assumed`) | ❌ flags as decision debt "run /architect to ratify" (never reconciled to the feature status; only ratification clears it) | /architect |
|
|
33
35
|
| Edit a spec's **content** / supersede it | ❌ flags as stale | /architect |
|
|
34
|
-
| Reconcile the scope, for the **relevant workspace's** scope file only (not all of `.istm-context/scope/`), tick **any** completed sub task from repo **evidence** (code, tests, .istm-context/agents.md), advance status | ✅ corrects | /sync |
|
|
35
|
-
| Add / reorder features or sub tasks in the scope | ❌ leaves alone | /scope |
|
|
36
|
+
| Reconcile the scope, for the **relevant workspace's** scope file only (not all of `.istm-context/istm-scope/`), tick **any** completed sub task from repo **evidence** (code, tests, .istm-context/agents.md), advance status | ✅ corrects | /istm-sync |
|
|
37
|
+
| Add / reorder features or sub tasks in the scope | ❌ leaves alone | /istm-scope |
|
|
36
38
|
| Overwrite or rewrite curated .istm-context/agents.md prose | ❌ flags conflict instead | human |
|
|
37
39
|
|
|
38
|
-
The dividing line on creation is **context, not policy**: create only when this change shows you the whole area; defer to /audit when the area predates the change and you've seen only a slice. When unsure, **flag instead of creating**.
|
|
40
|
+
The dividing line on creation is **context, not policy**: create only when this change shows you the whole area; defer to /istm-audit when the area predates the change and you've seen only a slice. When unsure, **flag instead of creating**.
|
|
39
41
|
|
|
40
42
|
## Asks vs acts
|
|
41
43
|
|
|
@@ -43,7 +45,7 @@ The dividing line on creation is **context, not policy**: create only when this
|
|
|
43
45
|
|
|
44
46
|
## Artifact ownership
|
|
45
47
|
|
|
46
|
-
Owns exactly what the Boundaries table grants and writes nothing else. As the **universal sub task reconciler** it ticks any scope sub task it can verify from repo evidence (sweeping the `/test`/`/audit`/`/sync` sub tasks other skills don't tick) and advances feature status; exact rules in `agent-prompt.md`.
|
|
48
|
+
Owns exactly what the Boundaries table grants and writes nothing else. As the **universal sub task reconciler** it ticks any scope sub task it can verify from repo evidence (sweeping the `/istm-test`/`/istm-audit`/`/istm-sync` sub tasks other skills don't tick) and advances feature status; exact rules in `agent-prompt.md`.
|
|
47
49
|
|
|
48
50
|
|
|
49
51
|
|
|
@@ -55,7 +57,17 @@ Owns exactly what the Boundaries table grants and writes nothing else. As the **
|
|
|
55
57
|
- **Bundled files**: referenced by paths relative to this skill's folder. Resolve the folder to an absolute path (you already resolve these relative paths) and read `agent-prompt.md` yourself at write time (Step 3), not during the earlier steps.
|
|
56
58
|
- The whole maintenance runs inline on the main thread, following the exact rules in **`agent-prompt.md`** (authoritative).
|
|
57
59
|
|
|
58
|
-
|
|
60
|
+
|
|
61
|
+
## Execution Modes
|
|
62
|
+
|
|
63
|
+
### Mode: Restore (`/istm-sync restore`)
|
|
64
|
+
Run this on a fresh session to instantly restore context.
|
|
65
|
+
1. **Find all context files**: Using glob tools, locate `progress.md`, `memory.md`, `.istm-context/decisions.md`, `.istm-context/istm-scope/**/*.md`, and all `.istm-context/agents.md` files.
|
|
66
|
+
2. **Read them all**: Ingest these files completely so you have maximum context on architectural decisions, the last completed task, pending specs, and active TODOs.
|
|
67
|
+
3. **Output Rehydration Summary**: Output a structured "You Are Here" block summarizing the current architecture, completed tasks, active spec, and immediate next steps. Do not run any Git commands or try to write files in this mode.
|
|
68
|
+
|
|
69
|
+
### Mode: Save (Default)
|
|
70
|
+
Run after completing a change.
|
|
59
71
|
|
|
60
72
|
### 1. Scope the change set (cheap, with per file status)
|
|
61
73
|
|
|
@@ -69,7 +81,7 @@ Base: `main` if `git rev-parse --verify main` succeeds, else `master`. Current b
|
|
|
69
81
|
Either way, add untracked files from `git ls-files --others --exclude-standard`, each prefixed with an `A` status (matching the `--name-status` format). Note the mode, base, and merge base for the write step.
|
|
70
82
|
|
|
71
83
|
Remove duplicates, then **filter to source files** to sync *from*:
|
|
72
|
-
- **Drop documentation and config** (`.istm-context/agents.md` at any level, `.istm-context/**`, `*.md`, `test-preferences.json`, lock files, generated output); /sync reads these as targets/context, never as a change source.
|
|
84
|
+
- **Drop documentation and config** (`.istm-context/agents.md` at any level, `.istm-context/**`, `*.md`, `test-preferences.json`, lock files, generated output); /istm-sync reads these as targets/context, never as a change source.
|
|
73
85
|
- **Drop test files** (`*.test.*`, `*.spec.*`, `__tests__/`, etc.); tests aren't durable area conventions.
|
|
74
86
|
- **Keep the `D` (deleted) entries** in a separate list; they drive orphan cleanup (Step 3) though they aren't synced *from*.
|
|
75
87
|
- **Keep dependency manifest changes in a separate list** for tool discovery, even if they are config rather than source: `package.json`, `pyproject.toml`, `requirements*.txt`, `go.mod`, `Cargo.toml`, `composer.json`, `Gemfile`, `pubspec.yaml`, `mix.exs`, `*.csproj`, and equivalent package manifests. Lock files are signals only; do not pass lockfile contents.
|
|
@@ -82,7 +94,7 @@ Using your agent's file search/glob tools:
|
|
|
82
94
|
- Note whether a root `.istm-context/agents.md` exists.
|
|
83
95
|
- Find every `.istm-context/agents.md` (root + nested), excluding `node_modules/` and `.git/`.
|
|
84
96
|
- Find all specs under `.istm-context/specs/` whose names start with a digit, sorted.
|
|
85
|
-
- Find the scope file(s) whose workspace/features the diff actually touches (in a monorepo, a changed file's workspace `apps/<x>/…` selects `.istm-context/scope/<x>/`); never read or pass all of `.istm-context/scope/`.
|
|
97
|
+
- Find the scope file(s) whose workspace/features the diff actually touches (in a monorepo, a changed file's workspace `apps/<x>/…` selects `.istm-context/istm-scope/<x>/`); never read or pass all of `.istm-context/istm-scope/`.
|
|
86
98
|
|
|
87
99
|
Note the **paths** plus the changed file list and diff command; read the files at write time. Read root .istm-context/agents.md contents now (short and useful to anchor on). For each changed file, note its nearest enclosing directory with a `.istm-context/agents.md` (root or nested); that's the context file most likely to need an update.
|
|
88
100
|
|
|
@@ -94,12 +106,12 @@ Run only when dependency manifests changed or the diff clearly adds a significan
|
|
|
94
106
|
- Filter out anything already covered by installed skills, connected MCPs, or `.istm-context/agents.md` declined entries.
|
|
95
107
|
- **Ask before you search.**
|
|
96
108
|
|
|
97
|
-
<!-- TOOL-CONSENT:START (identical in /architect, /audit and /sync; edit all or none) -->
|
|
109
|
+
<!-- TOOL-CONSENT:START (identical in /architect, /istm-audit and /istm-sync; edit all or none) -->
|
|
98
110
|
**Asking is mandatory. Searching is not.** Nothing is searched, fetched, installed, or spawned for Agent Skill and MCP discovery until the engineer has picked. Offer four choices: find them for me, I will name the ones I want, no and record the decline, or not now. Only the first may run a search command. Never silently skip the offer, and never run a search before the engineer agrees to one.
|
|
99
111
|
<!-- TOOL-CONSENT:END -->
|
|
100
112
|
|
|
101
113
|
Name the tools this change added, say in one line that an Agent Skill gives the agent that tool's real conventions and an MCP server gives it live access to the real system, then ask: "Want me to find Agent Skills and MCP servers for the tools this change added?" (header `Agent skills`), with `Yes, find them for me` (recommended) · `I'll name the ones I want` · `No, skip it` · `Not now, later`. On `Yes` continue below. On `I'll name the ones I want`, take the list and go straight to the install step, searching for nothing. On `No, skip it` run nothing and record the decline. On `Not now, later` run nothing and note the candidate tools in the report.
|
|
102
|
-
- **Isolate the searches in a read only subagent (capability first, only after `Yes`).** Hand the remaining set to a discovery subagent rather than searching on the main thread: spawn it in the background (it does not block) if your agent supports that, else blocking; set its model explicitly to a fast, low cost tier (do not inherit the session model; on Claude Code spawn it as the `researcher` subagent type, which pins the model); it returns only the compact candidate list. This keeps the search output out of `/sync`'s bounded context. No subagent → search inline; no search capability → skip and note it. The offer panel stays on the main thread.
|
|
114
|
+
- **Isolate the searches in a read only subagent (capability first, only after `Yes`).** Hand the remaining set to a discovery subagent rather than searching on the main thread: spawn it in the background (it does not block) if your agent supports that, else blocking; set its model explicitly to a fast, low cost tier (do not inherit the session model; on Claude Code spawn it as the `researcher` subagent type, which pins the model); it returns only the compact candidate list. This keeps the search output out of `/istm-sync`'s bounded context. No subagent → search inline; no search capability → skip and note it. The offer panel stays on the main thread.
|
|
103
115
|
- For each remaining item, run `npx skills find <tool-or-package>`; if weak, retry aliases from package/org names. Collect every credible Agent Skill candidate and confirm with `npx skills add <owner>/<repo> --list` when practical. If the CLI is interactive/unavailable, search `"<tool>" "agent skill"` and confirm before offering.
|
|
104
116
|
- MCP search is optional: connector list first, else `"<tool>" "MCP server"` per item. MCP is recommended upside, not required.
|
|
105
117
|
- Keep discovery capped and cacheable: max 5 web searches and 8 fetched pages total, official registry/docs first. Reuse `.istm-context/.agent-cache/tool-discovery/<slug>.md` when under 30 days old, after filtering installed/declined items.
|
|
@@ -117,7 +129,7 @@ The inputs to apply:
|
|
|
117
129
|
3. `ROOT_AGENTS_MD` (root .istm-context/agents.md contents), `NESTED_PATHS` (nested .istm-context/agents.md paths)
|
|
118
130
|
4. `SPEC_PATHS` (all spec paths, for Status line reconciliation and staleness flagging)
|
|
119
131
|
5. `FILE_TO_CONTEXT_MAP` (changed file → nearest context file)
|
|
120
|
-
6. `SCOPE_PATH_OR_NONE` (relevant workspace scope path(s), not all of `.istm-context/scope/`; also the source of each linked feature's status for spec Status line reconciliation)
|
|
132
|
+
6. `SCOPE_PATH_OR_NONE` (relevant workspace scope path(s), not all of `.istm-context/istm-scope/`; also the source of each linked feature's status for spec Status line reconciliation)
|
|
121
133
|
7. `INSTALLED_SKILLS_OR_NONE`, `MCP_SERVERS_OR_NONE`, `DECLINED_TOOLS_OR_NONE` from Step 2.5
|
|
122
134
|
|
|
123
135
|
### 4. Relay the result
|
|
@@ -125,7 +137,7 @@ The inputs to apply:
|
|
|
125
137
|
**If the maintenance failed or produced no parseable summary**, report that and do it again, don't fabricate a result (a genuine `NOTHING_TO_SYNC` is a valid success; a crash or empty output is not). Otherwise relay the compact summary:
|
|
126
138
|
|
|
127
139
|
```
|
|
128
|
-
## /sync complete
|
|
140
|
+
## /istm-sync complete
|
|
129
141
|
|
|
130
142
|
**Scope**: <N> changed files
|
|
131
143
|
|
|
@@ -150,14 +162,14 @@ The inputs to apply:
|
|
|
150
162
|
**Assumed decisions, not yet ratified** (run /architect to ratify; the feature can't be `done` until then):
|
|
151
163
|
- `.istm-context/specs/<file>`, <feature> built on an assumption, decision not deliberated
|
|
152
164
|
|
|
153
|
-
**Context gaps** (run /audit, area too established for /sync to document from the diff alone):
|
|
165
|
+
**Context gaps** (run /istm-audit, area too established for /istm-sync to document from the diff alone):
|
|
154
166
|
- `<area>`, <pre-existing undocumented area only sliced by this change>
|
|
155
167
|
|
|
156
168
|
**Conflicts left for you** (not auto-edited):
|
|
157
169
|
- `<path>`, <curated content that would need rewriting; decide manually>
|
|
158
170
|
```
|
|
159
171
|
|
|
160
|
-
Omit any section with no items. If everything was already current and nothing is stale, say so in one line. /sync does not run /architect or /audit for you; it points, you decide.
|
|
172
|
+
Omit any section with no items. If everything was already current and nothing is stale, say so in one line. /istm-sync does not run /architect or /istm-audit for you; it points, you decide.
|
|
161
173
|
|
|
162
174
|
---
|
|
163
175
|
|