@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
@@ -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
@@ -1,49 +1,86 @@
1
- # @istmx/skills | Context-as-a-Service (CaaS) for AI Coding Agents
1
+ <div align="center">
2
+ <h1>@istmx/skills</h1>
3
+ <p><b>The Elite AI Orchestration Engine for Cursor, Windsurf, Claude Code, & Gemini</b></p>
4
+ <a href="https://istmskills.vercel.app">Website</a> • <a href="https://istmskills.vercel.app/docs">Documentation</a> • <a href="https://github.com/istmX/skills">GitHub</a>
5
+ </div>
2
6
 
3
- **The Ultimate AI Orchestrator and Context Engine for Cursor, Windsurf, Claude Code, and Gemini.**
7
+ <br/>
4
8
 
5
- Are you tired of AI coding assistants hallucinating tech stacks, generating generic UI slop, and losing project context? `@istmx/skills` is a revolutionary **Context-as-a-Service (CaaS)** framework that hijacks your AI agent's harness (like `.cursorrules`, `.cline`, or `GEMINI.md`) and injects an **Elite Orchestration Engine**. By enforcing strict system design and premium UI/UX rules, it forces your LLM to write modular, production-ready blueprints before it ever touches a line of code.
9
+ Most AI coding assistants fail at scale. They lose context, hallucinate architectures, generate generic "AI slop," and completely ignore your design system.
6
10
 
7
- Whether you are building a scalable SaaS startup, an enterprise backend, or an Awwwards-winning frontend with GSAP animations, `@istmx/skills` guarantees deterministic, high-quality code generation.
11
+ `@istmx/skills` is a revolutionary **Agentic Orchestration Framework**. It hijacks your AI agent's environment (via `.cursorrules`, `.cline`, or `AGENTS.md`) and injects a deterministic orchestration engine. By enforcing strict system design boundaries and premium UI/UX rules, it forces your LLM to write modular, production-ready blueprints before it ever touches a line of code.
8
12
 
9
- ## 🚀 Installation & Setup
13
+ ---
10
14
 
11
- Run the developer-tools CLI inside the root of your project:
15
+ ## ⚡ Quick Start
16
+
17
+ Initialize the framework in your project root:
12
18
 
13
19
  ```bash
14
20
  npx @istmx/skills init
15
21
  ```
16
22
 
17
- The CLI will automatically detect your AI IDE (Cursor, Windsurf, Roo Code, GitHub Copilot) and inject the master orchestrator, instantly upgrading your developer experience (DX) and productivity.
23
+ The CLI automatically detects your IDE (Cursor, Windsurf, Roo Code, GitHub Copilot) and instantly upgrades your AI's reasoning capabilities by injecting the master orchestrator.
24
+
25
+ ---
26
+
27
+ ## 🧠 The Orchestrators (God Mode)
28
+
29
+ These master brains structure your entire application.
30
+
31
+ | Orchestrator | Domain | Description |
32
+ |---|---|---|
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". 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
+ | **`/istm-awwward-designer`** | Premium UI | Builds Awwwards-winning frontend marketing sites. Enforces GSAP, WebGL, Lenis smooth scrolling, and strict typography. |
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). Parses the user prompt to craft **bespoke aesthetics** (no generic templates). Strictly forbids "AI slop" CSS. |
38
+ | **`/istm-animate`** | Motion | The hardware-accelerated motion orchestrator. Handles advanced choreography and GSAP timelines. |
39
+
40
+ ---
41
+
42
+ ## 🛠️ The Workflows (Day-to-Day)
43
+
44
+ Stop chatting blindly with your AI. Use these deterministic commands to execute precise actions:
45
+
46
+ - **`/istm-scope`**: Turns a raw product idea into a living, coarse scope.
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
+ - **`/istm-test`**: Generates comprehensive test suites for new features or fixes.
50
+ - **`/istm-check`**: Pre-merge code review. Verifies behavior against the spec and confirms logic.
51
+ - **`/istm-audit`**: Scans the codebase for tech debt, architectural drift, and unused code.
52
+ - **`/istm-debug`**: Hunts down root causes, fixes code, and writes regression tests.
53
+ - **`/istm-document`**: Analyzes commits/diffs to auto-generate PR descriptions, changelogs, and postmortems.
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.
18
55
 
