@istmx/skills 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -0
- package/bin/cli.js +251 -0
- package/istm/SKILL.md +65 -0
- package/istm-animate/SKILL.md +87 -0
- package/istm-animate/animations/animation_utils.md +280 -0
- package/istm-animate/animations/animations.md +220 -0
- package/istm-animate/animations/core_motion.md +250 -0
- package/istm-animate/animations/examples/README.md +29 -0
- package/istm-animate/animations/examples/nuxt/app/app.vue +3 -0
- package/istm-animate/animations/examples/nuxt/app/composables/useGSAP.ts +91 -0
- package/istm-animate/animations/examples/nuxt/app/pages/index.vue +55 -0
- package/istm-animate/animations/examples/nuxt/nuxt.config.ts +4 -0
- package/istm-animate/animations/examples/nuxt/package.json +18 -0
- package/istm-animate/animations/examples/react/App.jsx +46 -0
- package/istm-animate/animations/examples/react/index.html +12 -0
- package/istm-animate/animations/examples/react/main.jsx +9 -0
- package/istm-animate/animations/examples/react/package.json +21 -0
- package/istm-animate/animations/examples/react/vite.config.js +7 -0
- package/istm-animate/animations/examples/vanilla/index.html +33 -0
- package/istm-animate/animations/examples/vanilla/main.js +36 -0
- package/istm-animate/animations/examples/vue/app.vue +47 -0
- package/istm-animate/animations/examples/vue/index.html +15 -0
- package/istm-animate/animations/examples/vue/main.js +9 -0
- package/istm-animate/animations/examples/vue/package.json +19 -0
- package/istm-animate/animations/examples/vue/vite.config.js +7 -0
- package/istm-animate/animations/framework_motion.md +262 -0
- package/istm-animate/animations/motion.csv +17 -0
- package/istm-animate/animations/motion.md +11 -0
- package/istm-animate/animations/motion_catalog.json +226 -0
- package/istm-animate/animations/motion_performance.md +75 -0
- package/istm-animate/animations/motion_plugins.md +429 -0
- package/istm-animate/animations/react_animations.md +132 -0
- package/istm-animate/animations/scroll_trigger_effects.md +291 -0
- package/istm-animate/animations/timeline_sequencing.md +103 -0
- package/istm-architecture/SKILL.md +109 -0
- package/istm-architecture/frameworks/angular.csv +51 -0
- package/istm-architecture/frameworks/astro.csv +54 -0
- package/istm-architecture/frameworks/avalonia.csv +57 -0
- package/istm-architecture/frameworks/flutter.csv +53 -0
- package/istm-architecture/frameworks/javafx.csv +76 -0
- package/istm-architecture/frameworks/jetpack-compose.csv +53 -0
- package/istm-architecture/frameworks/laravel.csv +51 -0
- package/istm-architecture/frameworks/nextjs.csv +53 -0
- package/istm-architecture/frameworks/nuxtjs.csv +59 -0
- package/istm-architecture/frameworks/react-native.csv +52 -0
- package/istm-architecture/frameworks/react.csv +54 -0
- package/istm-architecture/frameworks/svelte.csv +54 -0
- package/istm-architecture/frameworks/swiftui.csv +51 -0
- package/istm-architecture/frameworks/uwp.csv +56 -0
- package/istm-architecture/frameworks/vue.csv +50 -0
- package/istm-architecture/frameworks/winui.csv +60 -0
- package/istm-architecture/frameworks/wpf.csv +57 -0
- package/istm-architecture/templates/agents.md +229 -0
- package/istm-architecture/templates/architecture.md +111 -0
- package/istm-architecture/templates/design.md +138 -0
- package/istm-architecture/templates/project-overview.md +215 -0
- package/istm-awwward-designer/SKILL.md +43 -0
- package/istm-awwward-designer/libraries/threejs.csv +54 -0
- package/istm-awwward-designer/references/accessibility.md +774 -0
- package/istm-awwward-designer/references/anim-anti-patterns.md +576 -0
- package/istm-awwward-designer/references/animation-map.md +166 -0
- package/istm-awwward-designer/references/animation-standards.md +86 -0
- package/istm-awwward-designer/references/anti-patterns.md +191 -0
- package/istm-awwward-designer/references/color-systems.md +604 -0
- package/istm-awwward-designer/references/css-performance.md +477 -0
- package/istm-awwward-designer/references/descender-safety.md +490 -0
- package/istm-awwward-designer/references/design-audit.md +93 -0
- package/istm-awwward-designer/references/font-loading.md +378 -0
- package/istm-awwward-designer/references/image-optimization.md +440 -0
- package/istm-awwward-designer/references/invention-gate.md +356 -0
- package/istm-awwward-designer/references/micro-interactions.md +825 -0
- package/istm-awwward-designer/references/page-transitions.md +365 -0
- package/istm-awwward-designer/references/performance-standards.md +79 -0
- package/istm-awwward-designer/references/quality-gate.md +103 -0
- package/istm-awwward-designer/references/responsive-design.md +778 -0
- package/istm-awwward-designer/references/scoring-guide.md +201 -0
- package/istm-awwward-designer/references/scroll-patterns.md +668 -0
- package/istm-awwward-designer/references/stitch-brief.md +124 -0
- package/istm-awwward-designer/references/tech-stack.md +204 -0
- package/istm-awwward-designer/references/technical-audit.md +133 -0
- package/istm-awwward-designer/references/technique-families.md +293 -0
- package/istm-awwward-designer/references/testing.md +535 -0
- package/istm-awwward-designer/references/text-animation.md +585 -0
- package/istm-awwward-designer/references/typography.md +504 -0
- package/istm-awwward-designer/references/usability-audit.md +108 -0
- package/istm-awwward-designer/references/visual-standards.md +97 -0
- package/istm-design/SKILL.md +98 -0
- package/istm-design/colors/color_theory.md +293 -0
- package/istm-design/colors/colors.csv +193 -0
- package/istm-design/colors/colors_catalog.json +4034 -0
- package/istm-design/colors/palette.json +21 -0
- package/istm-design/styles/design_system.md +288 -0
- package/istm-design/styles/html-tailwind.csv +56 -0
- package/istm-design/styles/nuxt-ui.csv +71 -0
- package/istm-design/styles/product_design.md +55 -0
- package/istm-design/styles/shadcn.csv +61 -0
- package/istm-design/styles/style.md +12 -0
- package/istm-design/styles/styles.csv +85 -0
- package/istm-design/styles/styles_catalog.json +2018 -0
- package/istm-design/styles/ui-reasoning.csv +162 -0
- package/istm-design/styles/uno.csv +60 -0
- package/istm-design/typography/font_and_font.md +10 -0
- package/istm-design/typography/google-fonts.csv +1924 -0
- package/istm-design/typography/sans_serif_fonts.md +112 -0
- package/istm-design/typography/typography.csv +75 -0
- package/istm-design/typography/typography_catalog.json +964 -0
- package/istm-design/ux/app-interface.csv +31 -0
- package/istm-design/ux/charts.csv +26 -0
- package/istm-design/ux/icons.csv +106 -0
- package/istm-design/ux/landing.csv +35 -0
- package/istm-design/ux/products.csv +193 -0
- package/istm-design/ux/react-performance.csv +45 -0
- package/istm-design/ux/responsive_rules.md +62 -0
- package/istm-design/ux/storytelling.md +47 -0
- package/istm-design/ux/ux-guidelines.csv +100 -0
- package/istm-design/ux/ux_guidelines.json +1190 -0
- package/istm-system-design/SKILL.md +88 -0
- package/istm-system-design/principles/01-architecture-patterns.md +24 -0
- package/istm-system-design/principles/02-database-selection.md +32 -0
- package/istm-system-design/principles/03-api-design.md +25 -0
- package/istm-system-design/principles/04-authentication-security.md +23 -0
- package/istm-system-design/principles/05-caching-performance.md +21 -0
- package/istm-system-design/principles/06-asynchronous-processing.md +17 -0
- package/istm-system-design/principles/07-infrastructure-deployment.md +22 -0
- package/istm-system-design/principles/08-low-level-design.md +35 -0
- package/istm-system-design/principles/09-state-management.md +14 -0
- package/istm-system-design/principles/10-error-handling-and-logging.md +26 -0
- package/istm-system-design/principles/11-testing-strategy.md +18 -0
- package/istm-system-design/principles/12-seo-and-web-vitals.md +18 -0
- package/istm-system-design/stacks/SETUP.md +82 -0
- package/istm-system-design/stacks/STACK.md +67 -0
- package/istm-system-design/stacks/WORKFLOW.md +84 -0
- package/istm-system-design/templates/api-route.ts.template +32 -0
- package/istm-system-design/templates/migrations.md.template +30 -0
- package/istm-system-design/templates/schema.drizzle.ts.template +17 -0
- package/istm-system-design/templates/schema.prisma.template +28 -0
- package/istm-system-design/templates/trpc-router.ts.template +22 -0
- package/istm-system-design/templates/zod-validators.ts.template +14 -0
- package/istm-workflow/istm-audit/SKILL.md +108 -0
- package/istm-workflow/istm-audit/agent-prompt.md +393 -0
- package/istm-workflow/istm-audit/agents/openai.yaml +7 -0
- package/istm-workflow/istm-audit/modes/area.md +19 -0
- package/istm-workflow/istm-audit/modes/gapfill.md +12 -0
- package/istm-workflow/istm-audit/modes/greenfield.md +24 -0
- package/istm-workflow/istm-audit/modes/tool-skills.md +39 -0
- package/istm-workflow/istm-audit/modes/whole-repo.md +5 -0
- package/istm-workflow/istm-audit/patterns/clean-architecture.md +15 -0
- package/istm-workflow/istm-audit/patterns/domain-driven.md +16 -0
- package/istm-workflow/istm-audit/patterns/functional.md +16 -0
- package/istm-workflow/istm-audit/patterns/solid-oop.md +17 -0
- package/istm-workflow/istm-check/SKILL.md +52 -0
- package/istm-workflow/istm-check/agents/openai.yaml +7 -0
- package/istm-workflow/istm-check/modes/review.md +156 -0
- package/istm-workflow/istm-check/modes/verify.md +197 -0
- package/istm-workflow/istm-check/review-agent-prompt.md +57 -0
- package/istm-workflow/istm-check/review-guide.md +133 -0
- package/istm-workflow/istm-craft/SKILL.md +37 -0
- package/istm-workflow/istm-craft/agent-modes/architecture.md +73 -0
- package/istm-workflow/istm-craft/agent-modes/cross-cutting.md +65 -0
- package/istm-workflow/istm-craft/agent-modes/enhancement.md +45 -0
- package/istm-workflow/istm-craft/agent-modes/feature.md +85 -0
- package/istm-workflow/istm-craft/agent-prompt.md +249 -0
- package/istm-workflow/istm-craft/agents/openai.yaml +7 -0
- package/istm-workflow/istm-craft/internal/after-subagent.md +90 -0
- package/istm-workflow/istm-craft/internal/design-conversation.md +140 -0
- package/istm-workflow/istm-craft/internal/tool-discovery.md +58 -0
- package/istm-workflow/istm-craft/spec-template.md +278 -0
- package/istm-workflow/istm-debug/SKILL.md +102 -0
- package/istm-workflow/istm-debug/agents/openai.yaml +7 -0
- package/istm-workflow/istm-develop/SKILL.md +144 -0
- package/istm-workflow/istm-develop/agents/openai.yaml +7 -0
- package/istm-workflow/istm-develop/checklist.md +95 -0
- package/istm-workflow/istm-develop/flow/build.md +133 -0
- package/istm-workflow/istm-develop/flow/git.md +34 -0
- package/istm-workflow/istm-develop/logical-guide.md +99 -0
- package/istm-workflow/istm-develop/ui/existing.md +23 -0
- package/istm-workflow/istm-develop/ui/generate.md +131 -0
- package/istm-workflow/istm-develop/ui/image.md +41 -0
- package/istm-workflow/istm-develop/ui/implementation.md +281 -0
- package/istm-workflow/istm-develop/ui/mcp.md +11 -0
- package/istm-workflow/istm-develop/ui-guide.md +164 -0
- package/istm-workflow/istm-document/SKILL.md +123 -0
- package/istm-workflow/istm-document/agent-prompt.md +57 -0
- package/istm-workflow/istm-document/agents/openai.yaml +7 -0
- package/istm-workflow/istm-document/templates/changelog.md +54 -0
- package/istm-workflow/istm-document/templates/postmortem.md +58 -0
- package/istm-workflow/istm-document/templates/pr.md +43 -0
- package/istm-workflow/istm-document/templates/release-note.md +41 -0
- package/istm-workflow/istm-scope/SKILL.md +100 -0
- package/istm-workflow/istm-scope/agents/openai.yaml +7 -0
- package/istm-workflow/istm-scope/approaches/facade.md +33 -0
- package/istm-workflow/istm-scope/approaches/journey.md +31 -0
- package/istm-workflow/istm-scope/approaches/skateboard.md +33 -0
- package/istm-workflow/istm-scope/approaches/tracer-bullet.md +34 -0
- package/istm-workflow/istm-scope/modes/add.md +14 -0
- package/istm-workflow/istm-scope/modes/plan-brownfield.md +11 -0
- package/istm-workflow/istm-scope/modes/plan-greenfield.md +20 -0
- package/istm-workflow/istm-scope/modes/plan-monorepo.md +8 -0
- package/istm-workflow/istm-scope/modes/plan.md +120 -0
- package/istm-workflow/istm-scope/modes/replan.md +13 -0
- package/istm-workflow/istm-scope/scope-template.md +148 -0
- package/istm-workflow/istm-sync/SKILL.md +166 -0
- package/istm-workflow/istm-sync/agent-prompt.md +211 -0
- package/istm-workflow/istm-sync/agents/openai.yaml +7 -0
- package/istm-workflow/istm-test/SKILL.md +233 -0
- package/istm-workflow/istm-test/agent-prompt.md +62 -0
- package/istm-workflow/istm-test/agents/openai.yaml +7 -0
- package/istm-workflow/istm-test/modes/setup.md +97 -0
- package/istm-workflow/istm-test/writing-guide.md +196 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @istmx/skills
|
|
2
|
+
|
|
3
|
+
**Context-as-a-Service (CaaS) for AI Coding Agents.**
|
|
4
|
+
|
|
5
|
+
Most AI coding assistants (Cursor, Windsurf, Claude Code, Gemini) fail at building large-scale applications because they lose context. They hallucinate tech stacks, write generic "AI slop," and forget your UI tokens.
|
|
6
|
+
|
|
7
|
+
`@istmx/skills` solves this. It hijacks your AI agent's harness (like `.cursorrules` or `GEMINI.md`) and injects an **Elite Orchestration Engine**. It forces your AI to write strict modular blueprints before it ever touches a line of code.
|
|
8
|
+
|
|
9
|
+
## 🚀 Installation
|
|
10
|
+
|
|
11
|
+
Run the CLI inside the root of your project:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @istmx/skills init
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
The CLI will automatically detect your IDE (Cursor, Windsurf, Gemini Antigravity, Roo Code, etc.) and inject the master orchestrator.
|
|
18
|
+
|
|
19
|
+
## 🧠 The Core Orchestrators
|
|
20
|
+
|
|
21
|
+
When you run `init`, you can choose a core "God Mode" skill to inject into your IDE:
|
|
22
|
+
|
|
23
|
+
- **`/istm` (Universal NLP Router)**: The master brain. You can just type `/istm I need a new auth feature` and it will automatically route your AI to the exact right workflow skill to build it.
|
|
24
|
+
- **`/istm-architecture` (Full Stack App)**: Forces the AI to interview you, establish the 4 Pillars of Truth (`project-overview.md`, `architecture.md`, `design.md`, `agents.md`), and ensure a perfect full-stack environment.
|
|
25
|
+
- **`/istm-awwward-designer` (Premium Frontend Engine)**: Builds Awwwards-winning marketing sites. Explicitly enforces GSAP, Lenis physics, strict typography scaling, and WebGL, forbidding standard generic UI components.
|
|
26
|
+
- **`/istm-system-design` (Backend & APIs)**: The backend brain. Generates strict database schemas, API routes, and ORM setups.
|
|
27
|
+
|
|
28
|
+
## 🛠️ Workflow Tools (Day-to-Day Execution)
|
|
29
|
+
|
|
30
|
+
Once initialized, your IDE's slash command menu will be populated with specialized workflow skills. Instead of just chatting with your AI, use these commands to execute highly deterministic tasks:
|
|
31
|
+
|
|
32
|
+
- **`/istm-craft`**: Give it a feature idea. It reads your `.istm-context/` blueprints and writes a strict technical spec.
|
|
33
|
+
- **`/istm-develop`**: The execution engine. It reads the specs from `/istm-craft` and actually writes the code.
|
|
34
|
+
- **`/istm-debug`**: Did you hit a massive wall? This skill hunts down root causes and maintains an `error-memory.md` log so the AI never makes the same mistake twice.
|
|
35
|
+
- **`/istm-audit`**: Checks your codebase for tech debt, unused variables, and architectural drift.
|
|
36
|
+
|
|
37
|
+
## 📁 How It Works (The `.istm-context` Pattern)
|
|
38
|
+
|
|
39
|
+
We believe in **Blueprint Centralization**.
|
|
40
|
+
When your AI runs an orchestrator, it will generate a `.istm-context/` folder. This folder becomes the single source of truth for your entire app.
|
|
41
|
+
|
|
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 colors and UI tokens) and `.istm-context/architecture.md` (to get the tech stack) before it generates code.
|
|
43
|
+
|
|
44
|
+
## 🤝 Open Source
|
|
45
|
+
|
|
46
|
+
We are open-sourcing the basic UI and context skills to end the era of generic AI code. Let's build software that feels human again.
|
|
47
|
+
|
|
48
|
+
**Author:** Aryan
|
|
49
|
+
**License:** MIT
|
package/bin/cli.js
ADDED
|
@@ -0,0 +1,251 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import fs from 'fs/promises';
|
|
4
|
+
import path from 'path';
|
|
5
|
+
import chalk from 'chalk';
|
|
6
|
+
import prompts from 'prompts';
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
8
|
+
|
|
9
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
10
|
+
const __dirname = path.dirname(__filename);
|
|
11
|
+
const SKILLS_ROOT = path.join(__dirname, '..');
|
|
12
|
+
|
|
13
|
+
const DEPENDENCY_MAP = {
|
|
14
|
+
'istm': ['istm-architecture', 'istm-awwward-designer', 'istm-animate', 'istm-design', 'istm-system-design'],
|
|
15
|
+
'istm-architecture': ['istm-design', 'istm-system-design'],
|
|
16
|
+
'istm-awwward-designer': ['istm-design', 'istm-animate'],
|
|
17
|
+
'istm-animate': ['istm-design'],
|
|
18
|
+
'istm-system-design': [],
|
|
19
|
+
'istm-design': [],
|
|
20
|
+
'workflow-only': []
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
async function main() {
|
|
24
|
+
const logo = `
|
|
25
|
+
${chalk.cyan('██╗')}${chalk.magenta('███████╗')}${chalk.cyan('████████╗')}${chalk.magenta('███╗ ███╗')}
|
|
26
|
+
${chalk.cyan('██║')}${chalk.magenta('██╔════╝')}╚══${chalk.cyan('██╔')}══╝${chalk.magenta('████╗ ████║')}
|
|
27
|
+
${chalk.cyan('██║')}${chalk.magenta('███████╗')} ${chalk.cyan('██║')} ${chalk.magenta('██╔████╔██║')}
|
|
28
|
+
${chalk.cyan('██║')}╚════${chalk.magenta('██║')} ${chalk.cyan('██║')} ${chalk.magenta('██║')}╚██╔╝${chalk.cyan('██║')}
|
|
29
|
+
${chalk.cyan('██║')}${chalk.magenta('███████║')} ${chalk.cyan('██║')} ${chalk.magenta('██║')} ╚═╝ ${chalk.cyan('██║')}
|
|
30
|
+
╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝
|
|
31
|
+
${chalk.bold.white('S K I L L S')}
|
|
32
|
+
`;
|
|
33
|
+
|
|
34
|
+
console.log(logo);
|
|
35
|
+
console.log(chalk.dim(' The master context orchestrator for AI coding agents.\n'));
|
|
36
|
+
|
|
37
|
+
const cwd = process.cwd();
|
|
38
|
+
let autoDetectedHarness = null;
|
|
39
|
+
|
|
40
|
+
if (process.env.TERM_PROGRAM === 'cursor') autoDetectedHarness = '.cursorrules';
|
|
41
|
+
if (process.env.TERM_PROGRAM === 'Windsurf') autoDetectedHarness = '.windsurfrules';
|
|
42
|
+
|
|
43
|
+
try {
|
|
44
|
+
const files = await fs.readdir(cwd);
|
|
45
|
+
if (files.includes('.gemini')) autoDetectedHarness = 'GEMINI.md';
|
|
46
|
+
if (files.includes('.claude')) autoDetectedHarness = 'CLAUDE.md';
|
|
47
|
+
if (files.includes('.windsurf')) autoDetectedHarness = '.windsurfrules';
|
|
48
|
+
if (files.includes('.cursor')) autoDetectedHarness = '.cursorrules';
|
|
49
|
+
if (files.includes('.cline')) autoDetectedHarness = '.clinerules';
|
|
50
|
+
} catch (err) {}
|
|
51
|
+
|
|
52
|
+
const harnessChoices = [];
|
|
53
|
+
if (autoDetectedHarness) {
|
|
54
|
+
harnessChoices.push({ title: `Auto-Detect (${autoDetectedHarness})`, value: 'auto' });
|
|
55
|
+
}
|
|
56
|
+
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' }
|
|
66
|
+
);
|
|
67
|
+
|
|
68
|
+
const response = await prompts([
|
|
69
|
+
{
|
|
70
|
+
type: 'select',
|
|
71
|
+
name: 'targetHarness',
|
|
72
|
+
message: 'Which AI Agent Harness are you targeting?',
|
|
73
|
+
choices: harnessChoices
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
type: 'select',
|
|
77
|
+
name: 'coreSkill',
|
|
78
|
+
message: 'Which Core Architecture Skill do you want to initialize?',
|
|
79
|
+
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
|
+
]
|
|
88
|
+
}
|
|
89
|
+
]);
|
|
90
|
+
|
|
91
|
+
if (!response.targetHarness || !response.coreSkill) {
|
|
92
|
+
console.log(chalk.red('\nInstallation cancelled by user.'));
|
|
93
|
+
process.exit(1);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
console.log(chalk.cyan('\n⚙ Installing blueprints...'));
|
|
97
|
+
|
|
98
|
+
const targetDir = cwd;
|
|
99
|
+
const contextDir = path.join(targetDir, '.istm-context');
|
|
100
|
+
|
|
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
|
+
/**
|
|
116
|
+
* ==========================================
|
|
117
|
+
* STEP 1: Global Context Scaffolding
|
|
118
|
+
* ==========================================
|
|
119
|
+
* This step initializes the shared `.istm-context` directory.
|
|
120
|
+
* It is only performed once, regardless of how many harnesses are targeted.
|
|
121
|
+
*/
|
|
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).`));
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
/**
|
|
144
|
+
* ==========================================
|
|
145
|
+
* STEP 2: Harness Injection Loop
|
|
146
|
+
* ==========================================
|
|
147
|
+
* Iterates through every requested AI harness (Cursor, Gemini, etc.)
|
|
148
|
+
* and injects both the root orchestrator rules and autocomplete workflows.
|
|
149
|
+
*/
|
|
150
|
+
for (const harness of harnessesToInstall) {
|
|
151
|
+
console.log(chalk.cyan(`\n⚙ Configuring ${chalk.bold(harness)}...`));
|
|
152
|
+
|
|
153
|
+
let workflowTarget = path.join(targetDir, '.agents', 'skills');
|
|
154
|
+
if (harness === '.cursorrules') workflowTarget = path.join(targetDir, '.cursor', 'rules');
|
|
155
|
+
if (harness === 'GEMINI.md') workflowTarget = path.join(targetDir, '.gemini', 'skills');
|
|
156
|
+
if (harness === '.windsurfrules') workflowTarget = path.join(targetDir, '.windsurf', 'rules');
|
|
157
|
+
|
|
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) {}
|
|
169
|
+
|
|
170
|
+
// 2. Drop the Universal NLP Router as the /istm slash command
|
|
171
|
+
const routerPath = path.join(SKILLS_ROOT, 'istm', 'SKILL.md');
|
|
172
|
+
try {
|
|
173
|
+
await fs.mkdir(workflowTarget, { recursive: true });
|
|
174
|
+
if (harness === '.cursorrules') {
|
|
175
|
+
await fs.copyFile(routerPath, path.join(workflowTarget, 'istm.mdc'));
|
|
176
|
+
} else {
|
|
177
|
+
await fs.cp(path.join(SKILLS_ROOT, 'istm'), path.join(workflowTarget, 'istm'), { recursive: true });
|
|
178
|
+
}
|
|
179
|
+
} catch (err) {}
|
|
180
|
+
}
|
|
181
|
+
|
|
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`));
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* Inject Workflow Tools
|
|
208
|
+
* Installs day-to-day tools (`/istm-craft`, `/istm-debug`, etc.) into the slash menu.
|
|
209
|
+
*/
|
|
210
|
+
const workflowSource = path.join(SKILLS_ROOT, 'istm-workflow');
|
|
211
|
+
|
|
212
|
+
try {
|
|
213
|
+
if (harness === '.cursorrules') {
|
|
214
|
+
await fs.mkdir(workflowTarget, { recursive: true });
|
|
215
|
+
|
|
216
|
+
const dirs = await fs.readdir(workflowSource, { withFileTypes: true });
|
|
217
|
+
|
|
218
|
+
for (const dirent of dirs) {
|
|
219
|
+
if (dirent.isDirectory()) {
|
|
220
|
+
try { await fs.copyFile(path.join(workflowSource, dirent.name, 'SKILL.md'), path.join(workflowTarget, `${dirent.name}.mdc`)); } catch (e) {}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
} else {
|
|
224
|
+
await fs.cp(workflowSource, workflowTarget, { recursive: true });
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
console.log(chalk.dim(` - Bundled workflow commands into autocomplete rules`));
|
|
229
|
+
} catch (err) {}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
console.log(chalk.bold.magenta('\n✨ Initialization Complete!'));
|
|
233
|
+
console.log(`Your AI is now operating under the ${chalk.bold('istmX')} Architecture (${response.coreSkill}).`);
|
|
234
|
+
|
|
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`));
|
|
237
|
+
|
|
238
|
+
console.log(chalk.bold('💡 PRO TIP:') + ' You also just unlocked the istm-workflow skillset!');
|
|
239
|
+
console.log('Whenever you are stuck, use these commands instead of chatting:');
|
|
240
|
+
console.log(' - ' + chalk.cyan('/istm-craft') + ' (Plan a new feature)');
|
|
241
|
+
console.log(' - ' + chalk.cyan('/istm-develop') + ' (Write the code)');
|
|
242
|
+
console.log(' - ' + chalk.cyan('/istm-debug') + ' (Fix a massive error)');
|
|
243
|
+
console.log(' - ' + chalk.cyan('/istm-audit') + ' (Check for tech debt)');
|
|
244
|
+
|
|
245
|
+
console.log('\n📚 Read the Docs: ' + chalk.dim('https://istmx.github.io/skills\n'));
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
main().catch(err => {
|
|
249
|
+
console.error(chalk.red('Error during installation:'), err);
|
|
250
|
+
process.exit(1);
|
|
251
|
+
});
|
package/istm/SKILL.md
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: istm
|
|
3
|
+
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
+
description: "The God Mode master command for the @istmx/skills ecosystem. This is the root orchestrator that imports, spins up, and routes all other specialized skills (/istm-architecture, /istm-design, /istm-awwward-designer). It acts as the ultimate AI harness controller."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Output style (plain words, no dashes, no hyphens)
|
|
8
|
+
|
|
9
|
+
<!-- OUTPUT-STYLE:START -->
|
|
10
|
+
Write everything this skill produces, files and messages alike, in plain simple language. Keep technical terms that carry real meaning; explain each in plain words. Never use a dash or a hyphen as punctuation: no em dash, no en dash, and no hyphenated compounds. Write `read only`, not `read-only`. Say it in simple words, or reword the sentence. Code, file paths, command flags, and values other skills match on keep their hyphens. Use short sentences, commas, or parentheses. Clear beats clever.
|
|
11
|
+
<!-- OUTPUT-STYLE:END -->
|
|
12
|
+
|
|
13
|
+
## What this skill does
|
|
14
|
+
|
|
15
|
+
The apex router: listens to the user's ultimate goal and dynamically orchestrates the correct sub-skills to build the environment.
|
|
16
|
+
|
|
17
|
+
- Universal NLP Router: Analyzes the user's raw prompt and semantically maps it to the absolute best skill in the entire `@istmx/skills` ecosystem. Whether they need Day Zero architecture (`/istm-architecture`), premium UI (`/istm-awwward-designer`), feature implementation (`/istm-craft`), or a codebase audit (`/audit`), this skill finds it.
|
|
18
|
+
- Global Context Aggregation: If architectural skills are chosen, it ensures all 4 Pillars (`agents.md`, `architecture.md`, `design.md`, `project-overview.md`) are generated in harmony.
|
|
19
|
+
- The Self-Destruct Bootstrap: Acts as the initial installer that consumes the user's raw prompt, builds the `.istm-context/`, and then overwrites itself into the AI harness rulebook (e.g., `.cursorrules`).
|
|
20
|
+
|
|
21
|
+
Does not write the blueprints itself; it delegates to the sub-skills (e.g., delegates UI logic to `/istm-design`).
|
|
22
|
+
|
|
23
|
+
## Scope
|
|
24
|
+
|
|
25
|
+
The `/istm` command is the universal entry point. It accepts any raw prompt.
|
|
26
|
+
|
|
27
|
+
## Acts vs asks
|
|
28
|
+
|
|
29
|
+
It asks one Master Question to determine the project archetype, then immediately delegates execution to the appropriate sub-skill.
|
|
30
|
+
|
|
31
|
+
## Execution
|
|
32
|
+
|
|
33
|
+
The main thread acts as a dispatcher.
|
|
34
|
+
|
|
35
|
+
### `Pre-flight` (main thread does this before anything else)
|
|
36
|
+
|
|
37
|
+
Gather signals to determine the archetype:
|
|
38
|
+
|
|
39
|
+
1. Flag check: Was a specific archetype requested? (e.g., `--type=saas`, `--type=premium`).
|
|
40
|
+
2. Source count: Analyze `package.json` to detect if the project leans towards a standard build or a premium build.
|
|
41
|
+
|
|
42
|
+
### Route to the selected phase (Semantic Mapping)
|
|
43
|
+
|
|
44
|
+
Analyze the prompt and guide the user on the absolute best skill to use. You act as the NLP brain that routes their intent to the right tool.
|
|
45
|
+
|
|
46
|
+
1. **If they want to build or design a brand new project**:
|
|
47
|
+
- Standard SaaS / Web App: Advise them to run the CLI installer again and select the `A Full Stack App` core skill (`istm-architecture`).
|
|
48
|
+
- Premium Marketing Site (GSAP/WebGL): Advise them to select the `Premium Awwwards Site` core skill (`istm-awwward-designer`).
|
|
49
|
+
- Backend APIs only: Advise them to select the `Backend / APIs Only` skill (`istm-system-design`).
|
|
50
|
+
2. **If they want Day-to-Day Execution (These are already installed!)**:
|
|
51
|
+
- Building a specific feature: Tell them to run `/istm-craft` (or just run it for them).
|
|
52
|
+
- Debugging a massive error: Tell them to run `/istm-debug`.
|
|
53
|
+
- Reviewing code quality: Tell them to run `/istm-audit` or `/istm-check`.
|
|
54
|
+
- Writing tests: Tell them to run `/istm-test`.
|
|
55
|
+
|
|
56
|
+
### Phase 0: Classify (only when `pre-flight` is ambiguous)
|
|
57
|
+
|
|
58
|
+
Don't guess. Ask once via your agent's interactive option picker (`AskUserQuestion`), or plain text.
|
|
59
|
+
- question: "I am the master @istmx/skills orchestrator. What type of project are we building today?"
|
|
60
|
+
- header: "Project Archetype"
|
|
61
|
+
- options: 1. `Standard SaaS / Web App`, "Stable, fast, relational DB, standard UI motion." → Delegate to `/istm-architecture`. 2. `Premium Marketing Site`, "GSAP, WebGL, high-end display typography." → Delegate to `/istm-awwward-designer`. 3. `Backend API Only`, "Schemas, routes, no UI." → Delegate to `/istm-system-design`.
|
|
62
|
+
|
|
63
|
+
### After all phases
|
|
64
|
+
|
|
65
|
+
**CRITICAL SELF-DESTRUCT RULE**: Once the delegated sub-skills have completed their work and fully hydrated the `.istm-context/` directory, this Master Orchestrator MUST write the finished `agents.md` rulebook directly to the root harness file (e.g., `.cursorrules`, `CLAUDE.md`, `GEMINI.md`), overwriting this very script.
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: istm-animate
|
|
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."
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Output style (plain words, no dashes, no hyphens)
|
|
8
|
+
|
|
9
|
+
<!-- OUTPUT-STYLE:START -->
|
|
10
|
+
Write everything this skill produces, files and messages alike, in plain simple language. Keep technical terms that carry real meaning; explain each in plain words. Never use a dash or a hyphen as punctuation: no em dash, no en dash, and no hyphenated compounds. Write `read only`,not `read-only`. Say it in simple words, or reword the sentence. Code, file paths, command flags, and values other skills match on keep their hyphens. Use short sentences, commas, or parentheses. Clear beats clever.
|
|
11
|
+
<!-- OUTPUT-STYLE:END -->
|
|
12
|
+
|
|
13
|
+
## What this skill does
|
|
14
|
+
|
|
15
|
+
The master motion orchestrator: takes static layouts generated by `/istm-design` and injects premium, high-performance animations into them.
|
|
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).
|
|
20
|
+
|
|
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.
|
|
43
|
+
|
|
44
|
+
## Execution
|
|
45
|
+
|
|
46
|
+
The main thread compiles the animation strategy. It must first verify that design tokens exist, as animation cannot exist without a layout.
|
|
47
|
+
|
|
48
|
+
### `Pre-flight` (main thread does this before anything else)
|
|
49
|
+
|
|
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.
|
|
77
|
+
|
|
78
|
+
### After all phases
|
|
79
|
+
|
|
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.
|
|
81
|
+
|
|
82
|
+
## Absolute Motion Enforcement Rules
|
|
83
|
+
|
|
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.
|