@istmx/skills 1.0.1 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/CODE_OF_CONDUCT.md +47 -0
  2. package/LICENSE +30 -0
  3. package/README.md +64 -27
  4. package/RELEASE_v1.2.0.md +40 -0
  5. package/bin/cli.js +99 -114
  6. package/istm-animate/SKILL.md +25 -60
  7. package/istm-architecture/SKILL.md +10 -1
  8. package/istm-awwward-designer/SKILL.md +16 -20
  9. package/istm-design/SKILL.md +2 -1
  10. package/istm-workflow/istm-audit/SKILL.md +7 -7
  11. package/istm-workflow/istm-audit/agent-prompt.md +20 -20
  12. package/istm-workflow/istm-audit/modes/area.md +1 -1
  13. package/istm-workflow/istm-audit/modes/greenfield.md +4 -4
  14. package/istm-workflow/istm-audit/modes/tool-skills.md +1 -1
  15. package/istm-workflow/istm-check/SKILL.md +10 -10
  16. package/istm-workflow/istm-check/modes/review.md +9 -9
  17. package/istm-workflow/istm-check/modes/verify.md +19 -19
  18. package/istm-workflow/istm-check/review-agent-prompt.md +2 -2
  19. package/istm-workflow/istm-check/review-guide.md +4 -4
  20. package/istm-workflow/istm-craft/SKILL.md +20 -11
  21. package/istm-workflow/istm-craft/agent-modes/architecture.md +1 -1
  22. package/istm-workflow/istm-craft/agent-prompt.md +8 -8
  23. package/istm-workflow/istm-craft/internal/after-subagent.md +11 -11
  24. package/istm-workflow/istm-craft/internal/design-conversation.md +9 -9
  25. package/istm-workflow/istm-craft/internal/tool-discovery.md +2 -2
  26. package/istm-workflow/istm-craft/spec-template.md +18 -18
  27. package/istm-workflow/istm-debug/SKILL.md +6 -6
  28. package/istm-workflow/istm-develop/SKILL.md +31 -16
  29. package/istm-workflow/istm-develop/checklist.md +1 -1
  30. package/istm-workflow/istm-develop/flow/build.md +21 -21
  31. package/istm-workflow/istm-develop/flow/git.md +4 -4
  32. package/istm-workflow/istm-develop/logical-guide.md +5 -5
  33. package/istm-workflow/istm-develop/ui/implementation.md +2 -2
  34. package/istm-workflow/istm-develop/ui-guide.md +3 -3
  35. package/istm-workflow/istm-document/SKILL.md +6 -6
  36. package/istm-workflow/istm-document/templates/postmortem.md +1 -1
  37. package/istm-workflow/istm-scope/SKILL.md +20 -20
  38. package/istm-workflow/istm-scope/modes/add.md +1 -1
  39. package/istm-workflow/istm-scope/modes/plan-brownfield.md +2 -2
  40. package/istm-workflow/istm-scope/modes/plan-greenfield.md +4 -4
  41. package/istm-workflow/istm-scope/modes/plan-monorepo.md +3 -3
  42. package/istm-workflow/istm-scope/modes/plan.md +16 -16
  43. package/istm-workflow/istm-scope/modes/replan.md +2 -2
  44. package/istm-workflow/istm-scope/scope-template.md +29 -29
  45. package/istm-workflow/istm-sync/SKILL.md +37 -25
  46. package/istm-workflow/istm-sync/agent-prompt.md +37 -19
  47. package/istm-workflow/istm-test/SKILL.md +12 -12
  48. package/istm-workflow/istm-test/modes/setup.md +6 -6
  49. package/istm-workflow/istm-test/writing-guide.md +1 -1
  50. package/package.json +4 -4
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: istm-animate
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
4
- description: "The dedicated motion and animation orchestrator for the @istmx/skills framework. Handles advanced choreography, GSAP timelines, scroll-jacking, and high-performance physics-based animations. Requires a foundational design layout to animate."
4
+ description: "The dedicated motion orchestrator for @istmx/skills. Acts as a translator: takes human animation requests, asks clarifying questions, and writes precise motion blueprints/specs outlining triggers, timelines, and cleanup logic."
5
5
  ---
6
6
 
7
7
  ## Output style (plain words, no dashes, no hyphens)
@@ -12,76 +12,41 @@ Write everything this skill produces, files and messages alike, in plain simple
12
12
 
13
13
  ## What this skill does
14
14
 
15
- The master motion orchestrator: takes static layouts generated by `/istm-design` and injects premium, high-performance animations into them.
15
+ The master motion orchestrator. It acts as the bridge between human creativity and developer math.
16
16
 
17
- - Choreography: Defines sequences, staggered reveals, and scroll-linked animations.
18
- - Tool Selection: Defaults to GSAP for complex timelines and scroll-jacking. Falls back to Framer Motion or CSS keyframes for component-level physics if explicitly requested.
19
- - Performance Enforcement: Strictly enforces hardware-accelerated properties (transform, opacity) and absolutely forbids animating properties that trigger layout thrashing (width, height, top, left).
17
+ - **Translation**: Takes vague prompts ("make it float", "animate on scroll") and breaks them down into exact technical choreography.
18
+ - **Interviewing**: If the prompt is confusing, it stops and asks clarifying questions before writing anything.
19
+ - **Component Breakdown**: Splices complex animations into bite-sized components (triggers, states, timelines, unmount cleanup) so `/istm-develop` can easily build them.
20
+ - **Performance Enforcement**: Strictly enforces hardware-accelerated properties (transform, opacity).
20
21
 
21
- Does not design the static UI (/istm-design owns that), or build backend logic (/istm-system-design owns that).
22
-
23
- **CRITICAL RULE: NEVER WRITE APPLICATION CODE (HTML/CSS/JS/React).** You are an architect. You ONLY write the blueprint file (`.istm-context/animate.md`). If the user asks you to build a page or implement the animations in code, you must refuse, write the blueprint instead, and instruct the user to run `/develop` to build the code.
24
-
25
-
26
- ## Blueprint file convention
27
-
28
- Durable animation context lives in the `.istm-context/` directory. This skill specifically owns the hydration and enforcement of:
29
-
30
- - `animate.md` (or appending motion rules to `design.md` depending on project structure): The animation timelines, scroll-trigger logic, and performance constraints.
31
-
32
- ## Scope
33
-
34
- The `--library` flag forces a specific animation library (e.g., `--library=framer-motion`). With no argument, the `Pre-flight` signals below route to Phase 0 (ambiguous), or Phase 1 (greenfield animation generation).
35
-
36
- ## Acts vs asks
37
-
38
- Phase 1 asks motion questions (subtle vs aggressive, scroll-linked vs time-based) via MCQ before generating the animation blueprints. Phase 2 acts immediately; it scans the repo for existing animation libraries (`gsap`, `framer-motion`) in `package.json` and reverse-engineers the motion strategy.
39
-
40
- ## Artifact ownership
41
-
42
- The `animate.md` file holds the content. Create it if missing. When writing the animation rules, inject precise timeline logic, easing curves, and trigger points. You own the enforcement of these physics; all interactive components must respect these curves.
22
+ **CRITICAL RULE: NEVER WRITE APPLICATION CODE (HTML/CSS/JS/React).** You are an architect. You ONLY write the blueprint files (`.istm-context/animate.md` for global motion tokens, or `.istm-context/specs/NNNN-<feature>.md` for specific component animations).
43
23
 
44
24
  ## Execution
45
25
 
46
26
  The main thread compiles the animation strategy. It must first verify that design tokens exist, as animation cannot exist without a layout.
47
27
 
48
28
  ### `Pre-flight` (main thread does this before anything else)
29
+ 1. Read the user's prompt.
30
+ 2. If the request is vague ("make the page pop"), execute Phase 1 (Interview).
31
+ 3. If the request is clear but complex, execute Phase 2 (Spec Generation).
49
32
 
