@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.
Files changed (50) hide show
  1. package/CODE_OF_CONDUCT.md +47 -0
  2. package/LICENSE +30 -0
  3. package/README.md +16 -8
  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 +1 -1
@@ -0,0 +1,47 @@
1
+ # The @istmx/skills Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open, welcoming, and hyper-collaborative environment, we as contributors and maintainers pledge to make participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We are building the future of **Agentic AI Orchestration**, and we believe that the best AI tools are built by diverse, respectful, and highly collaborative human communities.
8
+
9
+ ## The AI Collaboration Standard
10
+
11
+ Because this repository deals directly with Artificial Intelligence and LLM Orchestration, we have specific standards for contribution:
12
+
13
+ 1. **Knowledge Sharing**: We welcome all contributions that make our AI skills smarter. If you have built a great prompt template, a new motion workflow, or a structural framework rule, share it! We encourage opening PRs to refine our `SKILL.md` rules.
14
+ 2. **Deterministic Quality**: When proposing changes to the AI instructions, aim for deterministic, anti-slop rules. We want to guide the AI to be highly professional, not generic.
15
+ 3. **Ethical AI Usage**: We do not support modifying these skills to generate malicious code, spam, or harmful content.
16
+
17
+ ## Our Standards
18
+
19
+ Examples of behavior that contributes to a positive environment include:
20
+
21
+ * Demonstrating empathy and kindness toward other people.
22
+ * Sharing knowledge openly (e.g., sharing how you crafted a perfect AI prompt).
23
+ * Being respectful of differing opinions and coding paradigms.
24
+ * Giving and gracefully accepting constructive feedback.
25
+ * Accepting responsibility and apologizing to those affected by our mistakes.
26
+
27
+ Examples of unacceptable behavior include:
28
+
29
+ * The use of sexualized language or imagery.
30
+ * Trolling, insulting/derogatory comments, and personal or political attacks.
31
+ * Public or private harassment.
32
+ * Publishing others' private information without explicit permission.
33
+ * Weaponizing the AI orchestrators for malicious intent.
34
+
35
+ ## Enforcement Responsibilities
36
+
37
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
38
+
39
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct.
40
+
41
+ ## Scope
42
+
43
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
44
+
45
+ ## Contact
46
+
47
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at `roaringmoon07@gmail.com`. All complaints will be reviewed and investigated promptly and fairly.
package/LICENSE ADDED
@@ -0,0 +1,30 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aryan
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
22
+
23
+ ---
24
+
25
+ ### AI-Generated Output & Asset Disclaimer
26
+
27
+ For clarity regarding the use of this orchestration framework:
28
+ 1. **Framework Ownership**: The `@istmx/skills` framework (the scripts, prompts, and CLI tools provided in this repository) is licensed under the MIT License above.
29
+ 2. **Output Ownership**: Any application code, UI design, markdown files, architecture specifications, or text generated by an AI model (e.g., Claude, OpenAI, Gemini) as a result of using this framework is **entirely owned by the user**. We claim absolutely no ownership, copyright, or licensing restrictions over the software you build using these skills.
30
+ 3. **Liability**: The maintainers of this repository are not liable for the code generated by the AI models, nor for any hallucinations, vulnerabilities, or bugs introduced by the execution of these orchestrators. Always review AI-generated code before deploying to production.
package/README.md CHANGED
@@ -31,10 +31,10 @@ These master brains structure your entire application.
31
31
  | Orchestrator | Domain | Description |
32
32
  |---|---|---|
33
33
  | **`/istm`** | Universal | The apex NLP router. Analyzes your prompt and dynamically routes execution to the best skill in the ecosystem. |
34
- | **`/istm-architecture`** | Full-Stack | The master Day-Zero planner. Establishes the "4 Pillars of Truth" (`project-overview.md`, `architecture.md`, `design.md`, `agents.md`). |
34
+ | **`/istm-architecture`** | Full-Stack | The master Day-Zero planner. Establishes the "4 Pillars of Truth". Enforces **Just-In-Time Scaffolding** (avoids dumping raw folders), respects framework conventions (e.g. Next.js `app/`), and strictly mandates **Public vs Private component boundaries**. |
35
35
  | **`/istm-awwward-designer`** | Premium UI | Builds Awwwards-winning frontend marketing sites. Enforces GSAP, WebGL, Lenis smooth scrolling, and strict typography. |
