@istmx/skills 1.1.0 → 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 +16 -8
- 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 +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: develop
|
|
2
|
+
name: istm-develop
|
|
3
3
|
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
-
description: "Run /develop to build a feature, UI or backend, from an approved design, a page, component, API, service, or data slice. If something load bearing is undecided and no spec records it, it stops and routes you to /architect; otherwise it reads the spec plus .istm-context/agents.md, builds, and advances the scope."
|
|
4
|
+
description: "Run /istm-develop to build a feature, UI or backend, from an approved design, a page, component, API, service, or data slice. If something load bearing is undecided and no spec records it, it stops and routes you to /architect; otherwise it reads the spec plus .istm-context/agents.md, builds, and advances the scope."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Output style (plain words, no dashes, no hyphens)
|
|
@@ -10,6 +10,21 @@ description: "Run /develop to build a feature, UI or backend, from an approved d
|
|
|
10
10
|
Write everything this skill produces, files and messages alike, in plain simple language. Keep technical terms that carry real meaning; explain each in plain words. Never use a dash or a hyphen as punctuation: no em dash, no en dash, and no hyphenated compounds. Write `read only`, not `read-only`. Say it in simple words, or reword the sentence. Code, file paths, command flags, and values other skills match on keep their hyphens. Use short sentences, commas, or parentheses. Clear beats clever.
|
|
11
11
|
<!-- OUTPUT-STYLE:END -->
|
|
12
12
|
|
|
13
|
+
|
|
14
|
+
## Strict Development Rules
|
|
15
|
+
|
|
16
|
+
1. **Global CSS & Layouts First**: If the spec dictates setting up global CSS/fonts or layouts, do this first before building components.
|
|
17
|
+
2. **shadcn/ui is Allowed**: Do not reinvent the wheel if shadcn is available, but ensure it perfectly matches the `.istm-context/design.md` tokens.
|
|
18
|
+
3. **Types & Constants**: Strictly enforce `No any`. Place all types in `types/` folders and hardcoded values in `constants/` folders.
|
|
19
|
+
4. **Private vs Public Components**: Feature-specific components stay in `features/<name>/components/`. Only truly reusable components go to `shared/components/`.
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Documentation & URL Handling
|
|
23
|
+
- **Bleeding-Edge Frameworks**: If the user provides a URL to official documentation in their prompt (e.g., Next.js 16 updates, Langchain docs), you MUST use your web reading tools to fetch and read that URL before writing any code.
|
|
24
|
+
- **Override Training Data**: The syntax and patterns found in the provided URLs absolutely override your internal training data.
|
|
25
|
+
- **Cache for the Future**: If you learn a critical breaking change from a URL, document it in a markdown file inside `.istm-context/docs/` (create the folder if it doesn't exist) so you and other agents can reference it in future sessions without re-fetching.
|
|
26
|
+
- **When in Doubt**: If you are building with a framework and are unsure about the latest syntax, ask the user to provide the official documentation link.
|
|
27
|
+
|
|
13
28
|
## What this skill does
|
|
14
29
|
|
|
15
30
|
The builder: turns a spec plus project conventions into working code. Tracks: **UI** (components, pages, layouts; `ui-guide.md`), **Logical** (APIs, services, data layers, business logic, integrations; `logical-guide.md`), or both (e.g. "auth" = sign in pages plus session logic → run both). Step 0 gates on the spec so load bearing choices (an auth approach, a payment provider) are decided in `/architect`, not silently invented partway through the build.
|
|
@@ -21,8 +36,8 @@ Gates, then acts: no upfront question rounds like `/architect`. Read the decisio
|
|
|
21
36
|
## Artifact ownership
|
|
22
37
|
|
|
23
38
|
- Writes app code (plus CSS/tokens for UI).
|
|
24
|
-
- Scope (`.istm-context/scope/`): only the Step 4 touches (feature status → `in-progress`, milestone sub boxes, `Build it` box, code pointer). Marks a feature `done` only at the `Vibe` workflow tier (build plus its own self check; the engineer opted out of separate verification), and even then never while an `Assumed` spec is unratified; at `Lean`/`Medium`/`Full` it leaves the feature `in-progress` for `/check verify` and `/test` to close, and never ticks `Verify it` or `Test it`. Never creates files in `.istm-context/scope/` (scopes only; analysis/research is `/architect`'s, in the spec's `rationale.md`).
|
|
25
|
-
- Never writes spec content or deliberates a decision (flags the need, defers to `/architect`); never restructures root `.istm-context/agents.md` (that's `/audit`); new area conventions go via `/sync` afterwards. **One narrow exception:** on `Build now, record it as an assumed spec` (Step 0), `/develop` may *create* a spec, but only in `Status: Assumed`, and only the assumption record fields (owed decision, assumption built on, authorized by, code area, requirements seeds). It never writes rationale and never advances an `Assumed` spec past that state; `/architect` owns clearing it. This is the only spec `/develop` creates.
|
|
39
|
+
- Scope (`.istm-context/istm-scope/`): only the Step 4 touches (feature status → `in-progress`, milestone sub boxes, `Build it` box, code pointer). Marks a feature `done` only at the `Vibe` workflow tier (build plus its own self check; the engineer opted out of separate verification), and even then never while an `Assumed` spec is unratified; at `Lean`/`Medium`/`Full` it leaves the feature `in-progress` for `/istm-check verify` and `/istm-test` to close, and never ticks `Verify it` or `Test it`. Never creates files in `.istm-context/istm-scope/` (scopes only; analysis/research is `/architect`'s, in the spec's `rationale.md`).
|
|
40
|
+
- Never writes spec content or deliberates a decision (flags the need, defers to `/architect`); never restructures root `.istm-context/agents.md` (that's `/istm-audit`); new area conventions go via `/istm-sync` afterwards. **One narrow exception:** on `Build now, record it as an assumed spec` (Step 0), `/istm-develop` may *create* a spec, but only in `Status: Assumed`, and only the assumption record fields (owed decision, assumption built on, authorized by, code area, requirements seeds). It never writes rationale and never advances an `Assumed` spec past that state; `/architect` owns clearing it. This is the only spec `/istm-develop` creates.
|
|
26
41
|
- One spec touch on an existing spec: the `**Status**:` line (umbrella decision → the `index.md`'s, never a child's), plus filling the feature's spec pointer line. Build start: `Proposed` → `In Progress`; build lands (feature → `done`): `In Progress` → `Accepted` (a spec is not `Accepted` until its feature ships). Never edit spec content, only that line, surgically: read it again right before writing; unexpected state (already `Accepted`, `Superseded`) → flag, don't clobber. **Never move a spec out of `Assumed`** (that is ratification, `/architect`'s job): an `Assumed` spec stays `Assumed` through the build even while the feature is `in-progress`, so it can never reach `Accepted` until `/architect` ratifies it. This is what blocks `done`.
|
|
27
42
|
|
|
28
43
|
- Shared scope: read it again right before ticking, edit only the specific checkbox, status, or pointer line (never rewrite the file); feature not as expected (already `done`, reworked) → flag, don't overwrite. The freshness check guards against rebuilding what a teammate shipped.
|
|
@@ -37,11 +52,11 @@ Any Agent Skills client, macOS/Linux/Windows. Detection snippets are POSIX refer
|
|
|
37
52
|
|
|
38
53
|
### Before you build: the project must already exist (except the scaffold task)
|
|
39
54
|
|
|
40
|
-
Exception: if this IS the scaffold sub task of the Stack and architecture foundation feature (prompt says `scaffold`, or the step initializes the project from the stack spec), creating the project IS the job. Read the ARCHITECTURE spec's `## Proposed stack`; run the framework's own init (`create-next-app`, `cargo new`, etc. per that stack); install base dependencies (framework, core runtime, only what the first slice needs); lay out directories; confirm a dev server or build runs. Scaffold steps derive from the stack decision (a decision spec has no build plan). Install just in time: NOT every library the spec names (email, monitoring, and so on); each later feature installs its own when built; only cross cutting tooling (lint, format, type strictness) comes early, via `/audit` + the tooling task. Then proceed.
|
|
55
|
+
Exception: if this IS the scaffold sub task of the Stack and architecture foundation feature (prompt says `scaffold`, or the step initializes the project from the stack spec), creating the project IS the job. Read the ARCHITECTURE spec's `## Proposed stack`; run the framework's own init (`create-next-app`, `cargo new`, etc. per that stack); install base dependencies (framework, core runtime, only what the first slice needs); lay out directories; confirm a dev server or build runs. Scaffold steps derive from the stack decision (a decision spec has no build plan). Install just in time: NOT every library the spec names (email, monitoring, and so on); each later feature installs its own when built; only cross cutting tooling (lint, format, type strictness) comes early, via `/istm-audit` + the tooling task. Then proceed.
|
|
41
56
|
|
|
42
|
-
Otherwise `/develop` builds into an existing project. No skeleton (no `package.json`/`pyproject.toml`/`go.mod`/manifest, no source tree) and not the scaffold task → stop:
|
|
57
|
+
Otherwise `/istm-develop` builds into an existing project. No skeleton (no `package.json`/`pyproject.toml`/`go.mod`/manifest, no source tree) and not the scaffold task → stop:
|
|
43
58
|
|
|
44
|
-
> No project found to build into. Run the scaffold step first (the Stack and architecture feature's scaffold sub task, per your architecture spec), then run `/develop` again.
|
|
59
|
+
> No project found to build into. Run the scaffold step first (the Stack and architecture feature's scaffold sub task, per your architecture spec), then run `/istm-develop` again.
|
|
45
60
|
|
|
46
61
|
A project exists (even a bare scaffold) → proceed.
|
|
47
62
|
|
|
@@ -63,7 +78,7 @@ Is a decision owed and unrecorded? Do NOT judge this by introspection ("do I fee
|
|
|
63
78
|
|
|
64
79
|
> **Enumerate every value this build must produce, compute, or display (from the acceptance criteria and the spec's design). For each, does the spec name where it comes from (an input, a DB column, a derivation from a named value, a prior decision)? Any required value with no named source is an owed decision.**
|
|
65
80
|
|
|
66
|
-
If any source is unnamed, stop and route to the gate (`/architect`, or record an `Assumed` spec; `/develop` implements decisions, it doesn't make them). A decision is also owed when you'd have to invent:
|
|
81
|
+
If any source is unnamed, stop and route to the gate (`/architect`, or record an `Assumed` spec; `/istm-develop` implements decisions, it doesn't make them). A decision is also owed when you'd have to invent:
|
|
67
82
|
|
|
68
83
|
- **A provider, library, integration, data model, or cross cutting pattern** (e.g. auth provider, DB/ORM, caching strategy).
|
|
69
84
|
- **A whole UI page or screen**: its design system (`.istm-context/design.md` there? if not, which direction?), sections/composition, component inventory, asset strategy (no screenshot, no repo images → e.g. an online source). Owed unless a `.istm-context/design.md` AND a page level spec pin these down.
|
|
@@ -76,7 +91,7 @@ Don't hardcode to page names or to any one example (timezone is an illustration
|
|
|
76
91
|
Read only what this feature needs, never the whole `.istm-context/` tree: its one scope file and its one governing spec (single file, or umbrella `index.md` plus the one child speccing this sub task). No other features' rows, scope files, workspaces, or unrelated specs.
|
|
77
92
|
|
|
78
93
|
**Check, in order:**
|
|
79
|
-
1. **Locate this feature's scope file (only that one).** Monorepo → `.istm-context/scope/<workspace>/` for the task's package. Pick the file (`scope.md`, or the matching `<epic>.md` in a split) from the At a glance table alone; read just this feature's section. `needs a decision` with no spec pointer yet → decision owed and missing. Malformed → flag and ask, don't guess.
|
|
94
|
+
1. **Locate this feature's scope file (only that one).** Monorepo → `.istm-context/istm-scope/<workspace>/` for the task's package. Pick the file (`scope.md`, or the matching `<epic>.md` in a split) from the At a glance table alone; read just this feature's section. `needs a decision` with no spec pointer yet → decision owed and missing. Malformed → flag and ask, don't guess.
|
|
80
95
|
2. **Open the governing spec via the feature's `spec` pointer**, reading only its build spec sections as defined in the build flow (`flow/build.md`), Step 2 item 1. Found → it's the spec; proceed. No pointer and no linked spec → targeted look in `.istm-context/specs/<workspace>/` for one matching this feature's scope, never a blanket read.
|
|
81
96
|
3. The **nearest** `.istm-context/agents.md` (workspace/area) may already capture the decision, synced from an earlier feature (e.g. "the auth provider is already chosen") → proceed without a new spec.
|
|
82
97
|
|
|
@@ -87,18 +102,18 @@ Decision owed and unrecorded → don't guess, don't silently stop. Ask (single s
|
|
|
87
102
|
- **options**:
|
|
88
103
|
1. `Architect it first`: "Recommended. Capture the decision in a spec before building, so the build has a spec." → **end here** with the handoff below. Do not build.
|
|
89
104
|
2. `No, not needed`: "I've judged there's no real decision here; build directly." → proceed to the build flow (`flow/build.md`).
|
|
90
|
-
3. `Build now, record it as an assumed spec`: "Build it, but write the assumption down first so the decision lives in the repo, not just this chat. The feature can't be marked `done` until `/architect` ratifies it." → write an `Assumed` spec (below), then proceed to the build flow (`flow/build.md`), leaving the feature `in-progress` with an `assumed decision (spec NNNN)` note in the scope (`.istm-context/scope/`).
|
|
105
|
+
3. `Build now, record it as an assumed spec`: "Build it, but write the assumption down first so the decision lives in the repo, not just this chat. The feature can't be marked `done` until `/architect` ratifies it." → write an `Assumed` spec (below), then proceed to the build flow (`flow/build.md`), leaving the feature `in-progress` with an `assumed decision (spec NNNN)` note in the scope (`.istm-context/istm-scope/`).
|
|
91
106
|
|
|
92
107
|
The tool appends "Other" as a free text option automatically.
|
|
93
108
|
|
|
94
|
-
On `Build now, record it as an assumed spec`, write a minimal `Assumed` spec **before** building (this is the one narrow spec write `/develop` owns; see Artifact ownership). Resolve `$SPEC_DIR` the way `/architect` does (single repo → `.istm-context/specs/`; monorepo workspace → `.istm-context/specs/<workspace>/`), take the next free `NNNN`, and write `$SPEC_DIR/NNNN-<slug>.md`:
|
|
109
|
+
On `Build now, record it as an assumed spec`, write a minimal `Assumed` spec **before** building (this is the one narrow spec write `/istm-develop` owns; see Artifact ownership). Resolve `$SPEC_DIR` the way `/architect` does (single repo → `.istm-context/specs/`; monorepo workspace → `.istm-context/specs/<workspace>/`), take the next free `NNNN`, and write `$SPEC_DIR/NNNN-<slug>.md`:
|
|
95
110
|
|
|
96
111
|
```markdown
|
|
97
112
|
# NNNN · <feature>
|
|
98
113
|
|
|
99
114
|
**Status**: Assumed
|
|
100
115
|
**Date**: <today>
|
|
101
|
-
**Authorized by**: <engineer>, during /develop
|
|
116
|
+
**Authorized by**: <engineer>, during /istm-develop
|
|
102
117
|
|
|
103
118
|
## Owed decision
|
|
104
119
|
<the specific load bearing choice that was not made>
|
|
@@ -113,19 +128,19 @@ On `Build now, record it as an assumed spec`, write a minimal `Assumed` spec **b
|
|
|
113
128
|
<acceptance criteria seeds carried from the scope Done when, if any>
|
|
114
129
|
|
|
115
130
|
## Ratify
|
|
116
|
-
This decision was recorded by /develop, not deliberated. Run `/architect <feature>`
|
|
131
|
+
This decision was recorded by /istm-develop, not deliberated. Run `/architect <feature>`
|
|
117
132
|
to deliberate and ratify it. The feature cannot be marked `done` until then.
|
|
118
133
|
```
|
|
119
134
|
|
|
120
|
-
Point the feature's scope `spec` line at this file. The assumption is now durable: it survives `/clear`, teammates read it, and a later `/develop` builds against it instead of guessing again. You still cannot mark the feature `done` (see the done gate in `flow/build.md`, Step 4).
|
|
135
|
+
Point the feature's scope `spec` line at this file. The assumption is now durable: it survives `/clear`, teammates read it, and a later `/istm-develop` builds against it instead of guessing again. You still cannot mark the feature `done` (see the done gate in `flow/build.md`, Step 4).
|
|
121
136
|
|
|
122
137
|
On `Architect it first`, end with:
|
|
123
138
|
|
|
124
|
-
> Run this next, then come back to `/develop`:
|
|
139
|
+
> Run this next, then come back to `/istm-develop`:
|
|
125
140
|
> ```
|
|
126
141
|
> /architect <feature>: <the specific decision to settle>
|
|
127
142
|
> ```
|
|
128
|
-
> Once the spec exists, run `/develop <task>` again and I'll build to it.
|
|
143
|
+
> Once the spec exists, run `/istm-develop <task>` again and I'll build to it.
|
|
129
144
|
|
|
130
145
|
No decision owed (pure implementation) → skip the question, proceed.
|
|
131
146
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# UI Accessibility and Token Checklist
|
|
2
2
|
|
|
3
|
-
Loaded by /develop (UI track) during Phase 5. Work through each section. Items marked **required** must pass before the skill is complete. Best effort items should be completed where scope allows.
|
|
3
|
+
Loaded by /istm-develop (UI track) during Phase 5. Work through each section. Items marked **required** must pass before the skill is complete. Best effort items should be completed where scope allows.
|
|
4
4
|
|
|
5
5
|
---
|
|
6
6
|
|
|
@@ -23,9 +23,9 @@ Read:
|
|
|
23
23
|
4. **The build approach**, precedence: the feature's scope row `Approach` override if declared, else the project default in root `.istm-context/agents.md`, else the scope file's header (a feature with its own approach, e.g. a Facade prototype in a Skateboard project, builds by ITS approach). Strategies: vertical end to end slice, thinnest usable whole, UI shell first prototype wired later, full user journey per phase. Governs *how you assemble* the slice in Step 3, not *what* it contains (the spec fixes that). None recorded → default to a coherent end to end slice, every layer the feature spans (data → logic → interface → UI). Reason from the strategy's principle, not a fixed per approach recipe.
|
|
24
24
|
5. **Tool skills**: the spec's `## Decision` **Implementation skills** field names them (e.g. an ORM, an auth library); `.istm-context/agents.md`'s `## Agent skills` section lists what's installed, one bullet per skill with its location. Open the `SKILL.md` (the path from that bullet or the spec field is real and readable) of each one materially governing the code you're about to write and follow its conventions. On demand only: just the skills this sub task touches, not all. On Claude Code a skill may activate on its own; read it explicitly anyway. Unreadable → build from the spec plus knowledge, note it.
|
|
25
25
|
|
|
26
|
-
**Monorepo: work inside the target workspace.** Workspaces config or `apps/*`/`packages/*` manifests → identify the feature's workspace (code pointer, or task path) and operate there: its nested `.istm-context/agents.md` and `.istm-context/design.md`, its `package.json`/stack, write into its tree, run its commands (`dev`/`build`/`test`, e.g. `pnpm --filter <workspace> …` or `turbo run … --filter`). The checks before you start apply to that workspace; its scope is `.istm-context/scope/<workspace>/`.
|
|
26
|
+
**Monorepo: work inside the target workspace.** Workspaces config or `apps/*`/`packages/*` manifests → identify the feature's workspace (code pointer, or task path) and operate there: its nested `.istm-context/agents.md` and `.istm-context/design.md`, its `package.json`/stack, write into its tree, run its commands (`dev`/`build`/`test`, e.g. `pnpm --filter <workspace> …` or `turbo run … --filter`). The checks before you start apply to that workspace; its scope is `.istm-context/istm-scope/<workspace>/`.
|
|
27
27
|
|
|
28
|
-
**Precedence on conflict:** the spec wins for the feature it governs; `.istm-context/agents.md` is the general convention (`.istm-context/agents.md` says Jest, this spec says "Vitest for this" → Vitest for this feature). Flag the conflict ("spec <NNNN> diverges from `.istm-context/agents.md` on X, `/sync` should reconcile") rather than silently picking. spec silent on a point → `.istm-context/agents.md` governs.
|
|
28
|
+
**Precedence on conflict:** the spec wins for the feature it governs; `.istm-context/agents.md` is the general convention (`.istm-context/agents.md` says Jest, this spec says "Vitest for this" → Vitest for this feature). Flag the conflict ("spec <NNNN> diverges from `.istm-context/agents.md` on X, `/istm-sync` should reconcile") rather than silently picking. spec silent on a point → `.istm-context/agents.md` governs.
|
|
29
29
|
|
|
30
30
|
**Spec completeness check (before any code, not partway).** Two passes:
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ A gap → ask. Options depend on whether it is **load bearing** (data model, API
|
|
|
39
39
|
- **Load bearing** → `Update the spec first` (recommended: paste ready `/architect <feature>: fill in <section>`) · `Tell me the answer now` (persist it before building, below). `Use your best judgment` is NOT offered here (inventing one of these is `/architect`'s call, and it must be persisted, not left in chat).
|
|
40
40
|
- **Local detail** → the above two, plus `Use your best judgment` (proceed on a stated assumption, surfaced in the report). Local only, never the load bearing list.
|
|
41
41
|
|
|
42
|
-
**Persist a load bearing answer before building** (`Tell me the answer now`), so a known decision never stays only in chat: deliberated spec (`Proposed`/`In Progress`/`Accepted`) → `/develop` can't write its content, route to `/architect <feature>: fill in <section>` and resume. Already `Assumed` → append to its `## Assumption built on` (the one write `/develop` owns), then build. No spec (you passed Step 0 as "no real decision") → a decision is owed after all: back to the Step 0 panel (`Architect it first`, or `Build now, record it as an assumed spec` folding this answer in).
|
|
42
|
+
**Persist a load bearing answer before building** (`Tell me the answer now`), so a known decision never stays only in chat: deliberated spec (`Proposed`/`In Progress`/`Accepted`) → `/istm-develop` can't write its content, route to `/architect <feature>: fill in <section>` and resume. Already `Assumed` → append to its `## Assumption built on` (the one write `/istm-develop` owns), then build. No spec (you passed Step 0 as "no real decision") → a decision is owed after all: back to the Step 0 panel (`Architect it first`, or `Build now, record it as an assumed spec` folding this answer in).
|
|
43
43
|
|
|
44
44
|
### Step 2.5: Explore before building (isolate the reading, the top monorepo win)
|
|
45
45
|
|
|
@@ -62,7 +62,7 @@ Only when you genuinely need the current usage/API of a tool the spec already de
|
|
|
62
62
|
|
|
63
63
|
### Step 3: Resume check, then build
|
|
64
64
|
|
|
65
|
-
**Task source.** Governing spec → its `## Build plan` is the atomic checklist (tasks tagged with their AC; the data model migration sized to the feature, one or sliced per slice): build from it and tick progress there, the resume trail. The scope carries only the milestone rollup under the feature's `Build it: /develop <feature>` box (2 to 5 sub items), updated per Step 4; `Verify it` and `Test it` belong to `/check verify` and `/test`. No spec → the scope checkboxes are the tasks.
|
|
65
|
+
**Task source.** Governing spec → its `## Build plan` is the atomic checklist (tasks tagged with their AC; the data model migration sized to the feature, one or sliced per slice): build from it and tick progress there, the resume trail. The scope carries only the milestone rollup under the feature's `Build it: /istm-develop <feature>` box (2 to 5 sub items), updated per Step 4; `Verify it` and `Test it` belong to `/istm-check verify` and `/istm-test`. No spec → the scope checkboxes are the tasks.
|
|
66
66
|
|
|
67
67
|
**Build the coherent slice the approach calls for; don't silently skip surface.** Assemble as a senior build engineer per the Step 2 approach, and let the approach visibly shape the slice, not the same build relabeled: a Tracer Bullet slice is a thin thread wired end to end through every layer; a Skateboard slice is the smallest genuinely usable piece; a Facade slice is the UI shell on placeholder data, wired later; a Journey slice completes one user path fully (all its states) before another. Reason from the principle, not a recipe; none recorded → the Step 2 end to end default. Cross check the task list against `## Requirements` (`AC-1…`) and the spec's API/UI surface before building: required but uncovered (the classic missed verify email page) → flag it and add the task. Every `AC-N` is satisfied by a task you build, or explicitly deferred with the engineer's agreement.
|
|
68
68
|
|
|
@@ -80,8 +80,8 @@ Tracks:
|
|
|
80
80
|
- **Logical: big rollout of an already decided pattern** (e.g. "swap inline inputs across 17 files") → still inline, sequenced to stay safe:
|
|
81
81
|
1. **Primitive first**: build the shared thing (helper/module/schema) and confirm it typechecks before touching call sites.
|
|
82
82
|
2. **Apply site by site**: work through the files in turn, applying `<primitive>` per the pattern the spec fixes, preserving exact behavior; tick each as it lands.
|
|
83
|
-
3. **Gate once at the end**: package wide typecheck/lint and `/check verify` after all sites are migrated, not after each. Remove the superseded code only on this green sweep (ALL sites migrated AND typecheck/lint passing): sites not migrated still reference it, deleting early breaks the build.
|
|
84
|
-
4. **Partial progress; don't migrate only halfway**: if you stop before every site is done, keep the old code, leave the feature `in-progress`, report migrated versus pending sites explicitly (which files landed, which remain), and say running `/develop` again resumes the pending sites (it detects and skips migrated ones; idempotent and resumable). The old code comes out on the run where the last site lands green.
|
|
83
|
+
3. **Gate once at the end**: package wide typecheck/lint and `/istm-check verify` after all sites are migrated, not after each. Remove the superseded code only on this green sweep (ALL sites migrated AND typecheck/lint passing): sites not migrated still reference it, deleting early breaks the build.
|
|
84
|
+
4. **Partial progress; don't migrate only halfway**: if you stop before every site is done, keep the old code, leave the feature `in-progress`, report migrated versus pending sites explicitly (which files landed, which remain), and say running `/istm-develop` again resumes the pending sites (it detects and skips migrated ones; idempotent and resumable). The old code comes out on the run where the last site lands green.
|
|
85
85
|
- **Both** → track order follows the build approach, not a fixed rule. Default (and for an end to end / tracer bullet slice): logical interface first so the UI binds to something real, then UI. Facade (UI shell first): UI on placeholder data first, wire the logical layer after.
|
|
86
86
|
|
|
87
87
|
**Spec wrong partway through the build → update the spec before patching; never silently diverge.** The spec proves wrong or incomplete partway through the build (e.g. the decided data model can't hold, or an acceptance criterion contradicts the API surface): if building correctly means deviating from the spec, STOP before coding the deviation, route to `/architect` to update or supersede the spec (paste ready `/architect <feature>: <what the spec got wrong>`), resume once the spec reflects reality.
|
|
@@ -97,22 +97,22 @@ Tracks:
|
|
|
97
97
|
- **Only mark what actually landed.** Confirm first: files written, code present and typechecking; data layer task → migration applied and schema confirmed live, not merely generated. Interrupted or half done sub task → leave the task unchecked, keep the feature `in-progress`, report exactly what's incomplete and why. Never mark a task `done` on an unverified or incomplete build.
|
|
98
98
|
- **Tick atomic tasks in the spec, milestones in the scope** (only what you verified built, only in the Step 0 scope file): each completed `## Build plan` task in the spec; a milestone sub box when its spec tasks are done; the `Build it` box when all milestones are done; fill the pointer line (`code in <path>`). No spec feature → tick its scope checkbox(es) directly. **Closing gate: report what you ticked in each file** (scope boxes + spec tasks/status), or say no scope row matched; never finish silently.
|
|
99
99
|
- **Who closes `done` depends on the effective workflow tier** (feature's own tier tag if set, else the scope header `**Workflow:**` default; no scope → infer as below):
|
|
100
|
-
- **Lean / Medium / Full** → do NOT set `done`; leave `in-progress` and point to `/check verify <feature>` next. `Lean` closes when `/check verify` passes; `Medium`/`Full` at `/test`.
|
|
101
|
-
- **Vibe** → no verify/test step; once the build landed and your self check passed (typecheck/build green; UI rendered and eyeballed if you could; migration applied and schema live), set `done` yourself. The one tier where `/develop` closes a feature (the engineer opted out of separate verification).
|
|
102
|
-
- **Every tier**: an `Assumed` governing spec blocks `done`, structurally, since `/develop` only moves a spec `In Progress` → `Accepted`, never `Assumed` → `Accepted`. Leave it `in-progress` with its `assumed decision (spec NNNN)` note until `/architect` ratifies.
|
|
103
|
-
- **Mirror `done` onto the governing spec.** Only when the feature reaches `done` (all sub tasks checked, the tier's required stages passed, at `Vibe` just build + self check), advance the `**Status**:` line `In Progress` → `Accepted`, surgically per Artifact ownership (read it again first; not `In Progress`, e.g. `Accepted`/`Superseded`/`Assumed` → flag, don't clobber). At `Lean`/`Medium`/`Full` the closing skill (`/check verify` or `/test`) mirrors this instead.
|
|
100
|
+
- **Lean / Medium / Full** → do NOT set `done`; leave `in-progress` and point to `/istm-check verify <feature>` next. `Lean` closes when `/istm-check verify` passes; `Medium`/`Full` at `/istm-test`.
|
|
101
|
+
- **Vibe** → no verify/istm-test step; once the build landed and your self check passed (typecheck/build green; UI rendered and eyeballed if you could; migration applied and schema live), set `done` yourself. The one tier where `/istm-develop` closes a feature (the engineer opted out of separate verification).
|
|
102
|
+
- **Every tier**: an `Assumed` governing spec blocks `done`, structurally, since `/istm-develop` only moves a spec `In Progress` → `Accepted`, never `Assumed` → `Accepted`. Leave it `in-progress` with its `assumed decision (spec NNNN)` note until `/architect` ratifies.
|
|
103
|
+
- **Mirror `done` onto the governing spec.** Only when the feature reaches `done` (all sub tasks checked, the tier's required stages passed, at `Vibe` just build + self check), advance the `**Status**:` line `In Progress` → `Accepted`, surgically per Artifact ownership (read it again first; not `In Progress`, e.g. `Accepted`/`Superseded`/`Assumed` → flag, don't clobber). At `Lean`/`Medium`/`Full` the closing skill (`/istm-check verify` or `/istm-test`) mirrors this instead.
|
|
104
104
|
- **Emit verify steps, then ASK where they go (every run, never save automatically).** Derive concrete steps from the ACs, specific and each tied to its `AC-N` (e.g. "visit `/signup` → sign up → expect redirect to `/auth/verify-email` → AC-1"). **Also one step per row of the spec's Value sourcing table**, so the behavioral layer (the real correctness guarantee; the gate is only design time) exercises each value's source, especially the edge that breaks if it is wrong (vary the input, timezone, locale, currency, or tenant and check the output). This catches a mis sourced value (e.g. a day computed in the wrong timezone) even if the gate missed it. Present this panel; write `verify.md` only on "Save" (`AskUserQuestion` on Claude Code):
|
|
105
105
|
- **question**: "Save these verify steps to the feature's `verify.md`, or just show them in this summary?"
|
|
106
106
|
- **header**: "Save verify steps?"
|
|
107
107
|
- **options**:
|
|
108
|
-
1. `Save to verify.md`: "Recommended for data, auth, or higher risk features: a durable checklist `/check verify` can run and `/test` can later lock." → write/append the steps to `verify.md` (below).
|
|
108
|
+
1. `Save to verify.md`: "Recommended for data, auth, or higher risk features: a durable checklist `/istm-check verify` can run and `/istm-test` can later lock." → write/append the steps to `verify.md` (below).
|
|
109
109
|
2. `Just show in summary`: "Keep them inline in this report only; don't write a file." → include them in the report and stop.
|
|
110
110
|
|
|
111
|
-
The tool appends "Other" as a free text option automatically. On **Save**, write/append `verify.md` beside the spec. Single file spec → promote it to a directory, `.istm-context/specs/NNNN-feature.md` → `.istm-context/specs/NNNN-feature/{index.md, rationale.md, verify.md}` (split the decision record sections Context/Options considered/Rationale/References into `rationale.md`, keep the build spec in `index.md`, never double the name), and repoint the scope feature's `spec` link to the new `…/index.md` path. Directory spec → drop `verify.md` in. Existing `verify.md` → append, don't clobber. Format (so `/check verify` can consume it and `/test` can lock the durable steps):
|
|
111
|
+
The tool appends "Other" as a free text option automatically. On **Save**, write/append `verify.md` beside the spec. Single file spec → promote it to a directory, `.istm-context/specs/NNNN-feature.md` → `.istm-context/specs/NNNN-feature/{index.md, rationale.md, verify.md}` (split the decision record sections Context/Options considered/Rationale/References into `rationale.md`, keep the build spec in `index.md`, never double the name), and repoint the scope feature's `spec` link to the new `…/index.md` path. Directory spec → drop `verify.md` in. Existing `verify.md` → append, don't clobber. Format (so `/istm-check verify` can consume it and `/istm-test` can lock the durable steps):
|
|
112
112
|
|
|
113
113
|
```markdown
|
|
114
114
|
# Verify: <feature> · spec NNNN · updated <date>
|
|
115
|
-
_Steps derived from spec NNNN acceptance criteria. `/check verify` runs these; `/test` locks the durable ones._
|
|
115
|
+
_Steps derived from spec NNNN acceptance criteria. `/istm-check verify` runs these; `/istm-test` locks the durable ones._
|
|
116
116
|
## UI / manual
|
|
117
117
|
- [ ] <action> → <expected> → AC-N
|
|
118
118
|
## Commands
|
|
@@ -120,14 +120,14 @@ Tracks:
|
|
|
120
120
|
## Acceptance-criteria coverage
|
|
121
121
|
- AC-1 … covered by step … · AC-2 … · …
|
|
122
122
|
```
|
|
123
|
-
- Relay the track's report (the `## /develop complete` block from `ui-guide.md` and/or `logical-guide.md`).
|
|
124
|
-
- **Recommend the next steps, scaled to the effective tier** (feature tier tag, else project `**Workflow:**` default, else infer from risk: auth/payments/PII/migrations/money → heavier; a copy tweak, styling, a self contained component → `Vibe`/`Lean`). Surface the tier as an overridable statement, not a gate. **If the spec is `Assumed`, lead with ratification** before verify/test (it can find the assumption wrong and force a rebuild, wasting verify/test work): `/architect <feature>: ratify the assumed <decision>`, and note the feature can't be `done` until ratified. Then:
|
|
125
|
-
- **Vibe** → nothing after the build; it's `done` (unless `Assumed` blocks it). "Built and self checked, no separate verify or tests. Say if it's higher risk and I'll suggest `/check verify` and tests."
|
|
126
|
-
- **Lean** → just `/check verify` (closes `done` on PASS); add `/test` only if there's runtime logic worth locking; no `/check review`.
|
|
127
|
-
- **Medium** → `/check verify`, then `/test` (closes `done`); `/check review` optional.
|
|
128
|
-
- **Full** → `/check verify`, `/test`, a fresh model `/check review`, then `/document`.
|
|
129
|
-
- Any tier: `/sync` at merge to promote new conventions into `.istm-context/agents.md`.
|
|
123
|
+
- Relay the track's report (the `## /istm-develop complete` block from `ui-guide.md` and/or `logical-guide.md`).
|
|
124
|
+
- **Recommend the next steps, scaled to the effective tier** (feature tier tag, else project `**Workflow:**` default, else infer from risk: auth/payments/PII/migrations/money → heavier; a copy tweak, styling, a self contained component → `Vibe`/`Lean`). Surface the tier as an overridable statement, not a gate. **If the spec is `Assumed`, lead with ratification** before verify/istm-test (it can find the assumption wrong and force a rebuild, wasting verify/istm-test work): `/architect <feature>: ratify the assumed <decision>`, and note the feature can't be `done` until ratified. Then:
|
|
125
|
+
- **Vibe** → nothing after the build; it's `done` (unless `Assumed` blocks it). "Built and self checked, no separate verify or tests. Say if it's higher risk and I'll suggest `/istm-check verify` and tests."
|
|
126
|
+
- **Lean** → just `/istm-check verify` (closes `done` on PASS); add `/istm-test` only if there's runtime logic worth locking; no `/istm-check review`.
|
|
127
|
+
- **Medium** → `/istm-check verify`, then `/istm-test` (closes `done`); `/istm-check review` optional.
|
|
128
|
+
- **Full** → `/istm-check verify`, `/istm-test`, a fresh model `/istm-check review`, then `/istm-document`.
|
|
129
|
+
- Any tier: `/istm-sync` at merge to promote new conventions into `.istm-context/agents.md`.
|
|
130
130
|
|
|
131
131
|
Always advise `/clear` before the next feature (state lives in files; long sessions cost more even when cached). Suggest `/compact` mid build if this feature runs long.
|
|
132
132
|
|
|
133
|
-
`/develop` builds; it does not run `/check verify`, `/test`, `/sync`, or `/architect` for you, it points; you decide.
|
|
133
|
+
`/istm-develop` builds; it does not run `/istm-check verify`, `/istm-test`, `/istm-sync`, or `/architect` for you, it points; you decide.
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Read this only when the nearest `.istm-context/agents.md` `## Git` block says `integration: on`. Absent or `off` → do no active git; the engineer manages branches and commits, and the read only freshness checks still apply. Git is the one hard dependency; skip silently if there is no repo.
|
|
4
4
|
|
|
5
|
-
Read the setting: `integration`, `branch prefix` (default `feat/`), `commit` (`per-milestone` default, `end-of-build`, or `manual`). Local ops (branch, commit) are offers with a recommendation; **push and PR always confirm** (outward) and PR is `/document`'s job, not this skill's.
|
|
5
|
+
Read the setting: `integration`, `branch prefix` (default `feat/`), `commit` (`per-milestone` default, `end-of-build`, or `manual`). Local ops (branch, commit) are offers with a recommendation; **push and PR always confirm** (outward) and PR is `/istm-document`'s job, not this skill's.
|
|
6
6
|
|
|
7
|
-
**Ensure a repo exists first.** If integration is on and the project is not yet a git repo (`git rev-parse` fails), run `git init` before any branch or commit, and stage what is already there for the first commit. `/audit` normally does this the moment integration is turned on; this is the backup for a project that reached a build without it.
|
|
7
|
+
**Ensure a repo exists first.** If integration is on and the project is not yet a git repo (`git rev-parse` fails), run `git init` before any branch or commit, and stage what is already there for the first commit. `/istm-audit` normally does this the moment integration is turned on; this is the backup for a project that reached a build without it.
|
|
8
8
|
|
|
9
9
|
## Branch (before building, in the freshness & collaboration check)
|
|
10
10
|
|
|
@@ -27,8 +27,8 @@ feat(auth): add session persistence
|
|
|
27
27
|
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
The why lives in the spec and the PR, never in the commit body (single source). Commit only what actually landed and typechecks; never commit a half done milestone. Never `git push` here (that is `/document` at PR time, confirmed).
|
|
30
|
+
The why lives in the spec and the PR, never in the commit body (single source). Commit only what actually landed and typechecks; never commit a half done milestone. Never `git push` here (that is `/istm-document` at PR time, confirmed).
|
|
31
31
|
|
|
32
32
|
## Report
|
|
33
33
|
|
|
34
|
-
Add one line to the `/develop` summary: the branch you are on, and what you committed (`feat(auth): … · 3 commits`) or that commits are `manual`. If integration is off or absent, say nothing about git.
|
|
34
|
+
Add one line to the `/istm-develop` summary: the branch you are on, and what you committed (`feat(auth): … · 3 commits`) or that commits are `manual`. If integration is off or absent, say nothing about git.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# /develop: logical track guide
|
|
1
|
+
# /istm-develop: logical track guide
|
|
2
2
|
|
|
3
|
-
The backend/logic build track for `/develop`. The main agent reads this after the spec gate (Step 0 in `SKILL.md`) classifies a task as logical: APIs, services, data layers, business logic, integrations, background jobs, anything that is not rendered UI.
|
|
3
|
+
The backend/logic build track for `/istm-develop`. The main agent reads this after the spec gate (Step 0 in `SKILL.md`) classifies a task as logical: APIs, services, data layers, business logic, integrations, background jobs, anything that is not rendered UI.
|
|
4
4
|
|
|
5
5
|
You are a **senior backend engineer** on this project. You implement the decision that `/architect` already made; you do not litigate it again. The spec is your spec, the `.istm-context/agents.md` beside the source is your conventions, and the existing code is your style guide.
|
|
6
6
|
|
|
@@ -28,7 +28,7 @@ You are a **senior backend engineer** on this project. You implement the decisio
|
|
|
28
28
|
### Phase 2: Data layer
|
|
29
29
|
|
|
30
30
|
- Implement the schema/migrations to match the spec's data model sketch: field types, nullability, FK relationships, unique constraints.
|
|
31
|
-
- **A data layer change isn't done until the migration is applied and verified.** Generating a migration is not the same as running it. **Generate the migration *and* run it** against the target database, then **confirm the schema is live**, the tables/columns/relationships actually exist. **Prefer a connected database MCP** to query the real schema (the most reliable proof it is there); else the project's own introspection or a describe query. **Never just eyeball the migration file.** A generated but unapplied migration is a task still not done: **do not tick a data layer task until the schema is confirmed present.** (This is the not applied schema bug the per slice migration rule exists to prevent, and `/check verify` checks it again at Step 4b with the same DB MCP.)
|
|
31
|
+
- **A data layer change isn't done until the migration is applied and verified.** Generating a migration is not the same as running it. **Generate the migration *and* run it** against the target database, then **confirm the schema is live**, the tables/columns/relationships actually exist. **Prefer a connected database MCP** to query the real schema (the most reliable proof it is there); else the project's own introspection or a describe query. **Never just eyeball the migration file.** A generated but unapplied migration is a task still not done: **do not tick a data layer task until the schema is confirmed present.** (This is the not applied schema bug the per slice migration rule exists to prevent, and `/istm-check verify` checks it again at Step 4b with the same DB MCP.)
|
|
32
32
|
- Enforce invariants at the database where possible (constraints, not just app checks).
|
|
33
33
|
- Follow the project's migration discipline: in a live system, add column nullable → backfill → add constraint; never add a `NOT NULL` column without a default.
|
|
34
34
|
- Use the project's existing ORM/query layer and naming conventions.
|
|
@@ -76,7 +76,7 @@ Not a final checklist, built into every phase, enforced here:
|
|
|
76
76
|
## Report
|
|
77
77
|
|
|
78
78
|
```
|
|
79
|
-
## /develop complete (logical)
|
|
79
|
+
## /istm-develop complete (logical)
|
|
80
80
|
|
|
81
81
|
**Feature**: <name>
|
|
82
82
|
**Spec**: <path (the decision implemented)>
|
|
@@ -91,7 +91,7 @@ Not a final checklist, built into every phase, enforced here:
|
|
|
91
91
|
**Open questions left for you**: <ambiguous business rules the spec didn't settle> | none
|
|
92
92
|
**Verify steps (from acceptance criteria)**: emit these, then offer to save to `verify.md` (`SKILL.md` Step 4):
|
|
93
93
|
- `<command / action>` → `<expected>` → AC-N
|
|
94
|
-
**What /test should verify**:
|
|
94
|
+
**What /istm-test should verify**:
|
|
95
95
|
- Happy path: <main flow end to end>
|
|
96
96
|
- Failure case: <timeout / concurrent write / invalid transition>
|
|
97
97
|
- Auth/permission: <who is denied and what they receive>
|
|
@@ -248,7 +248,7 @@ The build is not done until you have checked it. Ambition in prose is not enough
|
|
|
248
248
|
## Report
|
|
249
249
|
|
|
250
250
|
```
|
|
251
|
-
## /develop complete (UI)
|
|
251
|
+
## /istm-develop complete (UI)
|
|
252
252
|
|
|
253
253
|
**Build type**: Component | Screen
|
|
254
254
|
**Stack**: Next.js | Vite | Nuxt | SvelteKit | Plain HTML
|
|
@@ -270,7 +270,7 @@ The build is not done until you have checked it. Ambition in prose is not enough
|
|
|
270
270
|
**Semantic HTML**: correct elements used | <issues noted>
|
|
271
271
|
**Keyboard**: fully navigable | <gaps>
|
|
272
272
|
**Screen reader**: announced correctly | <gaps>
|
|
273
|
-
**What /test should verify**:
|
|
273
|
+
**What /istm-test should verify**:
|
|
274
274
|
- <observable behaviour>
|
|
275
275
|
- Keyboard-only navigation through all interactive elements
|
|
276
276
|
- VoiceOver / NVDA announces interactive elements and live regions correctly
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# /develop: UI track guide
|
|
1
|
+
# /istm-develop: UI track guide
|
|
2
2
|
|
|
3
|
-
UI build track for `/develop`, read after the spec gate (`SKILL.md` Step 0) classifies a task as UI: components, pages, or full layouts with semantic HTML, design tokens, and strict accessibility. Any web stack (Next.js, Vite, Nuxt, Svelte, plain HTML). The project's `.istm-context/design.md` holds the art direction (character, the build mandate, composition and component rules, and pointers to where the real tokens live); the token values themselves live in the project's CSS (`globals.css` / tailwind config), never duplicated in `.istm-context/design.md`. Read the bar below before you build anything.
|
|
3
|
+
UI build track for `/istm-develop`, read after the spec gate (`SKILL.md` Step 0) classifies a task as UI: components, pages, or full layouts with semantic HTML, design tokens, and strict accessibility. Any web stack (Next.js, Vite, Nuxt, Svelte, plain HTML). The project's `.istm-context/design.md` holds the art direction (character, the build mandate, composition and component rules, and pointers to where the real tokens live); the token values themselves live in the project's CSS (`globals.css` / tailwind config), never duplicated in `.istm-context/design.md`. Read the bar below before you build anything.
|
|
4
4
|
|
|
5
5
|
## The bar: read this first, it is the definition of done
|
|
6
6
|
|
|
@@ -43,7 +43,7 @@ Any Agent Skills client, macOS/Linux/Windows. Detection snippets (`find`, `cat |
|
|
|
43
43
|
|
|
44
44
|
## Step 0: Where the design comes from (one decision, made once)
|
|
45
45
|
|
|
46
|
-
Check the governing spec first (`/develop` read it in Step 2). The design source is the engineer's choice and `/architect` already grilled them on it, so follow what the spec recorded, never ask again, and never default to Figma just because an MCP is connected.
|
|
46
|
+
Check the governing spec first (`/istm-develop` read it in Step 2). The design source is the engineer's choice and `/architect` already grilled them on it, so follow what the spec recorded, never ask again, and never default to Figma just because an MCP is connected.
|
|
47
47
|
|
|
48
48
|
Route on what the spec recorded, using the *Design source* table above:
|
|
49
49
|
- Figma or another design MCP → `ui/mcp.md`.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
name: document
|
|
2
|
+
name: istm-document
|
|
3
3
|
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
-
description: "Run /document `pr` | `changelog` | `release-note` | `postmortem` (or let it ask) to write the human facing prose about a change. Drafts from the real commits and diff, writing to the right place. Does not write code, tests, or specs."
|
|
4
|
+
description: "Run /istm-document `pr` | `changelog` | `release-note` | `postmortem` (or let it ask) to write the human facing prose about a change. Drafts from the real commits and diff, writing to the right place. Does not write code, tests, or specs."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Output style (plain words, no dashes, no hyphens)
|
|
@@ -21,7 +21,7 @@ Generates one of four document types from the real change history. The main thre
|
|
|
21
21
|
| `pr` | branch commits + diff vs base | reviewers | PR title + body (chat; optionally `gh pr` create/edit) |
|
|
22
22
|
| `changelog` | merged change | developers | entry appended to `CHANGELOG.md` (Keep a Changelog) |
|
|
23
23
|
| `release-note` | a tag/version range | end users | `.istm-context/releases/<version>.md` (or chat) |
|
|
24
|
-
| `postmortem` | an incident (described by the engineer, plus any /debug record) | team | `.istm-context/postmortems/<date>-<slug>.md` |
|
|
24
|
+
| `postmortem` | an incident (described by the engineer, plus any /istm-debug record) | team | `.istm-context/postmortems/<date>-<slug>.md` |
|
|
25
25
|
|
|
26
26
|
Acts. Asks at most one question (which type) when it can't be inferred, and (for postmortems) asks for the incident facts it can't read from git.
|
|
27
27
|
|
|
@@ -84,7 +84,7 @@ git tag --sort=-creatordate
|
|
|
84
84
|
**Per type edge handling the main thread resolves before writing:**
|
|
85
85
|
- **`release-note` range**: if tags exist, the range is `<previous-tag>..<latest-tag>` (or a range the engineer named). **If `NO_TAGS`**, don't guess, ask: "No version tags found. Give me a version name and range (e.g. `v1.0.0`, covering `<commit>..HEAD`), or I'll cover all commits since the first one." Pass the resolved range/version to the subagent.
|
|
86
86
|
- **pr + gh**: only offer to create/update the PR via `gh` when **`GH_INSTALLED` and `HAS_REMOTE`**. If `PR_EXISTS`, the action is `gh pr edit` (update the body), **not** `gh pr create`. If gh isn't usable or no remote, the PR text is chat only, don't attempt `gh`. **Always confirm before running `gh` and before any push** (opening/updating a PR is an outward action): show the body, then ask. This holds regardless of the `.istm-context/agents.md` `## Git` setting; the setting decides whether the workflow drives PRs at all (`integration: off` → produce the text, never push or open a PR unless the engineer asks here).
|
|
87
|
-
- **postmortem**: git won't contain the incident narrative. Ask the engineer for the essentials if not already provided: what broke, when (with timezone), user impact, how it was detected, and the root cause/fix (point them to any `/debug` output if it exists). Pass their account as the incident facts. The subagent must not invent timeline entries or causes beyond what they give.
|
|
87
|
+
- **postmortem**: git won't contain the incident narrative. Ask the engineer for the essentials if not already provided: what broke, when (with timezone), user impact, how it was detected, and the root cause/fix (point them to any `/istm-debug` output if it exists). Pass their account as the incident facts. The subagent must not invent timeline entries or causes beyond what they give.
|
|
88
88
|
|
|
89
89
|
### 3. Write the document (main thread)
|
|
90
90
|
|
|
@@ -102,7 +102,7 @@ The inputs to apply:
|
|
|
102
102
|
### 4. Relay the result
|
|
103
103
|
|
|
104
104
|
```
|
|
105
|
-
## /document complete
|
|
105
|
+
## /istm-document complete
|
|
106
106
|
|
|
107
107
|
**Type**: <pr | changelog | release-note | postmortem>
|
|
108
108
|
**Written to**: <PR body shown below | CHANGELOG.md | .istm-context/releases/<v>.md | .istm-context/postmortems/<file>>
|
|
@@ -113,7 +113,7 @@ The inputs to apply:
|
|
|
113
113
|
|
|
114
114
|
For `pr`, always show the full text in chat (so it's usable even without `gh`). For the file types, show a short preview and the path. This skill does not commit, push, or merge. It produces the prose.
|
|
115
115
|
|
|
116
|
-
**Tick the scope box (closing gate).** If the documented feature has a row in `.istm-context/scope/`, tick its `Document it` box and confirm it in the report ("Scope: ticked `Document it`"). No matching row → say so. This is the only scope edit `/document` makes; it writes no code or specs.
|
|
116
|
+
**Tick the scope box (closing gate).** If the documented feature has a row in `.istm-context/istm-scope/`, tick its `Document it` box and confirm it in the report ("Scope: ticked `Document it`"). No matching row → say so. This is the only scope edit `/istm-document` makes; it writes no code or specs.
|
|
117
117
|
|
|
118
118
|
---
|
|
119
119
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Postmortem Template
|
|
2
2
|
|
|
3
|
-
Write a blameless incident postmortem to `.istm-context/postmortems/<DATE>-<slug>.md`. Build it from INCIDENT_FACTS (the engineer's account) plus any root cause detail in the diff or a /debug record. Blameless means: focus on systems and contributing factors, never on individuals.
|
|
3
|
+
Write a blameless incident postmortem to `.istm-context/postmortems/<DATE>-<slug>.md`. Build it from INCIDENT_FACTS (the engineer's account) plus any root cause detail in the diff or a /istm-debug record. Blameless means: focus on systems and contributing factors, never on individuals.
|
|
4
4
|
|
|
5
5
|
## Structure
|
|
6
6
|
|
|
@@ -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).
|