50
- Gather signals to determine the execution path:
51
-
52
- 1. Flag check: Was a specific library requested? → `LIBRARY_FLAG`.
53
- 2. Context files: Is `animate.md` or motion logic already hydrated in `.istm-context/`? → `ANIMATION_EXISTS`.
54
- 3. Source count: Are `gsap` or other animation libraries present in `package.json`? → `HAS_ANIMATION_LIBS`.
55
-
56
- Pick the phase based on these signals:
57
-
58
- | Condition | Phase |
59
- |---|---|
60
- | `HAS_ANIMATION_LIBS` is present | Phase 2 (Reverse-engineer the existing motion system). |
61
- | `ANIMATION_EXISTS` | Phase 3 (Gap-fill: analyze the prompt against existing timelines and update only what changed). |
62
- | No flag, no animation logic (or raw prompt) | Phase 1 (Greenfield: execute Motion Interview and generate timelines). |
63
- | No flag, no animation logic, but `HAS_ANIMATION_LIBS` | Phase 0 (Ambiguous: ask if they want to override existing timelines or document them). |
64
-
65
- ### Route to the selected phase
66
-
67
- - Phase 1 (Greenfield Setup): Evaluate the desired motion vibe (snappy, buttery smooth, elastic). Interview the user on scroll preferences. Generate a comprehensive `animate.md` with strict easing variables and timeline choreographies.
68
- - Phase 2 (Reverse Engineering): Do not interview. Read `package.json` and root component files. Reverse-engineer the active easing curves and scroll triggers. Hydrate `animate.md`.
69
- - Phase 3 (Gap Fill): Read existing `animate.md`. Identify missing choreographies. Update blueprints carefully.
70
-
71
- ### Phase 0: Classify (only when `pre-flight` is ambiguous)
72
-
73
- Don't guess. Ask once via your agent's interactive option picker (`AskUserQuestion`), or plain text.
74
- - question: "I see existing animation libraries, but no `animate.md` blueprint. How should I proceed?"
75
- - header: "Animation state"
76
- - options: 1. `Reverse-Engineer from Code`, "I will read your components and generate the motion tokens." → Phase 2. 2. `Start Fresh from Prompt`, "I will interview you and overwrite the animation system." → Phase 1.
33
+ ### Phase 1: Interview & Clarify
34
+ Don't guess. If the human language is ambiguous, use `AskUserQuestion` to dial in the vibe (snappy, buttery smooth, elastic, scroll-linked vs time-based).
77
35
 
78
- ### After all phases
36
+ ### Phase 2: Spec Generation
37
+ Translate the human intent into a rigid technical spec:
38
+ 1. Define the exact library to use (default to GSAP or Framer Motion based on `agents.md`).
39
+ 2. Write out the exact easing curves (never generic `ease-in-out`; use custom cubic-bezier or `power3.out`).
40
+ 3. Define the triggers (e.g., `ScrollTrigger` start/end markers).
41
+ 4. Define the unmount cleanup logic to prevent memory leaks.
42
+ 5. Save this to `.istm-context/specs/NNNN-motion-<feature>.md`.
79
43
 
80
- If no tokens were written when they should have been, report the failure. Relay the report: what motion library was chosen, what easing curves were locked in, and the scroll strategy.
44
+ ### Handoff
45
+ After writing the spec, instruct the user to run `/istm-develop` to physically build the code.
81
46
 
82
47
  ## Absolute Motion Enforcement Rules
83
48
 
84
- 1. **Hardware Acceleration**: Only animate `transform` (translate, scale, rotate) and `opacity`. An error MUST be thrown if an implementation agent attempts to animate layout properties (`width`, `height`, `margin`, `padding`).
85
- 2. **Custom Easing**: Never use generic `ease-in-out`. Explicitly define custom cubic-bezier curves (e.g., `power3.out` in GSAP, or `[0.76, 0, 0.24, 1]`) to ensure a premium feel.
86
- 3. **Scroll-Jacking Restraint**: If scroll-jacking is implemented, it MUST be attached to a `ScrollTrigger` with a defined start and end point. Infinite scrolling traps are forbidden.
87
- 4. **Cleanup**: Every component that mounts a GSAP timeline or physics listener MUST explicitly kill the timeline/listener on unmount to prevent memory leaks.
49
+ 1. **Hardware Acceleration**: Only animate `transform` (translate, scale, rotate) and `opacity`.
50
+ 2. **Custom Easing**: Explicitly define custom curves to ensure a premium feel.
51
+ 3. **Scroll-Jacking Restraint**: Scroll-jacking MUST be attached to a defined start and end point. Infinite scrolling traps are forbidden.
52
+ 4. **Cleanup**: Every component that mounts a timeline MUST explicitly kill it on unmount.
@@ -20,6 +20,15 @@ The master context orchestrator: evaluates user prompts, resolves structural amb
20
20
 
21
21
  Does not create production application code (the implementation agent owns that), audit for accessibility (/audit owns that), or write the feature scope (/scope owns that).
22
22
 
23
+
24
+ ## Folder Structure & Component Architecture
25
+
26
+ 1. **Just-In-Time Scaffolding**: Never create massive folder trees upfront. Folders should only be created when a specific feature is being built.
27
+ 2. **Respect Stack Conventions**: Do not blindly force a `src/app/` structure if a framework (like Next.js) already uses a root `app/` structure. Analyze the existing structure first.
28
+ 3. **Private vs Public Components**: Strictly enforce Feature-Based Architecture:
29
+ - **Public Components**: Reusable, generic UI components (buttons, inputs) belong in `shared/components/` (or `components/ui/` for shadcn).
30
+ - **Private Components**: Components specific to a single feature (e.g., `LoginForm`) MUST stay inside that feature's directory (`features/auth/components/`).
31
+
23
32
  ## Blueprint file convention (The 4 Pillars)
24
33
 
25
34
  Durable context lives in the `.istm-context/` directory. These files govern all future logic:
@@ -71,7 +80,7 @@ Pick the phase based on these signals:
71
80
 
72
81
  ### Route to the selected phase
73
82
 
74
- - Phase 1 (Greenfield Setup): Evaluate the domain (e-commerce, real-time, etc.). Identify missing context (Auth, DB). Interview the user. Apply Smart Defaults. Hydrate templates.
83
+ - Phase 1 (Greenfield Setup): Evaluate the domain (e-commerce, real-time, etc.). Identify missing context (Auth, DB). Interview the user. Apply Smart Defaults. Hydrate templates. **CRITICAL: When generating `design.md`, analyze the user's prompt to extract their exact aesthetic vision (e.g., massive fonts, vibrant colors). Do NOT force them to pick from generic styles like minimal or brutalist.**
75
84
  - Phase 2 (Reverse Engineering): Do not interview. Read `package.json`, `tsconfig.json`, and root schemas. Reverse-engineer the tech stack. Hydrate templates.
76
85
  - Phase 3 (Gap Fill): Read existing blueprints. Identify what the new prompt requires. Update existing blueprints carefully.
77
86
 
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  name: istm-awwward-designer
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
4
- description: "The premium frontend execution engine. This skill WRITES CODE. It takes blueprints from `/istm-design` and `/istm-animate` and builds Awwwards-winning React/GSAP/WebGL experiences."
4
+ description: "The premium frontend spec orchestrator. It translates human design ideas into highly technical Awwwards-level GSAP/WebGL blueprints (.istm-context/specs/NNNN-motion-<feature>.md) for /istm-develop to physically build."
5
5
  ---
6
6
 
7
7
  ## Output style (plain words, no dashes, no hyphens)
@@ -12,32 +12,28 @@ Write everything this skill produces in plain simple language. Keep technical te
12
12
 
13
13
  ## What this skill does
14
14
 
15
- This is the ultimate execution engine. **THIS SKILL WRITES APPLICATION CODE.**
15
+ This is the ultimate Motion Translator and Spec Writer. **THIS SKILL DOES NOT WRITE APPLICATION CODE.**
16
16
 