36
36
  | **`/istm-system-design`** | Backend | The infrastructure architect. Owns database schemas, API routing, and backend stack configuration (PostgreSQL, Prisma, Drizzle). |
37
- | **`/istm-design`** | Design System | Establishes foundational design tokens (colors, typography). Strictly forbids generic "AI slop" CSS. |
37
+ | **`/istm-design`** | Design System | Establishes foundational design tokens (colors, typography). Parses the user prompt to craft **bespoke aesthetics** (no generic templates). Strictly forbids "AI slop" CSS. |
38
38
  | **`/istm-animate`** | Motion | The hardware-accelerated motion orchestrator. Handles advanced choreography and GSAP timelines. |
39
39
 
40
40
  ---
@@ -44,14 +44,14 @@ These master brains structure your entire application.
44
44
  Stop chatting blindly with your AI. Use these deterministic commands to execute precise actions:
45
45
 
46
46
  - **`/istm-scope`**: Turns a raw product idea into a living, coarse scope.
47
- - **`/istm-craft`**: Writes a detailed technical spec strictly bound to your blueprints, preventing hallucinations.
48
- - **`/istm-develop`**: The execution engine. Autonomously writes clean code based on the specifications.
47
+ - **`/istm-craft`**: The spec writer. Enforces a **"One Spec At A Time"** rule so your AI doesn't hallucinate 10 features at once. Automatically sets up global CSS and Layout wrappers as Step 1. *Reads dynamic documentation URLs from your prompt to learn bleeding-edge framework syntax.*
48
+ - **`/istm-develop`**: The execution engine. Autonomously writes clean code based on the specifications. Fully supports `shadcn/ui`, strictly bans `any` types, and natively fetches URL links to bypass stale AI training data.
49
49
  - **`/istm-test`**: Generates comprehensive test suites for new features or fixes.
50
50
  - **`/istm-check`**: Pre-merge code review. Verifies behavior against the spec and confirms logic.
51
51
  - **`/istm-audit`**: Scans the codebase for tech debt, architectural drift, and unused code.
52
52
  - **`/istm-debug`**: Hunts down root causes, fixes code, and writes regression tests.
53
53
  - **`/istm-document`**: Analyzes commits/diffs to auto-generate PR descriptions, changelogs, and postmortems.
54
- - **`/istm-sync`**: Reconciles scope and updates the durable knowledge base after shipping a feature.
54
+ - **`/istm-sync`**: Reconciles scope, reads `progress.md`, and completely re-hydrates the durable knowledge base after shipping a feature to save AI token limits.
55
55
 
56
56
  ---
57
57
 