19
- ## 🧠 The Core Orchestrators (God Mode Skills)
56
+ ---
20
57
 
21
- When you run `init`, you can inject highly specialized orchestrators tailored to modern software engineering:
58
+ ## 📁 The `.istm-context` Architecture
22
59
 
23
- - **`/istm` (Universal NLP Router)**: The master brain for Generative AI. Type `/istm I need a new auth feature`, and it dynamically routes your prompt to the exact workflow tool required.
24
- - **`/istm-architecture` (Fullstack System Design)**: Forces the AI to establish the 4 Pillars of Truth (`project-overview.md`, `architecture.md`, `design.md`, `agents.md`). Perfect for Next.js, React, TailwindCSS, Prisma, and Supabase stacks.
25
- - **`/istm-awwward-designer` (Premium UI & Motion Engine)**: Builds Awwwards-winning marketing sites. Explicitly enforces **GSAP**, **Framer Motion**, **Lenis smooth scrolling**, WebGL, and strict typography scaling. Say goodbye to boring Bootstrap templates.
26
- - **`/istm-system-design` (Backend API Architect)**: The backend brain. Generates strict database schemas, REST/GraphQL APIs, and ORM setups (PostgreSQL, MongoDB, Drizzle).
60
+ We believe in **Blueprint Centralization** and Deterministic Execution.
61
+ When your AI runs an orchestrator, it generates a `.istm-context/` directory in your project. This is the ultimate source of truth.
27
62
 
28
- ## 🛠️ AI Workflow Tools (Day-to-Day Execution)
63
+ Before generating a single line of code, every agent is forced to read `.istm-context/design.md` (for exact UI tokens) and `.istm-context/architecture.md` (to verify the stack), ensuring perfect alignment and zero hallucinations.
29
64
 
30
- Transform your prompt engineering into a deterministic workflow:
65
+ ---
31
66
 
32
- - **`/istm-craft`**: Give it a feature idea. It reads your `.istm-context/` knowledge base and writes a strict technical spec, preventing AI hallucinations.
33
- - **`/istm-develop`**: The ultimate code-generator. It reads the specs from `/istm-craft` and autonomously writes clean code.
34
- - **`/istm-debug`**: Hit a massive wall? This autonomous agent hunts down root causes and maintains an `error-memory.md` log, ensuring the AI never makes the same mistake twice.
35
- - **`/istm-audit`**: Checks your codebase for tech debt, architectural drift, and enforces best practices.
67
+ ## 🤝 Contributing & Open Source
36
68
 
37
- ## 📁 How It Works: The `.istm-context` Architecture
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!
38
70
 
39
- We believe in **Blueprint Centralization** and Retrieval-Augmented Generation (RAG) principles.
40
- When your AI runs an orchestrator, it generates a `.istm-context/` folder. This acts as the single source of truth for your app's architecture and design system.
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.
41
75
 
42
- Every single time you ask your AI to build a new feature, it is forced to read `.istm-context/design.md` (to get the exact UI tokens, micro-interactions, and colors) and `.istm-context/architecture.md` (to verify the tech stack) before it outputs code.
76
+ Please read our [CODE_OF_CONDUCT.md](CODE_OF_CONDUCT.md) before contributing.
43
77
 
44
- ## 🤝 Open Source & Community
78
+ **Author:** Aryan
79
+ **License:** [MIT License](LICENSE)
45
80
 
46
- We are open-sourcing the ultimate AI agent UI and context skills to end the era of generic AI code scaffolding. Join the movement and let's build beautiful, scalable software that feels human again.
81
+ ---
82
+ <!-- SEO Metadata & Discovery Tags (DO NOT REMOVE) -->
83
+ <!--
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
85
+ -->
47
86
 
48
- **Author:** Aryan
49
- **License:** MIT
@@ -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:');