@istmx/skills 1.2.0 → 2.1.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 +134 -40
- package/RELEASE_v2.1.0.md +69 -0
- package/bin/cli.js +95 -91
- package/context/conversation_transcript.md +768 -0
- package/context/progress.md +121 -0
- package/istm/SKILL.md +20 -11
- package/istm-animate/SKILL.md +46 -33
- package/istm-animate/core/motion-principles/SKILL.md +284 -0
- package/istm-animate/core/motion-principles/references/designers.md +127 -0
- package/istm-animate/core/motion-principles/references/easing-guide.md +231 -0
- package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +466 -0
- package/istm-animate/frameworks/canvas-generative/SKILL.md +325 -0
- package/istm-animate/frameworks/canvas-generative/references/algorithms.md +925 -0
- package/istm-animate/frameworks/css-native/SKILL.md +319 -0
- package/istm-animate/frameworks/css-native/references/modern-css.md +465 -0
- package/istm-animate/frameworks/framer-motion/SKILL.md +187 -0
- package/istm-animate/frameworks/framer-motion/references/api.md +312 -0
- package/istm-animate/frameworks/gsap/SKILL.md +188 -0
- package/istm-animate/frameworks/gsap/references/core.md +218 -0
- package/istm-animate/frameworks/gsap/references/plugins.md +371 -0
- package/istm-animate/frameworks/gsap/references/scrolltrigger.md +325 -0
- package/istm-animate/frameworks/gsap/references/timeline.md +218 -0
- package/istm-animate/frameworks/threejs-r3f/SKILL.md +243 -0
- package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +392 -0
- package/istm-animate/frameworks/threejs-r3f/references/shaders.md +446 -0
- package/istm-animate/mobile/android/compose-graphics/SKILL.md +503 -0
- package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +356 -0
- package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +282 -0
- package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +303 -0
- package/istm-animate/mobile/android/compose-motion/SKILL.md +359 -0
- package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +273 -0
- package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +196 -0
- package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +281 -0
- package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +311 -0
- package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +288 -0
- package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +156 -0
- package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +408 -0
- package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +239 -0
- package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +252 -0
- package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +382 -0
- package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +379 -0
- package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +336 -0
- package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +231 -0
- package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +129 -0
- package/istm-animate/references/animate.md +199 -0
- package/istm-animate/references/audit.md +115 -0
- package/istm-animate/references/design-engineering.md +674 -0
- package/istm-animate/references/improve.md +101 -0
- package/istm-animate/references/opportunities.md +132 -0
- package/istm-animate/references/plan-template.md +73 -0
- package/istm-animate/references/recipes.md +324 -0
- package/istm-animate/references/review.md +112 -0
- package/istm-animate/references/standards.md +187 -0
- package/istm-animate/references/vocabulary.md +173 -0
- package/istm-architecture/SKILL.md +70 -14
- package/istm-architecture/templates/agents.md +21 -2
- package/istm-awwward-designer/SKILL.md +53 -17
- package/istm-design/SKILL.md +49 -63
- 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/design-audit/SKILL.md +248 -0
- package/istm-design/core/desktop-principles/SKILL.md +363 -0
- package/istm-design/core/desktop-principles/references/keyboard-patterns.md +137 -0
- package/istm-design/core/desktop-principles/references/multi-window.md +105 -0
- package/istm-design/core/mobile-principles/SKILL.md +289 -0
- package/istm-design/core/mobile-principles/references/accessibility-mobile.md +175 -0
- package/istm-design/core/mobile-principles/references/gestures-deep.md +220 -0
- package/istm-design/core/ui-ux-pro-max/SKILL.md +392 -0
- package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +23 -0
- package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +31 -0
- package/istm-design/core/ui-ux-pro-max/data/charts.csv +26 -0
- package/istm-design/core/ui-ux-pro-max/data/colors.csv +193 -0
- package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +1924 -0
- package/istm-design/core/ui-ux-pro-max/data/icons.csv +106 -0
- package/istm-design/core/ui-ux-pro-max/data/landing.csv +35 -0
- package/istm-design/core/ui-ux-pro-max/data/motion.csv +17 -0
- package/istm-design/core/ui-ux-pro-max/data/products.csv +193 -0
- package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +45 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +51 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +57 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +76 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +53 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +51 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +71 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +59 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +61 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +54 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +60 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +56 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +60 -0
- package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +57 -0
- package/istm-design/core/ui-ux-pro-max/data/styles.csv +85 -0
- package/istm-design/core/ui-ux-pro-max/data/typography.csv +75 -0
- package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +162 -0
- package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +109 -0
- package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +240 -0
- package/istm-design/core/ui-ux-pro-max/scripts/core.py +464 -0
- package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +1371 -0
- package/istm-design/core/ui-ux-pro-max/scripts/search.py +162 -0
- package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +134 -0
- package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +114 -0
- 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/apple-design.md +282 -0
- package/istm-design/references/generation-guide.md +209 -0
- package/istm-design/references/pick-ui-library.md +77 -0
- package/istm-design/references/picker.md +197 -0
- package/istm-design/references/prototype.md +90 -0
- package/istm-design/references/schema.md +366 -0
- 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
- package/RELEASE_v1.2.0.md +0 -40
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: istm-awwward-designer
|
|
3
3
|
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
-
description: "The premium frontend
|
|
4
|
+
description: "The premium frontend orchestrator and executor. Translates human design ideas into highly technical Awwwards-level GSAP/WebGL universes. Operates in Dual-Mode: generates the MASTER.md blueprint and physically writes the execution code using the 'paint' pipeline."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Output style (plain words, no dashes, no hyphens)
|
|
@@ -12,28 +12,64 @@ Write everything this skill produces in plain simple language. Keep technical te
|
|
|
12
12
|
|
|
13
13
|
## What this skill does
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
The ultimate Premium Visual Universe orchestrator and executor.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
- **
|
|
20
|
-
- **
|
|
21
|
-
- **
|
|
22
|
-
- **WebGL Constraint**: It avoids heavily relying on WebGL unless explicitly required, focusing on elite DOM/GSAP animations that dominate 95% of premium sites.
|
|
17
|
+
- **Dual-Mode Execution**:
|
|
18
|
+
- **Context Phase (Day Zero)**: Builds a complete visual universe from scratch. Brainstorm first, implement second. Writes the `MASTER.md` design system.
|
|
19
|
+
- **Execution Phase (Day-to-Day)**: Translates the visual universe into flawless execution code, bypassing `/istm-develop`.
|
|
20
|
+
- **The Paint Pipeline**: Brainstorm -> Define visual + interaction thesis -> Generate design system (`MASTER.md`) -> Implement -> Full audit.
|
|
21
|
+
- **Teaches & Implements**: Writes complex GSAP timelines, `ScrollTrigger` logic, stagger values, precise easing curves, and WebGL components directly into the codebase.
|
|
23
22
|
|
|
24
23
|
## Blueprint file convention
|
|
25
24
|
|
|
26
25
|
You READ the foundational blueprints:
|
|
27
|
-
- `.istm-context/design.md
|
|
28
|
-
- `.istm-context/agents.md
|
|
26
|
+
- `.istm-context/design.md`
|
|
27
|
+
- `.istm-context/agents.md`
|
|
28
|
+
|
|
29
|
+
You WRITE the overarching universe spec:
|
|
30
|
+
- `.istm-context/MASTER.md` (or `.istm-context/specs/NNNN-motion-<feature>.md` if scoped).
|
|
31
|
+
|
|
32
|
+
## Execution
|
|
33
|
+
|
|
34
|
+
### `Pre-flight` (main thread does this before anything else)
|
|
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.
|
|
29
40
|
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
### The Paint Pipeline
|
|
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
|
+
2. **Define Thesis**: Lock in the interaction mechanics and visual aesthetic.
|
|
44
|
+
3. **Generate Design System**: Write the `MASTER.md` file integrating the stack-aware rules.
|
|
45
|
+
4. **Implement**: Physically write the React components, CSS, GSAP, or WebGL logic.
|
|
46
|
+
5. **Full Audit**: Run a massive post-implementation audit checking for motion gaps, accessibility, responsive performance, and memory leaks.
|
|
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.
|
|
32
61
|
|
|
33
62
|
## Absolute Awwwards Execution Rules
|
|
34
63
|
|
|
35
|
-
1. **
|
|
36
|
-
2. **
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: istm-design
|
|
3
|
-
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
-
description: "The core visual
|
|
3
|
+
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion, GenerateImage
|
|
4
|
+
description: "The core visual context engine and executor for the @istmx/skills framework. Extends design tokens (colors, typography, spacing, standard motion) and strictly enforces premium UI aesthetics via a 3-Phase dual-mode execution (Structure, Analyze, Generate). Excludes heavy GSAP animation unless explicitly mandated."
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
## Output style (plain words, no dashes, no hyphens)
|
|
@@ -12,16 +12,18 @@ Write everything this skill produces, files and messages alike, in plain simple
|
|
|
12
12
|
|
|
13
13
|
## What this skill does
|
|
14
14
|
|
|
15
|
-
The master visual token engine
|
|
15
|
+
The master visual token engine and dual-mode executor. It compiles the design system, enforces typography scaling, reverse-engineers screenshots/URLs into JSON profiles, and physically writes implementation code.
|
|
16
16
|
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
17
|
+
- **Dual-Mode Execution**:
|
|
18
|
+
- **Context Phase (Day Zero)**: Operates as an architect. Uses the extraction engine to generate blueprints (`design.md`, `ui-tokens.md`) in `.istm-context/`. Pauses for the **Discovery Gate** (asks the user to confirm/adjust tokens before saving).
|
|
19
|
+
- **Execution Phase (Day-to-Day)**: Operates as an executor. If asked to "create a landing page", it bypasses blueprint generation, reads `.istm-context/`, asks for preview preferences, and writes the final React/Next.js code directly without needing `/istm-develop`.
|
|
20
|
+
- **The 3-Phase Design Engine**:
|
|
21
|
+
- 1. **Structure**: Surfacing the full schema (System, Style, Effects).
|
|
22
|
+
- 2. **Analyze**: Pulling tokens from reference images or URLs to generate a JSON profile.
|
|
23
|
+
- 3. **Generate**: Applying the profile to write faithful UI implementation code.
|
|
24
|
+
- **Anti-Slop Enforcement**: Explicitly forbids generic AI UI slop (e.g., plain blue buttons, unstyled default fonts, emoji placeholders). Forces the use of curated semantic tokens and professional iconography.
|
|
24
25
|
|
|
26
|
+
Does not build system architecture (/istm-architecture owns that) or wire complex databases (/istm-system-design owns that).
|
|
25
27
|
|
|
26
28
|
## Blueprint file convention
|
|
27
29
|
|
|
@@ -29,71 +31,55 @@ Durable design context lives in the `.istm-context/` directory. This skill speci
|
|
|
29
31
|
|
|
30
32
|
- `design.md`: The UX strategy, standard motion logic, and strict UI token dictionary.
|
|
31
33
|
|
|
32
|
-
**GOLD STANDARD REFERENCE:** When creating a new `design.md`, you MUST read and use the workspace root `/workspaces/laughing-giggle/DESIGN.md` as your structural template. Your output must match its level of detail: including comprehensive YAML frontmatter
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Never overwrite an existing `design.md` without permission; gap-fill conservatively and respect established brand guidelines.
|
|
34
|
+
**GOLD STANDARD REFERENCE:** When creating a new `design.md`, you MUST read and use the workspace root `/workspaces/laughing-giggle/DESIGN.md` as your structural template. Your output must match its level of detail: including comprehensive YAML frontmatter followed by deep philosophical markdown explaining the rules.
|
|
36
35
|
|
|
37
36
|
## Scope
|
|
38
37
|
|
|
39
|
-
The `--force-gsap` flag overrides the standard motion rule and allows basic GSAP imports. With no argument, the `Pre-flight` signals below route to Phase 0 (ambiguous),
|
|
38
|
+
The `--force-gsap` flag overrides the standard motion rule and allows basic GSAP imports. With no argument, the `Pre-flight` signals below route to Phase 0 (ambiguous), Phase 1 (greenfield token generation), or Phase 3 (code execution).
|
|
40
39
|
|
|
41
40
|
## Acts vs asks
|
|
42
41
|
|
|
43
|
-
Phase
|
|
44
|
-
|
|
45
|
-
## Artifact ownership
|
|
46
|
-
|
|
47
|
-
The `design.md` file holds the content. Create it if missing. When writing the design tokens, inject the precise CSS variables, tailwind utility classes, and font stacks. You own the enforcement of these tokens; all UI components generated by implementation agents must strictly use the tokens defined here.
|
|
48
|
-
|
|
49
|
-
## Portability (any OS, any agent)
|
|
50
|
-
|
|
51
|
-
- Commands: Use your agent's cross-platform file tools to read `tailwind.config.js` or `index.css` and populate templates.
|
|
52
|
-
- If interactive question support (`AskUserQuestion`) is missing, ask any multiple choice question as plain text with the same options.
|
|
42
|
+
In the **Context Phase**, ask aesthetic questions (brand vibe, dark/light mode preference) or ask for a URL/screenshot to reverse-engineer. Always pass the **Discovery Gate** by asking the user to confirm the extracted tokens before saving `design.md`.
|
|
43
|
+
In the **Execution Phase**, act immediately to write the code based on `.istm-context/`.
|
|
53
44
|
|
|
54
45
|
## Execution
|
|
55
46
|
|
|
56
|
-
The main thread compiles the design system
|
|
47
|
+
The main thread compiles the design system or writes code.
|
|
57
48
|
|
|
58
49
|
### `Pre-flight` (main thread does this before anything else)
|
|
59
50
|
|
|
60
51
|
Gather signals to determine the execution path:
|
|
61
52
|
|
|
62
|
-
1. Flag check: Was `--force-gsap` provided?
|
|
63
|
-
2.
|
|
64
|
-
3.
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
-
|
|
86
|
-
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
53
|
+
1. Flag check: Was `--force-gsap` provided?
|
|
54
|
+
2. Intent check: Did the user ask to "extract", "analyze", "setup design", or did they ask to "build", "create", "design this page"?
|
|
55
|
+
3. Context files: Is `design.md` already hydrated in `.istm-context/`?
|
|
56
|
+
|
|
57
|
+
### The 3-Phase Engine
|
|
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/`, `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.
|
|
94
85
|
|
|
95
|
-
1. **Typography Supremacy**: Never use browser default fonts. Explicitly define a sans-serif (e.g., Inter, Roboto, Geist) and optionally a display font. Enforce a strict typographic scale.
|
|
96
|
-
2. **Semantic Colors Over Hex Codes**: Forbid the direct use of raw hex codes in UI components. Force the use of semantic tokens (e.g., `bg-surface-elevated`, `text-ink-muted`, `border-hairline`).
|
|
97
|
-
3. **Micro-Interactions**: Enforce standard hover states (opacity shifts, slight scaling, background color transitions) on all interactive elements.
|
|
98
|
-
4. **No Emojis**: Strictly forbid emojis in empty states or UI components. Mandate the use of professional SVG icon libraries (Lucide, Heroicons, Phosphor).
|
|
99
|
-
5. **No GSAP Default**: Standard motion relies on CSS transitions and lightweight Framer Motion/Spring logic. Heavy scroll-jacking or GSAP is forbidden unless `/istm-animate` or `/istm-awwward-designer` is explicitly invoked, or the `--force-gsap` flag is present.
|
|
@@ -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.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# Prompt Engineering Techniques
|
|
2
|
+
|
|
3
|
+
## Psychological Pattern Matching
|
|
4
|
+
|
|
5
|
+
LLMs do not have emotions or understand monetary incentives. However, specific linguistic patterns in the prompt activate different quality distributions in the model's latent space. Research has documented measurable effects:
|
|
6
|
+
|
|
7
|
+
| Technique | Documented Effect |
|
|
8
|
+
|:---|:---|
|
|
9
|
+
| "I will tip you $200 for a perfect solution" | Up to 45% increase in output quality and length |
|
|
10
|
+
| "Take a deep breath and solve step by step" | Accuracy improvement from 34% to 80% on logic tasks |
|
|
11
|
+
| "This task is critical to my career" | Average 10% performance increase |
|
|
12
|
+
|
|
13
|
+
These phrases work because they are statistically correlated with high-effort, rigorously reviewed content in the training data (academic papers, enterprise codebases, legal documents). The attention mechanism prioritizes the high-quality data distributions associated with these patterns.
|
|
14
|
+
|
|
15
|
+
## Explicit Syntax Binding
|
|
16
|
+
|
|
17
|
+
Conversational requests allow the model to exercise discretion about output length and detail. Structural binding removes this discretion by explicitly prohibiting truncation patterns.
|
|
18
|
+
|
|
19
|
+
Effective binding requires two components:
|
|
20
|
+
|
|
21
|
+
1. **Mandatory tool execution:** Forbid the model from generating answers solely from training weights. Require it to execute search, computation, or code before answering.
|
|
22
|
+
2. **Evidence blocks:** Require the model to output raw data (URLs, code execution results, data fragments) before producing its narrative response. This forces the model to read its own retrieved evidence, reducing hallucination probability to near zero.
|
|
23
|
+
|
|
24
|
+
## XML-Structured Prompts
|
|
25
|
+
|
|
26
|
+
Enterprise systems use strict XML tagging to separate prompt components, reducing the cognitive load required for the model to parse intent:
|
|
27
|
+
|
|
28
|
+
1. **System instructions** — Persona definition, quality expectations, explicit prohibitions on filler content.
|
|
29
|
+
2. **Context block** (`<context>`) — Passive background data: architecture details, configurations, existing code.
|
|
30
|
+
3. **Data block** (`<data>`, `<logs>`, `<config>`) — Active information the model must process against the context.
|
|
31
|
+
4. **Task block** (`<tasks>`) — Numbered list of specific actions to execute.
|
|
32
|
+
|
|
33
|
+
This compartmentalization ensures the model can distinguish between persistent rules, background context, and immediate work items. It significantly reduces the confusion that triggers premature truncation.
|
|
34
|
+
|
|
35
|
+
## Verification Loops
|
|
36
|
+
|
|
37
|
+
### Chain of Verification
|
|
38
|
+
1. Model generates an initial response
|
|
39
|
+
2. Model generates verification questions about its own claims
|
|
40
|
+
3. Model independently answers those verification questions
|
|
41
|
+
4. Model outputs a revised, evidence-backed response
|
|
42
|
+
|
|
43
|
+
This process forces iterative self-correction, consuming the model's capacity for shortcutting.
|
|
44
|
+
|
|
45
|
+
### Reverse Prompting
|
|
46
|
+
Instead of manually constructing a structured prompt, provide the model with a one-line objective and instruct it to generate the optimal prompt for that objective. The model produces the XML structure, constraints, and roles required for the task.
|
|
47
|
+
|
|
48
|
+
### Self-Grading Loop
|
|
49
|
+
The prompt requires the model to:
|
|
50
|
+
1. Define what excellence looks like for the given task
|
|
51
|
+
2. Grade its own initial output against that definition
|
|
52
|
+
3. Iterate until the self-defined quality bar is met
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# Reference Prompts
|
|
2
|
+
|
|
3
|
+
Ready-to-use prompt templates for enforcing complete outputs. Append to any prompt or include in system instructions.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## General Purpose
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
You must provide the FULL, complete, and exhaustive output for this task.
|
|
11
|
+
Do not summarize, abbreviate, or truncate for brevity.
|
|
12
|
+
|
|
13
|
+
You are strictly forbidden from using placeholders. Never use comments like
|
|
14
|
+
"// ... rest of code here", "[continue here]", or bare ellipses standing
|
|
15
|
+
in for omitted content. If the output is 500 lines, produce all 500 lines.
|
|
16
|
+
|
|
17
|
+
If you approach your output limit, stop at a clean breakpoint and indicate
|
|
18
|
+
where to resume. Do not rush to a conclusion or compress remaining sections.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
---
|
|
22
|
+
|
|
23
|
+
## Code Generation
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
Write the complete, production-ready implementation. Every function, every
|
|
27
|
+
import, every edge case handler must be present in the output.
|
|
28
|
+
|
|
29
|
+
Do not use placeholder comments (// TODO, // implement here, // similar
|
|
30
|
+
to above). Do not describe what code should do — write the actual code.
|
|
31
|
+
|
|
32
|
+
If the implementation requires multiple files, output each file completely
|
|
33
|
+
with its full path as a header.
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Analysis and Documentation
|
|
39
|
+
|
|
40
|
+
```
|
|
41
|
+
Provide an exhaustive analysis covering every aspect requested. Each section
|
|
42
|
+
must contain substantive content, not summaries or references to "see above."
|
|
43
|
+
|
|
44
|
+
Do not use phrases like "as mentioned earlier" to avoid repeating necessary
|
|
45
|
+
context. Each section should be self-contained and complete.
|
|
46
|
+
|
|
47
|
+
Structure your output with clear headings. If the analysis requires multiple
|
|
48
|
+
parts, produce all parts in full.
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
## Step-by-Step Reasoning
|
|
54
|
+
|
|
55
|
+
```
|
|
56
|
+
Before generating your final response, work through the problem systematically:
|
|
57
|
+
|
|
58
|
+
1. Identify all requirements and constraints from the prompt
|
|
59
|
+
2. Break the task into discrete steps
|
|
60
|
+
3. Execute each step completely
|
|
61
|
+
4. Verify your output against the original requirements
|
|
62
|
+
|
|
63
|
+
Output your reasoning process, then your final answer. Do not skip steps
|
|
64
|
+
or summarize intermediate work.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Continuation Handling
|
|
70
|
+
|
|
71
|
+
```
|
|
72
|
+
If your response approaches the output token limit:
|
|
73
|
+
- Do not compress remaining content to fit
|
|
74
|
+
- Do not skip ahead to a conclusion
|
|
75
|
+
- Stop at a natural breakpoint (end of a function, end of a section)
|
|
76
|
+
- End with: [PAUSED - X of Y sections complete. Send "continue" to resume]
|
|
77
|
+
|
|
78
|
+
On "continue", pick up exactly where you stopped. No recaps or repetition.
|
|
79
|
+
```
|