@@ -64,15 +64,23 @@ Before generating a single line of code, every agent is forced to read `.istm-co
64
64
 
65
65
  ---
66
66
 
67
- ## 🤝 Open Source
67
+ ## 🤝 Contributing & Open Source
68
68
 
69
- We are open-sourcing the ultimate AI orchestration framework to end the era of generic AI code scaffolding. Join the movement and let's build beautiful, scalable software that feels human again.
69
+ We are fully open-sourcing the ultimate AI orchestration framework to end the era of generic AI code scaffolding. If you're tired of AI building the same boring CRUD apps and want to help us push the boundaries of Agentic UI, we'd love your help!
70
+
71
+ ### How you can help:
72
+ - ⭐️ **Star this repo** to help others find it and support the movement.
73
+ - 🐛 **Report Bugs** by opening an issue.
74
+ - 💻 **Submit PRs** to improve the skills, add new frameworks, or fix typos.
75
+
76
+ Please read our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) before contributing.
70
77
 
71
78
  **Author:** Aryan
72
- **License:** MIT
79
+ **License:** [MIT License](LICENSE)
73
80
 
74
81
  ---
75
82
  <!-- SEO Metadata & Discovery Tags (DO NOT REMOVE) -->
76
83
  <!--
77
84
  Keywords: AI coding agents, Open source AI coding agents, AI agent framework for software development, LLM-based coding assistant tutorial, Cursor vs Claude Code, AI coding agent performance benchmarks, Cloud-based software development tools, DevOps automation tools, API documentation generator, SaaS development framework, UI/UX design systems, Design system architecture, UI component library best practices, Atomic design methodology 2026, Glassmorphism UI dashboards, Brutalism web design, Dark mode UI system, Developer tools, Developer experience, DX, Deterministic Execution, Orchestration Engine, RAG, Knowledge base, Best AI agent for GitHub projects, istm ai templates, istmx ai templates, istm nextjs templates, istm ui components, istm skills ai framework, istmx vs istm, istm react template, istm agent templates, istm developer tools, istm coding assistant, .cursorrules alternative, cursor rules directory, AGENTS.md standard, claude code agents.md, windsurf rules, aider coding agent, zed ai editor, roo code context, cline mcp server, cursor vs windsurf, claude code vs cursor, best ai agent configuration, model context protocol, awwwards level ui generator, gsap ai coding skills, threejs webgl ai agent, premium frontend ai architect, ai design.md templates, ui tokens ai generation, design system ai scaffolding, gsap scrolltrigger ai templates, motion physics ai rules, database schema ai architect, nextjs fullstack ai system design, ai code review agent, agentic debugging workflow, ai pr generator, agentic skills frontend, istm-awwward-designer
78
85
  -->
86
+
@@ -0,0 +1,40 @@
1
+ # Release Title
2
+ v1.2.0: The Deterministic Architecture & Anti-Slop Update 🚀
3
+
4
+ # Release Body
5
+
6
+ We are thrilled to announce **v1.2.0** of the `@istmx/skills` AI Orchestration Framework! This massive release fundamentally changes how AI models handle Day-Zero architecture, specification writing, and code execution.
7
+
8
+ We have completely eliminated the "Sledgehammer AI" problem (where AI blindly destroys existing folder structures) and added real-time, dynamic documentation parsing so your AI never hallucinates deprecated code again.
9
+
10
+ Here is what's new in the ultimate God Mode engine:
11
+
12
+ ### 🏛️ Architecture & Scaffolding (`/istm-architecture`)
13
+ - **Just-In-Time Scaffolding:** The AI is now explicitly banned from generating massive, empty folder trees upfront. It will only create folders when a specific feature requires them.
14
+ - **Strict Framework Respect:** No more overriding your native Next.js `app/` directory with a forced `src/app/` layout. The orchestrator now reads and respects your existing stack conventions.
15
+ - **Public vs. Private Components:** We codified the Feature-Based Architecture model. Reusable components go to `shared/components/` (or `components/ui/` for Shadcn), while feature-specific logic is locked securely inside `features/<name>/components/`.
16
+
17
+ ### 📝 The Spec Writer (`/istm-craft`)
18
+ - **"One Spec At A Time" Mandate:** Prevented the AI from hallucinating 10 features simultaneously. If you ask for Auth, Billing, and a Dashboard, it will now strictly spec Auth first and force you to build it before moving on.
19
+ - **Global Design First:** Step 1 of any generated build plan is now mandated to be setting up `globals.css` (with your custom design tokens) and configuring the `layout.tsx` wrapper.
20
+ - **Dynamic URL Documentation:** You can now paste documentation URLs directly into your prompt. The AI will web-scrape them, override its outdated internal training data with the bleeding-edge syntax, and cache the rules in `.istm-context/docs/` for future sessions.
21
+
22
+ ### 💻 The Execution Engine (`/istm-develop`)
23
+ - **Native Shadcn Support:** The builder AI is now fully authorized to use `shadcn/ui` instead of reinventing buttons from scratch, provided it perfectly overrides the Shadcn tokens to match your bespoke `design.md`.
24
+ - **Absolute Typing Ban:** Enforced a strict `No any` rule. The AI must create dedicated `types/` and `constants/` folders instead of dumping magic strings randomly in the codebase.
25
+
26
+ ### 🎨 The Design Orchestrator (`/istm-design`)
27
+ - **Bespoke Prompt Parsing:** Removed the lazy "4 generic styles" presets. The AI now deeply parses your prompt to extract your unique aesthetic vision (e.g., "massive typography and vibrant colors") and builds a custom design token system.
28
+ - **Mandatory Pre-Reading:** Implemented a new `Step 0` execution gate. The AI must recursively read the massive rule sets in the `istm-design/` subdirectories before generating any templates.
29
+
30
+ ### 🤝 Open Source & Licensing
31
+ - Upgraded the repository for public collaboration.
32
+ - Added a comprehensive **AI Collaboration Code of Conduct**.
33
+ - Expanded the **MIT License** to explicitly state that all output generated by the AI is 100% owned by the user, shielding developers from legal friction.
34
+
35
+ ---
36
+
37
+ **Upgrade today to experience true Agentic Orchestration:**
38
+ ```bash
39
+ npx @istmx/skills init
40
+ ```
package/bin/cli.js CHANGED
@@ -11,13 +11,10 @@ const __dirname = path.dirname(__filename);
11
11
  const SKILLS_ROOT = path.join(__dirname, '..');
12
12
 
13
13
  const DEPENDENCY_MAP = {
14
- 'istm': ['istm-architecture', 'istm-awwward-designer', 'istm-animate', 'istm-design', 'istm-system-design'],
15
14
  'istm-architecture': ['istm-design', 'istm-system-design'],
16
15
  'istm-awwward-designer': ['istm-design', 'istm-animate'],
17
- 'istm-animate': ['istm-design'],
18
16
  'istm-system-design': [],
19
- 'istm-design': [],
20
- 'workflow-only': []
17
+ 'istm-design': []
21
18
  };
22
19
 
23
20
  async function main() {
@@ -51,101 +48,92 @@ async function main() {
51
48
 
52
49
  const harnessChoices = [];
53
50
  if (autoDetectedHarness) {
54
- harnessChoices.push({ title: `Auto-Detect (${autoDetectedHarness})`, value: 'auto' });
51
+ harnessChoices.push({ title: `Auto-Detect (${autoDetectedHarness})`, value: autoDetectedHarness });
55
52
  }
56
53
  harnessChoices.push(
57
- { title: 'Install for ALL Agents (Universal)', description: 'Generates rules for Cursor, Gemini, Claude, Windsurf, etc.', value: 'all' },
58
- { title: 'Cursor', description: '.cursorrules', value: '.cursorrules' },
59
- { title: 'Windsurf', description: '.windsurfrules', value: '.windsurfrules' },
60
- { title: 'Claude Code', description: 'CLAUDE.md', value: 'CLAUDE.md' },
61
- { title: 'Gemini Antigravity CLI', description: 'GEMINI.md', value: 'GEMINI.md' },
62
- { title: 'Roo Code / Cline', description: '.clinerules', value: '.clinerules' },
63
- { title: 'GitHub Copilot', description: 'copilot-instructions.md', value: '.github/copilot-instructions.md' },
64
- { title: 'OpenAI Codex / Opencode', description: 'AGENTS.md', value: 'AGENTS.md' },
65
- { title: 'Other AI Agents', description: 'AGENTS.md', value: 'AGENTS.md' }
54
+ { title: chalk.bold.blue('Claude Code') + chalk.dim(' (CLAUDE.md)'), value: 'CLAUDE.md' },
55
+ { title: chalk.bold.green('OpenAI Codex / Opencode') + chalk.dim(' (AGENTS.md)'), value: 'AGENTS.md' },
56
+ { title: chalk.bold.cyan('Gemini Antigravity CLI') + chalk.dim(' (GEMINI.md)'), value: 'GEMINI.md' },
57
+ { title: chalk.bold.white('Cursor') + chalk.dim(' (.cursorrules)'), value: '.cursorrules' },
58
+ { title: chalk.bold.magenta('Windsurf') + chalk.dim(' (.windsurfrules)'), value: '.windsurfrules' },
59
+ { title: chalk.bold.yellow('Roo Code / Cline') + chalk.dim(' (.clinerules)'), value: '.clinerules' },
60
+ { title: chalk.bold.white('GitHub Copilot') + chalk.dim(' (.github/copilot-instructions.md)'), value: '.github/copilot-instructions.md' },
61
+ { title: chalk.bold.gray('Other AI Agents') + chalk.dim(' (AGENTS.md)'), value: 'AGENTS.md' }
66
62
  );
67
63
 
68
64
  const response = await prompts([
69
65
  {
70
- type: 'select',
71
- name: 'targetHarness',
72
- message: 'Which AI Agent Harness are you targeting?',
73
- choices: harnessChoices
66
+ type: 'multiselect',
67
+ name: 'targetHarnesses',
68
+ message: 'Which AI Agent Harnesses are you targeting? (Space to select)',
69
+ instructions: false,
70
+ choices: harnessChoices,
71
+ min: 1
74
72
  },
75
73
  {
76
- type: 'select',
77
- name: 'coreSkill',
78
- message: 'Which Core Architecture Skill do you want to initialize?',
74
+ type: 'multiselect',
75
+ name: 'domainSkills',
76
+ message: 'Which Core Architecture Skills do you want to initialize? (Space to select)',
77
+ instructions: false,
79
78
  choices: [
80
- { title: 'All the skills (God Mode)', description: 'istm', value: 'istm' },
81
- { title: 'A Full Stack App', description: 'istm-architecture', value: 'istm-architecture' },
82
- { title: 'Premium Awwwards Site', description: 'istm-awwward-designer', value: 'istm-awwward-designer' },
83
- { title: 'Backend / APIs Only', description: 'istm-system-design', value: 'istm-system-design' },
84
- { title: 'UI Tokens Only', description: 'istm-design', value: 'istm-design' },
85
- { title: 'Motion & Animation Only', description: 'istm-animate', value: 'istm-animate' },
86
- { title: 'Workflow Tools Only', description: 'Just install /istm-craft, /istm-debug, etc.', value: 'workflow-only' }
87
- ]
79
+ { title: chalk.bold.red('God Mode') + chalk.dim(' (Universal Router)'), value: 'istm' },
80
+ { title: chalk.bold.blue('Architect') + chalk.dim(' (Full Stack / Standard UI)'), value: 'istm-architecture' },
81
+ { title: chalk.bold.magenta('Awwward Designer') + chalk.dim(' (GSAP Motion / Premium Specs)'), value: 'istm-awwward-designer' },
82
+ { title: chalk.bold.cyan('Design') + chalk.dim(' (Visual Tokens & Static UI)'), value: 'istm-design' },
83
+ { title: chalk.bold.green('System Design') + chalk.dim(' (Backend & APIs)'), value: 'istm-system-design' }
84
+ ],
85
+ min: 1
88
86
  }
89
87
  ]);
90
88
 
91
- if (!response.targetHarness || !response.coreSkill) {
89
+ if (!response.targetHarnesses || !response.domainSkills) {
92
90
  console.log(chalk.red('\nInstallation cancelled by user.'));
93
91
  process.exit(1);
94
92
  }
95
93
 
94
+ /* Deduplicate selected harnesses in case they selected Auto-Detect and the explicit one */
95
+ const harnessesToInstall = [...new Set(response.targetHarnesses)];
96
+
96
97
  console.log(chalk.cyan('\n⚙ Installing blueprints...'));
97
98
 
98
99
  const targetDir = cwd;
99
100
  const contextDir = path.join(targetDir, '.istm-context');
100
101
 
101
- const allHarnesses = [
102
- '.cursorrules',
103
- '.windsurfrules',
104
- 'CLAUDE.md',
105
- 'GEMINI.md',
106
- '.clinerules',
107
- '.github/copilot-instructions.md',
108
- 'AGENTS.md'
109
- ];
110
-
111
- const harnessesToInstall = response.targetHarness === 'all'
112
- ? allHarnesses
113
- : [response.targetHarness === 'auto' ? autoDetectedHarness : response.targetHarness];
114
-
115
102
  /**
116
103
  * ==========================================
117
104
  * STEP 1: Global Context Scaffolding
118
105
  * ==========================================
119
106
  * This step initializes the shared `.istm-context` directory.
120
- * It is only performed once, regardless of how many harnesses are targeted.
121
107
  */
122
- if (response.coreSkill !== 'workflow-only') {
123
- console.log(chalk.green(`✓ Scaffolding .istm-context/`));
124
-
125
- try { await fs.mkdir(contextDir, { recursive: true }); } catch (err) {}
126
- try { await fs.cp(path.join(SKILLS_ROOT, response.coreSkill), path.join(contextDir, response.coreSkill), { recursive: true }); } catch(e) {}
127
- try { await fs.writeFile(path.join(contextDir, 'agents.md'), `# @istmx/skills Runtime Memory\n\nThis file will be hydrated by the master orchestrator.`); } catch (err) {}
128
-
129
- /**
130
- * Inject physical dependencies (like UI tokens or DB schemas)
131
- * into the global context so the AI can read them.
132
- */
133
- const deps = DEPENDENCY_MAP[response.coreSkill] || [];
134
-
135
- for (const dep of deps) {
136
- try { await fs.cp(path.join(SKILLS_ROOT, dep), path.join(contextDir, dep), { recursive: true }); } catch(e) {}
137
- }
138
-
139
- } else {
140
- console.log(chalk.dim(`✓ Skipping Core Orchestrator context (Workflow tools only).`));
108
+ console.log(chalk.green(`✓ Scaffolding .istm-context/`));
109
+
110
+ try { await fs.mkdir(contextDir, { recursive: true }); } catch (err) {}
111
+
112
+ /* Always create the agents.md root file if it doesn't exist */
113
+ const agentsMdPath = path.join(contextDir, 'agents.md');
114
+ try {
115
+ await fs.access(agentsMdPath);
116
+ } catch (err) {
117
+ try { await fs.writeFile(agentsMdPath, `# @istmx/skills Runtime Memory\n\nThis file will be hydrated by the master orchestrator.`); } catch (err) {}
141
118
  }
142
-
119
+
120
+ /* Copy the selected domain skills context templates */
121
+ const allDeps = new Set();
122
+ for (const skill of response.domainSkills) {
123
+ try { await fs.cp(path.join(SKILLS_ROOT, skill), path.join(contextDir, skill), { recursive: true }); } catch(e) {}
124
+ const deps = DEPENDENCY_MAP[skill] || [];
125
+ for (const d of deps) allDeps.add(d);
126
+ }
127
+
128
+ /* Inject physical dependencies (like UI tokens or DB schemas) into the global context */
129
+ for (const dep of allDeps) {
130
+ try { await fs.cp(path.join(SKILLS_ROOT, dep), path.join(contextDir, dep), { recursive: true }); } catch(e) {}
131
+ }
132
+
143
133
  /**
144
134
  * ==========================================
145
135
  * STEP 2: Harness Injection Loop
146
136
  * ==========================================
147
- * Iterates through every requested AI harness (Cursor, Gemini, etc.)
148
- * and injects both the root orchestrator rules and autocomplete workflows.
149
137
  */
150
138
  for (const harness of harnessesToInstall) {
151
139
  console.log(chalk.cyan(`\n⚙ Configuring ${chalk.bold(harness)}...`));
@@ -155,19 +143,27 @@ async function main() {
155
143
  if (harness === 'GEMINI.md') workflowTarget = path.join(targetDir, '.gemini', 'skills');
156
144
  if (harness === '.windsurfrules') workflowTarget = path.join(targetDir, '.windsurf', 'rules');
157
145
 
158
- /**
159
- * Inject Root Orchestrator
160
- * Sets the primary system prompt for the IDE.
161
- */
162
- if (response.coreSkill !== 'workflow-only') {
163
- // 1. Drop the chosen core skill as the root harness (e.g., GEMINI.md)
164
- const coreSkillPath = path.join(SKILLS_ROOT, response.coreSkill, 'SKILL.md');
165
- try {
166
- await fs.copyFile(coreSkillPath, path.join(targetDir, harness));
167
- console.log(chalk.dim(` - Injected Master Orchestrator`));
168
- } catch (err) {}
146
+ /* 1. Append the pointer to the root harness file without overwriting */
147
+ const harnessPath = path.join(targetDir, harness);
148
+ const pointerLine = `\n\n# @istmx/skills Context\n@.istm-context/agents.md\n`;
149
+ try {
150
+ /* Create directory for github copilot if needed */
151
+ if (harness.includes('/')) {
152
+ await fs.mkdir(path.dirname(harnessPath), { recursive: true });
153
+ }
154
+ let currentContent = '';
155
+ try { currentContent = await fs.readFile(harnessPath, 'utf8'); } catch (e) {}
156
+
157
+ if (!currentContent.includes('.istm-context/agents.md')) {
158
+ await fs.appendFile(harnessPath, currentContent ? pointerLine : `# AI Harness\n${pointerLine}`);
159
+ console.log(chalk.dim(` - Appended .istm-context pointer to ${harness}`));
160
+ } else {
161
+ console.log(chalk.dim(` - Pointer already exists in ${harness}`));
162
+ }
163
+ } catch (err) {}
169
164
 
170
- // 2. Drop the Universal NLP Router as the /istm slash command
165
+ /* 2. Inject the Universal NLP Router (/istm) IF selected */
166
+ if (response.domainSkills.includes('istm')) {
171
167
  const routerPath = path.join(SKILLS_ROOT, 'istm', 'SKILL.md');
172
168
  try {
173
169
  await fs.mkdir(workflowTarget, { recursive: true });
@@ -176,43 +172,29 @@ async function main() {
176
172
  } else {
177
173
  await fs.cp(path.join(SKILLS_ROOT, 'istm'), path.join(workflowTarget, 'istm'), { recursive: true });
178
174
  }
175
+ console.log(chalk.dim(` - Injected Master Orchestrator (/istm)`));
179
176
  } catch (err) {}
180
177
  }
181
178
 
182
- /**
183
- * Inject Autocomplete Dependencies
184
- * Drops related tools (like `/istm-design`) directly into the IDE's slash menu.
185
- */
186
- const deps = DEPENDENCY_MAP[response.coreSkill] || [];
187
-
188
- if (deps.length > 0) {
189
- let injectedDeps = false;
190
-
191
- for (const dep of deps) {
192
- try {
193
- await fs.mkdir(workflowTarget, { recursive: true });
194
- if (harness === '.cursorrules') {
195
- await fs.copyFile(path.join(SKILLS_ROOT, dep, 'SKILL.md'), path.join(workflowTarget, `${dep}.mdc`));
196
- } else {
197
- await fs.cp(path.join(SKILLS_ROOT, dep), path.join(workflowTarget, dep), { recursive: true });
198
- }
199
- injectedDeps = true;
200
- } catch (err) {}
201
- }
202
-
203
- if (injectedDeps) console.log(chalk.dim(` - Injected dependencies into autocomplete rules`));
179
+ /* 3. Inject selected domain skills into autocomplete */
180
+ let injectedDeps = false;
181
+ const skillsToInject = new Set([...response.domainSkills, ...allDeps]);
182
+ for (const skill of skillsToInject) {
183
+ try {
184
+ if (harness === '.cursorrules') {
185
+ await fs.copyFile(path.join(SKILLS_ROOT, skill, 'SKILL.md'), path.join(workflowTarget, `${skill}.mdc`));
186
+ } else {
187
+ await fs.cp(path.join(SKILLS_ROOT, skill), path.join(workflowTarget, skill), { recursive: true });
188
+ }
189
+ injectedDeps = true;
190
+ } catch (err) {}
204
191
  }
192
+ if (injectedDeps) console.log(chalk.dim(` - Injected domain skills into autocomplete`));
205
193
 
206
- /**
207
- * Inject Workflow Tools
208
- * Installs day-to-day tools (`/istm-craft`, `/istm-debug`, etc.) into the slash menu.
209
- */
194
+ /* 4. ALWAYS Inject Workflow Tools (/istm-craft, /istm-develop, etc.) */
210
195
  const workflowSource = path.join(SKILLS_ROOT, 'istm-workflow');
211
-
212
196
  try {
213
- await fs.mkdir(workflowTarget, { recursive: true });
214
197
  const dirs = await fs.readdir(workflowSource, { withFileTypes: true });
215
-
216
198
  for (const dirent of dirs) {
217
199
  if (dirent.isDirectory()) {
218
200
  const sourceDir = path.join(workflowSource, dirent.name);
@@ -223,17 +205,20 @@ async function main() {
223
205
  }
224
206
  }
225
207
  }
226
-
227
-
228
- console.log(chalk.dim(` - Bundled workflow commands into autocomplete rules`));
208
+ console.log(chalk.dim(` - Bundled mandatory workflow tools into autocomplete`));
229
209
  } catch (err) {}
230
210
  }
231
211
 
232
212
  console.log(chalk.bold.magenta('\n✨ Initialization Complete!'));
233
- console.log(`Your AI is now operating under the ${chalk.bold('istmX')} Architecture (${response.coreSkill}).`);
213
+ console.log(`Your AI is now operating under the ${chalk.bold('istmX')} Architecture.`);
234
214
 
235
- console.log('\n' + chalk.bold('You are now in God Mode. Try your first prompt:'));
236
- console.log(chalk.cyan(`> /istm build me a sleek dashboard\n`));
215
+ if (response.domainSkills.includes('istm')) {
216
+ console.log('\n' + chalk.bold('You are now in God Mode. Try your first prompt:'));
217
+ console.log(chalk.cyan(`> /istm build me a sleek dashboard\n`));
218
+ } else {
219
+ console.log('\n' + chalk.bold('Setup complete. Ready to plan your first feature?'));
220
+ console.log(chalk.cyan(`> /istm-craft I want to build a user authentication system\n`));
221
+ }
237
222
 
238
223
  console.log(chalk.bold('💡 PRO TIP:') + ' You also just unlocked the istm-workflow skillset!');
239
224
  console.log('Whenever you are stuck, use these commands instead of chatting:');
@@ -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