@istmx/skills 2.1.1 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/CODE_OF_CONDUCT.md +47 -47
- package/LICENSE +30 -30
- package/README.md +80 -164
- package/bin/cli.js +143 -210
- package/istm-workflow/istm-audit/SKILL.md +108 -108
- package/istm-workflow/istm-audit/agent-prompt.md +393 -393
- package/istm-workflow/istm-audit/agents/openai.yaml +7 -7
- package/istm-workflow/istm-audit/modes/area.md +19 -19
- package/istm-workflow/istm-audit/modes/gapfill.md +12 -12
- package/istm-workflow/istm-audit/modes/greenfield.md +24 -24
- package/istm-workflow/istm-audit/modes/tool-skills.md +39 -39
- package/istm-workflow/istm-audit/modes/whole-repo.md +5 -5
- package/istm-workflow/istm-audit/patterns/clean-architecture.md +15 -15
- package/istm-workflow/istm-audit/patterns/domain-driven.md +16 -16
- package/istm-workflow/istm-audit/patterns/functional.md +16 -16
- package/istm-workflow/istm-audit/patterns/solid-oop.md +17 -17
- package/istm-workflow/istm-autoplan/SKILL.md +1905 -1905
- package/istm-workflow/istm-autoplan/SKILL.md.tmpl +923 -923
- package/istm-workflow/istm-check/SKILL.md +52 -52
- package/istm-workflow/istm-check/agents/openai.yaml +7 -7
- package/istm-workflow/istm-check/modes/review.md +156 -156
- package/istm-workflow/istm-check/modes/verify.md +197 -197
- package/istm-workflow/istm-check/review-agent-prompt.md +57 -57
- package/istm-workflow/istm-check/review-guide.md +133 -133
- package/istm-workflow/istm-craft/SKILL.md +52 -52
- package/istm-workflow/istm-craft/agent-modes/architecture.md +73 -73
- package/istm-workflow/istm-craft/agent-modes/cross-cutting.md +65 -65
- package/istm-workflow/istm-craft/agent-modes/enhancement.md +45 -45
- package/istm-workflow/istm-craft/agent-modes/feature.md +85 -85
- package/istm-workflow/istm-craft/agent-prompt.md +249 -249
- package/istm-workflow/istm-craft/agents/openai.yaml +7 -7
- package/istm-workflow/istm-craft/internal/after-subagent.md +90 -90
- package/istm-workflow/istm-craft/internal/design-conversation.md +140 -140
- package/istm-workflow/istm-craft/internal/tool-discovery.md +58 -58
- package/istm-workflow/istm-craft/spec-template.md +278 -278
- package/istm-workflow/istm-cso/ACKNOWLEDGEMENTS.md +14 -14
- package/istm-workflow/istm-cso/SKILL.md +1313 -1313
- package/istm-workflow/istm-cso/SKILL.md.tmpl +407 -407
- package/istm-workflow/istm-cso/sections/audit-phases.md +253 -253
- package/istm-workflow/istm-cso/sections/audit-phases.md.tmpl +251 -251
- package/istm-workflow/istm-cso/sections/manifest.json +14 -14
- package/istm-workflow/istm-debt/SKILL.md +44 -44
- package/istm-workflow/istm-debug/SKILL.md +111 -111
- package/istm-workflow/istm-debug/agents/openai.yaml +7 -7
- package/istm-workflow/istm-design-review/SKILL.md +2053 -2053
- package/istm-workflow/istm-design-review/SKILL.md.tmpl +312 -312
- package/istm-workflow/istm-develop/SKILL.md +165 -165
- package/istm-workflow/istm-develop/agents/openai.yaml +7 -7
- package/istm-workflow/istm-develop/checklist.md +95 -95
- package/istm-workflow/istm-develop/flow/build.md +133 -133
- package/istm-workflow/istm-develop/flow/git.md +34 -34
- package/istm-workflow/istm-develop/logical-guide.md +99 -99
- package/istm-workflow/istm-develop/ui/existing.md +23 -23
- package/istm-workflow/istm-develop/ui/generate.md +131 -131
- package/istm-workflow/istm-develop/ui/image.md +41 -41
- package/istm-workflow/istm-develop/ui/implementation.md +281 -281
- package/istm-workflow/istm-develop/ui/mcp.md +11 -11
- package/istm-workflow/istm-develop/ui-guide.md +164 -164
- package/istm-workflow/istm-document/SKILL.md +123 -123
- package/istm-workflow/istm-document/agent-prompt.md +57 -57
- package/istm-workflow/istm-document/agents/openai.yaml +7 -7
- package/istm-workflow/istm-document/templates/changelog.md +54 -54
- package/istm-workflow/istm-document/templates/postmortem.md +58 -58
- package/istm-workflow/istm-document/templates/pr.md +43 -43
- package/istm-workflow/istm-document/templates/release-note.md +41 -41
- package/istm-workflow/istm-eng-review/SKILL.md +1112 -1112
- package/istm-workflow/istm-eng-review/SKILL.md.tmpl +163 -163
- package/istm-workflow/istm-eng-review/sections/manifest.json +14 -14
- package/istm-workflow/istm-eng-review/sections/review-sections.md +942 -942
- package/istm-workflow/istm-eng-review/sections/review-sections.md.tmpl +225 -225
- package/istm-workflow/istm-gain/SKILL.md +50 -50
- package/istm-workflow/istm-health/SKILL.md +1104 -1104
- package/istm-workflow/istm-health/SKILL.md.tmpl +320 -320
- package/istm-workflow/istm-qa/BROWSER.md +1468 -1468
- package/istm-workflow/istm-qa/SKILL.md +1743 -1743
- package/istm-workflow/istm-qa/SKILL.md.tmpl +354 -354
- package/istm-workflow/istm-qa/references/issue-taxonomy.md +85 -85
- package/istm-workflow/istm-qa/templates/qa-report-template.md +126 -126
- package/istm-workflow/istm-release/SKILL.md +989 -989
- package/istm-workflow/istm-release/SKILL.md.tmpl +160 -160
- package/istm-workflow/istm-release/sections/manifest.json +14 -14
- package/istm-workflow/istm-release/sections/release-body.md +547 -547
- package/istm-workflow/istm-release/sections/release-body.md.tmpl +420 -420
- package/istm-workflow/istm-review/SKILL.md +57 -57
- package/istm-workflow/istm-scope/SKILL.md +100 -100
- package/istm-workflow/istm-scope/agents/openai.yaml +7 -7
- package/istm-workflow/istm-scope/approaches/facade.md +33 -33
- package/istm-workflow/istm-scope/approaches/journey.md +31 -31
- package/istm-workflow/istm-scope/approaches/skateboard.md +33 -33
- package/istm-workflow/istm-scope/approaches/tracer-bullet.md +34 -34
- package/istm-workflow/istm-scope/modes/add.md +14 -14
- package/istm-workflow/istm-scope/modes/plan-brownfield.md +11 -11
- package/istm-workflow/istm-scope/modes/plan-greenfield.md +20 -20
- package/istm-workflow/istm-scope/modes/plan-monorepo.md +8 -8
- package/istm-workflow/istm-scope/modes/plan.md +120 -120
- package/istm-workflow/istm-scope/modes/replan.md +13 -13
- package/istm-workflow/istm-scope/scope-template.md +148 -148
- package/istm-workflow/istm-ship/SKILL.md +1504 -1504
- package/istm-workflow/istm-ship/SKILL.md.tmpl +582 -582
- package/istm-workflow/istm-ship/sections/adversarial.md +218 -218
- package/istm-workflow/istm-ship/sections/adversarial.md.tmpl +19 -19
- package/istm-workflow/istm-ship/sections/apple-release.md +58 -58
- package/istm-workflow/istm-ship/sections/apple-release.md.tmpl +56 -56
- package/istm-workflow/istm-ship/sections/changelog.md +45 -45
- package/istm-workflow/istm-ship/sections/changelog.md.tmpl +3 -3
- package/istm-workflow/istm-ship/sections/greptile.md +51 -51
- package/istm-workflow/istm-ship/sections/greptile.md.tmpl +49 -49
- package/istm-workflow/istm-ship/sections/manifest.json +62 -62
- package/istm-workflow/istm-ship/sections/plan-completion.md +329 -329
- package/istm-workflow/istm-ship/sections/plan-completion.md.tmpl +31 -31
- package/istm-workflow/istm-ship/sections/pr-body.md +209 -209
- package/istm-workflow/istm-ship/sections/pr-body.md.tmpl +207 -207
- package/istm-workflow/istm-ship/sections/review-army.md +406 -406
- package/istm-workflow/istm-ship/sections/review-army.md.tmpl +56 -56
- package/istm-workflow/istm-ship/sections/test-coverage.md +264 -264
- package/istm-workflow/istm-ship/sections/test-coverage.md.tmpl +23 -23
- package/istm-workflow/istm-ship/sections/tests.md +403 -403
- package/istm-workflow/istm-ship/sections/tests.md.tmpl +116 -116
- package/istm-workflow/istm-sync/SKILL.md +178 -178
- package/istm-workflow/istm-sync/agent-prompt.md +229 -229
- package/istm-workflow/istm-sync/agents/openai.yaml +7 -7
- package/istm-workflow/istm-test/SKILL.md +233 -233
- package/istm-workflow/istm-test/agent-prompt.md +62 -62
- package/istm-workflow/istm-test/agents/openai.yaml +7 -7
- package/istm-workflow/istm-test/modes/setup.md +97 -97
- package/istm-workflow/istm-test/writing-guide.md +196 -196
- package/istmx-architecture/SKILL.md +124 -0
- package/istmx-architecture/references/boundary-audits.md +33 -0
- package/istmx-architecture/references/clean-architecture-full.md +394 -0
- package/istmx-architecture/references/comments-as-design.md +387 -0
- package/istmx-architecture/references/complexity-symptoms.md +209 -0
- package/istmx-architecture/references/deep-modules.md +347 -0
- package/istmx-architecture/references/general-vs-special.md +342 -0
- package/istmx-architecture/references/information-hiding.md +336 -0
- package/istmx-architecture/references/reverse-engineering.md +25 -0
- package/istmx-architecture/references/software-design-philosophy.md +199 -0
- package/istmx-architecture/references/strategic-programming.md +269 -0
- package/{istm-architecture/templates/agents.md → istmx-architecture/templates/AGENTS.md} +247 -248
- package/{istm-architecture → istmx-architecture}/templates/architecture.md +110 -110
- package/istmx-architecture/templates/progress.md +29 -0
- package/{istm-architecture → istmx-architecture}/templates/project-overview.md +215 -215
- package/istmx-backend-patterns/SKILL.md +143 -0
- package/istmx-backend-patterns/references/api-and-database-patterns.md +22 -0
- package/istmx-backend-patterns/references/api-patterns.md +275 -0
- package/istmx-backend-patterns/references/code-examples.md +97 -0
- package/istmx-backend-patterns/references/database-patterns.md +269 -0
- package/istmx-backend-patterns/references/distributed-patterns.md +327 -0
- package/istmx-backend-patterns/references/distributed-resilience.md +21 -0
- package/istmx-backend-patterns/references/failure-analysis.md +150 -0
- package/istmx-backend-patterns/references/infrastructure.md +74 -0
- package/istmx-backend-patterns/references/scaling-patterns.md +362 -0
- package/istmx-backend-patterns/scripts/analyze_schema.py +304 -0
- package/istmx-backend-patterns/scripts/capacity_calculator.py +238 -0
- package/istmx-backend-patterns/scripts/check_api_health.sh +135 -0
- package/istmx-backend-patterns/templates/adr.md +19 -0
- package/istmx-brainstorming/SKILL.md +325 -0
- package/istmx-brainstorming/builder-check-prompt.md +23 -0
- package/istmx-clean-code/SKILL.md +248 -0
- package/istmx-clean-code/references/code-smells-and-refactorings.md +42 -0
- package/istmx-clean-code/references/code-smells.md +494 -0
- package/istmx-clean-code/references/comments-formatting.md +405 -0
- package/istmx-clean-code/references/deep-modules-and-boundaries.md +29 -0
- package/istmx-clean-code/references/error-handling.md +357 -0
- package/istmx-clean-code/references/functions-and-methods.md +373 -0
- package/istmx-clean-code/references/kent-beck-simple-design.md +687 -0
- package/istmx-clean-code/references/naming-conventions.md +280 -0
- package/istmx-clean-code/references/testing-principles.md +353 -0
- package/istmx-clean-code/references/typescript-and-backend-examples.md +82 -0
- package/istmx-code-review/SKILL.md +201 -0
- package/istmx-code-review/code-reviewer.md +198 -0
- package/istmx-code-review/references/architecture-decisions.md +321 -0
- package/istmx-code-review/references/code-examples.md +95 -0
- package/istmx-code-review/references/code-review.md +173 -0
- package/istmx-code-review/references/debugging-strategies.md +485 -0
- package/istmx-code-review/references/design-docs.md +161 -0
- package/istmx-code-review/references/performance-profiling.md +484 -0
- package/istmx-code-review/references/production-patterns.md +317 -0
- package/istmx-code-review/references/receiving-code-review.md +205 -0
- package/istmx-code-review/references/requesting-code-review.md +95 -0
- package/istmx-code-review/references/team-patterns.md +374 -0
- package/istmx-code-review/scripts/review_checklist.py +312 -0
- package/istmx-ddd/SKILL.md +208 -0
- package/istmx-ddd/references/bounded-contexts.md +203 -0
- package/istmx-ddd/references/building-blocks.md +234 -0
- package/istmx-ddd/references/domain-events.md +264 -0
- package/istmx-ddd/references/repositories-factories.md +353 -0
- package/istmx-ddd/references/strategic-design.md +251 -0
- package/istmx-ddd/references/ubiquitous-language.md +202 -0
- package/istmx-ddia-systems/SKILL.md +252 -0
- package/istmx-ddia-systems/references/anti-patterns.md +279 -0
- package/istmx-ddia-systems/references/batch-stream.md +342 -0
- package/istmx-ddia-systems/references/capacity-planning.md +285 -0
- package/istmx-ddia-systems/references/chaos-engineering.md +0 -0
- package/istmx-ddia-systems/references/data-models.md +0 -0
- package/istmx-ddia-systems/references/deployment-strategies.md +0 -0
- package/istmx-ddia-systems/references/fault-tolerance.md +0 -0
- package/istmx-ddia-systems/references/observability.md +313 -0
- package/istmx-ddia-systems/references/partitioning.md +0 -0
- package/istmx-ddia-systems/references/replication.md +0 -0
- package/istmx-ddia-systems/references/stability-patterns.md +369 -0
- package/istmx-ddia-systems/references/storage-engines.md +289 -0
- package/istmx-ddia-systems/references/transactions.md +267 -0
- package/istmx-devops/SKILL.md +204 -0
- package/istmx-devops/references/cicd-pipeline.md +74 -0
- package/istmx-devops/references/deployment-rollbacks.md +29 -0
- package/istmx-devops/references/docker.md +199 -0
- package/istmx-devops/references/incident-triage.md +30 -0
- package/istmx-devops/references/infrastructure.md +129 -0
- package/istmx-devops/references/kubernetes.md +346 -0
- package/istmx-devops/references/observability.md +331 -0
- package/istmx-devops/scripts/analyze_deployment_risk.py +74 -0
- package/istmx-devops/scripts/check_services.sh +172 -0
- package/istmx-devops/scripts/validate_dockerfile.sh +213 -0
- package/istmx-diagnose-agent/SKILL.md +147 -0
- package/istmx-diagnose-agent/prompts/analyst-common.md +38 -0
- package/istmx-diagnose-agent/prompts/cost-and-time.md +28 -0
- package/istmx-diagnose-agent/prompts/plan-adherence.md +29 -0
- package/istmx-diagnose-agent/prompts/quality-evidence.md +26 -0
- package/istmx-diagnose-agent/prompts/repeated-work.md +30 -0
- package/istmx-diagnose-agent/prompts/request-conflicts.md +20 -0
- package/istmx-diagnose-agent/prompts/scrub-audit.md +33 -0
- package/istmx-diagnose-agent/prompts/scrub.md +29 -0
- package/istmx-diagnose-agent/prompts/similar-session.md +38 -0
- package/istmx-diagnose-agent/prompts/skill-timeline.md +30 -0
- package/istmx-diagnose-agent/prompts/stumbles.md +28 -0
- package/istmx-diagnose-agent/references/context-safety.md +22 -0
- package/istmx-diagnose-agent/references/github-issues.md +47 -0
- package/istmx-diagnose-agent/references/redaction-policy.md +34 -0
- package/istmx-diagnose-agent/references/session-discovery.md +31 -0
- package/istmx-diagnose-agent/templates/bundle-README.md +77 -0
- package/istmx-diagnose-agent/templates/case.md +64 -0
- package/istmx-diagnose-agent/templates/issue.md +70 -0
- package/istmx-diagnose-agent/templates/report.md +82 -0
- package/istmx-harness-audit/SKILL.md +193 -0
- package/istmx-harness-audit/references/harness-checklist.md +18 -0
- package/istmx-harness-audit/references/remediation-workflow.md +242 -0
- package/istmx-harness-audit/references/stations-and-checks.md +131 -0
- package/istmx-legacy-code/SKILL.md +219 -0
- package/istmx-legacy-code/references/case-studies.md +238 -0
- package/istmx-legacy-code/references/change-algorithm.md +178 -0
- package/istmx-legacy-code/references/characterization-tests.md +210 -0
- package/istmx-legacy-code/references/dependency-breaking.md +306 -0
- package/istmx-legacy-code/references/seams.md +176 -0
- package/istmx-ml-engineering/SKILL.md +167 -0
- package/istmx-ml-engineering/references/classical-ml.md +645 -0
- package/istmx-ml-engineering/references/dataset-triage.md +23 -0
- package/istmx-ml-engineering/references/deployment.md +504 -0
- package/istmx-ml-engineering/references/evaluation-playbook.md +23 -0
- package/istmx-ml-engineering/references/fine-tuning.md +510 -0
- package/istmx-ml-engineering/references/rag-patterns.md +499 -0
- package/istmx-ml-engineering/references/transformers-patterns.md +570 -0
- package/istmx-ml-engineering/scripts/analyze_dataset.py +380 -0
- package/istmx-ml-engineering/scripts/estimate_gpu_memory.py +308 -0
- package/istmx-ml-engineering/scripts/summarize_eval.py +71 -0
- package/istmx-multi-agent/SKILL.md +383 -0
- package/istmx-multi-agent/references/batching.md +11 -0
- package/istmx-multi-agent/references/cannot-verify.md +10 -0
- package/istmx-multi-agent/references/dispatching-parallel-agents.md +167 -0
- package/istmx-multi-agent/references/final-review.md +49 -0
- package/istmx-multi-agent/references/finishing-a-development-branch.md +225 -0
- package/istmx-multi-agent/references/fix-loop.md +77 -0
- package/istmx-multi-agent/references/handling-reports.md +15 -0
- package/istmx-multi-agent/references/orchestration-and-handoffs.md +17 -0
- package/istmx-multi-agent/references/preflight.md +26 -0
- package/istmx-multi-agent/references/resuming.md +12 -0
- package/istmx-multi-agent/references/using-git-worktrees.md +167 -0
- package/istmx-multi-agent/scripts/review-package +64 -0
- package/istmx-multi-agent/scripts/sdd-repo +54 -0
- package/istmx-multi-agent/scripts/sdd-workspace +110 -0
- package/istmx-multi-agent/scripts/task-brief +108 -0
- package/istmx-multi-agent/templates/implementer-prompt.md +154 -0
- package/istmx-multi-agent/templates/progress-ledger.md +13 -0
- package/istmx-multi-agent/templates/re-review-prompt.md +116 -0
- package/istmx-multi-agent/templates/review-verdict.md +18 -0
- package/istmx-multi-agent/templates/task-reviewer-prompt.md +209 -0
- package/istmx-multi-agent/templates/worker-brief.md +27 -0
- package/istmx-planning/SKILL.md +222 -0
- package/istmx-planning/references/executing-plans.md +323 -0
- package/istmx-planning/scripts/task-done +55 -0
- package/istmx-planning/scripts/task-start +32 -0
- package/istmx-postgres-design/SKILL.md +138 -0
- package/istmx-postgres-design/references/sql-optimization-patterns.md +214 -0
- package/istmx-pragmatic-eng/SKILL.md +237 -0
- package/istmx-pragmatic-eng/references/broken-windows.md +257 -0
- package/istmx-pragmatic-eng/references/contracts-assertions.md +387 -0
- package/istmx-pragmatic-eng/references/dry-orthogonality.md +264 -0
- package/istmx-pragmatic-eng/references/estimation-portfolio.md +326 -0
- package/istmx-pragmatic-eng/references/reversibility.md +343 -0
- package/istmx-pragmatic-eng/references/tracer-bullets.md +280 -0
- package/istmx-refactoring/SKILL.md +226 -0
- package/istmx-refactoring/references/composing-methods.md +399 -0
- package/istmx-refactoring/references/moving-features.md +389 -0
- package/istmx-refactoring/references/organizing-data.md +433 -0
- package/istmx-refactoring/references/refactoring-workflow.md +373 -0
- package/istmx-refactoring/references/simplifying-conditionals.md +385 -0
- package/istmx-refactoring/references/smell-catalog.md +347 -0
- package/istmx-security-audit/SKILL.md +263 -0
- package/istmx-security-audit/references/auth-and-api-hardening.md +20 -0
- package/istmx-security-audit/references/auth-patterns.md +15 -0
- package/istmx-security-audit/references/compliance-checklists.md +10 -0
- package/istmx-security-audit/references/incident-response.md +11 -0
- package/istmx-security-audit/references/security-headers.md +12 -0
- package/istmx-security-audit/references/stride-and-threat-modeling.md +17 -0
- package/istmx-security-audit/references/vulnerability-patterns.md +14 -0
- package/istmx-security-audit/scripts/audit_auth_surface.py +69 -0
- package/istmx-security-audit/scripts/check_security_headers.sh +130 -0
- package/istmx-security-audit/scripts/scan_secrets.sh +182 -0
- package/istmx-system-design/SKILL.md +223 -0
- package/istmx-system-design/references/building-blocks.md +272 -0
- package/istmx-system-design/references/code-examples.md +95 -0
- package/istmx-system-design/references/common-designs.md +257 -0
- package/istmx-system-design/references/database-scaling.md +295 -0
- package/istmx-system-design/references/estimation-numbers.md +250 -0
- package/istmx-system-design/references/four-step-process.md +286 -0
- package/istmx-system-design/references/reliability-operations.md +373 -0
- package/istmx-system-design/references/worked-examples.md +174 -0
- package/istmx-tdd-verify/SKILL.md +364 -0
- package/istmx-tdd-verify/references/anti-tautological-tests.md +21 -0
- package/istmx-tdd-verify/references/characterization-and-seams.md +21 -0
- package/istmx-tdd-verify/references/condition-based-waiting.md +115 -0
- package/istmx-tdd-verify/references/defense-in-depth.md +122 -0
- package/istmx-tdd-verify/references/root-cause-and-defense-in-depth.md +26 -0
- package/istmx-tdd-verify/references/root-cause-tracing.md +169 -0
- package/istmx-tdd-verify/references/systematic-debugging.md +283 -0
- package/istmx-tdd-verify/references/verification-before-completion.md +120 -0
- package/istmx-tdd-verify/references/working-with-legacy-code.md +206 -0
- package/istmx-tdd-verify/references/writing-good-tests.md +198 -0
- package/istmx-tdd-verify/scripts/find-polluter.sh +72 -0
- package/istmx-team-topologies/SKILL.md +217 -0
- package/istmx-team-topologies/references/case-studies.md +158 -0
- package/istmx-team-topologies/references/cognitive-load.md +148 -0
- package/istmx-team-topologies/references/fracture-planes.md +97 -0
- package/istmx-team-topologies/references/interaction-modes.md +137 -0
- package/istmx-team-topologies/references/team-types.md +145 -0
- package/istmx-tech-docs/SKILL.md +246 -0
- package/istmx-tech-docs/references/api-reference.md +431 -0
- package/istmx-tech-docs/references/audit-checklist.md +287 -0
- package/istmx-tech-docs/references/document-types.md +212 -0
- package/istmx-tech-docs/references/procedures-and-code.md +249 -0
- package/istmx-tech-docs/references/release-notes.md +424 -0
- package/istmx-tech-docs/references/structure-and-formatting.md +330 -0
- package/istmx-tech-docs/references/voice-and-words.md +296 -0
- package/package.json +127 -127
- package/RELEASE_v2.1.0.md +0 -68
- package/context/conversation_transcript.md +0 -786
- package/context/progress.md +0 -129
- package/istm/SKILL.md +0 -74
- package/istm-animate/SKILL.md +0 -65
- package/istm-animate/animations/animation_utils.md +0 -280
- package/istm-animate/animations/animations.md +0 -220
- package/istm-animate/animations/core_motion.md +0 -250
- package/istm-animate/animations/examples/README.md +0 -29
- package/istm-animate/animations/examples/nuxt/app/app.vue +0 -3
- package/istm-animate/animations/examples/nuxt/app/composables/useGSAP.ts +0 -91
- package/istm-animate/animations/examples/nuxt/app/pages/index.vue +0 -55
- package/istm-animate/animations/examples/nuxt/nuxt.config.ts +0 -4
- package/istm-animate/animations/examples/nuxt/package.json +0 -18
- package/istm-animate/animations/examples/react/App.jsx +0 -46
- package/istm-animate/animations/examples/react/index.html +0 -12
- package/istm-animate/animations/examples/react/main.jsx +0 -9
- package/istm-animate/animations/examples/react/package.json +0 -21
- package/istm-animate/animations/examples/react/vite.config.js +0 -7
- package/istm-animate/animations/examples/vanilla/index.html +0 -33
- package/istm-animate/animations/examples/vanilla/main.js +0 -36
- package/istm-animate/animations/examples/vue/app.vue +0 -47
- package/istm-animate/animations/examples/vue/index.html +0 -15
- package/istm-animate/animations/examples/vue/main.js +0 -9
- package/istm-animate/animations/examples/vue/package.json +0 -19
- package/istm-animate/animations/examples/vue/vite.config.js +0 -7
- package/istm-animate/animations/framework_motion.md +0 -262
- package/istm-animate/animations/motion.csv +0 -17
- package/istm-animate/animations/motion.md +0 -11
- package/istm-animate/animations/motion_catalog.json +0 -226
- package/istm-animate/animations/motion_performance.md +0 -75
- package/istm-animate/animations/motion_plugins.md +0 -429
- package/istm-animate/animations/react_animations.md +0 -132
- package/istm-animate/animations/scroll_trigger_effects.md +0 -291
- package/istm-animate/animations/timeline_sequencing.md +0 -103
- package/istm-animate/core/motion-principles/SKILL.md +0 -284
- package/istm-animate/core/motion-principles/references/designers.md +0 -127
- package/istm-animate/core/motion-principles/references/easing-guide.md +0 -231
- package/istm-animate/core/motion-principles/references/enter-exit-recipes.md +0 -466
- package/istm-animate/frameworks/canvas-generative/SKILL.md +0 -325
- package/istm-animate/frameworks/canvas-generative/references/algorithms.md +0 -925
- package/istm-animate/frameworks/css-native/SKILL.md +0 -319
- package/istm-animate/frameworks/css-native/references/modern-css.md +0 -465
- package/istm-animate/frameworks/framer-motion/SKILL.md +0 -187
- package/istm-animate/frameworks/framer-motion/references/api.md +0 -312
- package/istm-animate/frameworks/gsap/SKILL.md +0 -188
- package/istm-animate/frameworks/gsap/references/core.md +0 -218
- package/istm-animate/frameworks/gsap/references/plugins.md +0 -371
- package/istm-animate/frameworks/gsap/references/scrolltrigger.md +0 -325
- package/istm-animate/frameworks/gsap/references/timeline.md +0 -218
- package/istm-animate/frameworks/threejs-r3f/SKILL.md +0 -243
- package/istm-animate/frameworks/threejs-r3f/references/scene-setup.md +0 -392
- package/istm-animate/frameworks/threejs-r3f/references/shaders.md +0 -446
- package/istm-animate/mobile/android/compose-graphics/SKILL.md +0 -503
- package/istm-animate/mobile/android/compose-graphics/references/agsl-recipes.md +0 -356
- package/istm-animate/mobile/android/compose-graphics/references/canvas-generative.md +0 -282
- package/istm-animate/mobile/android/compose-graphics/references/m3-expressive-deep.md +0 -303
- package/istm-animate/mobile/android/compose-motion/SKILL.md +0 -359
- package/istm-animate/mobile/android/compose-motion/references/gestures-compose.md +0 -273
- package/istm-animate/mobile/android/compose-motion/references/recomposition-and-anim.md +0 -196
- package/istm-animate/mobile/android/compose-motion/references/shared-transitions.md +0 -281
- package/istm-animate/mobile/android/compose-multiplatform/SKILL.md +0 -311
- package/istm-animate/mobile/android/compose-multiplatform/references/cmp-interop.md +0 -288
- package/istm-animate/mobile/android/compose-multiplatform/references/cmp-platform-quirks.md +0 -156
- package/istm-animate/mobile/apple/swiftui-graphics/SKILL.md +0 -408
- package/istm-animate/mobile/apple/swiftui-graphics/references/canvas-swiftui.md +0 -239
- package/istm-animate/mobile/apple/swiftui-graphics/references/liquid-glass-deep.md +0 -252
- package/istm-animate/mobile/apple/swiftui-graphics/references/metal-recipes.md +0 -382
- package/istm-animate/mobile/apple/swiftui-motion/SKILL.md +0 -379
- package/istm-animate/mobile/apple/swiftui-motion/references/gestures-swiftui.md +0 -336
- package/istm-animate/mobile/apple/swiftui-motion/references/phase-keyframe-deep.md +0 -231
- package/istm-animate/mobile/apple/swiftui-motion/references/springs-cheatsheet.md +0 -129
- package/istm-animate/references/animate.md +0 -199
- package/istm-animate/references/audit.md +0 -115
- package/istm-animate/references/design-engineering.md +0 -674
- package/istm-animate/references/improve.md +0 -101
- package/istm-animate/references/opportunities.md +0 -132
- package/istm-animate/references/plan-template.md +0 -73
- package/istm-animate/references/recipes.md +0 -324
- package/istm-animate/references/review.md +0 -112
- package/istm-animate/references/standards.md +0 -187
- package/istm-animate/references/vocabulary.md +0 -173
- package/istm-architecture/SKILL.md +0 -174
- package/istm-architecture/frameworks/angular.csv +0 -51
- package/istm-architecture/frameworks/astro.csv +0 -54
- package/istm-architecture/frameworks/avalonia.csv +0 -57
- package/istm-architecture/frameworks/flutter.csv +0 -53
- package/istm-architecture/frameworks/javafx.csv +0 -76
- package/istm-architecture/frameworks/jetpack-compose.csv +0 -53
- package/istm-architecture/frameworks/laravel.csv +0 -51
- package/istm-architecture/frameworks/nextjs.csv +0 -53
- package/istm-architecture/frameworks/nuxtjs.csv +0 -59
- package/istm-architecture/frameworks/react-native.csv +0 -52
- package/istm-architecture/frameworks/react.csv +0 -54
- package/istm-architecture/frameworks/svelte.csv +0 -54
- package/istm-architecture/frameworks/swiftui.csv +0 -51
- package/istm-architecture/frameworks/uwp.csv +0 -56
- package/istm-architecture/frameworks/vue.csv +0 -50
- package/istm-architecture/frameworks/winui.csv +0 -60
- package/istm-architecture/frameworks/wpf.csv +0 -57
- package/istm-architecture/templates/design.md +0 -138
- package/istm-awwward-designer/SKILL.md +0 -75
- package/istm-awwward-designer/libraries/threejs.csv +0 -54
- package/istm-awwward-designer/references/accessibility.md +0 -774
- package/istm-awwward-designer/references/anim-anti-patterns.md +0 -576
- package/istm-awwward-designer/references/animation-map.md +0 -166
- package/istm-awwward-designer/references/animation-standards.md +0 -86
- package/istm-awwward-designer/references/anti-patterns.md +0 -191
- package/istm-awwward-designer/references/color-systems.md +0 -604
- package/istm-awwward-designer/references/css-performance.md +0 -477
- package/istm-awwward-designer/references/descender-safety.md +0 -490
- package/istm-awwward-designer/references/design-audit.md +0 -93
- package/istm-awwward-designer/references/font-loading.md +0 -378
- package/istm-awwward-designer/references/image-optimization.md +0 -440
- package/istm-awwward-designer/references/invention-gate.md +0 -356
- package/istm-awwward-designer/references/micro-interactions.md +0 -825
- package/istm-awwward-designer/references/page-transitions.md +0 -365
- package/istm-awwward-designer/references/performance-standards.md +0 -79
- package/istm-awwward-designer/references/quality-gate.md +0 -103
- package/istm-awwward-designer/references/responsive-design.md +0 -778
- package/istm-awwward-designer/references/scoring-guide.md +0 -201
- package/istm-awwward-designer/references/scroll-patterns.md +0 -668
- package/istm-awwward-designer/references/stitch-brief.md +0 -124
- package/istm-awwward-designer/references/tech-stack.md +0 -204
- package/istm-awwward-designer/references/technical-audit.md +0 -133
- package/istm-awwward-designer/references/technique-families.md +0 -293
- package/istm-awwward-designer/references/testing.md +0 -535
- package/istm-awwward-designer/references/text-animation.md +0 -585
- package/istm-awwward-designer/references/typography.md +0 -504
- package/istm-awwward-designer/references/usability-audit.md +0 -108
- package/istm-awwward-designer/references/visual-standards.md +0 -97
- package/istm-design/SKILL.md +0 -85
- package/istm-design/anti-laziness/architectural-patterns.md +0 -55
- package/istm-design/anti-laziness/parameter-tuning.md +0 -44
- package/istm-design/anti-laziness/prompt-engineering.md +0 -52
- package/istm-design/anti-laziness/reference-prompts.md +0 -79
- package/istm-design/archetypes/brandkit/SKILL.md +0 -798
- package/istm-design/archetypes/brutalist/SKILL.md +0 -92
- package/istm-design/archetypes/minimalist/SKILL.md +0 -85
- package/istm-design/archetypes/soft/SKILL.md +0 -98
- package/istm-design/colors/color_theory.md +0 -293
- package/istm-design/colors/colors.csv +0 -193
- package/istm-design/colors/colors_catalog.json +0 -4034
- package/istm-design/colors/palette.json +0 -21
- package/istm-design/core/design-audit/SKILL.md +0 -248
- package/istm-design/core/desktop-principles/SKILL.md +0 -363
- package/istm-design/core/desktop-principles/references/keyboard-patterns.md +0 -137
- package/istm-design/core/desktop-principles/references/multi-window.md +0 -105
- package/istm-design/core/mobile-principles/SKILL.md +0 -289
- package/istm-design/core/mobile-principles/references/accessibility-mobile.md +0 -175
- package/istm-design/core/mobile-principles/references/gestures-deep.md +0 -220
- package/istm-design/core/ui-ux-pro-max/SKILL.md +0 -392
- package/istm-design/core/ui-ux-pro-max/UPSTREAM.md +0 -23
- package/istm-design/core/ui-ux-pro-max/data/app-interface.csv +0 -31
- package/istm-design/core/ui-ux-pro-max/data/charts.csv +0 -26
- package/istm-design/core/ui-ux-pro-max/data/colors.csv +0 -193
- package/istm-design/core/ui-ux-pro-max/data/google-fonts.csv +0 -1924
- package/istm-design/core/ui-ux-pro-max/data/icons.csv +0 -106
- package/istm-design/core/ui-ux-pro-max/data/landing.csv +0 -35
- package/istm-design/core/ui-ux-pro-max/data/motion.csv +0 -17
- package/istm-design/core/ui-ux-pro-max/data/products.csv +0 -193
- package/istm-design/core/ui-ux-pro-max/data/react-performance.csv +0 -45
- package/istm-design/core/ui-ux-pro-max/data/stacks/angular.csv +0 -51
- package/istm-design/core/ui-ux-pro-max/data/stacks/astro.csv +0 -54
- package/istm-design/core/ui-ux-pro-max/data/stacks/avalonia.csv +0 -57
- package/istm-design/core/ui-ux-pro-max/data/stacks/flutter.csv +0 -53
- package/istm-design/core/ui-ux-pro-max/data/stacks/html-tailwind.csv +0 -56
- package/istm-design/core/ui-ux-pro-max/data/stacks/javafx.csv +0 -76
- package/istm-design/core/ui-ux-pro-max/data/stacks/jetpack-compose.csv +0 -53
- package/istm-design/core/ui-ux-pro-max/data/stacks/laravel.csv +0 -51
- package/istm-design/core/ui-ux-pro-max/data/stacks/nextjs.csv +0 -53
- package/istm-design/core/ui-ux-pro-max/data/stacks/nuxt-ui.csv +0 -71
- package/istm-design/core/ui-ux-pro-max/data/stacks/nuxtjs.csv +0 -59
- package/istm-design/core/ui-ux-pro-max/data/stacks/react-native.csv +0 -52
- package/istm-design/core/ui-ux-pro-max/data/stacks/react.csv +0 -54
- package/istm-design/core/ui-ux-pro-max/data/stacks/shadcn.csv +0 -61
- package/istm-design/core/ui-ux-pro-max/data/stacks/svelte.csv +0 -54
- package/istm-design/core/ui-ux-pro-max/data/stacks/swiftui.csv +0 -51
- package/istm-design/core/ui-ux-pro-max/data/stacks/threejs.csv +0 -54
- package/istm-design/core/ui-ux-pro-max/data/stacks/uno.csv +0 -60
- package/istm-design/core/ui-ux-pro-max/data/stacks/uwp.csv +0 -56
- package/istm-design/core/ui-ux-pro-max/data/stacks/vue.csv +0 -50
- package/istm-design/core/ui-ux-pro-max/data/stacks/winui.csv +0 -60
- package/istm-design/core/ui-ux-pro-max/data/stacks/wpf.csv +0 -57
- package/istm-design/core/ui-ux-pro-max/data/styles.csv +0 -85
- package/istm-design/core/ui-ux-pro-max/data/typography.csv +0 -75
- package/istm-design/core/ui-ux-pro-max/data/ui-reasoning.csv +0 -162
- package/istm-design/core/ui-ux-pro-max/data/ux-guidelines.csv +0 -100
- package/istm-design/core/ui-ux-pro-max/references/pro-rules.md +0 -109
- package/istm-design/core/ui-ux-pro-max/references/quick-reference.md +0 -240
- package/istm-design/core/ui-ux-pro-max/scripts/core.py +0 -464
- package/istm-design/core/ui-ux-pro-max/scripts/design_system.py +0 -1371
- package/istm-design/core/ui-ux-pro-max/scripts/search.py +0 -162
- package/istm-design/core/ui-ux-pro-max/scripts/tests/test_core.py +0 -134
- package/istm-design/core/ui-ux-pro-max/scripts/validate_data.py +0 -114
- package/istm-design/image-to-code/SKILL.md +0 -1228
- package/istm-design/imagegen/SKILL.md +0 -987
- package/istm-design/presets/airbnb/DESIGN.md +0 -545
- package/istm-design/presets/airbnb/README.md +0 -5
- package/istm-design/presets/airtable/DESIGN.md +0 -554
- package/istm-design/presets/airtable/README.md +0 -5
- package/istm-design/presets/apple/DESIGN.md +0 -562
- package/istm-design/presets/apple/README.md +0 -5
- package/istm-design/presets/binance/DESIGN.md +0 -634
- package/istm-design/presets/binance/README.md +0 -5
- package/istm-design/presets/bmw/DESIGN.md +0 -544
- package/istm-design/presets/bmw/README.md +0 -5
- package/istm-design/presets/bmw-m/DESIGN.md +0 -503
- package/istm-design/presets/bmw-m/README.md +0 -5
- package/istm-design/presets/bugatti/DESIGN.md +0 -454
- package/istm-design/presets/bugatti/README.md +0 -5
- package/istm-design/presets/cal/DESIGN.md +0 -542
- package/istm-design/presets/cal/README.md +0 -5
- package/istm-design/presets/catalog.md +0 -127
- package/istm-design/presets/claude/DESIGN.md +0 -589
- package/istm-design/presets/claude/README.md +0 -5
- package/istm-design/presets/clay/DESIGN.md +0 -541
- package/istm-design/presets/clay/README.md +0 -5
- package/istm-design/presets/clickhouse/DESIGN.md +0 -544
- package/istm-design/presets/clickhouse/README.md +0 -5
- package/istm-design/presets/cohere/DESIGN.md +0 -451
- package/istm-design/presets/cohere/README.md +0 -5
- package/istm-design/presets/coinbase/DESIGN.md +0 -570
- package/istm-design/presets/coinbase/README.md +0 -5
- package/istm-design/presets/composio/DESIGN.md +0 -506
- package/istm-design/presets/composio/README.md +0 -5
- package/istm-design/presets/cursor/DESIGN.md +0 -537
- package/istm-design/presets/cursor/README.md +0 -5
- package/istm-design/presets/dell-1996/DESIGN.md +0 -632
- package/istm-design/presets/dell-1996/README.md +0 -5
- package/istm-design/presets/elevenlabs/DESIGN.md +0 -504
- package/istm-design/presets/elevenlabs/README.md +0 -5
- package/istm-design/presets/expo/DESIGN.md +0 -526
- package/istm-design/presets/expo/README.md +0 -5
- package/istm-design/presets/ferrari/DESIGN.md +0 -531
- package/istm-design/presets/ferrari/README.md +0 -5
- package/istm-design/presets/figma/DESIGN.md +0 -578
- package/istm-design/presets/figma/README.md +0 -5
- package/istm-design/presets/framer/DESIGN.md +0 -544
- package/istm-design/presets/framer/README.md +0 -5
- package/istm-design/presets/hashicorp/DESIGN.md +0 -575
- package/istm-design/presets/hashicorp/README.md +0 -5
- package/istm-design/presets/hp/DESIGN.md +0 -670
- package/istm-design/presets/hp/README.md +0 -5
- package/istm-design/presets/ibm/DESIGN.md +0 -550
- package/istm-design/presets/ibm/README.md +0 -5
- package/istm-design/presets/intercom/DESIGN.md +0 -546
- package/istm-design/presets/intercom/README.md +0 -5
- package/istm-design/presets/kraken/DESIGN.md +0 -125
- package/istm-design/presets/kraken/README.md +0 -5
- package/istm-design/presets/lamborghini/DESIGN.md +0 -288
- package/istm-design/presets/lamborghini/README.md +0 -5
- package/istm-design/presets/linear/DESIGN.md +0 -548
- package/istm-design/presets/linear/README.md +0 -5
- package/istm-design/presets/lovable/DESIGN.md +0 -298
- package/istm-design/presets/lovable/README.md +0 -5
- package/istm-design/presets/mastercard/DESIGN.md +0 -365
- package/istm-design/presets/mastercard/README.md +0 -5
- package/istm-design/presets/meta/DESIGN.md +0 -683
- package/istm-design/presets/meta/README.md +0 -5
- package/istm-design/presets/minimax/DESIGN.md +0 -746
- package/istm-design/presets/minimax/README.md +0 -5
- package/istm-design/presets/mintlify/DESIGN.md +0 -852
- package/istm-design/presets/mintlify/README.md +0 -5
- package/istm-design/presets/miro/DESIGN.md +0 -825
- package/istm-design/presets/miro/README.md +0 -5
- package/istm-design/presets/mistral/DESIGN.md +0 -773
- package/istm-design/presets/mistral/README.md +0 -5
- package/istm-design/presets/mongodb/DESIGN.md +0 -767
- package/istm-design/presets/mongodb/README.md +0 -5
- package/istm-design/presets/nike/DESIGN.md +0 -575
- package/istm-design/presets/nike/README.md +0 -5
- package/istm-design/presets/nintendo-2001/DESIGN.md +0 -649
- package/istm-design/presets/nintendo-2001/README.md +0 -5
- package/istm-design/presets/notion/DESIGN.md +0 -821
- package/istm-design/presets/notion/README.md +0 -5
- package/istm-design/presets/nvidia/DESIGN.md +0 -640
- package/istm-design/presets/nvidia/README.md +0 -5
- package/istm-design/presets/ollama/DESIGN.md +0 -539
- package/istm-design/presets/ollama/README.md +0 -5
- package/istm-design/presets/opencode/DESIGN.md +0 -521
- package/istm-design/presets/opencode/README.md +0 -5
- package/istm-design/presets/pinterest/DESIGN.md +0 -597
- package/istm-design/presets/pinterest/README.md +0 -5
- package/istm-design/presets/playstation/DESIGN.md +0 -661
- package/istm-design/presets/playstation/README.md +0 -5
- package/istm-design/presets/posthog/DESIGN.md +0 -690
- package/istm-design/presets/posthog/README.md +0 -5
- package/istm-design/presets/raycast/DESIGN.md +0 -669
- package/istm-design/presets/raycast/README.md +0 -5
- package/istm-design/presets/renault/DESIGN.md +0 -589
- package/istm-design/presets/renault/README.md +0 -5
- package/istm-design/presets/replicate/DESIGN.md +0 -616
- package/istm-design/presets/replicate/README.md +0 -5
- package/istm-design/presets/resend/DESIGN.md +0 -585
- package/istm-design/presets/resend/README.md +0 -5
- package/istm-design/presets/revolut/DESIGN.md +0 -636
- package/istm-design/presets/revolut/README.md +0 -5
- package/istm-design/presets/runwayml/DESIGN.md +0 -244
- package/istm-design/presets/runwayml/README.md +0 -5
- package/istm-design/presets/sanity/DESIGN.md +0 -357
- package/istm-design/presets/sanity/README.md +0 -5
- package/istm-design/presets/sentry/DESIGN.md +0 -551
- package/istm-design/presets/sentry/README.md +0 -5
- package/istm-design/presets/shopify/DESIGN.md +0 -516
- package/istm-design/presets/shopify/README.md +0 -5
- package/istm-design/presets/slack/DESIGN.md +0 -482
- package/istm-design/presets/spacex/DESIGN.md +0 -363
- package/istm-design/presets/spacex/README.md +0 -5
- package/istm-design/presets/spotify/DESIGN.md +0 -246
- package/istm-design/presets/spotify/README.md +0 -5
- package/istm-design/presets/starbucks/DESIGN.md +0 -580
- package/istm-design/presets/starbucks/README.md +0 -5
- package/istm-design/presets/stripe/DESIGN.md +0 -487
- package/istm-design/presets/stripe/README.md +0 -5
- package/istm-design/presets/supabase/DESIGN.md +0 -462
- package/istm-design/presets/supabase/README.md +0 -5
- package/istm-design/presets/superhuman/DESIGN.md +0 -448
- package/istm-design/presets/superhuman/README.md +0 -5
- package/istm-design/presets/tesla/DESIGN.md +0 -286
- package/istm-design/presets/tesla/README.md +0 -5
- package/istm-design/presets/theverge/DESIGN.md +0 -339
- package/istm-design/presets/theverge/README.md +0 -5
- package/istm-design/presets/together/DESIGN.md +0 -633
- package/istm-design/presets/together/README.md +0 -5
- package/istm-design/presets/uber/DESIGN.md +0 -636
- package/istm-design/presets/uber/README.md +0 -5
- package/istm-design/presets/vercel/DESIGN.md +0 -736
- package/istm-design/presets/vercel/README.md +0 -5
- package/istm-design/presets/vodafone/DESIGN.md +0 -538
- package/istm-design/presets/vodafone/README.md +0 -5
- package/istm-design/presets/voltagent/DESIGN.md +0 -521
- package/istm-design/presets/voltagent/README.md +0 -5
- package/istm-design/presets/warp/DESIGN.md +0 -526
- package/istm-design/presets/warp/README.md +0 -5
- package/istm-design/presets/webflow/DESIGN.md +0 -588
- package/istm-design/presets/webflow/README.md +0 -5
- package/istm-design/presets/wired/DESIGN.md +0 -497
- package/istm-design/presets/wired/README.md +0 -5
- package/istm-design/presets/wise/DESIGN.md +0 -544
- package/istm-design/presets/wise/README.md +0 -5
- package/istm-design/presets/xai/DESIGN.md +0 -465
- package/istm-design/presets/xai/README.md +0 -5
- package/istm-design/presets/zapier/DESIGN.md +0 -537
- package/istm-design/presets/zapier/README.md +0 -5
- package/istm-design/references/apple-design.md +0 -282
- package/istm-design/references/generation-guide.md +0 -209
- package/istm-design/references/pick-ui-library.md +0 -77
- package/istm-design/references/picker.md +0 -197
- package/istm-design/references/prototype.md +0 -90
- package/istm-design/references/schema.md +0 -366
- package/istm-design/semantic-design/DESIGN.md +0 -121
- package/istm-design/semantic-design/SKILL.md +0 -184
- package/istm-design/styles/design_system.md +0 -288
- package/istm-design/styles/html-tailwind.csv +0 -56
- package/istm-design/styles/nuxt-ui.csv +0 -71
- package/istm-design/styles/product_design.md +0 -55
- package/istm-design/styles/shadcn.csv +0 -61
- package/istm-design/styles/style.md +0 -12
- package/istm-design/styles/styles.csv +0 -85
- package/istm-design/styles/styles_catalog.json +0 -2018
- package/istm-design/styles/ui-reasoning.csv +0 -162
- package/istm-design/styles/uno.csv +0 -60
- package/istm-design/typography/font_and_font.md +0 -10
- package/istm-design/typography/google-fonts.csv +0 -1924
- package/istm-design/typography/sans_serif_fonts.md +0 -112
- package/istm-design/typography/typography.csv +0 -75
- package/istm-design/typography/typography_catalog.json +0 -964
- package/istm-design/ux/app-interface.csv +0 -31
- package/istm-design/ux/charts.csv +0 -26
- package/istm-design/ux/icons.csv +0 -106
- package/istm-design/ux/landing.csv +0 -35
- package/istm-design/ux/products.csv +0 -193
- package/istm-design/ux/react-performance.csv +0 -45
- package/istm-design/ux/responsive_rules.md +0 -62
- package/istm-design/ux/storytelling.md +0 -47
- package/istm-design/ux/ux-guidelines.csv +0 -100
- package/istm-design/ux/ux_guidelines.json +0 -1190
- package/istm-system-design/SKILL.md +0 -95
- package/istm-system-design/principles/01-architecture-patterns.md +0 -24
- package/istm-system-design/principles/02-database-selection.md +0 -32
- package/istm-system-design/principles/03-api-design.md +0 -25
- package/istm-system-design/principles/04-authentication-security.md +0 -23
- package/istm-system-design/principles/05-caching-performance.md +0 -21
- package/istm-system-design/principles/06-asynchronous-processing.md +0 -17
- package/istm-system-design/principles/07-infrastructure-deployment.md +0 -22
- package/istm-system-design/principles/08-low-level-design.md +0 -35
- package/istm-system-design/principles/09-state-management.md +0 -14
- package/istm-system-design/principles/10-error-handling-and-logging.md +0 -26
- package/istm-system-design/principles/11-testing-strategy.md +0 -18
- package/istm-system-design/principles/12-seo-and-web-vitals.md +0 -18
- package/istm-system-design/stacks/SETUP.md +0 -82
- package/istm-system-design/stacks/STACK.md +0 -67
- package/istm-system-design/stacks/WORKFLOW.md +0 -84
- package/istm-system-design/templates/api-route.ts.template +0 -32
- package/istm-system-design/templates/migrations.md.template +0 -30
- package/istm-system-design/templates/schema.drizzle.ts.template +0 -17
- package/istm-system-design/templates/schema.prisma.template +0 -28
- package/istm-system-design/templates/trpc-router.ts.template +0 -22
- package/istm-system-design/templates/zod-validators.ts.template +0 -14
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
# Liquid Glass Deep Dive (iOS 26)
|
|
2
|
-
|
|
3
|
-
> System-level glassmorphism with adaptive depth and morphing transitions. iOS 26+.
|
|
4
|
-
> Concise rules. Fallback patterns for older iOS at the bottom.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## What Liquid Glass Is
|
|
9
|
-
|
|
10
|
-
iOS 26 ships a system glassmorphism layer with adaptive depth, refraction, and morphing transitions across views. It is built on the same Metal stack as `.layerEffect` but optimized at the system level: the OS knows about device pixel density, surrounding content, and motion, and tunes blur radius, opacity, and refraction in real time. Pre-iOS 26 used `Material` (`.ultraThinMaterial` etc.), which is purely a backdrop blur. Liquid Glass adds light bending, edge highlights, and a coordinated namespace for morphing between glass surfaces.
|
|
11
|
-
|
|
12
|
-
---
|
|
13
|
-
|
|
14
|
-
## Basic API
|
|
15
|
-
|
|
16
|
-
| API | Purpose |
|
|
17
|
-
|---|---|
|
|
18
|
-
| `.glassEffect()` | Default glass (`.regular`) |
|
|
19
|
-
| `.glassEffect(.regular)` / `.clear` | Depth variants (frosted vs high-transparency) |
|
|
20
|
-
| `.glassEffect(.identity)` | No-op variant, to conditionally disable the effect |
|
|
21
|
-
| `.glassEffectID(_, in:)` | Pair a glass surface with a namespace for morphing |
|
|
22
|
-
| `GlassEffectContainer` | Group glass surfaces that should morph as one |
|
|
23
|
-
| `.glassBackgroundEffect(displayMode:)` | Older watchOS alias; iOS prefers `.glassEffect()` |
|
|
24
|
-
|
|
25
|
-
Variant guidance (iOS 26 `Glass` exposes only these):
|
|
26
|
-
- `.clear`: high transparency, content stays visible. Use for lightweight chrome over rich/media backgrounds.
|
|
27
|
-
- `.regular`: balanced, frosted, default. Use for cards, tab bars, modals, focused surfaces.
|
|
28
|
-
- `.identity`: no visual effect - use to disable glass conditionally.
|
|
29
|
-
|
|
30
|
-
Refine either variant with `.tint(_:)` and `.interactive()`, e.g. `.glassEffect(.regular.tint(.blue).interactive())`.
|
|
31
|
-
|
|
32
|
-
---
|
|
33
|
-
|
|
34
|
-
## Recipe: Glass Card Morphing
|
|
35
|
-
|
|
36
|
-
Hero card that expands to a sheet. Both states share `glassEffectID`, the OS animates the morph.
|
|
37
|
-
|
|
38
|
-
```swift
|
|
39
|
-
struct ExpandingCard: View {
|
|
40
|
-
@Namespace var glassNS
|
|
41
|
-
@State var expanded = false
|
|
42
|
-
|
|
43
|
-
var body: some View {
|
|
44
|
-
ZStack {
|
|
45
|
-
if !expanded {
|
|
46
|
-
Image("hero")
|
|
47
|
-
.resizable()
|
|
48
|
-
.scaledToFit()
|
|
49
|
-
.frame(width: 200, height: 280)
|
|
50
|
-
.glassEffect(.regular)
|
|
51
|
-
.glassEffectID("hero", in: glassNS)
|
|
52
|
-
.onTapGesture {
|
|
53
|
-
withAnimation(.spring(response: 0.4, dampingFraction: 0.85)) {
|
|
54
|
-
expanded = true
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
} else {
|
|
58
|
-
VStack {
|
|
59
|
-
Image("hero").resizable().scaledToFit()
|
|
60
|
-
Text("Details").font(.title)
|
|
61
|
-
}
|
|
62
|
-
.padding()
|
|
63
|
-
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
64
|
-
.glassEffect(.regular)
|
|
65
|
-
.glassEffectID("hero", in: glassNS)
|
|
66
|
-
.onTapGesture {
|
|
67
|
-
withAnimation(.spring(response: 0.4, dampingFraction: 0.85)) {
|
|
68
|
-
expanded = false
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
The OS interpolates blur, refraction, and edge highlights between the two states.
|
|
78
|
-
|
|
79
|
-
---
|
|
80
|
-
|
|
81
|
-
## Recipe: Glass Tab Bar
|
|
82
|
-
|
|
83
|
-
Floating tab bar with `.glassEffect(.regular)` over scrolling content. The bar adapts its tint as content scrolls beneath.
|
|
84
|
-
|
|
85
|
-
```swift
|
|
86
|
-
struct GlassTabBar: View {
|
|
87
|
-
@State var selected = 0
|
|
88
|
-
let tabs = ["house", "magnifyingglass", "person"]
|
|
89
|
-
|
|
90
|
-
var body: some View {
|
|
91
|
-
ZStack(alignment: .bottom) {
|
|
92
|
-
ScrollView {
|
|
93
|
-
LazyVStack(spacing: 16) {
|
|
94
|
-
ForEach(0..<50) { i in
|
|
95
|
-
Card(index: i)
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
.padding()
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
HStack(spacing: 32) {
|
|
102
|
-
ForEach(tabs.indices, id: \.self) { i in
|
|
103
|
-
Image(systemName: tabs[i])
|
|
104
|
-
.font(.title2)
|
|
105
|
-
.foregroundStyle(selected == i ? .primary : .secondary)
|
|
106
|
-
.frame(width: 44, height: 44)
|
|
107
|
-
.onTapGesture { selected = i }
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
.padding(.horizontal, 24)
|
|
111
|
-
.padding(.vertical, 12)
|
|
112
|
-
.glassEffect(.regular)
|
|
113
|
-
.clipShape(Capsule())
|
|
114
|
-
.padding(.bottom, 16)
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
---
|
|
121
|
-
|
|
122
|
-
## Recipe: Glass Modal Stack
|
|
123
|
-
|
|
124
|
-
Stacked sheets with progressively heavier glass, signaling depth.
|
|
125
|
-
|
|
126
|
-
```swift
|
|
127
|
-
struct GlassModalStack: View {
|
|
128
|
-
@State var first = false
|
|
129
|
-
@State var second = false
|
|
130
|
-
|
|
131
|
-
var body: some View {
|
|
132
|
-
Button("Open") { first = true }
|
|
133
|
-
.sheet(isPresented: $first) {
|
|
134
|
-
VStack {
|
|
135
|
-
Text("Layer 1").font(.title)
|
|
136
|
-
Button("Deeper") { second = true }
|
|
137
|
-
}
|
|
138
|
-
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
139
|
-
.glassEffect(.clear)
|
|
140
|
-
.sheet(isPresented: $second) {
|
|
141
|
-
Text("Layer 2")
|
|
142
|
-
.frame(maxWidth: .infinity, maxHeight: .infinity)
|
|
143
|
-
.glassEffect(.regular) // heavier frost as we go deeper
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
```
|
|
149
|
-
|
|
150
|
-
> Rule of thumb: use `.clear` for light chrome and `.regular` for focused/heavier surfaces. iOS 26 `Glass` has only these two depth variants (plus `.identity` to disable) - there is no `.thin`/`.thick` (those are `Material`, not `Glass`).
|
|
151
|
-
|
|
152
|
-
---
|
|
153
|
-
|
|
154
|
-
## iOS <26 Fallback Patterns
|
|
155
|
-
|
|
156
|
-
| iOS 26 API | Pre-iOS 26 fallback |
|
|
157
|
-
|---|---|
|
|
158
|
-
| `.glassEffect(.clear)` | `.background(.ultraThinMaterial)` |
|
|
159
|
-
| `.glassEffect(.regular)` | `.background(.regularMaterial)` |
|
|
160
|
-
| `.glassEffectID(_, in:)` | `matchedGeometryEffect(id:in:)` on a material-backed view |
|
|
161
|
-
| `GlassEffectContainer` | Manual `ZStack` + shared namespace |
|
|
162
|
-
|
|
163
|
-
```swift
|
|
164
|
-
@ViewBuilder
|
|
165
|
-
func adaptiveGlass<Content: View>(@ViewBuilder content: () -> Content) -> some View {
|
|
166
|
-
if #available(iOS 26.0, *) {
|
|
167
|
-
content().glassEffect(.regular)
|
|
168
|
-
} else {
|
|
169
|
-
content().background(.ultraThinMaterial)
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
---
|
|
175
|
-
|
|
176
|
-
## What Doesn't Work Pre-iOS 26
|
|
177
|
-
|
|
178
|
-
- **True refraction** (light bending through glass). Material is flat backdrop blur.
|
|
179
|
-
- **Adaptive transparency** based on what's behind. Material is a fixed mix.
|
|
180
|
-
- **`glassEffectID` morphing**. Use `matchedGeometryEffect` on a material-backed view; the material itself doesn't animate between states, only the view's frame does.
|
|
181
|
-
- **Edge highlights** that respond to motion. Static border at best.
|
|
182
|
-
|
|
183
|
-
If those are non-negotiable for your design, gate the feature on iOS 26 and ship a simpler fallback.
|
|
184
|
-
|
|
185
|
-
---
|
|
186
|
-
|
|
187
|
-
## Gotchas
|
|
188
|
-
|
|
189
|
-
### Glass on glass nests poorly
|
|
190
|
-
|
|
191
|
-
Stacking glass on glass compounds blur and washes out content. Use `GlassEffectContainer` to group siblings into one rendered surface.
|
|
192
|
-
|
|
193
|
-
```swift
|
|
194
|
-
// BAD -- two passes, content disappears
|
|
195
|
-
Card().glassEffect(.regular)
|
|
196
|
-
.padding()
|
|
197
|
-
.background(.ultraThinMaterial)
|
|
198
|
-
|
|
199
|
-
// GOOD -- one container, one pass
|
|
200
|
-
GlassEffectContainer {
|
|
201
|
-
HStack { Pill1(); Pill2() }
|
|
202
|
-
}
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
### Glass over solid backgrounds is invisible
|
|
206
|
-
|
|
207
|
-
Liquid Glass is designed to refract content beneath. Over a flat white or black solid, the effect is imperceptible. Use it over photographic, gradient, or animated backgrounds.
|
|
208
|
-
|
|
209
|
-
```swift
|
|
210
|
-
// BAD -- nothing to refract
|
|
211
|
-
ZStack {
|
|
212
|
-
Color.white
|
|
213
|
-
Card().glassEffect(.regular) // looks like a slightly grey card
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
// GOOD -- refractive content underneath
|
|
217
|
-
ZStack {
|
|
218
|
-
Image("blurred-photo").resizable().scaledToFill()
|
|
219
|
-
Card().glassEffect(.regular)
|
|
220
|
-
}
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
### Glass inside `LazyVStack` rows compounds cost
|
|
224
|
-
|
|
225
|
-
Each cell rendering its own glass means N GPU passes during scroll. Either lift the glass out of the cell or accept the cost only for visible cells (Lazy stacks help, but glass is still expensive per cell).
|
|
226
|
-
|
|
227
|
-
```swift
|
|
228
|
-
// BAD
|
|
229
|
-
LazyVStack {
|
|
230
|
-
ForEach(items) { item in
|
|
231
|
-
Card(item: item).glassEffect(.regular)
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
|
|
235
|
-
// GOOD -- glass on the chrome only, cells use solid backgrounds
|
|
236
|
-
ZStack {
|
|
237
|
-
LazyVStack {
|
|
238
|
-
ForEach(items) { item in
|
|
239
|
-
Card(item: item).background(.ultraThinMaterial.opacity(0.5))
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
Header().glassEffect(.regular)
|
|
243
|
-
}
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
|
|
248
|
-
## Sources
|
|
249
|
-
|
|
250
|
-
- Apple HIG iOS 26 Materials (see Apple iOS 26 release notes)
|
|
251
|
-
- [Apple SwiftUI Materials documentation](https://developer.apple.com/documentation/swiftui/material)
|
|
252
|
-
- [dpearson2699/swift-ios-skills](https://github.com/dpearson2699/swift-ios-skills) (swiftui-liquid-glass module)
|
|
@@ -1,382 +0,0 @@
|
|
|
1
|
-
# Metal Shader Recipes
|
|
2
|
-
|
|
3
|
-
> Working Metal Shading Language (MSL) shaders for SwiftUI's `.colorEffect`, `.distortionEffect`, `.layerEffect`. iOS 17+.
|
|
4
|
-
> Each recipe: description, .metal code, Swift binding, parameters, performance note.
|
|
5
|
-
|
|
6
|
-
All `.metal` files start with:
|
|
7
|
-
```metal
|
|
8
|
-
#include <SwiftUI/SwiftUI_Metal.h>
|
|
9
|
-
using namespace metal;
|
|
10
|
-
```
|
|
11
|
-
(Omitted from each recipe below for brevity. Add it once per file.)
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 1. Ripple Touch
|
|
16
|
-
|
|
17
|
-
Touch ripple displacing pixels along a sine wave with time decay. The ripple fades as `time` grows.
|
|
18
|
-
|
|
19
|
-
```metal
|
|
20
|
-
[[ stitchable ]]
|
|
21
|
-
half4 ripple(float2 position, SwiftUI::Layer layer,
|
|
22
|
-
float2 origin, float time, float amp) {
|
|
23
|
-
float distance = length(position - origin);
|
|
24
|
-
// wavefront expands with time, decays with distance
|
|
25
|
-
float wavefront = distance - time * 200.0;
|
|
26
|
-
float wave = sin(wavefront * 0.05) * amp;
|
|
27
|
-
// decay: ripple weakens past the wavefront and over time
|
|
28
|
-
float decay = exp(-time * 1.5) * exp(-abs(wavefront) * 0.005);
|
|
29
|
-
wave *= decay;
|
|
30
|
-
float2 dir = normalize(position - origin);
|
|
31
|
-
float2 displaced = position + dir * wave * clamp(50.0 / max(distance, 1.0), 0.0, 50.0);
|
|
32
|
-
return layer.sample(displaced);
|
|
33
|
-
}
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
```swift
|
|
37
|
-
struct RippleView: View {
|
|
38
|
-
@State var origin: CGPoint = .zero
|
|
39
|
-
@State var time: Float = 0
|
|
40
|
-
|
|
41
|
-
var body: some View {
|
|
42
|
-
Image("photo")
|
|
43
|
-
.resizable()
|
|
44
|
-
.scaledToFit()
|
|
45
|
-
.layerEffect(
|
|
46
|
-
ShaderLibrary.ripple(
|
|
47
|
-
.float2(Float(origin.x), Float(origin.y)),
|
|
48
|
-
.float(time),
|
|
49
|
-
.float(0.05)
|
|
50
|
-
),
|
|
51
|
-
maxSampleOffset: CGSize(width: 50, height: 50)
|
|
52
|
-
)
|
|
53
|
-
.onTapGesture { location in
|
|
54
|
-
origin = location
|
|
55
|
-
time = 0
|
|
56
|
-
withAnimation(.linear(duration: 1.5)) { time = 1.5 }
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
|
|
62
|
-
**Params:**
|
|
63
|
-
- `origin` (float2): touch point in view space.
|
|
64
|
-
- `time` (float): seconds since tap, drives wavefront expansion.
|
|
65
|
-
- `amp` (float): ripple amplitude. 0.05 is subtle; 0.2 cartoonish.
|
|
66
|
-
|
|
67
|
-
**Perf:** `.layerEffect` is the most expensive of the three. `clamp` on the displacement protects against runaway sampling. Keep `maxSampleOffset` tight.
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## 2. Holographic Gradient
|
|
72
|
-
|
|
73
|
-
Rainbow shimmer over luminance, scrollable via a parameter. Useful for foil cards and trading-card effects.
|
|
74
|
-
|
|
75
|
-
```metal
|
|
76
|
-
[[ stitchable ]]
|
|
77
|
-
half4 holographic(float2 position, half4 color, float scroll) {
|
|
78
|
-
float n = position.x * 0.01 + position.y * 0.005 + scroll * 0.3;
|
|
79
|
-
half3 rainbow = half3(
|
|
80
|
-
sin(n * 2.0) * 0.5 + 0.5,
|
|
81
|
-
sin(n * 2.0 + 2.094) * 0.5 + 0.5,
|
|
82
|
-
sin(n * 2.0 + 4.188) * 0.5 + 0.5
|
|
83
|
-
);
|
|
84
|
-
half luminance = dot(color.rgb, half3(0.299, 0.587, 0.114));
|
|
85
|
-
return half4(mix(color.rgb, rainbow * luminance * 2.0, 0.5), color.a);
|
|
86
|
-
}
|
|
87
|
-
```
|
|
88
|
-
|
|
89
|
-
```swift
|
|
90
|
-
struct HolographicCard: View {
|
|
91
|
-
@State var scroll: Float = 0
|
|
92
|
-
|
|
93
|
-
var body: some View {
|
|
94
|
-
Image("card")
|
|
95
|
-
.resizable()
|
|
96
|
-
.scaledToFit()
|
|
97
|
-
.colorEffect(ShaderLibrary.holographic(.float(scroll)))
|
|
98
|
-
.gesture(
|
|
99
|
-
DragGesture()
|
|
100
|
-
.onChanged { scroll = Float($0.translation.width / 200) }
|
|
101
|
-
)
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Params:**
|
|
107
|
-
- `scroll` (float): drives the rainbow phase. Bind to scroll offset, time, or drag delta.
|
|
108
|
-
|
|
109
|
-
**Perf:** cheap. `.colorEffect` runs purely per-pixel with no neighbor access. Safe to apply on full-screen views.
|
|
110
|
-
|
|
111
|
-
---
|
|
112
|
-
|
|
113
|
-
## 3. CRT Scanlines + Chromatic Aberration
|
|
114
|
-
|
|
115
|
-
True chromatic aberration via offset RGB samples. Promote to `.layerEffect`.
|
|
116
|
-
|
|
117
|
-
```metal
|
|
118
|
-
[[ stitchable ]]
|
|
119
|
-
half4 crt(float2 position, SwiftUI::Layer layer, float time) {
|
|
120
|
-
float scanline = sin(position.y * 1.5) * 0.04;
|
|
121
|
-
float flicker = sin(time * 60.0) * 0.02;
|
|
122
|
-
|
|
123
|
-
// sample R and B with horizontal offset for chromatic aberration
|
|
124
|
-
float aberration = 1.5;
|
|
125
|
-
half r = layer.sample(position + float2(aberration, 0)).r;
|
|
126
|
-
half g = layer.sample(position).g;
|
|
127
|
-
half b = layer.sample(position - float2(aberration, 0)).b;
|
|
128
|
-
half a = layer.sample(position).a;
|
|
129
|
-
|
|
130
|
-
half3 rgb = half3(r, g, b) * (1.0 - scanline - flicker);
|
|
131
|
-
return half4(rgb, a);
|
|
132
|
-
}
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
```swift
|
|
136
|
-
struct CRTView<Content: View>: View {
|
|
137
|
-
let content: Content
|
|
138
|
-
let startTime = Date()
|
|
139
|
-
init(@ViewBuilder content: () -> Content) { self.content = content() }
|
|
140
|
-
|
|
141
|
-
var body: some View {
|
|
142
|
-
TimelineView(.animation) { timeline in
|
|
143
|
-
let t = Float(timeline.date.timeIntervalSince(startTime))
|
|
144
|
-
content.layerEffect(
|
|
145
|
-
ShaderLibrary.crt(.float(t)),
|
|
146
|
-
maxSampleOffset: CGSize(width: 2, height: 0)
|
|
147
|
-
)
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
```
|
|
152
|
-
|
|
153
|
-
**Params:**
|
|
154
|
-
- `time` (float): seconds elapsed, drives flicker.
|
|
155
|
-
|
|
156
|
-
**Perf:** four `layer.sample` calls per pixel. Keep aberration small (`maxSampleOffset` of 2px is enough). At full screen on iPhone 12 and below, expect dropped frames if combined with other effects.
|
|
157
|
-
|
|
158
|
-
---
|
|
159
|
-
|
|
160
|
-
## 4. Glow Halo
|
|
161
|
-
|
|
162
|
-
Brightens pixels above a luminance threshold. Cheaper than bloom, ships in one pass.
|
|
163
|
-
|
|
164
|
-
```metal
|
|
165
|
-
[[ stitchable ]]
|
|
166
|
-
half4 glow(float2 position, half4 color, float threshold, float strength) {
|
|
167
|
-
half luminance = dot(color.rgb, half3(0.299, 0.587, 0.114));
|
|
168
|
-
half mask = smoothstep(threshold, threshold + 0.1, luminance);
|
|
169
|
-
half3 boosted = color.rgb + color.rgb * mask * strength;
|
|
170
|
-
return half4(boosted, color.a);
|
|
171
|
-
}
|
|
172
|
-
```
|
|
173
|
-
|
|
174
|
-
```swift
|
|
175
|
-
Text("HELLO")
|
|
176
|
-
.font(.system(size: 80, weight: .black))
|
|
177
|
-
.foregroundStyle(.white)
|
|
178
|
-
.colorEffect(
|
|
179
|
-
ShaderLibrary.glow(.float(0.7), .float(2.0))
|
|
180
|
-
)
|
|
181
|
-
```
|
|
182
|
-
|
|
183
|
-
**Params:**
|
|
184
|
-
- `threshold` (float): luminance above which pixels glow. 0.7 = highlights only.
|
|
185
|
-
- `strength` (float): multiplier. 2.0 doubles bright pixels.
|
|
186
|
-
|
|
187
|
-
**Perf:** very cheap. Pair with a Gaussian blur underneath for a true bloom look (use SwiftUI's `.blur(radius:)` on a duplicate layer).
|
|
188
|
-
|
|
189
|
-
---
|
|
190
|
-
|
|
191
|
-
## 5. Distortion / Heat Haze
|
|
192
|
-
|
|
193
|
-
Wavering distortion driven by pseudo-noise. Use case: heat above a fire, water reflections.
|
|
194
|
-
|
|
195
|
-
```metal
|
|
196
|
-
// hash-based pseudo-noise, fast and shader-friendly
|
|
197
|
-
float hash(float2 p) {
|
|
198
|
-
return fract(sin(dot(p, float2(127.1, 311.7))) * 43758.5453);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
float noise(float2 p) {
|
|
202
|
-
float2 i = floor(p);
|
|
203
|
-
float2 f = fract(p);
|
|
204
|
-
float a = hash(i);
|
|
205
|
-
float b = hash(i + float2(1.0, 0.0));
|
|
206
|
-
float c = hash(i + float2(0.0, 1.0));
|
|
207
|
-
float d = hash(i + float2(1.0, 1.0));
|
|
208
|
-
float2 u = f * f * (3.0 - 2.0 * f);
|
|
209
|
-
return mix(a, b, u.x) + (c - a) * u.y * (1.0 - u.x) + (d - b) * u.x * u.y;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
[[ stitchable ]]
|
|
213
|
-
float2 heatHaze(float2 position, float time, float strength) {
|
|
214
|
-
float n = noise(position * 0.02 + float2(0, time * 2.0));
|
|
215
|
-
float2 offset = float2(
|
|
216
|
-
(n - 0.5) * strength,
|
|
217
|
-
(noise(position * 0.02 + float2(time, 0)) - 0.5) * strength
|
|
218
|
-
);
|
|
219
|
-
return position + offset;
|
|
220
|
-
}
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
```swift
|
|
224
|
-
TimelineView(.animation) { timeline in
|
|
225
|
-
let t = Float(timeline.date.timeIntervalSinceReferenceDate)
|
|
226
|
-
Image("flame")
|
|
227
|
-
.resizable()
|
|
228
|
-
.scaledToFit()
|
|
229
|
-
.distortionEffect(
|
|
230
|
-
ShaderLibrary.heatHaze(.float(t), .float(8.0)),
|
|
231
|
-
maxSampleOffset: CGSize(width: 8, height: 8)
|
|
232
|
-
)
|
|
233
|
-
}
|
|
234
|
-
```
|
|
235
|
-
|
|
236
|
-
**Params:**
|
|
237
|
-
- `time` (float): seconds elapsed, scrolls the noise field.
|
|
238
|
-
- `strength` (float): max pixel displacement. 8 px = visible but plausible.
|
|
239
|
-
|
|
240
|
-
**Perf:** `.distortionEffect` is per-pixel sampling -- medium cost. The noise function is the hot path; if too slow on older devices, sample a noise texture instead.
|
|
241
|
-
|
|
242
|
-
---
|
|
243
|
-
|
|
244
|
-
## 6. Particle Emitter (Canvas + TimelineView)
|
|
245
|
-
|
|
246
|
-
50 additive particles drifting upward. Pure SwiftUI, no Metal.
|
|
247
|
-
|
|
248
|
-
```swift
|
|
249
|
-
struct Particle: Identifiable {
|
|
250
|
-
let id = UUID()
|
|
251
|
-
var position: CGPoint
|
|
252
|
-
var velocity: CGVector
|
|
253
|
-
var life: Double
|
|
254
|
-
var size: Double
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
struct ParticleEmitter: View {
|
|
258
|
-
@State var particles: [Particle] = (0..<50).map { _ in
|
|
259
|
-
Particle(
|
|
260
|
-
position: CGPoint(x: .random(in: 0...300), y: 600),
|
|
261
|
-
velocity: CGVector(dx: .random(in: -20...20), dy: .random(in: -100 ... -50)),
|
|
262
|
-
life: .random(in: 0...3),
|
|
263
|
-
size: .random(in: 2...6)
|
|
264
|
-
)
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
var body: some View {
|
|
268
|
-
TimelineView(.animation) { timeline in
|
|
269
|
-
Canvas { context, size in
|
|
270
|
-
context.blendMode = .plusLighter
|
|
271
|
-
let t = timeline.date.timeIntervalSinceReferenceDate
|
|
272
|
-
for p in particles {
|
|
273
|
-
let life = (p.life + t).truncatingRemainder(dividingBy: 3)
|
|
274
|
-
let progress = life / 3
|
|
275
|
-
let y = p.position.y + p.velocity.dy * life
|
|
276
|
-
let x = p.position.x + p.velocity.dx * life
|
|
277
|
-
let alpha = (1.0 - progress) * 0.8
|
|
278
|
-
context.fill(
|
|
279
|
-
Path(ellipseIn: CGRect(x: x, y: y, width: p.size, height: p.size)),
|
|
280
|
-
with: .color(.orange.opacity(alpha))
|
|
281
|
-
)
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
.frame(width: 300, height: 600)
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
**Params:** all configured in particle struct (position, velocity, life, size).
|
|
291
|
-
|
|
292
|
-
**Perf:** Canvas with 50 fills at 60fps is fine on iPhone 11+. For 500+ particles or per-pixel glow, switch to a Metal `.colorEffect` on a CALayer-backed view or use SpriteKit/Metal directly.
|
|
293
|
-
|
|
294
|
-
---
|
|
295
|
-
|
|
296
|
-
## 7. Noise Overlay (Film Grain)
|
|
297
|
-
|
|
298
|
-
3D pseudo-noise approximation for animated film grain.
|
|
299
|
-
|
|
300
|
-
```metal
|
|
301
|
-
float hash3(float3 p) {
|
|
302
|
-
return fract(sin(dot(p, float3(127.1, 311.7, 74.7))) * 43758.5453);
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
[[ stitchable ]]
|
|
306
|
-
half4 grain(float2 position, half4 color, float time, float strength) {
|
|
307
|
-
float n = hash3(float3(position * 0.5, time * 10.0));
|
|
308
|
-
half g = half(n - 0.5) * half(strength);
|
|
309
|
-
return half4(color.rgb + g, color.a);
|
|
310
|
-
}
|
|
311
|
-
```
|
|
312
|
-
|
|
313
|
-
```swift
|
|
314
|
-
TimelineView(.animation) { timeline in
|
|
315
|
-
let t = Float(timeline.date.timeIntervalSinceReferenceDate)
|
|
316
|
-
Image("photo")
|
|
317
|
-
.resizable()
|
|
318
|
-
.scaledToFit()
|
|
319
|
-
.colorEffect(ShaderLibrary.grain(.float(t), .float(0.15)))
|
|
320
|
-
}
|
|
321
|
-
```
|
|
322
|
-
|
|
323
|
-
**Params:**
|
|
324
|
-
- `time` (float): drives grain animation. Pass elapsed seconds.
|
|
325
|
-
- `strength` (float): grain amplitude. 0.05 subtle, 0.2 strong, 0.4 destructive.
|
|
326
|
-
|
|
327
|
-
**Perf:** very cheap. The hash is one `sin` and a `fract`. Safe on full-screen views at 60fps.
|
|
328
|
-
|
|
329
|
-
---
|
|
330
|
-
|
|
331
|
-
## Combining Recipes
|
|
332
|
-
|
|
333
|
-
Two strategies, in order of preference:
|
|
334
|
-
|
|
335
|
-
### A. Single shader with multiple ops (best perf)
|
|
336
|
-
|
|
337
|
-
Combine into one `[[ stitchable ]]` function. One render pass.
|
|
338
|
-
|
|
339
|
-
```metal
|
|
340
|
-
[[ stitchable ]]
|
|
341
|
-
half4 holoGrain(float2 position, half4 color, float time, float scroll) {
|
|
342
|
-
// holographic
|
|
343
|
-
float n = position.x * 0.01 + position.y * 0.005 + scroll * 0.3;
|
|
344
|
-
half3 rainbow = half3(
|
|
345
|
-
sin(n * 2.0) * 0.5 + 0.5,
|
|
346
|
-
sin(n * 2.0 + 2.094) * 0.5 + 0.5,
|
|
347
|
-
sin(n * 2.0 + 4.188) * 0.5 + 0.5
|
|
348
|
-
);
|
|
349
|
-
half lum = dot(color.rgb, half3(0.299, 0.587, 0.114));
|
|
350
|
-
half3 holo = mix(color.rgb, rainbow * lum * 2.0, 0.5);
|
|
351
|
-
|
|
352
|
-
// grain
|
|
353
|
-
float g = fract(sin(dot(float3(position * 0.5, time * 10.0), float3(127.1, 311.7, 74.7))) * 43758.5453);
|
|
354
|
-
half3 final = holo + half(g - 0.5) * 0.1;
|
|
355
|
-
|
|
356
|
-
return half4(final, color.a);
|
|
357
|
-
}
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
### B. Stacked modifiers (use only when ops are conditional)
|
|
361
|
-
|
|
362
|
-
Each modifier is one render pass. Acceptable for 2 ops. Don't go past 3.
|
|
363
|
-
|
|
364
|
-
```swift
|
|
365
|
-
Image("card")
|
|
366
|
-
.colorEffect(ShaderLibrary.holographic(.float(scroll)))
|
|
367
|
-
.colorEffect(ShaderLibrary.grain(.float(time), .float(0.1)))
|
|
368
|
-
```
|
|
369
|
-
|
|
370
|
-
> When in doubt: prototype with stacked modifiers, then collapse into one shader for ship.
|
|
371
|
-
|
|
372
|
-
---
|
|
373
|
-
|
|
374
|
-
## Sources
|
|
375
|
-
|
|
376
|
-
- [twostraws/Inferno](https://github.com/twostraws/Inferno) - reference Metal shaders for SwiftUI
|
|
377
|
-
- [Treata11/iShader](https://github.com/Treata11/iShader)
|
|
378
|
-
- [jamesrochabrun/ShaderKit](https://github.com/jamesrochabrun/ShaderKit)
|
|
379
|
-
- [raphaelsalaja/metallurgy](https://github.com/raphaelsalaja/metallurgy)
|
|
380
|
-
- [eleev/swiftui-new-metal-shaders](https://github.com/eleev/swiftui-new-metal-shaders)
|
|
381
|
-
- [Apple Metal Shading Language Spec](https://developer.apple.com/metal/Metal-Shading-Language-Specification.pdf)
|
|
382
|
-
- [Apple Shader documentation](https://developer.apple.com/documentation/swiftui/shader)
|