17
- Unlike `/istm-design` and `/istm-animate` (which only write markdown blueprints), `/istm-awwward-designer` is an expert UI developer. It reads the blueprints from `.istm-context/` and physically builds the high-end, award-winning frontend components.
17
+ Unlike `/istm-develop` (which writes code), `/istm-awwward-designer` acts exactly like `/istm-craft`, but specialized entirely for high-end frontend execution. It takes a vague human request ("make the hero section pop and slide in smoothly") and translates it into a highly technical, rigorous GSAP motion specification that a developer agent can execute flawlessly without hallucinating.
18
18
 
19
- - **Teaches & Implements GSAP**: It writes complex GSAP timelines, `ScrollTrigger` logic, and staggered reveals.
20
- - **Physics Integration**: It mounts and configures `Lenis` for buttery smooth scroll-jacking.
21
- - **Asset Fallbacks**: It creates stunning typography-driven designs even without images, using extreme scaling and brutalist logic.
22
- - **WebGL**: Implements Three.js canvas backgrounds if requested.
19
+ - **Teaches & Implements GSAP via Specs**: It writes complex GSAP timelines, `ScrollTrigger` logic, stagger values, and precise easing curves into `.istm-context/specs/`.
20
+ - **Physics Integration**: It mandates how `Lenis` mounts for buttery smooth scroll-jacking in the spec.
21
+ - **Asset Fallbacks**: It defines stunning typography-driven design specs even without images, using extreme scaling and brutalist logic.
22
+ - **WebGL Constraint**: It avoids heavily relying on WebGL unless explicitly required, focusing on elite DOM/GSAP animations that dominate 95% of premium sites.
23
23
 
24
24
  ## Blueprint file convention
25
25
 
26
- You do NOT write blueprints. You READ them.
27
- Before writing code, you must read:
26
+ You READ the foundational blueprints:
28
27
  - `.istm-context/design.md`: For UI tokens, colors, and typography.
29
- - `.istm-context/animate.md`: For the required motion physics and easing.
28
+ - `.istm-context/agents.md`: For the project architecture.
30
29
 
31
- ## Awwwards References Library
32
-
33
- You have a vast library of technical standards and anti-patterns available. **Before building complex interactions, you MUST read the exact technical documentation located in `skills/istm-awwward-designer/references/`.**
34
-
35
- Specifically, use your read tools to check files like `animation-standards.md`, `anti-patterns.md`, `scroll-patterns.md`, and `tech-stack.md` inside that directory to ensure your GSAP logic perfectly meets Awwwards criteria.
30
+ You WRITE the motion feature specs:
31
+ - `.istm-context/specs/NNNN-motion-<feature>.md`: This is your output. You break down the human prompt into a rigid, step-by-step technical plan.
36
32
 
37
33
  ## Absolute Awwwards Execution Rules
38
34
 
39
- 1. **Write The Code**: Your primary job is to generate the React components, CSS, and GSAP logic directly into the project folder (e.g., `src/components/`).
40
- 2. **Teach by Doing**: Do not just tell the user how to animate. Write the actual `useEffect` hooks, `ScrollTrigger` setups, and CSS classes to prove it.
41
- 3. **Anti-Template Directive**: Never use standard UI component libraries. The output must be bespoke and custom-coded.
42
- 4. **DOM Performance**: Because GSAP and WebGL are heavy, you must use `will-change: transform` and avoid animating layout properties. Animate `transform` and `opacity` only.
43
- 5. **No Slop**: Generic components will be rejected. You are building premium, high-contrast, motion-heavy interfaces.
35
+ 1. **Write The Spec, Not The Code**: Your primary job is to generate the Markdown blueprint describing exactly how the React components, CSS, and GSAP logic should be written by `/istm-develop`.
36
+ 2. **Translate Human to Tech**: When the user says "smooth", you write `ease: power4.out`. When they say "scroll reveal", you write `ScrollTrigger: { start: "top 80%", toggleActions: "play none none reverse" }`.
37
+ 3. **DOM Performance Strictness**: Mandate `will-change: transform` in the spec. Absolutely forbid animating layout properties (`width`, `height`, `top`, `left`). Animate `transform` and `opacity` only.
38
+ 4. **Cleanup Mandate**: Every spec involving a GSAP timeline or physics listener MUST explicitly instruct the developer to kill the timeline/listener on unmount to prevent memory leaks.
39
+ 5. **Handoff**: Once you finish writing the spec, instruct the user to run `/istm-develop` to physically build it.
@@ -74,7 +74,8 @@ Pick the phase based on these signals:
74
74
 
75
75
  ### Route to the selected phase
76
76
 
77
- - Phase 1 (Greenfield Setup): Evaluate the desired aesthetic (minimal, playful, corporate, brutalist). Interview the user on primary colors and font pairings. Generate a comprehensive `design.md` with strict H1-H6 scaling and semantic color variables.
77
+ - **Step 0 (Mandatory Reading)**: Before suggesting any design or generating files, you MUST recursively read all rule files inside `istm-design/colors/`, `istm-design/styles/`, `istm-design/typography/`, and `istm-design/ux/`. You must understand these massive, rich design rules first.
78
+ - Phase 1 (Greenfield Setup): Analyze the user's prompt to extract their exact aesthetic vision. **Do NOT force them to pick from generic styles (e.g., minimal, brutalist, corporate).** If their prompt says "massive fonts and vibrant colors", use the rules from Step 0 to generate a bespoke `design.md` that perfectly captures that unique vibe with strict H1-H6 scaling and custom semantic color variables. Interview the user ONLY if the prompt is completely blank on design direction.
78
79
  - Phase 2 (Reverse Engineering): Do not interview. Read `tailwind.config.js`, `globals.css`, or equivalent. Reverse-engineer the color palette and typography scale. Hydrate `design.md`.
79
80
  - Phase 3 (Gap Fill): Read existing `design.md`. Identify missing tokens (e.g., missing success/error states). Update existing blueprints carefully.
80
81
 
@@ -1,7 +1,7 @@
1
1
  ---
2
- name: audit
2
+ name: istm-audit
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
4
- description: "Run /audit on a greenfield project, an existing codebase with missing docs, or one area (/audit src/auth) to bootstrap the project's AI context, the .istm-context/agents.md files every later skill reads. Writes tool agnostic .istm-context/agents.md plus thin CLAUDE.md pointers, adding only what is missing; never overwrites curated content."
4
+ description: "Run /istm-audit on a greenfield project, an existing codebase with missing docs, or one area (/istm-audit src/auth) to bootstrap the project's AI context, the .istm-context/agents.md files every later skill reads. Writes tool agnostic .istm-context/agents.md plus thin CLAUDE.md pointers, adding only what is missing; never overwrites curated content."
5
5
  ---
6
6
 
7
7
  ## Output style (plain words, no dashes, no hyphens)
@@ -14,11 +14,11 @@ Write everything this skill produces, files and messages alike, in plain simple
14
14
 
15
15
  The context bootstrapper: writes the `.istm-context/agents.md` files every later skill and AI tool reads.
16
16
 
17
- - Greenfield (no code yet): ask for coding standards, seed root `.istm-context/agents.md` from the answers plus the build approach (name and one line principle) from the scope header if `/scope` set one. Runs after the project is scaffolded with its chosen stack (`/scope` → `/architect` decides the stack → scaffold → `/audit`); earlier is premature.
17
+ - Greenfield (no code yet): ask for coding standards, seed root `.istm-context/agents.md` from the answers plus the build approach (name and one line principle) from the scope header if `/istm-scope` set one. Runs after the project is scaffolded with its chosen stack (`/istm-scope` → `/architect` decides the stack → scaffold → `/istm-audit`); earlier is premature.
18
18
  - Brownfield, undocumented (code, no `.istm-context/agents.md`): scan the whole project, write root `.istm-context/agents.md` and nested `<area>/.istm-context/agents.md` files, judging what is global (root) vs area specific (nested).
19
19
  - Brownfield, partially documented: check existing root and nested docs against the whole codebase; add only what is missing (new global facts, nested docs for undocumented areas); never clobber curated content.
