@istmx/skills 2.0.0 → 2.1.1
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 +141 -51
- package/RELEASE_v2.1.0.md +68 -0
- package/bin/cli.js +64 -86
- package/context/conversation_transcript.md +786 -0
- package/context/progress.md +129 -0
- package/istm/SKILL.md +20 -11
- package/istm-animate/SKILL.md +19 -11
- package/istm-architecture/SKILL.md +70 -14
- package/istm-architecture/templates/agents.md +21 -2
- package/istm-awwward-designer/SKILL.md +31 -7
- package/istm-design/SKILL.md +26 -12
- package/istm-design/anti-laziness/architectural-patterns.md +55 -0
- package/istm-design/anti-laziness/parameter-tuning.md +44 -0
- package/istm-design/anti-laziness/prompt-engineering.md +52 -0
- package/istm-design/anti-laziness/reference-prompts.md +79 -0
- package/istm-design/archetypes/brandkit/SKILL.md +798 -0
- package/istm-design/archetypes/brutalist/SKILL.md +92 -0
- package/istm-design/archetypes/minimalist/SKILL.md +85 -0
- package/istm-design/archetypes/soft/SKILL.md +98 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +1 -1
- package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1 -1
- package/istm-design/image-to-code/SKILL.md +1228 -0
- package/istm-design/imagegen/SKILL.md +987 -0
- package/istm-design/presets/airbnb/DESIGN.md +545 -0
- package/istm-design/presets/airbnb/README.md +5 -0
- package/istm-design/presets/airtable/DESIGN.md +554 -0
- package/istm-design/presets/airtable/README.md +5 -0
- package/istm-design/presets/apple/DESIGN.md +562 -0
- package/istm-design/presets/apple/README.md +5 -0
- package/istm-design/presets/binance/DESIGN.md +634 -0
- package/istm-design/presets/binance/README.md +5 -0
- package/istm-design/presets/bmw/DESIGN.md +544 -0
- package/istm-design/presets/bmw/README.md +5 -0
- package/istm-design/presets/bmw-m/DESIGN.md +503 -0
- package/istm-design/presets/bmw-m/README.md +5 -0
- package/istm-design/presets/bugatti/DESIGN.md +454 -0
- package/istm-design/presets/bugatti/README.md +5 -0
- package/istm-design/presets/cal/DESIGN.md +542 -0
- package/istm-design/presets/cal/README.md +5 -0
- package/istm-design/presets/catalog.md +127 -0
- package/istm-design/presets/claude/DESIGN.md +589 -0
- package/istm-design/presets/claude/README.md +5 -0
- package/istm-design/presets/clay/DESIGN.md +541 -0
- package/istm-design/presets/clay/README.md +5 -0
- package/istm-design/presets/clickhouse/DESIGN.md +544 -0
- package/istm-design/presets/clickhouse/README.md +5 -0
- package/istm-design/presets/cohere/DESIGN.md +451 -0
- package/istm-design/presets/cohere/README.md +5 -0
- package/istm-design/presets/coinbase/DESIGN.md +570 -0
- package/istm-design/presets/coinbase/README.md +5 -0
- package/istm-design/presets/composio/DESIGN.md +506 -0
- package/istm-design/presets/composio/README.md +5 -0
- package/istm-design/presets/cursor/DESIGN.md +537 -0
- package/istm-design/presets/cursor/README.md +5 -0
- package/istm-design/presets/dell-1996/DESIGN.md +632 -0
- package/istm-design/presets/dell-1996/README.md +5 -0
- package/istm-design/presets/elevenlabs/DESIGN.md +504 -0
- package/istm-design/presets/elevenlabs/README.md +5 -0
- package/istm-design/presets/expo/DESIGN.md +526 -0
- package/istm-design/presets/expo/README.md +5 -0
- package/istm-design/presets/ferrari/DESIGN.md +531 -0
- package/istm-design/presets/ferrari/README.md +5 -0
- package/istm-design/presets/figma/DESIGN.md +578 -0
- package/istm-design/presets/figma/README.md +5 -0
- package/istm-design/presets/framer/DESIGN.md +544 -0
- package/istm-design/presets/framer/README.md +5 -0
- package/istm-design/presets/hashicorp/DESIGN.md +575 -0
- package/istm-design/presets/hashicorp/README.md +5 -0
- package/istm-design/presets/hp/DESIGN.md +670 -0
- package/istm-design/presets/hp/README.md +5 -0
- package/istm-design/presets/ibm/DESIGN.md +550 -0
- package/istm-design/presets/ibm/README.md +5 -0
- package/istm-design/presets/intercom/DESIGN.md +546 -0
- package/istm-design/presets/intercom/README.md +5 -0
- package/istm-design/presets/kraken/DESIGN.md +125 -0
- package/istm-design/presets/kraken/README.md +5 -0
- package/istm-design/presets/lamborghini/DESIGN.md +288 -0
- package/istm-design/presets/lamborghini/README.md +5 -0
- package/istm-design/presets/linear/DESIGN.md +548 -0
- package/istm-design/presets/linear/README.md +5 -0
- package/istm-design/presets/lovable/DESIGN.md +298 -0
- package/istm-design/presets/lovable/README.md +5 -0
- package/istm-design/presets/mastercard/DESIGN.md +365 -0
- package/istm-design/presets/mastercard/README.md +5 -0
- package/istm-design/presets/meta/DESIGN.md +683 -0
- package/istm-design/presets/meta/README.md +5 -0
- package/istm-design/presets/minimax/DESIGN.md +746 -0
- package/istm-design/presets/minimax/README.md +5 -0
- package/istm-design/presets/mintlify/DESIGN.md +852 -0
- package/istm-design/presets/mintlify/README.md +5 -0
- package/istm-design/presets/miro/DESIGN.md +825 -0
- package/istm-design/presets/miro/README.md +5 -0
- package/istm-design/presets/mistral/DESIGN.md +773 -0
- package/istm-design/presets/mistral/README.md +5 -0
- package/istm-design/presets/mongodb/DESIGN.md +767 -0
- package/istm-design/presets/mongodb/README.md +5 -0
- package/istm-design/presets/nike/DESIGN.md +575 -0
- package/istm-design/presets/nike/README.md +5 -0
- package/istm-design/presets/nintendo-2001/DESIGN.md +649 -0
- package/istm-design/presets/nintendo-2001/README.md +5 -0
- package/istm-design/presets/notion/DESIGN.md +821 -0
- package/istm-design/presets/notion/README.md +5 -0
- package/istm-design/presets/nvidia/DESIGN.md +640 -0
- package/istm-design/presets/nvidia/README.md +5 -0
- package/istm-design/presets/ollama/DESIGN.md +539 -0
- package/istm-design/presets/ollama/README.md +5 -0
- package/istm-design/presets/opencode/DESIGN.md +521 -0
- package/istm-design/presets/opencode/README.md +5 -0
- package/istm-design/presets/pinterest/DESIGN.md +597 -0
- package/istm-design/presets/pinterest/README.md +5 -0
- package/istm-design/presets/playstation/DESIGN.md +661 -0
- package/istm-design/presets/playstation/README.md +5 -0
- package/istm-design/presets/posthog/DESIGN.md +690 -0
- package/istm-design/presets/posthog/README.md +5 -0
- package/istm-design/presets/raycast/DESIGN.md +669 -0
- package/istm-design/presets/raycast/README.md +5 -0
- package/istm-design/presets/renault/DESIGN.md +589 -0
- package/istm-design/presets/renault/README.md +5 -0
- package/istm-design/presets/replicate/DESIGN.md +616 -0
- package/istm-design/presets/replicate/README.md +5 -0
- package/istm-design/presets/resend/DESIGN.md +585 -0
- package/istm-design/presets/resend/README.md +5 -0
- package/istm-design/presets/revolut/DESIGN.md +636 -0
- package/istm-design/presets/revolut/README.md +5 -0
- package/istm-design/presets/runwayml/DESIGN.md +244 -0
- package/istm-design/presets/runwayml/README.md +5 -0
- package/istm-design/presets/sanity/DESIGN.md +357 -0
- package/istm-design/presets/sanity/README.md +5 -0
- package/istm-design/presets/sentry/DESIGN.md +551 -0
- package/istm-design/presets/sentry/README.md +5 -0
- package/istm-design/presets/shopify/DESIGN.md +516 -0
- package/istm-design/presets/shopify/README.md +5 -0
- package/istm-design/presets/slack/DESIGN.md +482 -0
- package/istm-design/presets/spacex/DESIGN.md +363 -0
- package/istm-design/presets/spacex/README.md +5 -0
- package/istm-design/presets/spotify/DESIGN.md +246 -0
- package/istm-design/presets/spotify/README.md +5 -0
- package/istm-design/presets/starbucks/DESIGN.md +580 -0
- package/istm-design/presets/starbucks/README.md +5 -0
- package/istm-design/presets/stripe/DESIGN.md +487 -0
- package/istm-design/presets/stripe/README.md +5 -0
- package/istm-design/presets/supabase/DESIGN.md +462 -0
- package/istm-design/presets/supabase/README.md +5 -0
- package/istm-design/presets/superhuman/DESIGN.md +448 -0
- package/istm-design/presets/superhuman/README.md +5 -0
- package/istm-design/presets/tesla/DESIGN.md +286 -0
- package/istm-design/presets/tesla/README.md +5 -0
- package/istm-design/presets/theverge/DESIGN.md +339 -0
- package/istm-design/presets/theverge/README.md +5 -0
- package/istm-design/presets/together/DESIGN.md +633 -0
- package/istm-design/presets/together/README.md +5 -0
- package/istm-design/presets/uber/DESIGN.md +636 -0
- package/istm-design/presets/uber/README.md +5 -0
- package/istm-design/presets/vercel/DESIGN.md +736 -0
- package/istm-design/presets/vercel/README.md +5 -0
- package/istm-design/presets/vodafone/DESIGN.md +538 -0
- package/istm-design/presets/vodafone/README.md +5 -0
- package/istm-design/presets/voltagent/DESIGN.md +521 -0
- package/istm-design/presets/voltagent/README.md +5 -0
- package/istm-design/presets/warp/DESIGN.md +526 -0
- package/istm-design/presets/warp/README.md +5 -0
- package/istm-design/presets/webflow/DESIGN.md +588 -0
- package/istm-design/presets/webflow/README.md +5 -0
- package/istm-design/presets/wired/DESIGN.md +497 -0
- package/istm-design/presets/wired/README.md +5 -0
- package/istm-design/presets/wise/DESIGN.md +544 -0
- package/istm-design/presets/wise/README.md +5 -0
- package/istm-design/presets/xai/DESIGN.md +465 -0
- package/istm-design/presets/xai/README.md +5 -0
- package/istm-design/presets/zapier/DESIGN.md +537 -0
- package/istm-design/presets/zapier/README.md +5 -0
- package/istm-design/references/pick-ui-library.md +1 -1
- package/istm-design/semantic-design/DESIGN.md +121 -0
- package/istm-design/semantic-design/SKILL.md +184 -0
- package/istm-system-design/SKILL.md +12 -5
- package/istm-workflow/istm-autoplan/SKILL.md +1905 -0
- package/istm-workflow/istm-autoplan/SKILL.md.tmpl +923 -0
- package/istm-workflow/istm-craft/SKILL.md +12 -6
- package/istm-workflow/istm-cso/ACKNOWLEDGEMENTS.md +14 -0
- package/istm-workflow/istm-cso/SKILL.md +1313 -0
- package/istm-workflow/istm-cso/SKILL.md.tmpl +407 -0
- package/istm-workflow/istm-cso/sections/audit-phases.md +253 -0
- package/istm-workflow/istm-cso/sections/audit-phases.md.tmpl +251 -0
- package/istm-workflow/istm-cso/sections/manifest.json +14 -0
- package/istm-workflow/istm-debt/SKILL.md +44 -0
- package/istm-workflow/istm-debug/SKILL.md +12 -3
- package/istm-workflow/istm-design-review/SKILL.md +2053 -0
- package/istm-workflow/istm-design-review/SKILL.md.tmpl +312 -0
- package/istm-workflow/istm-develop/SKILL.md +10 -4
- package/istm-workflow/istm-eng-review/SKILL.md +1112 -0
- package/istm-workflow/istm-eng-review/SKILL.md.tmpl +163 -0
- package/istm-workflow/istm-eng-review/sections/manifest.json +14 -0
- package/istm-workflow/istm-eng-review/sections/review-sections.md +942 -0
- package/istm-workflow/istm-eng-review/sections/review-sections.md.tmpl +225 -0
- package/istm-workflow/istm-gain/SKILL.md +50 -0
- package/istm-workflow/istm-health/SKILL.md +1104 -0
- package/istm-workflow/istm-health/SKILL.md.tmpl +320 -0
- package/istm-workflow/istm-qa/BROWSER.md +1468 -0
- package/istm-workflow/istm-qa/SKILL.md +1743 -0
- package/istm-workflow/istm-qa/SKILL.md.tmpl +354 -0
- package/istm-workflow/istm-qa/references/issue-taxonomy.md +85 -0
- package/istm-workflow/istm-qa/templates/qa-report-template.md +126 -0
- package/istm-workflow/istm-release/SKILL.md +989 -0
- package/istm-workflow/istm-release/SKILL.md.tmpl +160 -0
- package/istm-workflow/istm-release/sections/manifest.json +14 -0
- package/istm-workflow/istm-release/sections/release-body.md +547 -0
- package/istm-workflow/istm-release/sections/release-body.md.tmpl +420 -0
- package/istm-workflow/istm-review/SKILL.md +57 -0
- package/istm-workflow/istm-ship/SKILL.md +1504 -0
- package/istm-workflow/istm-ship/SKILL.md.tmpl +582 -0
- package/istm-workflow/istm-ship/sections/adversarial.md +218 -0
- package/istm-workflow/istm-ship/sections/adversarial.md.tmpl +19 -0
- package/istm-workflow/istm-ship/sections/apple-release.md +58 -0
- package/istm-workflow/istm-ship/sections/apple-release.md.tmpl +56 -0
- package/istm-workflow/istm-ship/sections/changelog.md +45 -0
- package/istm-workflow/istm-ship/sections/changelog.md.tmpl +3 -0
- package/istm-workflow/istm-ship/sections/greptile.md +51 -0
- package/istm-workflow/istm-ship/sections/greptile.md.tmpl +49 -0
- package/istm-workflow/istm-ship/sections/manifest.json +62 -0
- package/istm-workflow/istm-ship/sections/plan-completion.md +329 -0
- package/istm-workflow/istm-ship/sections/plan-completion.md.tmpl +31 -0
- package/istm-workflow/istm-ship/sections/pr-body.md +209 -0
- package/istm-workflow/istm-ship/sections/pr-body.md.tmpl +207 -0
- package/istm-workflow/istm-ship/sections/review-army.md +406 -0
- package/istm-workflow/istm-ship/sections/review-army.md.tmpl +56 -0
- package/istm-workflow/istm-ship/sections/test-coverage.md +264 -0
- package/istm-workflow/istm-ship/sections/test-coverage.md.tmpl +23 -0
- package/istm-workflow/istm-ship/sections/tests.md +403 -0
- package/istm-workflow/istm-ship/sections/tests.md.tmpl +116 -0
- package/package.json +6 -3
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
# @istmx/skills Progress Record
|
|
2
|
+
|
|
3
|
+
This document tracks the massive architectural work completed to build the ultimate AI coding agent orchestrator.
|
|
4
|
+
|
|
5
|
+
## Phase 1: The "Impeccable" Context Engine
|
|
6
|
+
- **Master Orchestrator (`SKILL.md`)**: Rewrote the entire root architecture skill to act as a self-consuming bootstrap. It evaluates raw prompts, executes a Discovery Gate, and orchestrates the generation of 4 foundational pillars.
|
|
7
|
+
- **The 4 Pillars**: Created highly structured templates for `.istm-context/`:
|
|
8
|
+
- `agents.md`: The 250-line rulebook and progress memory loops.
|
|
9
|
+
- `project-overview.md`: Business logic and core features.
|
|
10
|
+
- `architecture.md`: System design and API flows.
|
|
11
|
+
- `design.md`: The UX strategy, motion logic, and UI principles.
|
|
12
|
+
- **Aesthetic Enforcement**: Hardcoded strict rules forbidding emojis and forcing the AI to pause for asset uploads, ensuring premium visual output.
|
|
13
|
+
|
|
14
|
+
## Phase 2: The CLI Installer (`bin/cli.js`)
|
|
15
|
+
- **Multi-Tier Harness Detection**: The CLI smartly detects the user's IDE via `process.env.TERM_PROGRAM` or directory scanning (`.cursor`, `.claude`, `.gemini`, `.cline`).
|
|
16
|
+
- **Pure Installer Mode**: The CLI was stripped of redundant interactive questions. It now acts as a silent dropper that prepares the environment for the AI to take over.
|
|
17
|
+
- **The Self-Destruct Loop**:
|
|
18
|
+
- The CLI drops the Master Orchestrator at the root (named after the IDE harness).
|
|
19
|
+
- It drops the blank `agents.md` rulebook into `.istm-context/`.
|
|
20
|
+
- The Orchestrator instructs the AI to interview the user, hydrate `agents.md`, and then overwrite the root Orchestrator file with the finished rulebook.
|
|
21
|
+
|
|
22
|
+
## Phase 3: The 1-2 Punch Workflow (`istm-craft`)
|
|
23
|
+
- Separated "Day Zero" architecture (`istm-architecture`) from "Day-to-Day" feature building.
|
|
24
|
+
- Renamed the bloated JSM `architect` skill to `istm-craft`.
|
|
25
|
+
- Gutted the 29,000-byte JSM file and replaced it with a lean, targeted skill that strictly reads `.istm-context/` blueprints before designing new features in `docs/specs/`.
|
|
26
|
+
|
|
27
|
+
## Phase 4: Full Orchestrator Ecosystem Completion
|
|
28
|
+
- **Architectural Mapping**: Mapped out a highly modular dependency graph linking all skills (`SKILL_ARCHITECTURE.md`).
|
|
29
|
+
- **The Core Orchestrators**: Built out the remaining elite `SKILL.md` files:
|
|
30
|
+
- `/istm-design`: Visual token core with anti-slop rules.
|
|
31
|
+
- `/istm-animate`: Hardware-accelerated motion orchestrator.
|
|
32
|
+
- `/istm-system-design`: Backend logic and schema orchestrator.
|
|
33
|
+
- `/istm-awwward-designer`: Premium frontend engine combining WebGL and GSAP.
|
|
34
|
+
- **The Universal NLP Router (`/istm`)**: Upgraded the God Mode command to semantically route raw prompts to the absolute best skill across the entire ecosystem, including workflow tools like `/audit` and `/istm-craft`.
|
|
35
|
+
- **Structural Distribution**: Removed UI framework stacks out of `system-design` and strictly distributed them to `design` (Shadcn, Uno), `architecture` (Next.js, React, Flutter), and `awwward-designer` (ThreeJS).
|
|
36
|
+
- **GitHub Syncing**: Synced these sweeping changes directly to `istmX/skills` and `laughing-giggle`. Removed legacy files (`install.sh`, `.gitignore`) from `/istm-awwward-designer` via a Pull Request workflow.
|
|
37
|
+
|
|
38
|
+
## Next Steps
|
|
39
|
+
- Write the dynamic install scripts (e.g., inside `bin/cli.js`) to intelligently stitch these completed orchestrators together into the end-user's IDE.
|
|
40
|
+
- Continue refactoring the `/istm-workflow` commands (like `/audit`, `/develop`, `/debug`) to ensure they fully adopt the new Impeccable YAML structure and `.istm-context/` blueprints.
|
|
41
|
+
|
|
42
|
+
## Phase 5: The Awwwards Execution Engine & Refactoring
|
|
43
|
+
- **Execution Conversion (`istm-awwward-designer`)**: Rewrote the premium frontend engine to physically *write code* rather than just output blueprints. Enforced GSAP, Lenis, and strict visual aesthetics.
|
|
44
|
+
- **Reference Library Flattening**: Cleaned up legacy git clone cruft inside `istm-awwward-designer` and flattened the massive `references/` documentation library for direct AI access.
|
|
45
|
+
- **Blueprint Centralization**: Ensured all workflow skills strictly output their blueprints to `.istm-context/` instead of polluting the root repository.
|
|
46
|
+
- **Slash Command Fix**: Identified why custom skills weren't appearing in the Antigravity CLI `/` menu (they need to be in `.gemini/skills/`).
|
|
47
|
+
|
|
48
|
+
## Phase 6: Production CLI & Open-Source NPM Launch
|
|
49
|
+
- **Installer Precision (`bin/cli.js`)**: Fixed the fatal symlinking issue. The installer now perfectly drops the true Universal NLP Router (`/istm`) and correctly routes IDE slash commands into `.gemini/skills/` or `.cursor/rules/`.
|
|
50
|
+
- **Public Ecosystem Preparation**: Obliterated the `_legacy_archive` and messy development files to ensure a lean package size.
|
|
51
|
+
- **Production Manifest**: Transformed `package.json` into a production-ready artifact with native `npx` routing (`bin: "bin/cli.js"`) and SEO-optimized keywords.
|
|
52
|
+
- **The Global README**: Authored a massive, compelling `README.md` introducing "Context-as-a-Service" and the `@istmx/skills` philosophy.
|
|
53
|
+
- **Merge & Publish**: Successfully resolved git merge conflicts on GitHub via command-line force resolution. Masterfully published `npx @istmx/skills` to the global NPM registry via direct OTP bypass token.
|
|
54
|
+
|
|
55
|
+
## Phase 7: NPM SEO Maximization & Global Workflow Injection
|
|
56
|
+
- **SEO Powerhouse**: Completely maxed out the `keywords` array in `package.json` with nearly 90 high-value search terms targeting Generative AI, Awwwards animations (GSAP/Lenis), DX, architectures, and UI/UX.
|
|
57
|
+
- **Google Search Optimization**: Overhauled the GitHub/NPM `README.md` to be extremely highly indexed by Google. Embedded major search intent keywords organically into H1/H2 structures and descriptive paragraphs.
|
|
58
|
+
- **Global Skill Symlinking**: Fixed the IDE detection issue by directly symlinking all `.agents/skills` and nested `istm-workflow` utility skills into the global `~/.gemini/skills/` directory. All slash commands are now natively accessible in the terminal from any folder.
|
|
59
|
+
- **Installer Bug Fix (`bin/cli.js`)**: Modified the NodeJS installer logic to correctly extract individual workflow skills (`istm-audit`, `istm-craft`, etc.) from the `istm-workflow` source directory instead of incorrectly nesting them as a single parent folder in the user's IDE context.
|
|
60
|
+
- **Git Remote Restoration**: Identified and fixed a fatal git collision where the `skills` repository's `origin` remote was incorrectly pointing to the `laughing-giggle` parent directory. Re-routed the config to securely push to `istmX/skills`.
|
|
61
|
+
- **The Masterpiece README**: Completely rewrote the `@istmx/skills` README from scratch. It is now a high-end, engaging manifesto explicitly detailing the exact capabilities of every single Core Orchestrator (e.g., `/istm-awwward-designer`) and Day-to-Day Workflow Skill (e.g., `/istm-debug`, `/istm-craft`), establishing absolute clarity for the open-source community.
|
|
62
|
+
|
|
63
|
+
## Phase 8: Landing Page Expansion (Skills & Sponsors)
|
|
64
|
+
- **Skills Page Interactive UI**: Refactored the generic skills grid into a massive typography list. Implemented responsive fork logic: Desktop features a `FollowerPointerCard` glassmorphic tooltip, while Mobile uses a sleek tap-to-expand accordion using Framer Motion spring physics.
|
|
65
|
+
- **Sponsor Page God Tier Pitch**: Architected and developed a 3-section storytelling funnel for the `/sponsor` route. Transformed it from a basic "0 Sponsors" text into a premium God Sponsor pitch with scrolling animations, dynamic sticky headers, and integrated the `GooeyInput` for immediate lead capture.
|
|
66
|
+
- **Motion Architecture Setup**: Replaced basic intersection observers with scroll-linked physics using Framer Motion's `useScroll` and `useTransform` to bind exact scroll wheel progress to element opacity, scale, and parallax dragging on the Sponsor page.
|
|
67
|
+
|
|
68
|
+
## Phase 9: The Anti-Slop Architecture & Open Source Release
|
|
69
|
+
- **Strict Scaffold Validation**: Overhauled `/istm-architecture` to enforce Just-In-Time Scaffold creation, completely banning the generation of massive empty folder trees upfront. Native framework structures (e.g. Next.js `app/`) are explicitly preserved.
|
|
70
|
+
- **Component Boundary Guardrails**: Codified Feature-Based Architecture rules into the Builder engine. Reusable elements (like Shadcn components) are strictly isolated to `shared/components/`, while feature-specific logic is locked in `features/<name>/components/`.
|
|
71
|
+
- **Dynamic Context Parsing**: Implemented real-time URL ingestion logic into `/istm-craft` and `/istm-develop`. Agents can now scrape documentation URLs pasted into prompts, overriding outdated AI training weights (e.g. Next.js 16 updates) and caching the patterns to `.istm-context/docs/`.
|
|
72
|
+
- **Bespoke Design Token Engine**: Eradicated generic "AI Slop" style presets (Minimal, Brutalism, etc.) from `/istm-design`. Added a mandatory `Step 0` execution gate forcing the AI to recursively read the massive internal `istm-design/` subdirectories to parse user prompts into bespoke typography scaling and semantic color variables.
|
|
73
|
+
- **Open-Source Professionalization**: Upgraded the repository for public scaling. Rewrote the `README.md` to highlight the new deterministic features and solicit community collaboration. Drafted an AI-specific `CODE_OF_CONDUCT.md` and expanded the MIT `LICENSE` to legally guarantee user ownership of all AI-generated code output.
|
|
74
|
+
- **v1.2.0 Launch**: Bumped the framework version across the board, generated the official release notes, guided the GitHub Tag resolution process, and successfully prepared the project for its massive public launch after achieving immense early organic traction.
|
|
75
|
+
|
|
76
|
+
## Phase 10: Cloudflare Deployment & Advanced SEO Architecture
|
|
77
|
+
- **Cloudflare Integration**: Configured the `istm-landing` Next.js application for Cloudflare deployment by installing `@cloudflare/next-on-pages` and generating a strict `wrangler.jsonc` file with Node.js compatibility flags.
|
|
78
|
+
- **Dynamic SEO Enforcement**: Eradicated static `public/sitemap.xml` and `public/robots.txt` files to fix Google Search Console parsing failures. Implemented Next.js dynamic Metadata API endpoints (`app/sitemap.ts` and `app/robots.ts`) to guarantee precise HTTP header delivery.
|
|
79
|
+
- **Agent Knowledge Bases**: Engineered a massive `lmm.txt` file serving as an exhaustive LLM manifesto. It documents the entire CLI architecture, 4 Pillars of Truth, and God Mode frameworks directly for AI crawling. Updated `AGENTS.md` to permanently ban the use of static SEO files.
|
|
80
|
+
- **Global Domain Migration**: Executed a codebase-wide domain migration from Vercel to `https://istmx.dpdns.org`, programmatically updating all OpenGraph, canonical, and structured JSON-LD URL tokens across every Next.js route.
|
|
81
|
+
|
|
82
|
+
## Phase 11: The Omni-Channel Architecture & Dual-Mode Paradigm
|
|
83
|
+
- **Repository Integration**: Successfully extracted and merged the native intelligence from `genjutsu`, `design-dna`, and Emil Kowalski's physics into the core `@istmx/skills` orchestrators. Permanently scrubbed all external branding, ensuring 100% `@istmx` native identity.
|
|
84
|
+
- **Dual-Mode Orchestration**: Rewrote `istm-animate/SKILL.md` and `istm-awwward-designer/SKILL.md` to introduce the **Dual-Mode Paradigm**. Agents now operate as Architects (Context Phase via Discovery Gate) or lethal Executors (Execution Phase via Cast & Paint pipelines).
|
|
85
|
+
- **Omni-Channel Expansion**: Engineered the architecture to natively support multi-platform environments beyond the web. Integrated flawless execution principles for Apple (SwiftUI, Metal) and Android (Jetpack Compose, AGSL).
|
|
86
|
+
- **Claude Code Supremacy**: Completely overhauled the root `README.md` to explicitly optimize the ecosystem for **Claude Code**. Eradicated all hardcoded technology stacks (Next.js, React, Shadcn, Prisma) to establish the orchestrators as 100% stack-agnostic.
|
|
87
|
+
- **Enterprise Guardrails Documentation**: Updated the documentation to heavily highlight the Day-to-Day workflow safety net, explicitly detailing the **Spec Gate** (mathematical refusal to guess) and **Git Guardrails** (mandatory branch status checks).
|
|
88
|
+
- **v2.0 Deployment**: Checked out and committed the massive 23,927+ line codebase update to the `feat/v2-architecture-rebrand` branch, successfully synchronized both `laughing-giggle` and `skills` repositories back to `main`, and published the finalized `RELEASE_v1.2.0.md` for public deployment.
|
|
89
|
+
|
|
90
|
+
## Phase 12: Unified Suite Installer & 7 Root Anti-Slop Architectural Upgrades
|
|
91
|
+
- **Unified Suite Installer (`bin/cli.js`)**: Resolved the dependency calculation bug where selecting God Mode skipped context blueprints. Unified the CLI to drop all core orchestrators, workflow tools, and `.istm-context/` blueprints together without fragmented selection prompts.
|
|
92
|
+
- **7 Root Architectural Upgrades**:
|
|
93
|
+
1. *Anti-Slop Landing Page Standard*: Mandated complete 5–8 section narrative arc (*Hero → Social Proof → Feature Bento → Live Playground/Universe → Deep Dive → Testimonials → Pricing → FAQ → God-Tier Footer*), strictly banning 2-section "Hero + Footer" slop.
|
|
94
|
+
2. *Mandatory Pre-Flight Ingestion Gate*: Enforced cross-skill reading (`istm-animate` and `istm-awwward-designer` must read `istm-design` tokens before writing code).
|
|
95
|
+
3. *Modern Tailwind v4 Standard*: Banned inline arbitrary CSS variables (`bg-[var(--background)]`); enforced modern semantic utility classes (`bg-background`, `text-foreground`, `border-border`, `bg-muted`, `bg-card`).
|
|
96
|
+
4. *Shadcn UI & Primitive Reuse Priority*: Mandated reusing `@/components/ui/` primitives instead of raw unaccessible `<div>` and `<button>` hacks.
|
|
97
|
+
5. *Stack-Idiomatic Structure & Live Research Gate*: Banned dogmatic `features/` folder forcing; respected framework-native conventions (Next.js `app/`, Nuxt, Vite, Flutter). Enabled live web/doc searches for bleeding-edge frameworks.
|
|
98
|
+
6. *Compiler-Grade TypeScript*: Strictly enforced `No any` tolerance, discriminated unions, and Zod inference.
|
|
99
|
+
7. *Clean Code & Noise Comment Ban*: Strictly banned chatty, redundant comments (`// handle click`, `// button component`); self-documenting code only.
|
|
100
|
+
- **PR #18 Merged**: Pushed 6 atomic commits on branch `feat/anti-slop-root-standards`, merged via PR #18, and synchronized with `main`.
|
|
101
|
+
|
|
102
|
+
## Phase 13: Enterprise SDLC Expansion, Headless Browser QA, Design Archetypes & Anti-Laziness
|
|
103
|
+
- **Design Archetypes & Visual Intelligence (`istm-design/`)**: Integrated `brutalist`, `minimalist`, `soft`, and `brandkit` design archetypes, `image-to-code` reverse-engineering pipeline, `semantic-design` compiler, and research-backed anti-laziness XML verification loops to eliminate output truncation.
|
|
104
|
+
- **Senior Developer Efficiency Suite (`istm-workflow/`)**: Enforced the 7-Rung Efficiency Ladder (YAGNI, reuse, stdlib, platform, minimal diff) and Grep-All-Callers root cause resolution across `/istm-debug` and `/istm-develop`. Added `/istm-gain`, `/istm-debt`, and `/istm-review`.
|
|
105
|
+
- **Enterprise Autonomous Testing & QA (`istm-workflow/`)**: Added `/istm-qa` with headless browser automation (`BROWSER.md`) for visual breakpoint validation and interaction verification, alongside `/istm-cso` (vulnerability and secret leak scanner).
|
|
106
|
+
- **Autonomous Lifecycle Workflows (`istm-workflow/`)**: Added `/istm-health`, `/istm-ship`, `/istm-autoplan`, `/istm-sprint`, `/istm-design-review`, `/istm-eng-review`, and `/istm-release`.
|
|
107
|
+
- **100% Native `@istmx` Scrubbing**: Permanently scrubbed all external branding, authors, and third-party references. Everything is 100% native `@istmx` architecture.
|
|
108
|
+
- **Dynamic Installer Discovery (`bin/cli.js`)**: Updated the installer and master router `/istm` to dynamically discover and inject all new workflow skills into user harnesses.
|
|
109
|
+
- **PR #19 Merged**: Pushed 5 atomic commits on branch `feat/omni-sdlc-expansion`, merged via PR #19, and cleanly synchronized back to `main`.
|
|
110
|
+
|
|
111
|
+
## Phase 14: 70+ Production Design Presets Catalog & Dynamic Discovery Engine
|
|
112
|
+
- **70+ Production Design Presets (`istm-design/presets/`)**: Integrated reverse-engineered specifications across AI/RAG (`claude`, `cursor`, `cohere`, `mistral`, `ollama`, `elevenlabs`, `xai`), DevTools (`linear`, `vercel`, `supabase`, `raycast`, `posthog`, `clickhouse`, `sentry`, `mongodb`, `warp`), Fintech (`stripe`, `wise`, `coinbase`, `binance`, `kraken`, `revolut`, `mastercard`), Creative (`figma`, `notion`, `framer`, `miro`, `airtable`, `cal`, `intercom`), Luxury (`porsche`, `ferrari`, `bugatti`, `lamborghini`, `bmw-m`, `tesla`), and Commerce (`apple`, `airbnb`, `spotify`, `shopify`, `nike`, `uber`).
|
|
113
|
+
- **Central Taxonomy ([`istm-design/presets/catalog.md`](file:///workspaces/skills/istm-design/presets/catalog.md))**: Categorized all presets by industry domain with exact palettes, font pairings, and keyword triggers.
|
|
114
|
+
- **Dynamic Discovery Matching in `/istm-design`**: Enabled direct keyword matching (`--preset=linear`, `stripe-style`), domain-based recommendations during Discovery Gate interviews, and on-demand aesthetic switching.
|
|
115
|
+
- **PR #20 Merged**: Pushed commit on branch `feat/presets-catalog-engine`, merged via PR #20, and synchronized with `main`.
|
|
116
|
+
|
|
117
|
+
## Phase 15: 2-Track Architecture Engine (Greenfield vs. Brownfield Reverse-Engineering)
|
|
118
|
+
- **Track 1 (Greenfield Setup)**: Evaluates user prompts, executes domain interviews via the Discovery Gate, applies smart defaults, and scaffolds fresh 4 Pillars from templates.
|
|
119
|
+
- **Track 2 (Brownfield Reverse-Engineering)**: Zero-interrogation mode. Automatically scans `package.json`, runtime frameworks (Next.js, Nuxt, Vite, FastAPI), styling tokens (Tailwind v4, Shadcn), ORMs (Prisma, Drizzle), and Auth providers (Auth.js, Supabase, Clerk). Faithfully reverse-engineers `architecture.md`, `design.md`, `project-overview.md`, and `agents.md` to document the real codebase state with a non-destructive guarantee.
|
|
120
|
+
- **Track 3 (Gap Fill)**: Safely updates `.istm-context/` blueprints to match evolving requirements without wiping unrelated architectural context.
|
|
121
|
+
- **PR #21 Merged**: Pushed commit on branch `feat/brownfield-codebase-architecture`, merged via PR #21, and cleanly synchronized back to `main`.
|
|
122
|
+
|
|
123
|
+
## Phase 16: Flagship README Overhaul & v2.1.0 Release Preparation
|
|
124
|
+
- **Flagship README Overhaul ([`README.md`](file:///workspaces/skills/README.md))**: Rewrote the entire root README into an enterprise-grade product manifesto. Showcased the full matrix of core orchestrators and workflow tools with real-world prompt examples, documented the 70+ Presets Directory, codified the 7 Root Anti-Slop Laws, and detailed the 4 Pillars of Truth architecture.
|
|
125
|
+
- **v2.1.0 Release Notes ([`RELEASE_v2.1.0.md`](file:///workspaces/skills/RELEASE_v2.1.0.md))**: Drafted dedicated v2.1.0 release notes summarizing the 70+ brand presets, automated headless browser QA testing (`BROWSER.md`), 2-track architecture engine, senior-dev efficiency suite, and anti-slop rules.
|
|
126
|
+
- **Version Bump**: Bumped `package.json` to `v2.1.0` with updated metadata.
|
|
127
|
+
- **npm Authentication**: Verified npm token configuration for automated public package deployment.
|
|
128
|
+
- **Presets Mechanics Refinement**: Upgraded the Presets section in [`README.md`](file:///workspaces/skills/README.md) to clearly explain how tokens are compiled into `.istm-context/design.md` and mapped to Tailwind v4 semantic classes, complete with copy-pasteable example prompt recipes.
|
|
129
|
+
- **Positive Product Framing**: Refactored the engineering standards and intro in [`README.md`](file:///workspaces/skills/README.md) to use positive, high-agency language focused on production excellence and multi-layered storytelling.
|
package/istm/SKILL.md
CHANGED
|
@@ -41,17 +41,26 @@ Gather signals to determine the archetype:
|
|
|
41
41
|
|
|
42
42
|
### Route to the selected phase (Semantic Mapping)
|
|
43
43
|
|
|
44
|
-
Analyze the prompt and
|
|
45
|
-
|
|
46
|
-
1. **If they want to build or design a brand new project**:
|
|
47
|
-
- Standard SaaS / Web App:
|
|
48
|
-
- Premium Marketing Site (GSAP/WebGL):
|
|
49
|
-
- Backend APIs only:
|
|
50
|
-
|
|
51
|
-
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
-
|
|
44
|
+
Analyze the prompt and immediately route execution to the absolute best skill in the installed suite:
|
|
45
|
+
|
|
46
|
+
1. **If they want to build or design a brand new project (Day Zero)**:
|
|
47
|
+
- Standard SaaS / Full-Stack Web App: Delegate immediately to `/istm-architecture` to execute the Discovery Gate and create the 4 Pillars of Truth.
|
|
48
|
+
- Premium Marketing Site (GSAP/WebGL/Animations): Delegate immediately to `/istm-awwward-designer` to build the interaction thesis and physical universe.
|
|
49
|
+
- Backend APIs / Database Schema only: Delegate immediately to `/istm-system-design`.
|
|
50
|
+
- Dedicated UI Design System / Design Tokens: Delegate immediately to `/istm-design`.
|
|
51
|
+
- Specialized Motion Curves / Hardware Physics: Delegate immediately to `/istm-animate`.
|
|
52
|
+
|
|
53
|
+
2. **If they want Day-to-Day Execution (Workflow Suite)**:
|
|
54
|
+
- Building a specific feature: Execute `/istm-craft` to spec it out, followed by `/istm-develop` to write the code.
|
|
55
|
+
- Debugging a complex error: Execute `/istm-debug` (7-Rung Efficiency Ladder & root-cause caller tracing).
|
|
56
|
+
- Reviewing code quality & tech debt: Execute `/istm-audit`, `/istm-debt`, or `/istm-check`.
|
|
57
|
+
- Security & Vulnerability scans: Execute `/istm-cso`.
|
|
58
|
+
- Automated Browser QA & Visual Testing: Execute `/istm-qa` (headless browser interaction & layout validation).
|
|
59
|
+
- Performance & Bundle Optimization: Execute `/istm-gain`.
|
|
60
|
+
- Code Review & Pre-Merge Audits: Execute `/istm-review` or `/istm-eng-review`.
|
|
61
|
+
- Sprint & Milestone Planning: Execute `/istm-autoplan` or `/istm-sprint`.
|
|
62
|
+
- Shipping & Release Management: Execute `/istm-ship` or `/istm-release`.
|
|
63
|
+
- Writing tests: Execute `/istm-test`.
|
|
55
64
|
|
|
56
65
|
### Phase 0: Classify (only when `pre-flight` is ambiguous)
|
|
57
66
|
|
package/istm-animate/SKILL.md
CHANGED
|
@@ -38,20 +38,28 @@ Automatically detects the stack across Web (GSAP, Framer Motion, CSS), Android (
|
|
|
38
38
|
## Execution
|
|
39
39
|
|
|
40
40
|
### `Pre-flight` (main thread does this before anything else)
|
|
41
|
-
1.
|
|
42
|
-
2.
|
|
43
|
-
3. If the request is
|
|
41
|
+
1. **Mandatory Token Ingestion Gate**: Read `.istm-context/design.md` and `istm-design/` token rules (colors, typography, spacing) to ensure motion aligns with the global visual tokens.
|
|
42
|
+
2. Read the user's prompt and scan the stack.
|
|
43
|
+
3. If the request is a vague setup ("setup animation rules"), execute the Context Phase.
|
|
44
|
+
4. If the request is an implementation command ("animate this hero section"), execute the Execution Phase (Cast Pipeline).
|
|
44
45
|
|
|
45
46
|
### The Cast Pipeline (Execution Phase)
|
|
46
|
-
1. **Scan Stack**: Determine
|
|
47
|
-
2. **Evaluate Scope**: Analyze the component to animate.
|
|
47
|
+
1. **Scan Stack & Ingest**: Determine Web, Android, or Apple. Cross-reference `design.md`.
|
|
48
|
+
2. **Evaluate Scope**: Analyze the component to animate without breaking primitive accessibility.
|
|
48
49
|
3. **Propose Interaction Thesis**: Use `references/vocabulary.md` to propose exact easing, physics, and intent. **Discovery Gate:** Ask the user if they want to preview it as an Artifact, Live Preview, or Inline text.
|
|
49
|
-
4. **Implement**: Write the physical code into the project files.
|
|
50
|
+
4. **Implement**: Write the physical code into the project files using clean semantic Tailwind v4 tokens and strict types.
|
|
50
51
|
5. **Mini-Audit**: Run a quick audit (reduced-motion check, exit animations, memory leak prevention).
|
|
51
52
|
|
|
52
|
-
## Absolute Motion Enforcement Rules
|
|
53
|
+
## Absolute Motion & Code Enforcement Rules
|
|
54
|
+
|
|
55
|
+
1. **Mandatory Design Cross-Referencing**: Motion MUST harmonize with the semantic colors and layout spacing defined in `istm-design`. Never inject raw arbitrary color styles.
|
|
56
|
+
2. **Modern Tailwind v4 Semantic Standard**:
|
|
57
|
+
- Strictly FORBID ugly inline arbitrary variables like `bg-[var(--background)]`.
|
|
58
|
+
- Use clean semantic utility classes (`bg-background`, `text-foreground`, `border-border`, `bg-muted`).
|
|
59
|
+
3. **Hardware Acceleration**: Only animate `transform` (translate, scale, rotate) and `opacity`. Layout animating properties (`width`, `height`, `top`, `left`) are strictly forbidden.
|
|
60
|
+
4. **Custom Easing**: Explicitly define custom curves (e.g., `power3.out`, spring configurations). Never use generic `ease-in-out`.
|
|
61
|
+
5. **Scroll-Jacking Restraint**: Scroll-jacking MUST be attached to a defined start and end point. Infinite scrolling traps are forbidden.
|
|
62
|
+
6. **Cleanup**: Every component that mounts a GSAP timeline, Lenis instance, or physics listener MUST explicitly kill it on unmount.
|
|
63
|
+
7. **Compiler-Grade TypeScript (Zero `any` Tolerance)**: Absolute ban on `any` and `unknown as any`. Strict typing on all animation hooks, refs, and spring variants.
|
|
64
|
+
8. **Clean Code & Noise Comment Ban**: Strictly ban redundant comments (`// animate on hover`, `// spring transition`). Self-documenting code only.
|
|
53
65
|
|
|
54
|
-
1. **Hardware Acceleration**: Only animate `transform` (translate, scale, rotate) and `opacity`.
|
|
55
|
-
2. **Custom Easing**: Explicitly define custom curves (e.g., `power3.out`). Never use generic `ease-in-out`.
|
|
56
|
-
3. **Scroll-Jacking Restraint**: Scroll-jacking MUST be attached to a defined start and end point. Infinite scrolling traps are forbidden.
|
|
57
|
-
4. **Cleanup**: Every component that mounts a timeline/listener MUST explicitly kill it on unmount.
|
|
@@ -21,13 +21,42 @@ The master context orchestrator: evaluates user prompts, resolves structural amb
|
|
|
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
23
|
|
|
24
|
-
## Folder Structure &
|
|
25
|
-
|
|
26
|
-
1. **
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
- **
|
|
30
|
-
|
|
24
|
+
## Folder Structure & Stack-Idiomatic Architecture
|
|
25
|
+
|
|
26
|
+
1. **Stack-Idiomatic Structure**: Respect native framework conventions without dogmatic over-engineering:
|
|
27
|
+
- **Next.js (App Router)**: Native `app/` routes, `components/ui/` for primitives, and colocated or domain components where appropriate.
|
|
28
|
+
- **Vite / React / Vue / Nuxt / SvelteKit / Flutter / Mobile**: Strictly adhere to the canonical structure of the target framework.
|
|
29
|
+
- **Existing Codebases**: Always inspect and adopt existing directory conventions before introducing new paths.
|
|
30
|
+
2. **Live Stack Research Gate**: When scaffolding unfamiliar, new, or bleeding-edge framework versions (e.g. Next.js 15/16, React 19, Tailwind v4, Vite 6), execute a live web search or official documentation lookup to verify current directory conventions, router configurations, and config filenames before generating code.
|
|
31
|
+
3. **Component Architecture & Primitive Reuse**:
|
|
32
|
+
- **UI Primitives (`@/components/ui/` or `shared/components/`)**: Atomic, reusable building blocks (Buttons, Dialogs, Inputs, Tooltips, Sheets, Dropdowns). ALWAYS reuse existing Shadcn UI / Radix primitives instead of reinventing bespoke, unaccessible `<div>` and `<button>` hacks.
|
|
33
|
+
- **Composite Sections (Page / Domain Specific)**: High-level stateful assemblies and narrative sections (HeroSection, PricingTable, CheckoutForm, InteractivePlayground) that consume atomic primitives.
|
|
34
|
+
|
|
35
|
+
## Landing Page Narrative Arc Law (Anti-Slop Standard)
|
|
36
|
+
|
|
37
|
+
Lazy 2-section outputs (Hero + Footer only) are strictly banned as generic AI slop. Any landing page, marketing site, or full-page experience must construct a complete, multi-layered narrative arc with rich visual craft:
|
|
38
|
+
|
|
39
|
+
1. **High-Impact Hero**: Compelling value proposition, primary/secondary CTAs, live preview/visual anchor.
|
|
40
|
+
2. **Social Proof & Trust**: Partner/client logos, live developer counts, security badges, or performance metrics.
|
|
41
|
+
3. **Interactive Bento Grid / Feature Showcase**: Asymmetrical bento grid highlighting core capabilities with subtle hover states.
|
|
42
|
+
4. **Live Interactive Universe / Demo**: A tangible, interactive playground, live canvas, or sandbox allowing users to experience the product directly.
|
|
43
|
+
5. **Deep-Dive Architecture & Value Columns**: Technical deep-dive, side-by-side workflow comparisons, or architecture breakdowns.
|
|
44
|
+
6. **Social Validation / Case Studies**: Verifiable developer quotes, case studies, or user reviews with authentic typography.
|
|
45
|
+
7. **Pricing & Conversion Funnel**: Transparent tiers, feature comparison matrix, and clear upgrade triggers.
|
|
46
|
+
8. **Interactive FAQ Accordion**: Smooth expand/collapse answers addressing user objections and technical questions.
|
|
47
|
+
9. **God-Tier Footer**: Full navigation columns, live status indicators, newsletter/CTA, and brand manifesto.
|
|
48
|
+
|
|
49
|
+
## Modern Styling & TypeScript Standards
|
|
50
|
+
|
|
51
|
+
1. **Tailwind v4 Semantic Token Standard**:
|
|
52
|
+
- Strictly FORBID ugly inline arbitrary variables like `bg-[var(--background)]`, `text-[var(--primary)]`, or `border-[var(--border)]`.
|
|
53
|
+
- Enforce clean first-class semantic utility tokens (`bg-background`, `text-foreground`, `bg-muted`, `text-muted-foreground`, `border-border`, `bg-card`, `text-card-foreground`) mapped directly via `@theme` or root CSS variables.
|
|
54
|
+
2. **Compiler-Grade TypeScript (Zero `any` Tolerance)**:
|
|
55
|
+
- Absolute ban on `any` and `unknown as any`.
|
|
56
|
+
- Mandate strict TypeScript interfaces, discriminated unions for UI/server state machines, Zod schema validation on all inputs, and inferred types from ORMs/schemas.
|
|
57
|
+
3. **Clean Code & Noise Comment Ban**:
|
|
58
|
+
- Strictly forbid redundant, chatty comments (`// handle click`, `// button component`, `// state for user`).
|
|
59
|
+
- Code must be self-documenting. Comments are permitted ONLY for non-obvious business invariants, complex mathematical equations, or custom physics/shader algorithms.
|
|
31
60
|
|
|
32
61
|
## Blueprint file convention (The 4 Pillars)
|
|
33
62
|
|
|
@@ -78,24 +107,50 @@ Pick the phase based on these signals:
|
|
|
78
107
|
| No flag, no pillars, no code (or raw prompt) | Phase 1 (Greenfield: execute Discovery Gate and Interview). |
|
|
79
108
|
| No flag, no pillars, but `HAS_CODE` | Phase 0 (Ambiguous: ask if they want to bootstrap from prompt or reverse-engineer from code). |
|
|
80
109
|
|
|
81
|
-
### Route to the selected phase
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
-
|
|
85
|
-
-
|
|
110
|
+
### Route to the selected phase (The 2-Track Architecture Engine)
|
|
111
|
+
|
|
112
|
+
#### Track 1: Greenfield Setup (Brand New Project)
|
|
113
|
+
- **Discovery Gate**: Evaluate the user's raw prompt and idea domain (transactional SaaS, real-time collab, e-commerce, portfolio).
|
|
114
|
+
- **Interactive Interview**: Ask targeted multiple-choice questions to resolve load-bearing unknowns (Auth provider, Database/ORM, Asset strategy). Do not ask enterprise caching questions for a small MVP.
|
|
115
|
+
- **Smart Defaults**: If the user has no preference, apply stable, modern defaults (PostgreSQL, Prisma/Drizzle, Next.js App Router, Tailwind v4, Shadcn UI).
|
|
116
|
+
- **Template Hydration**: Hydrate the 4 Pillar templates from `istm-architecture/templates/` with fresh choices.
|
|
117
|
+
|
|
118
|
+
#### Track 2: Brownfield Reverse-Engineering (Existing Codebase)
|
|
119
|
+
- **Zero Interrogation**: Bypass the interview entirely. Do NOT ask what database, auth, or CSS framework to use if the codebase already contains them.
|
|
120
|
+
- **Step 2.A — Automatic Runtime & Dependency Ingestion**:
|
|
121
|
+
- Read `package.json` dependencies and devDependencies (or `Cargo.toml`, `pyproject.toml`, `go.mod`).
|
|
122
|
+
- Automatically detect runtime (`Next.js App/Pages Router`, `Vite`, `Nuxt`, `SvelteKit`, `Remix`, `FastAPI`, `Expo`).
|
|
123
|
+
- Automatically detect styling (`Tailwind v4`, `Tailwind v3`, `CSS Modules`, `Shadcn UI`, `@radix-ui`).
|
|
124
|
+
- Automatically detect DB & ORM (`Prisma`, `Drizzle`, `Mongoose`, `Supabase`, `PostgreSQL`, `MySQL`).
|
|
125
|
+
- Automatically detect Auth & State (`Auth.js/NextAuth`, `Supabase Auth`, `Clerk`, `Firebase`, `Zustand`, `TanStack Query`).
|
|
126
|
+
- **Step 2.B — Structural & Schema Ingestion**:
|
|
127
|
+
- Read live schema files (`prisma/schema.prisma`, `src/db/schema.ts`, `drizzle/`, `models/`).
|
|
128
|
+
- Read route hierarchy (`app/`, `pages/`, `src/routes/`, `routes/`, `api/`).
|
|
129
|
+
- Read design tokens and styles (`globals.css`, `tailwind.config.*`, `@/components/ui/`).
|
|
130
|
+
- **Step 2.C — Reverse-Engineered 4 Pillars Hydration**:
|
|
131
|
+
- `architecture.md`: Accurately documents the **actual live database models**, active API endpoints, server actions, and table relations.
|
|
132
|
+
- `design.md`: Extracts the **actual color variables**, font families from `layout.tsx`/`globals.css`, and existing component primitives.
|
|
133
|
+
- `project-overview.md`: Summarizes real project purpose from READMEs, package metadata, and domain routes.
|
|
134
|
+
- `agents.md`: Locks in **existing codebase conventions** (preserves `src/` vs root, custom linters, existing helper paths) with zero destructive rewrites.
|
|
135
|
+
- **Step 2.D — Non-Destructive Guarantee**:
|
|
136
|
+
- Never delete, overwrite, or refactor existing working application code.
|
|
137
|
+
- Established patterns are documented as the immutable law for all future AI generations.
|
|
138
|
+
|
|
139
|
+
#### Track 3: Gap Fill (Updating Existing Context)
|
|
140
|
+
- Read existing `.istm-context/` blueprints. Identify what the new prompt requires. Update existing blueprints carefully without wiping unrelated context.
|
|
86
141
|
|
|
87
142
|
### Phase 0: Classify (only when `pre-flight` is ambiguous)
|
|
88
143
|
|
|
89
144
|
Don't guess. Ask once via your agent's interactive option picker (`AskUserQuestion`), or plain text.
|
|
90
145
|
- question: "I see an existing codebase, but no `.istm-context/` blueprints. How should I proceed?"
|
|
91
146
|
- header: "Project state"
|
|
92
|
-
- options: 1. `Reverse-Engineer from Codebase`, "I will
|
|
147
|
+
- options: 1. `(Recommended) Reverse-Engineer from Codebase`, "I will scan your files and accurately document the existing architecture." → Track 2 (Phase 2). 2. `Start Fresh from Prompt`, "I will interview you and scaffold a fresh architecture." → Track 1 (Phase 1).
|
|
93
148
|
|
|
94
149
|
### After all phases
|
|
95
150
|
|
|
96
151
|
If no templates were written when they should have been, report the failure.
|
|
97
152
|
|
|
98
|
-
**CRITICAL SELF-DESTRUCT RULE**: Once
|
|
153
|
+
**CRITICAL SELF-DESTRUCT RULE**: Once Track 1 or Track 2 is complete and you have fully hydrated the rulebook template (`agents.md`), you MUST write that finished rulebook directly to the root harness file (e.g., `.cursorrules`, `CLAUDE.md`, `GEMINI.md`), overwriting this very orchestrator script. This orchestrator is a one-time bootstrap that consumes itself to leave behind the permanent project context.
|
|
99
154
|
|
|
100
155
|
Otherwise, relay the report: what was discovered, what templates were written, and what tech stack choices were locked in.
|
|
101
156
|
|
|
@@ -116,3 +171,4 @@ When generating or referencing the blueprints, you must enforce the UI extractio
|
|
|
116
171
|
- **Color Palettes**: Read `design/colors`. Extract the exact semantic background, surface, and ink tokens. Never hallucinate raw hex codes.
|
|
117
172
|
- **Motion**: Read `animate/`. You must adhere strictly to the Dual Motion Standard.
|
|
118
173
|
- Ensure these constraints are permanently written into the final `agents.md` memory file.
|
|
174
|
+
|
|
@@ -71,13 +71,31 @@ Always prefer:
|
|
|
71
71
|
- Scalability
|
|
72
72
|
- Readability
|
|
73
73
|
- Reusability
|
|
74
|
-
-
|
|
74
|
+
- Strict compiler-grade type safety (Zero `any` tolerance)
|
|
75
75
|
- Predictable architecture
|
|
76
|
+
- Self-documenting clean code (No chatty noise comments)
|
|
76
77
|
|
|
77
78
|
Never write code only because it works. Write code that another engineer can immediately understand.
|
|
78
79
|
|
|
79
80
|
---
|
|
80
81
|
|
|
82
|
+
# Core Engineering & Code Standards
|
|
83
|
+
|
|
84
|
+
1. **Compiler-Grade TypeScript**:
|
|
85
|
+
- Strictly forbid `any` and `unknown as any`.
|
|
86
|
+
- Mandate explicit interfaces, discriminated unions for state, and Zod inference on all inputs.
|
|
87
|
+
2. **Modern Tailwind v4 Semantic Tokens**:
|
|
88
|
+
- Strictly forbid ugly inline arbitrary variables like `bg-[var(--background)]` or `text-[var(--foreground)]`.
|
|
89
|
+
- Use clean semantic utility classes (`bg-background`, `text-foreground`, `bg-muted`, `text-muted-foreground`, `border-border`, `bg-card`).
|
|
90
|
+
3. **Primitive Reuse Priority (Shadcn UI)**:
|
|
91
|
+
- For all interactive atoms (buttons, inputs, dialogs, dropdowns, tooltips, sheets, accordions), ALWAYS reuse/import from `@/components/ui/` (or shared primitives). Never write unaccessible custom `<div>` click handlers.
|
|
92
|
+
4. **Stack-Idiomatic Structure**:
|
|
93
|
+
- Respect native framework directory structures (e.g., Next.js App Router `app/`). Never force artificial folder nesting.
|
|
94
|
+
5. **Noise Comment Ban**:
|
|
95
|
+
- Strictly forbid redundant comments (`// handle click`, `// button component`). Comments are permitted ONLY for non-obvious business invariants, mathematical algorithms, or custom physics.
|
|
96
|
+
|
|
97
|
+
---
|
|
98
|
+
|
|
81
99
|
# Frontend Layout and Text-Wrapping Safety
|
|
82
100
|
|
|
83
101
|
Before adding or changing frontend UI, verify the rendered parent width and alignment at desktop and mobile sizes.
|
|
@@ -85,10 +103,11 @@ Before adding or changing frontend UI, verify the rendered parent width and alig
|
|
|
85
103
|
- Do not make a flex or grid text wrapper shrink-to-fit accidentally. A content row that owns a full-width child should explicitly use `w-full min-w-0` when appropriate.
|
|
86
104
|
- Do not use `overflow-wrap: anywhere` for normal prose. It can reduce intrinsic width and cause a parent to collapse, producing one-word or one-character lines.
|
|
87
105
|
- Do not use display/tall fonts or very small `max-w-*` values for body copy. Paragraphs should use the body font and a readable measure, generally around 45–75 characters per line.
|
|
88
|
-
- Do not hardcode UI surface, text, border, or semantic-state colors in components. Use the semantic tokens (`bg-
|
|
106
|
+
- Do not hardcode UI surface, text, border, or semantic-state colors in components. Use the semantic tokens (`bg-background`, `bg-card`, `text-foreground`, `border-border`) so light and dark themes stay coherent.
|
|
89
107
|
- Use the product sans token for body copy, headings, buttons, forms, and navigation. Use the tall/display face only for deliberate editorial hero typography.
|
|
90
108
|
- Shared buttons must use the button component vocabulary and typography tokens. New button-like links should reuse existing buttons before introducing a one-off font, radius, or height.
|
|
91
109
|
|
|
110
|
+
|
|
92
111
|
---
|
|
93
112
|
|
|
94
113
|
# Planning Before Coding
|
|
@@ -32,9 +32,11 @@ You WRITE the overarching universe spec:
|
|
|
32
32
|
## Execution
|
|
33
33
|
|
|
34
34
|
### `Pre-flight` (main thread does this before anything else)
|
|
35
|
-
1. Read the
|
|
36
|
-
2.
|
|
37
|
-
3.
|
|
35
|
+
1. **Mandatory Token Ingestion Gate**: Read `.istm-context/design.md` and the `istm-design/` token rules (typography scaling, semantic color tokens, spacing) to ensure visual coherence.
|
|
36
|
+
2. **Trend & Pattern Ingestion**: If requested for cutting-edge 2026 aesthetics or unfamiliar libraries, execute a live search to benchmark modern Awwwards/WebGL interaction patterns.
|
|
37
|
+
3. Read the user's prompt:
|
|
38
|
+
- If the request is for a full experience/landing page or starting from scratch, execute the Context Phase (Paint Pipeline - Full).
|
|
39
|
+
- If the request is localized (e.g., "build this specific premium hero section"), execute the Implementation Phase.
|
|
38
40
|
|
|
39
41
|
### The Paint Pipeline
|
|
40
42
|
1. **Brainstorm (Discovery Gate)**: Mandatory creative direction session. Ask questions to establish the visual and interaction thesis. Show the user the proposed identity.
|
|
@@ -43,9 +45,31 @@ You WRITE the overarching universe spec:
|
|
|
43
45
|
4. **Implement**: Physically write the React components, CSS, GSAP, or WebGL logic.
|
|
44
46
|
5. **Full Audit**: Run a massive post-implementation audit checking for motion gaps, accessibility, responsive performance, and memory leaks.
|
|
45
47
|
|
|
48
|
+
## Landing Page Narrative Arc Law (Anti-Slop Standard)
|
|
49
|
+
|
|
50
|
+
Generating a lazy 2-section page (Hero + Footer only) is strictly banned as AI slop. When asked to create an Awwwards-level landing page or site experience, you MUST build a complete, immersive 5–8 section narrative universe:
|
|
51
|
+
|
|
52
|
+
1. **High-Impact Cinematic Hero**: Magnetic value proposition, primary/secondary CTAs, live WebGL/GSAP centerpiece or interactive 3D/canvas anchor.
|
|
53
|
+
2. **Social Proof & Trust Layer**: High-contrast client/partner logos, live metric counters, or verified developer statistics.
|
|
54
|
+
3. **Interactive Bento Feature Universe**: Asymmetrical bento grid with dynamic mouse-tracking spotlights, magnetic hover borders, and fluid micro-interactions.
|
|
55
|
+
4. **Live Interactive Playground / Canvas Demo**: A tangible, functional playground or real-time simulation allowing users to interact directly with the core product mechanics.
|
|
56
|
+
5. **Deep-Dive Engineering & Value Columns**: Architecture breakdown, interactive comparison sliders, or code-diff showcases.
|
|
57
|
+
6. **Social Validation & Testimonial Wall**: Verifiable user quotes, case studies, or developer reviews with editorial typography.
|
|
58
|
+
7. **Pricing & Conversion Funnel**: Premium tiered cards with glowing border highlights and frictionless conversion triggers.
|
|
59
|
+
8. **Interactive FAQ Accordion**: Smooth height-interpolated expand/collapse accordion.
|
|
60
|
+
9. **God-Tier Masterpiece Footer**: Full navigation matrix, live status indicators, newsletter capture, and bold brand manifesto.
|
|
61
|
+
|
|
46
62
|
## Absolute Awwwards Execution Rules
|
|
47
63
|
|
|
48
|
-
1. **
|
|
49
|
-
2. **
|
|
50
|
-
|
|
51
|
-
|
|
64
|
+
1. **Mandatory Design Cross-Referencing**: Never invent raw hex codes or unaligned typography. All components MUST consume the semantic tokens defined in `istm-design` and `.istm-context/design.md`.
|
|
65
|
+
2. **Modern Tailwind v4 Semantic Standard**:
|
|
66
|
+
- Strictly FORBID ugly inline arbitrary variables like `bg-[var(--background)]` or `text-[var(--foreground)]`.
|
|
67
|
+
- Use clean Tailwind v4 semantic utilities (`bg-background`, `text-foreground`, `bg-muted`, `border-border`, `bg-card`).
|
|
68
|
+
3. **Primitive Reuse Priority**: Reusable atoms (buttons, inputs, dialogs, tooltips, sheets) MUST be imported from `@/components/ui/` (Shadcn UI). Never write unaccessible custom `<div>` click handlers.
|
|
69
|
+
4. **Translate Human to Tech**: When the user says "smooth", you code `ease: power4.out`. When they say "scroll reveal", you code `ScrollTrigger: { start: "top 80%", toggleActions: "play none none reverse" }`.
|
|
70
|
+
5. **DOM Performance Strictness**: Mandate `will-change: transform`. Absolutely forbid animating layout properties (`width`, `height`, `top`, `left`). Animate `transform` and `opacity` only.
|
|
71
|
+
6. **Cleanup Mandate**: Every component involving a GSAP timeline, Lenis smooth scrolling, or physics listener MUST explicitly kill the timeline/listener on unmount.
|
|
72
|
+
7. **Asset Fallbacks**: Define stunning typography-driven design specs even without images, using extreme scaling and brutalist logic.
|
|
73
|
+
8. **Compiler-Grade TypeScript (Zero `any` Tolerance)**: Absolute ban on `any` and `unknown as any`. Strict interfaces and typed props only.
|
|
74
|
+
9. **Clean Code & Noise Comment Ban**: Strictly ban redundant comments (`// animate on scroll`, `// button component`). Self-documenting code only.
|
|
75
|
+
|
package/istm-design/SKILL.md
CHANGED
|
@@ -56,16 +56,30 @@ Gather signals to determine the execution path:
|
|
|
56
56
|
|
|
57
57
|
### The 3-Phase Engine
|
|
58
58
|
|
|
59
|
-
- **Step 0 (Mandatory Reading)**: Before suggesting any design or generating files, you MUST recursively read all rule files inside `istm-design/colors/`, `istm-design/styles/`, `istm-design/typography/`, `istm-design/ux/`, and `istm-design/references/`.
|
|
59
|
+
- **Step 0 (Mandatory Reading)**: Before suggesting any design or generating files, you MUST recursively read all rule files inside `istm-design/colors/`, `istm-design/styles/`, `istm-design/typography/`, `istm-design/ux/`, `istm-design/archetypes/` (brutalist, minimalist, soft, brandkit), `istm-design/image-to-code/`, `istm-design/semantic-design/`, `istm-design/anti-laziness/`, `istm-design/presets/catalog.md`, and `istm-design/references/`.
|
|
60
|
+
|
|
61
|
+
- **Phase 1: Structure & Presets Discovery**: Read `references/schema.md` and `presets/catalog.md`.
|
|
62
|
+
- **Direct Preset Match**: If the user requested a specific brand or archetype (e.g. `--preset=linear`, `stripe-style`, `like apple`, `supabase theme`), immediately load that preset from `istm-design/presets/<slug>/DESIGN.md`.
|
|
63
|
+
- **Domain Taxonomy Match**: If building for a known industry (e.g. AI/RAG platform, Fintech, Developer Tools, Luxury), scan `presets/catalog.md` and recommend the top 3 curated presets.
|
|
64
|
+
- **Discovery Gate**: Ask the user to confirm or choose from the top 3 recommended presets (or provide a custom URL/screenshot).
|
|
65
|
+
- **Phase 2: Analyze & Vibe Switching**: If the user provides a URL or image, analyze it visually. Map color palettes, typography classes, spacing density, layout grids, and visual effects into a JSON profile. If the user dislikes an initial design, immediately offer 2-3 contrasting presets from `presets/catalog.md` to switch aesthetics instantly.
|
|
66
|
+
- **Phase 3: Generate (Implementation)**: If the user asks to build UI components, read `.istm-context/design.md` and `references/generation-guide.md`. Convert tokens to clean Tailwind classes/CSS variables, fetch assets, and implement the design faithfully.
|
|
67
|
+
|
|
68
|
+
### Absolute Aesthetic & Code Enforcement Rules
|
|
69
|
+
|
|
70
|
+
1. **Tailwind v4 Semantic Token Standard**:
|
|
71
|
+
- Strictly FORBID ugly inline arbitrary CSS variables (`bg-[var(--background)]`, `text-[var(--foreground)]`, `border-[var(--border)]`).
|
|
72
|
+
- Mandate modern Tailwind v4 semantic utility tokens: `bg-background`, `text-foreground`, `bg-muted`, `text-muted-foreground`, `border-border`, `bg-card`, `text-card-foreground`, `bg-primary`, `text-primary-foreground`, `bg-accent`, `text-accent-foreground`, `bg-popover`, `ring-ring`.
|
|
73
|
+
2. **Shadcn UI & Primitive Reuse Priority**:
|
|
74
|
+
- For all interactive atoms (buttons, inputs, dialogs, dropdowns, tooltips, sheets, badges, accordions), ALWAYS reuse/import from `@/components/ui/` (or create accessible primitives). Never write unaccessible custom `<div>` click handlers or unstyled button hacks.
|
|
75
|
+
3. **Landing Page Narrative Arc Law (No 2-Section Slop)**:
|
|
76
|
+
- Generating a lazy 2-section page (Hero + Footer only) is strictly banned.
|
|
77
|
+
- Any full landing page must construct a complete 5–8 section journey: *Hero → Social Proof/Trust → Bento Grid Feature Showcase → Live Interactive Demo/Universe → Deep Dive Columns → Social Validation → Pricing/CTA → FAQ Accordion → God-Tier Footer*.
|
|
78
|
+
4. **Typography Supremacy**: Never use browser default fonts. Explicitly define a sans-serif and optionally a display font. Enforce a strict typographic scale.
|
|
79
|
+
5. **Semantic Colors Over Hex Codes**: Forbid direct use of raw hex codes in UI. Force the use of semantic tokens.
|
|
80
|
+
6. **Micro-Interactions**: Enforce standard hover states on all interactive elements.
|
|
81
|
+
7. **No Emojis**: Strictly forbid emojis in UI. Mandate professional SVG icons (Lucide, Phosphor, Heroicons).
|
|
82
|
+
8. **Compiler-Grade TypeScript (Zero `any` Tolerance)**: Absolute ban on `any` and `unknown as any`. Use strict interfaces, domain models, and Zod inference.
|
|
83
|
+
9. **Clean Code & Noise Comment Ban**: Strictly ban redundant, chatty comments (`// button component`, `// handle click`). Self-documenting code only.
|
|
84
|
+
10. **No GSAP Default**: Standard motion relies on CSS/Framer Motion. Heavy scroll-jacking is forbidden unless `/istm-animate` or `/istm-awwward-designer` is explicitly invoked.
|
|
60
85
|
|
|
61
|
-
- **Phase 1: Structure (Schema Definition)**: Read `references/schema.md`. Present the 3-dimension structure (Design System, Design Style, Visual Effects) if the user asks for the design structure.
|
|
62
|
-
- **Phase 2: Analyze (Reverse Engineering)**: If the user provides a URL or image, analyze it visually. Map color palettes, typography classes, spacing density, layout grids, and visual effects into a JSON profile. **Discovery Gate:** Ask "Want to adjust any values before I lock this into `design.md`?"
|
|
63
|
-
- **Phase 3: Generate (Implementation)**: If the user asks to build UI components, read `.istm-context/design.md` and `references/generation-guide.md`. Convert tokens to CSS variables/Tailwind classes, fetch assets, and implement the design faithfully.
|
|
64
|
-
|
|
65
|
-
### Absolute Aesthetic Enforcement Rules
|
|
66
|
-
|
|
67
|
-
1. **Typography Supremacy**: Never use browser default fonts. Explicitly define a sans-serif and optionally a display font. Enforce a strict typographic scale.
|
|
68
|
-
2. **Semantic Colors Over Hex Codes**: Forbid direct use of raw hex codes in UI. Force the use of semantic tokens.
|
|
69
|
-
3. **Micro-Interactions**: Enforce standard hover states on all interactive elements.
|
|
70
|
-
4. **No Emojis**: Strictly forbid emojis in UI. Mandate professional SVG icons (Lucide, Phosphor).
|
|
71
|
-
5. **No GSAP Default**: Standard motion relies on CSS/Framer Motion. Heavy scroll-jacking is forbidden unless `/istm-animate` or `/istm-awwward-designer` is explicitly invoked.
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# Architectural Patterns
|
|
2
|
+
|
|
3
|
+
## Lazy-Loaded Skills
|
|
4
|
+
|
|
5
|
+
The standard pattern for managing large context requirements across AI agents is lazy-loaded prompt engineering through skill files.
|
|
6
|
+
|
|
7
|
+
A skill is a folder containing a `SKILL.md` file with:
|
|
8
|
+
|
|
9
|
+
- **YAML front-matter:** Contains `name` and a precise `description`. This metadata acts as the discovery hook — the agent reads only this during initialization (~100 tokens per skill).
|
|
10
|
+
- **Markdown body:** Full workflows, rules, and instructions. Loaded on-demand only when the agent determines the skill is relevant.
|
|
11
|
+
|
|
12
|
+
This architecture yields a documented 35% reduction in average context usage and prevents context dilution. However, discovery reliability depends on the specificity of the YAML description:
|
|
13
|
+
|
|
14
|
+
| Description Quality | Discovery Success Rate |
|
|
15
|
+
|:---|:---:|
|
|
16
|
+
| Vague ("Helps with designing APIs") | ~68% |
|
|
17
|
+
| Specific ("Design RESTful HTTP APIs with OpenAPI specs, focusing on versioning, error codes, and backward compatibility") | ~90% |
|
|
18
|
+
|
|
19
|
+
## Model Context Protocol (MCP)
|
|
20
|
+
|
|
21
|
+
MCP is an open standard (pioneered by Anthropic, adopted by Google and OpenAI) that enables real-time, bidirectional connections between LLMs and external data sources.
|
|
22
|
+
|
|
23
|
+
### Architecture Components
|
|
24
|
+
|
|
25
|
+
- **Host:** The AI application (IDE, terminal tool, chatbot) containing the LLM engine.
|
|
26
|
+
- **Client:** Internal bridge within the host that handles protocol communication.
|
|
27
|
+
- **Server:** External service exposing databases, APIs, or documentation to the client.
|
|
28
|
+
- **Transport:** JSON-RPC 2.0 messages over stdio (local) or HTTP (remote).
|
|
29
|
+
|
|
30
|
+
### How It Reduces Truncation
|
|
31
|
+
|
|
32
|
+
Without MCP, models rely on static training weights for factual claims. When those weights are outdated (e.g., a new API version was released after training cutoff), the model either hallucinates a plausible answer or truncates its response to avoid committing to specifics.
|
|
33
|
+
|
|
34
|
+
With MCP, the model fetches current documentation directly into its context window. This transforms the model from a static knowledge store into a reasoning engine operating on real-time data, eliminating the incentive to hallucinate or truncate.
|
|
35
|
+
|
|
36
|
+
### Example: Developer Knowledge API
|
|
37
|
+
|
|
38
|
+
Google's Developer Knowledge MCP Server indexes live documentation across Firebase, Android, and Google Cloud. When a model receives a development question:
|
|
39
|
+
|
|
40
|
+
1. It executes a `search_document` query against the live index
|
|
41
|
+
2. It evaluates returned page URIs
|
|
42
|
+
3. It fetches full document content via `get_document` or `batch_get_documents`
|
|
43
|
+
4. It generates its response based on current, authoritative documentation
|
|
44
|
+
|
|
45
|
+
This entirely bypasses the tendency to fabricate answers from outdated training data.
|
|
46
|
+
|
|
47
|
+
## Chunked Task Execution
|
|
48
|
+
|
|
49
|
+
For complex tasks that would produce outputs exceeding the model's generation limit, break the work into sequential steps:
|
|
50
|
+
|
|
51
|
+
1. Request the architecture and structure first (outline only)
|
|
52
|
+
2. Request each component individually with explicit instructions for completeness
|
|
53
|
+
3. Request assembly and integration after all components are generated
|
|
54
|
+
|
|
55
|
+
This prevents the model from attempting to estimate total output length and preemptively compressing its response.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# Parameter Tuning
|
|
2
|
+
|
|
3
|
+
## Temperature and Top-p
|
|
4
|
+
|
|
5
|
+
Autoregressive models select each next token from a probability distribution generated by a softmax function applied to logit values. When a model defaults to brief outputs, the tokens associated with truncation and summarization have been assigned the highest probabilities through RLHF alignment.
|
|
6
|
+
|
|
7
|
+
### Temperature
|
|
8
|
+
|
|
9
|
+
Adjusting the temperature parameter changes how the softmax function distributes probability mass across candidate tokens.
|
|
10
|
+
|
|
11
|
+
- **Low temperature (0.0 - 0.5):** Amplifies differences between high and low-probability tokens. The model becomes highly deterministic, consistently selecting the highest-confidence continuation. Optimal for code generation, data extraction, and structured output.
|
|
12
|
+
- **Default temperature (1.0):** Retains the original probability distribution from training.
|
|
13
|
+
- **High temperature (1.5+):** Flattens the distribution, introducing more randomness. Useful for creative tasks but increases the risk of incoherent outputs.
|
|
14
|
+
|
|
15
|
+
Example probability distribution shift for a single token position:
|
|
16
|
+
|
|
17
|
+
| Token Candidate | Probability at Temp 1.5 | Probability at Temp ~0.0 | Raw Logit |
|
|
18
|
+
|:---|:---:|:---:|:---:|
|
|
19
|
+
| lazy | 0.4875 | 0.9933 | 2.0 |
|
|
20
|
+
| quick | 0.2503 | 0.0067 | 1.0 |
|
|
21
|
+
| tired | 0.1285 | 0.0000 | 0.0 |
|
|
22
|
+
| slow | 0.0660 | 0.0000 | -1.0 |
|
|
23
|
+
| clumsy | 0.0339 | 0.0000 | -2.0 |
|
|
24
|
+
|
|
25
|
+
### Top-p (Nucleus Sampling)
|
|
26
|
+
|
|
27
|
+
Top-p truncates the probability distribution by only considering the smallest set of tokens whose cumulative probability exceeds threshold p. A Top-p of 0.0 to 0.6 combined with low temperature forces the model into a narrow, deterministic execution path, reducing the entropy that enables creative refusals and unnecessary summarization.
|
|
28
|
+
|
|
29
|
+
## Gemini Thinking Level Configuration
|
|
30
|
+
|
|
31
|
+
Google Gemini 3 models replaced the legacy `thinking_budget` (a hard token count cap on internal reasoning) with a `thinking_level` parameter that provides relative guidance on computational depth.
|
|
32
|
+
|
|
33
|
+
| Setting | Flash Support | Pro Support | Use Case |
|
|
34
|
+
|:---|:---:|:---:|:---|
|
|
35
|
+
| `minimal` | Yes | No | High-throughput, low-latency tasks |
|
|
36
|
+
| `low` | Yes | Yes | Simple instruction following, data extraction |
|
|
37
|
+
| `medium` | Yes | Yes (3.1 Pro) | Moderate complexity tasks |
|
|
38
|
+
| `high` | Yes (Default) | Yes (Default) | Complex analysis, code generation, mathematics |
|
|
39
|
+
|
|
40
|
+
Important constraints:
|
|
41
|
+
- `thinking_level` and `thinking_budget` are mutually exclusive. Using both in one API call triggers an HTTP 400 error.
|
|
42
|
+
- Even at `low`, Gemini Pro models perform mandatory minimum internal deliberation for safety and alignment.
|
|
43
|
+
- For code generation and complex analysis, set to `medium` or `high` for quality scores consistently exceeding 92-95% compared to baseline.
|
|
44
|
+
- Avoid combining extremely low temperature with `high` thinking level, as this can occasionally induce internal reasoning loops.
|