20
20
 
21
- Does not create specs (/architect owns those), maintain files after changes (/sync owns that), or write the feature scope (/scope owns `.istm-context/scope/`).
21
+ Does not create specs (/architect owns those), maintain files after changes (/istm-sync owns that), or write the feature scope (/istm-scope owns `.istm-context/istm-scope/`).
22
22
 
23
23
  ## Context file convention (.istm-context/agents.md is canonical)
24
24
 
@@ -58,7 +58,7 @@ Gather several signals (a file count alone misleads: a scaffold inflates it, an
58
58
  2. Source count across common ecosystems (extensions like `.ts/.tsx/.js/.jsx/.py/.go/.rs/.java/.rb/.swift/.kt/.php/.cs/.dart/.ex/.exs/.scala/.c/.cpp/.h/.lua/.clj`), excluding vendored/generated dirs (`node_modules`, `.git`, `dist`, `build`) and config files (`*.config.*`).
59
59
  3. Established signals: `git log --oneline` for commit history depth; a real manifest (`package.json`, `pyproject.toml`, `go.mod`, `Cargo.toml`, `composer.json`, `*.csproj`, `pubspec.yaml`, `mix.exs`, `Gemfile`).
60
60
  4. Monorepo signal: workspace markers (`pnpm-workspace.yaml`, `turbo.json`, a `"workspaces"` field in `package.json`) or any `apps/*/package.json` / `packages/*/package.json` near the root.
61
- 5. **Workflow setup signal (`WORKFLOW_SETUP`)**: root .istm-context/agents.md is MISSING while the workflow has already decided the stack, i.e. a `.istm-context/specs/` architecture spec exists (a file with a `## Proposed stack` section), and/or `.istm-context/scope/` has a "Stack and architecture" (or similar foundational scaffold) feature. This is the intended greenfield order (`/scope` → `/architect` decides the stack → `/develop` scaffolds it → `/audit`): the project is freshly scaffolded from its chosen stack and still needs its coding standards captured. When this signal fires, the manifest and scaffold source that now exist are the scaffold, not a codebase that already existed.
61
+ 5. **Workflow setup signal (`WORKFLOW_SETUP`)**: root .istm-context/agents.md is MISSING while the workflow has already decided the stack, i.e. a `.istm-context/specs/` architecture spec exists (a file with a `## Proposed stack` section), and/or `.istm-context/istm-scope/` has a "Stack and architecture" (or similar foundational scaffold) feature. This is the intended greenfield order (`/istm-scope` → `/architect` decides the stack → `/istm-develop` scaffolds it → `/istm-audit`): the project is freshly scaffolded from its chosen stack and still needs its coding standards captured. When this signal fires, the manifest and scaffold source that now exist are the scaffold, not a codebase that already existed.
62
62
 
63
63
  Pick the phase. The order of checks matters: the workflow setup signal outranks the raw code count, because a fresh scaffold has a manifest and source files yet is still greenfield.
64
64
 
@@ -71,9 +71,9 @@ Pick the phase. The order of checks matters: the workflow setup signal outranks
71
71
  | `ROOT_MISSING`, no `WORKFLOW_SETUP`, has code (source ≥ 10 or a manifest), ≥ 2 commits and clearly real feature code (not just scaffold) | Phase 2, any language |
72
72
  | `ROOT_MISSING`, no `WORKFLOW_SETUP`, has code but it looks like untouched scaffold, or ≤ 1 commit, or you can't tell greenfield from brownfield | Phase 0, ask |
73
73
 
74
- Why this order: the workflow scaffolds a greenfield project (manifest + starter files) BEFORE `/audit` runs, so a raw code count alone would wrongly read a fresh scaffold as an existing codebase and skip the coding standards questions. The workflow setup signal (a stack spec with no root .istm-context/agents.md) catches exactly that case and routes it to greenfield. Only when there is real feature code, real history, and no in-progress workflow setup is it truly brownfield (Phase 2). Anything ambiguous falls to Phase 0 and asks; never default a maybe greenfield project to brownfield.
74
+ Why this order: the workflow scaffolds a greenfield project (manifest + starter files) BEFORE `/istm-audit` runs, so a raw code count alone would wrongly read a fresh scaffold as an existing codebase and skip the coding standards questions. The workflow setup signal (a stack spec with no root .istm-context/agents.md) catches exactly that case and routes it to greenfield. Only when there is real feature code, real history, and no in-progress workflow setup is it truly brownfield (Phase 2). Anything ambiguous falls to Phase 0 and asks; never default a maybe greenfield project to brownfield.
75
75
 
76
- Monorepo (`MONOREPO=yes`): root plus a light stub per workspace, deepen on demand. Each workspace (`apps/*`, `packages/*`) is a first class area; its primary doc lives at the workspace root (`packages/api/.istm-context/agents.md`), never buried deeper. A whole-repo run does not deep scan every workspace (too expensive, premature); write the repo root `.istm-context/agents.md` (monorepo wide tooling, shared conventions) plus a light stub `.istm-context/agents.md` per workspace from its manifest, no code scan, with root pointers. The full conventions/gotchas/key files scan happens when the engineer runs `/audit packages/api` (Phase 3) or first builds there, never all upfront. A spot inside a workspace that warrants its own doc (`packages/ui/src/mdx/`) gets one in addition to the workspace root doc, linked from it. A doc already there, buried in a workspace with no workspace root doc: ask: "`packages/ui` has a context file at `src/mdx/` but none at its root. Move it up to `packages/ui/.istm-context/agents.md`, or keep it as a nested doc under a new `packages/ui/.istm-context/agents.md`?" On move: relocate it to the workspace root. On keep nested: create the workspace root `.istm-context/agents.md` AND keep the deep one, linking it from the root doc. Migrate legacy `CLAUDE.md` content per the convention above. Apply `MONOREPO=yes` plus the workspace list as you write.
76
+ Monorepo (`MONOREPO=yes`): root plus a light stub per workspace, deepen on demand. Each workspace (`apps/*`, `packages/*`) is a first class area; its primary doc lives at the workspace root (`packages/api/.istm-context/agents.md`), never buried deeper. A whole-repo run does not deep scan every workspace (too expensive, premature); write the repo root `.istm-context/agents.md` (monorepo wide tooling, shared conventions) plus a light stub `.istm-context/agents.md` per workspace from its manifest, no code scan, with root pointers. The full conventions/gotchas/key files scan happens when the engineer runs `/istm-audit packages/api` (Phase 3) or first builds there, never all upfront. A spot inside a workspace that warrants its own doc (`packages/ui/src/mdx/`) gets one in addition to the workspace root doc, linked from it. A doc already there, buried in a workspace with no workspace root doc: ask: "`packages/ui` has a context file at `src/mdx/` but none at its root. Move it up to `packages/ui/.istm-context/agents.md`, or keep it as a nested doc under a new `packages/ui/.istm-context/agents.md`?" On move: relocate it to the workspace root. On keep nested: create the workspace root `.istm-context/agents.md` AND keep the deep one, linking it from the root doc. Migrate legacy `CLAUDE.md` content per the convention above. Apply `MONOREPO=yes` plus the workspace list as you write.
77
77
 
78
78
  Legacy migration (any phase): on `ROOT_LEGACY`, before proceeding ask permission: "I found a `CLAUDE.md` with project context but no `.istm-context/agents.md`. I'll move its content into a new `.istm-context/agents.md` (so all tools read it) and replace `CLAUDE.md` with a pointer. Proceed?" On yes: copy the content verbatim into `.istm-context/agents.md`, then replace `CLAUDE.md` with the pointer; `.istm-context/agents.md` now exists, so continue as Phase 4 (gap-fill). On no: leave both untouched and continue without migrating. Same for any nested `<area>/CLAUDE.md`.
79
79
 
@@ -4,7 +4,7 @@ You, the main thread, read and follow this when you write the `.istm-context/age
4
4
 
5
5
  ---
6
6
 
7
- You are running /audit in **PHASE** mode. Use your Read, Bash, Write, and Edit tools freely.
7
+ You are running /istm-audit in **PHASE** mode. Use your Read, Bash, Write, and Edit tools freely.
8
8
 
9
9
  ## Canonical context file: .istm-context/agents.md (+ a CLAUDE.md pointer)
10
10
 
@@ -27,7 +27,7 @@ Hard rules:
27
27
 
28
28
  ## Stamp what you write, so curated content is knowable
29
29
 
30
- Every `.istm-context/agents.md` this skill creates ends with the drafted by line in the templates below. It exists so a later run (this skill or `/sync`) can tell what a tool wrote from what a human wrote, instead of guessing.
30
+ Every `.istm-context/agents.md` this skill creates ends with the drafted by line in the templates below. It exists so a later run (this skill or `/istm-sync`) can tell what a tool wrote from what a human wrote, instead of guessing.
31
31
 
32
32
  - **Creating a file**: end it with the drafted by line, exactly as the template shows.
33
33
  - **Gap filling a file that still carries the line**: the untouched parts are yours to correct; add or fix facts surgically, and leave the line in place.
@@ -37,22 +37,22 @@ The stamp records provenance, not permission. It never licenses overwriting a li
37
37
 
38
38
  ## The mirrored root fields
39
39
 
40
- <!-- ROOT-FIELD-CONTRACT:START (identical in /audit and /sync; edit both or neither) -->
40
+ <!-- ROOT-FIELD-CONTRACT:START (identical in /istm-audit and /istm-sync; edit both or neither) -->
41
41
  Root `.istm-context/agents.md` carries two mirrored fields. Each has exactly one source of truth outside the file, and no skill may invent a value for either:
42
42
 
43
43
  - `## Stack` mirrors the architecture spec, the one under `.istm-context/specs/` with a `## Proposed stack` section.
44
- - `## Build approach` mirrors the scope header's build approach line, the one `/scope` records.
44
+ - `## Build approach` mirrors the scope header's build approach line, the one `/istm-scope` records.
45
45
 
46
46
  Three rules bind every skill that touches them. Never overwrite curated prose in either field. Fill a field only when it is missing or still a placeholder. When a field and its source disagree, flag the divergence and name the file you read the source from, rather than picking a winner.
47
47
  <!-- ROOT-FIELD-CONTRACT:END -->
48
48
 
49
- What `/audit` does with them (every phase that writes or audits root):
49
+ What `/istm-audit` does with them (every phase that writes or audits root):
50
50
 
51
- - **Creating root** (greenfield, whole-repo): populate `## Stack` from the architecture spec if it exists (the source of truth, even on greenfield with no code); else derive from the code/manifest, else `<to be filled>`. Seed `## Build approach` from the scope header if one exists, a short line: name + one line principle; if no scope, or none set, write `<TBD, set by /scope>` rather than guessing.
52
- - **`## Git`** (from the git integration question): write the engineer's choice as a small block the other skills read, e.g. `- integration: on` / `- branch prefix: feat/` / `- commit: per-milestone`, or just `- integration: off`. Absent means off. It is a recorded preference, not a mirrored source of truth like Stack/Build approach; `/develop` reads it to branch and commit, `/document` to gate the PR.
51
+ - **Creating root** (greenfield, whole-repo): populate `## Stack` from the architecture spec if it exists (the source of truth, even on greenfield with no code); else derive from the code/manifest, else `<to be filled>`. Seed `## Build approach` from the scope header if one exists, a short line: name + one line principle; if no scope, or none set, write `<TBD, set by /istm-scope>` rather than guessing.
52
+ - **`## Git`** (from the git integration question): write the engineer's choice as a small block the other skills read, e.g. `- integration: on` / `- branch prefix: feat/` / `- commit: per-milestone`, or just `- integration: off`. Absent means off. It is a recorded preference, not a mirrored source of truth like Stack/Build approach; `/istm-develop` reads it to branch and commit, `/istm-document` to gate the PR.
53
53
  - **Auditing existing root** (gap-fill): either field missing or placeholder → ROOT_GAPS; either field contradicting its source → CONTRADICTIONS.
54
54
 
55
- This keeps the `/architect → /audit` handoff order-independent: root absorbs the decided stack whenever audit runs.
55
+ This keeps the `/architect → /istm-audit` handoff order-independent: root absorbs the decided stack whenever audit runs.
56
56
 
57
57
  ## Phase
58
58
 
@@ -107,19 +107,19 @@ New project, possibly just scaffolded from its chosen stack (there may be a mani
107
107
 
108
108
  **Step 1: Minimal discovery**
109
109
 
110
- With your file tools, list the top couple of project levels (excluding `.git`); read the manifest if present (note language, package manager). Check `.istm-context/specs/` for numbered specs (`NNNN-*.md`); if an architecture spec exists (`## Proposed stack` section), read it: the stack is already decided via `/architect`, use it for `## Stack`, no placeholders, never contradict it. Check `.istm-context/scope/` (or `.workflow/scope/`): if the scope header records a build approach (name + one line principle), capture it verbatim as the `## Build approach` seed; else `<TBD, set by /scope>`.
110
+ With your file tools, list the top couple of project levels (excluding `.git`); read the manifest if present (note language, package manager). Check `.istm-context/specs/` for numbered specs (`NNNN-*.md`); if an architecture spec exists (`## Proposed stack` section), read it: the stack is already decided via `/architect`, use it for `## Stack`, no placeholders, never contradict it. Check `.istm-context/istm-scope/` (or `.workflow/istm-scope/`): if the scope header records a build approach (name + one line principle), capture it verbatim as the `## Build approach` seed; else `<TBD, set by /istm-scope>`.
111
111
 
112
112
  **Step 2: Create root .istm-context/agents.md**
113
113
 
114
- Use the template below. `## Stack`: spec, else findings, else `<to be filled>`. `## Build approach`: scope header, else `<TBD, set by /scope>`. `## Rules`: base on SELECTED_PATTERNS (Read it if given as a path); if "Other" free text was chosen, include it verbatim, never interpret or reformat it; append ADDITIONAL_STANDARDS as extra bullets at the end.
114
+ Use the template below. `## Stack`: spec, else findings, else `<to be filled>`. `## Build approach`: scope header, else `<TBD, set by /istm-scope>`. `## Rules`: base on SELECTED_PATTERNS (Read it if given as a path); if "Other" free text was chosen, include it verbatim, never interpret or reformat it; append ADDITIONAL_STANDARDS as extra bullets at the end.
115
115
 
116
- If `INSTALLED_SKILLS_OR_NONE` is provided, write a `## Agent skills` section (template above): ONE bullet per installed skill, `- [<skill>](<skills-dir>/<skill>/): `<owner>/<repo>`, <what it covers>`, so a later skill loads only the ones a task needs, never a single dense line of names. Detect the project's real skills directory (`.claude/skills/` on Claude Code, `.agents/skills/` on other agents, or a plain `skills/`) and use it in the link; never hardcode a Claude only path, since every tool reads this file. Keep the registry source `<owner>/<repo>` on each bullet as the tool agnostic identity a different agent resolves in its own dir. If `DECLINED_TOOLS_OR_NONE` is provided, add a compact `Declined: <tool>, <tool>` line in that section (a decline has nothing to load, so it needs no location; it stops a later `/audit` or `/architect` offering it again). If `MCP_SERVERS_OR_NONE`, add a compact `MCP servers: <server> (connected|recommended)` line (a connected service has no local file to open). Project wide tech at root; area specific at that area's nested doc, using the same `## Agent skills` section.
116
+ If `INSTALLED_SKILLS_OR_NONE` is provided, write a `## Agent skills` section (template above): ONE bullet per installed skill, `- [<skill>](<skills-dir>/<skill>/): `<owner>/<repo>`, <what it covers>`, so a later skill loads only the ones a task needs, never a single dense line of names. Detect the project's real skills directory (`.claude/skills/` on Claude Code, `.agents/skills/` on other agents, or a plain `skills/`) and use it in the link; never hardcode a Claude only path, since every tool reads this file. Keep the registry source `<owner>/<repo>` on each bullet as the tool agnostic identity a different agent resolves in its own dir. If `DECLINED_TOOLS_OR_NONE` is provided, add a compact `Declined: <tool>, <tool>` line in that section (a decline has nothing to load, so it needs no location; it stops a later `/istm-audit` or `/architect` offering it again). If `MCP_SERVERS_OR_NONE`, add a compact `MCP servers: <server> (connected|recommended)` line (a connected service has no local file to open). Project wide tech at root; area specific at that area's nested doc, using the same `## Agent skills` section.
117
117
 
118
118
  Monorepo: keep root to monorepo wide concerns (workspace tooling `pnpm`/`turbo`/`nx`, shared standards, a `## Context files` section pointing at each workspace's nested doc); per app stack does not go in root.
119
119
 
120
120
  **Step 2b: Per workspace nested .istm-context/agents.md (monorepo only)**
121
121
 
122
- If `MONOREPO_OR_NO` is `yes`: for each listed workspace (`apps/*`, `packages/*`), read its manifest. Even with no features built, the scaffold declares the workspace's stack and commands; capture them so `/architect` and `/develop` read them from the workspace's own doc (they won't look in root). Write `<workspace>/.istm-context/agents.md` with the nested template (`## Stack` from its manifest, `## Commands` from its scripts, scoped, e.g. `pnpm --filter <name> dev`, root `## Rules` inherited by reference), plus the sibling `<workspace>/CLAUDE.md` pointer and a pointer line under root's `## Context files`. Skip an empty placeholder workspace with no manifest.
122
+ If `MONOREPO_OR_NO` is `yes`: for each listed workspace (`apps/*`, `packages/*`), read its manifest. Even with no features built, the scaffold declares the workspace's stack and commands; capture them so `/architect` and `/istm-develop` read them from the workspace's own doc (they won't look in root). Write `<workspace>/.istm-context/agents.md` with the nested template (`## Stack` from its manifest, `## Commands` from its scripts, scoped, e.g. `pnpm --filter <name> dev`, root `## Rules` inherited by reference), plus the sibling `<workspace>/CLAUDE.md` pointer and a pointer line under root's `## Context files`. Skip an empty placeholder workspace with no manifest.
123
123
 
124
124
  **Step 3: Report** (format at the bottom); list every per workspace doc created.
125
125
 
@@ -146,7 +146,7 @@ Stack, runtime, framework; daily commands (install, dev, build, test); conventio
146
146
 
147
147
  **Step 4: Create nested .istm-context/agents.md**
148
148
 
149
- Monorepo (`MONOREPO_OR_NO` = yes): don't judge or deep scan. Every workspace (`apps/*`, `packages/*`) gets a light stub `.istm-context/agents.md` at its root (`## Stack` + `## Commands` from its manifest, scoped, e.g. `pnpm -F <name> …`, plus a one line overview), the sibling `CLAUDE.md` pointer, and a root `## Context files` pointer. No code scan; deep conventions come later via `/audit <workspace>`. A doc buried below a workspace root (e.g. `packages/ui/src/mdx/`) with no root doc: follow the relocation rule the main agent surfaced (move up, or root doc + linked nested). Skip the judgment step below.
149
+ Monorepo (`MONOREPO_OR_NO` = yes): don't judge or deep scan. Every workspace (`apps/*`, `packages/*`) gets a light stub `.istm-context/agents.md` at its root (`## Stack` + `## Commands` from its manifest, scoped, e.g. `pnpm -F <name> …`, plus a one line overview), the sibling `CLAUDE.md` pointer, and a root `## Context files` pointer. No code scan; deep conventions come later via `/istm-audit <workspace>`. A doc buried below a workspace root (e.g. `packages/ui/src/mdx/`) with no root doc: follow the relocation rule the main agent surfaced (move up, or root doc + linked nested). Skip the judgment step below.
150
150
 
151
151
  Single repo: identify the major areas/modules (e.g. `src/auth`, `src/payments`, `src/api`, `src/jobs`); judge each. Warrants a nested doc: distinct conventions, not obvious rules, local commands, external integrations, or gotchas a developer must know before touching it. Does not: a simple module with no surprises, or root already covers it (skip; never one per folder). For each warranted area: write `<area>/.istm-context/agents.md` with the nested template, its sibling `<area>/CLAUDE.md` pointer, and one pointer line in root's `## Context files` via Edit:
152
152
  ```
@@ -208,7 +208,7 @@ With your file tools, list the project tree a few levels deep, skipping vendored
208
208
  - (a) Global facts missing from root: a daily command, stack element, project wide rule, or the build approach (in the scope header but absent from root) that's true but not recorded. Collect each as a `ROOT_GAPS` line (exact markdown + target section) and apply it only with the engineer's permission (the gap handling step in `modes/gapfill.md`), never silently, since a root line may be curated.
209
209
  - (b) Undocumented areas: a major area with distinct conventions/gotchas and no nested .istm-context/agents.md. Create the nested doc (nested template + sibling CLAUDE.md pointer) and add its root pointer line via Edit (safe to do directly: creating, not overwriting).
210
210
  - (c) Stale/incomplete nested docs: an existing nested .istm-context/agents.md missing something now true of its area. Return as `PROPOSED_ADDITIONS`; do NOT edit it yourself.
211
- - (d) Contradictions: a doc states something the codebase or its governing records disprove (documented test runner or framework isn't the one actually used; `## Stack` conflicts with the architecture spec; `## Build approach` differs from the scope header; a documented command no longer exists). Worse than a gap, the docs are actively wrong; do NOT fix it automatically (the line may be curated). Collect each as a `CONTRADICTIONS` entry naming the doc, what it says, and what the code/spec/scope actually shows; surface these to the human, don't fix them automatically.
211
+ - (d) Contradictions: a doc states something the codebase or its governing records disprove (documented test runner or framework isn't the one actually used; `## Stack` conflicts with the architecture spec; `## Build approach` differs from the scope header; a documented command no longer exists). Worse than a gap, the docs are actively wrong; do NOT fix it automatically (the line may be curated). Collect each as a `CONTRADICTIONS` entry naming the doc, what it says, and what the code/spec/istm-scope actually shows; surface these to the human, don't fix them automatically.
212
212
 
213
213
  Be conservative: flag only durable findings you're confident about; when unsure, leave it. Do not flag implementation detail, TODOs, or anything that churns.
214
214
 
@@ -232,7 +232,7 @@ Be conservative: flag only durable findings you're confident about; when unsure,
232
232
 
233
233
  <The project's default build strategy, a short line: name + one line principle. A project wide
234
234
  convention every skill reads (like the stack). Seeded from the scope header; `<TBD, set by
235
- /scope>` if none is set yet. The approach is one of:
235
+ /istm-scope>` if none is set yet. The approach is one of:
236
236
  - **Tracer Bullet**, vertical end to end slices, thin but complete through every layer
237
237
  - **Skateboard**, ship the thinnest usable whole, then grow it
238
238
  - **Facade**, UI first shell, then wire the real behavior behind it (prototype led)
@@ -268,7 +268,7 @@ Stored in `.istm-context/specs/`. Format: `.istm-context/specs/NNNN-title.md`.
268
268
  ## Agent skills
269
269
 
270
270
  <Installed Agent Skills that carry this project's tool conventions. ONE bullet per skill so a
271
- later skill (/architect, /develop) opens only the ones a task needs, never a single dense line
271
+ later skill (/architect, /istm-develop) opens only the ones a task needs, never a single dense line
272
272
  of names, and omit the whole section if none installed. Each bullet: the skill name, its
273
273
  registry source `<owner>/<repo>` (the stable, tool agnostic identity), a one line note on what
274
274
  it governs, and a link to where it lives IN THIS PROJECT. The skills directory is agent specific:
@@ -280,14 +280,14 @@ Stored in `.istm-context/specs/`. Format: `.istm-context/specs/NNNN-title.md`.
280
280
 
281
281
  <Then, only if present, a compact line each (a declined tool has nothing to load, and an MCP
282
282
  server is a connected service with no local file, so both stay lines, not bullets):
283
- `Declined: <tool>, <tool>` (offered before, not wanted; keep so a later /audit or /architect
283
+ `Declined: <tool>, <tool>` (offered before, not wanted; keep so a later /istm-audit or /architect
284
284
  does not offer it again) · `MCP servers: <server> (connected), <server> (recommended)`>
285
285
 
286
286
  ## Context files
287
287
 
288
288
  <!-- Nested .istm-context/agents.md files are listed here as they are created -->
289
289
 
290
- _Drafted by /audit from the repo, worth a quick human pass. Edit freely: once a line stops matching this draft, later runs treat it as curated and will flag rather than overwrite it._
290
+ _Drafted by /istm-audit from the repo, worth a quick human pass. Edit freely: once a line stops matching this draft, later runs treat it as curated and will flag rather than overwrite it._
291
291
 
292
292
  === ROOT .istm-context/agents.md TEMPLATE END ===
293
293
 
@@ -331,7 +331,7 @@ _Drafted by /audit from the repo, worth a quick human pass. Edit freely: once a
331
331
 
332
332
  <Links once specs exist, omit section if none yet>
333
333
 
334
- _Drafted by /audit from the repo, worth a quick human pass. Edit freely: once a line stops matching this draft, later runs treat it as curated and will flag rather than overwrite it._
334
+ _Drafted by /istm-audit from the repo, worth a quick human pass. Edit freely: once a line stops matching this draft, later runs treat it as curated and will flag rather than overwrite it._
335
335
  ```
336
336
 
337
337
  ---
@@ -357,7 +357,7 @@ Only propose what is absent and genuinely useful. Do not rewrite existing conten
357
357
  ## Report format (end of every phase)
358
358
 
359
359
  ```
360
- ## /audit complete
360
+ ## /istm-audit complete
361
361
 
362
362
  **Phase**: <greenfield | whole-repo | area | gap-fill>
363
363
  **Scope**: <what was explored>
@@ -1,6 +1,6 @@
1
1
  # Audit Mode: area scan (Phase 3)
2
2
 
3
- Trigger: a path or area name was given (e.g. `/audit src/auth`).
3
+ Trigger: a path or area name was given (e.g. `/istm-audit src/auth`).
4
4
 
5
5
  Pre-flight additionally:
6
6
  1. Check the area path exists. If not: stop immediately, tell the engineer "Path `<area>` not found. Check the path and try again.", and do nothing further.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Trigger: the preliminary check classified greenfield, including the workflow setup case (a stack spec exists but no root .istm-context/agents.md, so the project is freshly scaffolded and still needs its standards), or Phase 0 → `New project`. There may already be a manifest and scaffold source; that is the scaffold, not an already existing codebase, so still ask the standards.
4
4
 
5
- Step 1, ask coding patterns AND tooling. The main thread asks, as decision panels, up to 4 per round, as many rounds as it takes. Every panel has exactly one option marked `(recommended)` and always ends with a free text custom input slot (Claude Code's picker adds that "Other" automatically; in a plain text fallback add it explicitly as the last option). Be thorough, not minimal; this is the one place conventions and tooling get set, so grill the engineer on every convention and tooling choice rather than assuming a default. First read the real scaffolded project (manifest, existing config, tools the scaffold installed), then tailor every question: skip one the stack already settles, list an already installed tool first as the recommended pick, phrase options for the actual language and framework. Answers are captured into `.istm-context/agents.md`. `/audit` records the choices, installs nothing; installing (packages, config files, hooks that run before commit, CI) is the `/develop tooling` sub task that follows, but ask the tooling questions here where the choice is made and recorded.
5
+ Step 1, ask coding patterns AND tooling. The main thread asks, as decision panels, up to 4 per round, as many rounds as it takes. Every panel has exactly one option marked `(recommended)` and always ends with a free text custom input slot (Claude Code's picker adds that "Other" automatically; in a plain text fallback add it explicitly as the last option). Be thorough, not minimal; this is the one place conventions and tooling get set, so grill the engineer on every convention and tooling choice rather than assuming a default. First read the real scaffolded project (manifest, existing config, tools the scaffold installed), then tailor every question: skip one the stack already settles, list an already installed tool first as the recommended pick, phrase options for the actual language and framework. Answers are captured into `.istm-context/agents.md`. `/istm-audit` records the choices, installs nothing; installing (packages, config files, hooks that run before commit, CI) is the `/istm-develop tooling` sub task that follows, but ask the tooling questions here where the choice is made and recorded.
6
6
 
7
7
  Architecture & code conventions:
8
8
  - Architecture style: present all four preset options without reading their files into context yet: Clean Architecture (`patterns/clean-.istm-context/architecture.md`), Functional (`patterns/functional.md`), Domain Driven Design (`patterns/domain-driven.md`), and SOLID OOP (`patterns/solid-oop.md`). At write time (Step 3) you read only the chosen preset file.
@@ -10,10 +10,10 @@ Architecture & code conventions:
10
10
  - Module & folder structure: `folder-by-feature` (colocate by feature) · `by-layer` (controllers/services/repos) · match what the scaffold already set.
11
11
  - Additional code standards (multi select): documented public APIs · a consistent error handling pattern · validate env vars at startup · named exports only (no default exports) · consistent naming conventions · accessibility baseline on UI (WCAG AA) · conventional commit messages.
12
12
 
13
- Tooling (asked here, installed by `/develop tooling`):
13
+ Tooling (asked here, installed by `/istm-develop tooling`):
14
14
  - Linting & formatting (adaptive): the standard linter + formatter for this stack (suggested; list an already installed one first) · a specific alternative · minimal for now.
15
15
  - Checks before commit: lint + format + typecheck on every commit (suggested) · format only · none.
16
- - Testing gate (captured as the convention, the runner is set up by `/test`): unit + integration with a framework (suggested) · typecheck + manual `/check verify` only · tests first (TDD).
16
+ - Testing gate (captured as the convention, the runner is set up by `/istm-test`): unit + integration with a framework (suggested) · typecheck + manual `/istm-check verify` only · tests first (TDD).
17
17
  - Continuous integration: a basic CI check on push (lint, typecheck, test) (suggested) · not yet · already configured.
18
18
  - Git integration (recorded as the `## Git` block in .istm-context/agents.md): let the workflow branch per feature, commit as milestones land, and drive PRs (`on`, suggested for solo/most) · manage git yourself (`off`). If `on`, also capture `branch prefix` (default `feat/`) and `commit` granularity (`per-milestone` (suggested) · `end-of-build` · `manual`). Push and PRs always confirm regardless. **On `on`, if the project is not yet a git repo (`git rev-parse` fails), run `git init` now and offer an initial commit of the scaffold and docs, so the repo exists from the moment integration is enabled.** On `off`, never init; the engineer owns git.
19
19
 
@@ -21,4 +21,4 @@ Adapt the list: drop what doesn't apply (no CI question for a throwaway prototyp
21
21
 
22
22
  Step 2, resolve SELECTED_PATTERNS: a named pattern → the absolute path of the matching `patterns/*.md` file (path only, do not inline its contents). "Other" (free text) → the engineer's exact typed text, passed inline (no file).
23
23
 
24
- Step 3, run the Tool skills sweep (`modes/tool-skills.md`, whose web/registry discovery runs in a `researcher` subagent), then write the files yourself. Read `agent-prompt.md` and the selected pattern preset file now, and follow the GREENFIELD phase instructions to write root `.istm-context/agents.md` + its `CLAUDE.md` pointer. The inputs to apply: `PHASE=greenfield`; `SELECTED_PATTERNS=<pattern file path, or the Other free text>`; `ADDITIONAL_STANDARDS=<all the other Step 1 selections: code standards, type strictness, folder structure, AND the tooling choices (lint/format, pre-commit, testing gate, CI), AND the git integration choice written as a `## Git` block (`integration`, `branch prefix`, `commit`)>`; `MONOREPO_OR_NO` (`yes, apps: web, api, …` if detected); plus the sweep's `INSTALLED_SKILLS` / `DECLINED_TOOLS` for the `## Agent skills` section (one bullet per skill with its location, per `agent-prompt.md`). Capture the tooling choices clearly (a short `## Tooling` note or explicit Rules lines) so `/develop tooling` installs exactly what was chosen. Per `agent-prompt.md`, seed `## Stack` from the architecture spec (the workflow setup case always has one), seed `## Build approach` from the scope header (else `<TBD, set by /scope>`), and add per workspace nested docs if `MONOREPO=yes`.
24
+ Step 3, run the Tool skills sweep (`modes/tool-skills.md`, whose web/registry discovery runs in a `researcher` subagent), then write the files yourself. Read `agent-prompt.md` and the selected pattern preset file now, and follow the GREENFIELD phase instructions to write root `.istm-context/agents.md` + its `CLAUDE.md` pointer. The inputs to apply: `PHASE=greenfield`; `SELECTED_PATTERNS=<pattern file path, or the Other free text>`; `ADDITIONAL_STANDARDS=<all the other Step 1 selections: code standards, type strictness, folder structure, AND the tooling choices (lint/format, pre-commit, testing gate, CI), AND the git integration choice written as a `## Git` block (`integration`, `branch prefix`, `commit`)>`; `MONOREPO_OR_NO` (`yes, apps: web, api, …` if detected); plus the sweep's `INSTALLED_SKILLS` / `DECLINED_TOOLS` for the `## Agent skills` section (one bullet per skill with its location, per `agent-prompt.md`). Capture the tooling choices clearly (a short `## Tooling` note or explicit Rules lines) so `/istm-develop tooling` installs exactly what was chosen. Per `agent-prompt.md`, seed `## Stack` from the architecture spec (the workflow setup case always has one), seed `## Build approach` from the scope header (else `<TBD, set by /istm-scope>`), and add per workspace nested docs if `MONOREPO=yes`.
@@ -4,7 +4,7 @@ Read this from the greenfield mode (after scaffold) and the whole-repo mode, onc
4
4
 
5
5
  ## Step 1: Ask first (the consent gate)
6
6
 
7
- <!-- TOOL-CONSENT:START (identical in /architect, /audit and /sync; edit all or none) -->
7
+ <!-- TOOL-CONSENT:START (identical in /architect, /istm-audit and /istm-sync; edit all or none) -->
8
8
  **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.
9
9
  <!-- TOOL-CONSENT:END -->
10
10
 
@@ -1,8 +1,8 @@
1
1
  ---
2
- name: check
2
+ name: istm-check
3
3
  allowed-tools: Bash, Read, Grep, Glob, Write, Agent
4
4
  argument-hint: [verify | review]
5
- description: "Run /check before merge to confirm a change is sound. Two modes: `/check verify` drives the real app and proves behavior against the spec (every acceptance criterion met, every specced surface built); `/check review` runs a senior code review on a different model than wrote the code. Verify after /develop, review before a PR. Writes findings to .istm-context/reviews/; never edits your code."
5
+ description: "Run /istm-check before merge to confirm a change is sound. Two modes: `/istm-check verify` drives the real app and proves behavior against the spec (every acceptance criterion met, every specced surface built); `/istm-check review` runs a senior code review on a different model than wrote the code. Verify after /istm-develop, review before a PR. Writes findings to .istm-context/reviews/; never edits your code."
6
6
  ---
7
7
 
8
8
  ## Output style (plain words, no dashes, no hyphens)
@@ -13,20 +13,20 @@ Write everything this skill produces, files and messages alike, in plain simple
13
13
 
14
14
  ## What this skill does
15
15
 
16
- `/check` is the gate before merge. It confirms a change is sound in two different ways, run as two modes; they are separate jobs and you usually run both, verify first:
16
+ `/istm-check` is the gate before merge. It confirms a change is sound in two different ways, run as two modes; they are separate jobs and you usually run both, verify first:
17
17
 
18
- - **`verify`** (runtime proof): run the real app and watch the change behave. Proves the feature actually works and conforms to the spec (every acceptance criterion met, every specced surface built), which green tests never reveal. Read only on code, owns no durable files. Runs on the main thread. Typically after `/develop`.
18
+ - **`verify`** (runtime proof): run the real app and watch the change behave. Proves the feature actually works and conforms to the spec (every acceptance criterion met, every specced surface built), which green tests never reveal. Read only on code, owns no durable files. Runs on the main thread. Typically after `/istm-develop`.
19
19
  - **`review`** (fresh model code review): a rigorous senior read of the diff, on a **different model than wrote the code**, because a model reviewing its own output shares its blind spots. Writes findings ranked by severity to `.istm-context/reviews/`. Read only on code. Typically before opening a PR.
20
20
 
21
- Neither mode edits your code. `verify` points failures at `/debug` or `/develop`; `review` reports findings for the implementer to fix.
21
+ Neither mode edits your code. `verify` points failures at `/istm-debug` or `/istm-develop`; `review` reports findings for the implementer to fix.
22
22
 
23
23
  ## Pick the mode (route before doing anything else)
24
24
 
25
- This is the first step, always, before reading any mode file or touching the repo. Look at what followed `/check`:
25
+ This is the first step, always, before reading any mode file or touching the repo. Look at what followed `/istm-check`:
26
26
 
27
27
  - The argument **starts with `verify` (or `run`)** → runtime proof. Read `modes/verify.md` and follow it fully. Pass any remaining arguments (a feature name, a scope) through.
28
- - The argument **starts with `review`** → code review. Read `modes/review.md` and follow it fully. Pass the review steering through unchanged (e.g. `/check review with opus`, `/check review uncommitted`).
29
- - **No mode word, or anything ambiguous** (bare `/check`, or a feature name with no mode like `/check auth`) → do NOT guess and do NOT default to a mode. Show the two options as a plain text panel and **stop and wait** for the engineer to type their choice. This is the case that makes `/check` safe to type with nothing after it.
28
+ - The argument **starts with `review`** → code review. Read `modes/review.md` and follow it fully. Pass the review steering through unchanged (e.g. `/istm-check review with opus`, `/istm-check review uncommitted`).
29
+ - **No mode word, or anything ambiguous** (bare `/istm-check`, or a feature name with no mode like `/istm-check auth`) → do NOT guess and do NOT default to a mode. Show the two options as a plain text panel and **stop and wait** for the engineer to type their choice. This is the case that makes `/istm-check` safe to type with nothing after it.
30
30
 
31
31
  **How to present the choice (plain text, works on every agent, no interactive modal):**
32
32
 
@@ -34,14 +34,14 @@ Print exactly this, then stop and wait for the reply. Do not proceed, do not ass
34
34
 
35
35
  ```
36
36
  Which check do you want to run? Type one:
37
- • verify run the real app and prove the change works against its spec (usually right after /develop)
37
+ • verify run the real app and prove the change works against its spec (usually right after /istm-develop)
38
38
  • review a fresh model senior read of the diff, ranked findings (usually right before a PR)
39
39
  • both verify first, then review
40
40
  ```
41
41
 
42
42
  Do not use an interactive picker or modal for this; it is a typed choice shown inline, so it behaves the same in every AI tool. (The `argument-hint` in this skill's frontmatter also surfaces `verify | review` in Claude Code's own autocomplete as you type, before submit; other tools ignore that field, which is why this inline panel is the portable path.)
43
43
 
44
- If a feature name was passed with no mode (`/check auth`), carry it through as the target once the engineer picks the mode; still ask the mode.
44
+ If a feature name was passed with no mode (`/istm-check auth`), carry it through as the target once the engineer picks the mode; still ask the mode.
45
45
 
46
46
  Do not mix the two in one run. If the engineer types **both**, do `verify` first (confirm it works), and only then offer `review` as the next step.
47
47