@istmx/skills 2.1.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/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
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: istmx-ddia-systems
|
|
3
|
+
description: 'Design data systems by understanding storage engines, replication, partitioning, transactions, and consistency models. Use when the user mentions "database choice", "which database should I use", "SQL or NoSQL", "replication lag", "partitioning strategy", "consistency vs availability", "stream processing", "ACID transactions", "eventual consistency", "my queries are slow at scale", or "data is inconsistent across replicas". Also trigger when choosing a datastore, designing data pipelines, or debugging distributed-system consistency issues. Covers data models, batch/stream processing, and distributed consensus. For system design, see system-design. For resilience, see release-it.'
|
|
4
|
+
license: MIT
|
|
5
|
+
metadata:
|
|
6
|
+
author: istmx
|
|
7
|
+
version: "1.4.0"
|
|
8
|
+
---
|
|
9
|
+
|
|
10
|
+
<!-- @istmx/skills | istmx-ddia-systems -->
|
|
11
|
+
|
|
12
|
+
## Package File Map (`@istmx/skills`)
|
|
13
|
+
|
|
14
|
+
| File | Role |
|
|
15
|
+
|---|---|
|
|
16
|
+
| `references/anti-patterns.md` | References module for `istmx-ddia-systems` |
|
|
17
|
+
| `references/batch-stream.md` | References module for `istmx-ddia-systems` |
|
|
18
|
+
| `references/capacity-planning.md` | References module for `istmx-ddia-systems` |
|
|
19
|
+
| `references/chaos-engineering.md` | References module for `istmx-ddia-systems` |
|
|
20
|
+
| `references/data-models.md` | References module for `istmx-ddia-systems` |
|
|
21
|
+
| `references/deployment-strategies.md` | References module for `istmx-ddia-systems` |
|
|
22
|
+
| `references/fault-tolerance.md` | References module for `istmx-ddia-systems` |
|
|
23
|
+
| `references/observability.md` | References module for `istmx-ddia-systems` |
|
|
24
|
+
| `references/partitioning.md` | References module for `istmx-ddia-systems` |
|
|
25
|
+
| `references/replication.md` | References module for `istmx-ddia-systems` |
|
|
26
|
+
| `references/stability-patterns.md` | References module for `istmx-ddia-systems` |
|
|
27
|
+
| `references/storage-engines.md` | References module for `istmx-ddia-systems` |
|
|
28
|
+
| `references/transactions.md` | References module for `istmx-ddia-systems` |
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
# Designing Data-Intensive Applications Framework
|
|
32
|
+
|
|
33
|
+
A principled approach to building reliable, scalable, and maintainable data systems. Apply these principles when choosing databases, designing schemas, architecting distributed systems, or reasoning about consistency and fault tolerance.
|
|
34
|
+
|
|
35
|
+
## Core Principle
|
|
36
|
+
|
|
37
|
+
**Data outlives code.** Applications are rewritten and frameworks come and go, but data persists for decades -- prioritize the long-term correctness, durability, and evolvability of the data layer. Most applications are data-intensive, not compute-intensive: the hard problems are data volume, complexity, and rate of change, and explicit consistency/availability/latency trade-offs separate robust systems from fragile ones.
|
|
38
|
+
|
|
39
|
+
## Scoring
|
|
40
|
+
|
|
41
|
+
**Goal: 10/10.** Score a data architecture by the seven Quick Diagnostic rows below: award ~1.4 points per row answered "yes" with evidence (deliberate, documented trade-off), 0 where the answer is "no" or unknown.
|
|
42
|
+
|
|
43
|
+
- **9-10:** every domain choice -- data model, storage engine, replication, partitioning, isolation, derived-data, fault handling -- is deliberate, documented, and matched to actual read/write/consistency requirements; failover tested.
|
|
44
|
+
- **5-6:** core choices made but two or three diagnostic rows fail -- e.g. default isolation level unknown, hot-key risk unhandled, or failover untested.
|
|
45
|
+
- **<=3:** choices driven by familiarity, not requirements; ignored failure modes (replication lag, write skew, hot partitions) and accidental complexity dominate.
|
|
46
|
+
|
|
47
|
+
Report the current score, which diagnostic rows failed, and the improvements needed to reach 10/10.
|
|
48
|
+
|
|
49
|
+
## The DDIA Framework
|
|
50
|
+
|
|
51
|
+
Seven domains for reasoning about data-intensive systems:
|
|
52
|
+
|
|
53
|
+
### 1. Data Models and Query Languages
|
|
54
|
+
|
|
55
|
+
**Core concept:** The data model shapes how you think about the problem. Relational, document, and graph models each impose different constraints and enable different query patterns.
|
|
56
|
+
|
|
57
|
+
**Why it works:** Choosing the wrong data model forces application code to compensate for representational mismatch, adding accidental complexity that compounds over time.
|
|
58
|
+
|
|
59
|
+
**Key insights:**
|
|
60
|
+
- Relational models excel at many-to-many relationships and ad-hoc queries; document models at one-to-many relationships and locality; graph models at recursive traversals over interconnected data
|
|
61
|
+
- Schema-on-write (relational) catches errors early; schema-on-read (document) offers flexibility
|
|
62
|
+
- Polyglot persistence -- different stores for different access patterns -- is often the right answer
|
|
63
|
+
- Object-relational impedance mismatch is a real cost; document models reduce it for self-contained aggregates
|
|
64
|
+
|
|
65
|
+
**Code applications:**
|
|
66
|
+
|
|
67
|
+
| Context | Pattern | Example |
|
|
68
|
+
|---------|---------|---------|
|
|
69
|
+
| **User profiles with nested data** | Document model for self-contained aggregates | Profile, addresses, and preferences in one MongoDB document |
|
|
70
|
+
| **Social network connections** | Graph model for relationship traversal | Neo4j Cypher: `MATCH (a)-[:FOLLOWS*2]->(b)` for friend-of-friend |
|
|
71
|
+
| **Financial ledger with joins** | Relational model for referential integrity | PostgreSQL foreign keys between accounts, transactions, entries |
|
|
72
|
+
|
|
73
|
+
See [references/data-models.md](references/data-models.md) when picking relational vs document vs graph or evaluating schema-on-read -- adds the full trade-off matrix and query-language comparisons.
|
|
74
|
+
|
|
75
|
+
### 2. Storage Engines
|
|
76
|
+
|
|
77
|
+
**Core concept:** Storage engines trade off read performance against write performance. Log-structured engines (LSM trees) optimize writes; page-oriented engines (B-trees) balance reads and writes.
|
|
78
|
+
|
|
79
|
+
**Key insights:**
|
|
80
|
+
- LSM trees: append-only writes, periodic compaction, excellent write throughput, higher read amplification
|
|
81
|
+
- B-trees: in-place updates, predictable read latency, write amplification from page splits
|
|
82
|
+
- Write amplification (one logical write causing multiple physical writes) matters for SSDs with limited write cycles
|
|
83
|
+
- Column-oriented storage dramatically improves analytical queries through compression and vectorized processing
|
|
84
|
+
- In-memory databases are fast because they avoid encoding overhead, not because they avoid disk
|
|
85
|
+
|
|
86
|
+
**Code applications:**
|
|
87
|
+
|
|
88
|
+
| Context | Pattern | Example |
|
|
89
|
+
|---------|---------|---------|
|
|
90
|
+
| **High write throughput** | LSM-tree engine | Cassandra or RocksDB for time-series ingestion at 100K+ writes/sec |
|
|
91
|
+
| **Mixed read/write OLTP** | B-tree engine | PostgreSQL B-tree indexes for transactional point lookups |
|
|
92
|
+
| **Analytical queries** | Column-oriented storage | ClickHouse or Parquet for scanning billions of rows, few columns |
|
|
93
|
+
|
|
94
|
+
See [references/storage-engines.md](references/storage-engines.md) when a workload is read/write-bound or you must choose indexes -- adds write/read-path diagrams, compaction strategies, column storage, and a benchmark-driven decision procedure.
|
|
95
|
+
|
|
96
|
+
### 3. Replication
|
|
97
|
+
|
|
98
|
+
**Core concept:** Replication keeps copies of data on multiple machines for fault tolerance, scalability, and latency reduction. The core challenge is handling changes consistently.
|
|
99
|
+
|
|
100
|
+
**Why it works:** Every replication strategy trades off consistency, availability, and latency. Making the trade-off explicit prevents subtle anomalies that surface only under load or failure.
|
|
101
|
+
|
|
102
|
+
**Key insights:**
|
|
103
|
+
- Single-leader: simple, strong consistency possible, but the leader is a bottleneck and single point of failure
|
|
104
|
+
- Multi-leader: better write availability across data centers, but complex conflict resolution
|
|
105
|
+
- Leaderless: highest availability via quorum reads/writes, but needs careful conflict handling
|
|
106
|
+
- Replication lag causes read-your-writes, monotonic-read, and causality violations
|
|
107
|
+
- Synchronous replication guarantees durability but adds latency; asynchronous risks data loss on failover
|
|
108
|
+
- CRDTs and last-writer-wins resolve conflicts with very different correctness guarantees
|
|
109
|
+
|
|
110
|
+
**Code applications:**
|
|
111
|
+
|
|
112
|
+
| Context | Pattern | Example |
|
|
113
|
+
|---------|---------|---------|
|
|
114
|
+
| **Read-heavy web app** | Single-leader with read replicas | PostgreSQL primary + read replicas behind pgBouncer |
|
|
115
|
+
| **Multi-region writes** | Multi-leader replication | CockroachDB or Spanner with bounded staleness |
|
|
116
|
+
| **Shopping cart availability** | Leaderless with merge | DynamoDB with last-writer-wins or application-level cart merge |
|
|
117
|
+
|
|
118
|
+
See [references/replication.md](references/replication.md) when choosing single/multi/leaderless or debugging stale reads -- adds lag anomalies, quorum math, conflict resolution, and CRDTs.
|
|
119
|
+
|
|
120
|
+
### 4. Partitioning
|
|
121
|
+
|
|
122
|
+
**Core concept:** Partitioning (sharding) distributes data across nodes so each handles a subset, enabling horizontal scaling beyond a single machine.
|
|
123
|
+
|
|
124
|
+
**Key insights:**
|
|
125
|
+
- Key-range partitioning supports efficient range scans but risks hotspots on sequential keys
|
|
126
|
+
- Hash partitioning distributes load evenly but destroys sort order, making range queries expensive
|
|
127
|
+
- Local secondary indexes require scatter-gather queries; global secondary indexes require cross-partition updates
|
|
128
|
+
- Hotspots occur even with hashing when a single key is extremely popular (celebrity problem)
|
|
129
|
+
- Rebalancing strategies: fixed partition count, dynamic splitting, or proportional to nodes
|
|
130
|
+
|
|
131
|
+
**Code applications:**
|
|
132
|
+
|
|
133
|
+
| Context | Pattern | Example |
|
|
134
|
+
|---------|---------|---------|
|
|
135
|
+
| **Time-series data** | Key-range partitioning by time + source | Partition by `(sensor_id, date)` to avoid current-day write hotspot |
|
|
136
|
+
| **User data at scale** | Hash partitioning on user ID | Cassandra consistent hashing on `user_id` for even distribution |
|
|
137
|
+
| **Celebrity/hot-key problem** | Key splitting with random suffix | Append random digit to hot key, fan out reads across 10 sub-partitions |
|
|
138
|
+
|
|
139
|
+
See [references/partitioning.md](references/partitioning.md) when sharding or fighting a hot key -- adds rebalancing strategies, request routing, and local-vs-global secondary index trade-offs.
|
|
140
|
+
|
|
141
|
+
### 5. Transactions and Consistency
|
|
142
|
+
|
|
143
|
+
**Core concept:** Transactions provide safety guarantees (ACID) that simplify application code by letting you pretend failures and concurrency don't exist -- within the transaction's scope.
|
|
144
|
+
|
|
145
|
+
**Why it works:** Without transactions, every piece of application code must handle partial failures, races, and concurrent modification. Transactions move that complexity into the database, handled correctly once.
|
|
146
|
+
|
|
147
|
+
**Key insights:**
|
|
148
|
+
- Isolation levels are a spectrum: read uncommitted, read committed, snapshot isolation, serializable
|
|
149
|
+
- Most databases default to read committed or snapshot isolation -- NOT serializable -- so you must understand the anomalies this permits
|
|
150
|
+
- Write skew: two transactions read the same data, decide, and write different records -- no row lock prevents it
|
|
151
|
+
- Serializable snapshot isolation (SSI) gives full serializability optimistically: no blocking, but aborts on conflict; two-phase locking blocks and deadlocks under contention
|
|
152
|
+
- Distributed transactions (two-phase commit) are expensive and fragile; design around single-partition operations instead
|
|
153
|
+
|
|
154
|
+
**Code applications:**
|
|
155
|
+
|
|
156
|
+
| Context | Pattern | Example |
|
|
157
|
+
|---------|---------|---------|
|
|
158
|
+
| **Account balance transfer** | Serializable transaction | `BEGIN; UPDATE accounts ... -100 WHERE id=1; UPDATE accounts ... +100 WHERE id=2; COMMIT;` |
|
|
159
|
+
| **Inventory reservation** | SELECT FOR UPDATE to prevent write skew | `SELECT stock FROM items WHERE id = X FOR UPDATE` before decrementing |
|
|
160
|
+
| **Cross-service operations** | Saga instead of distributed transaction | Charge card, reserve inventory; on failure, run compensating refund |
|
|
161
|
+
|
|
162
|
+
See [references/transactions.md](references/transactions.md) when setting isolation levels or chasing a concurrency bug -- adds per-isolation anomaly tables, write-skew examples, 2PL vs SSI, and distributed-transaction pitfalls.
|
|
163
|
+
|
|
164
|
+
### 6. Batch and Stream Processing
|
|
165
|
+
|
|
166
|
+
**Core concept:** Batch processing transforms bounded datasets in bulk; stream processing transforms unbounded event streams continuously. Both compute derived data.
|
|
167
|
+
|
|
168
|
+
**Why it works:** Separating the system of record from derived data (caches, indexes, materialized views) lets each be optimized independently and rebuilt from source when requirements change.
|
|
169
|
+
|
|
170
|
+
**Key insights:**
|
|
171
|
+
- MapReduce is conceptually simple but operationally awkward; dataflow engines (Spark, Flink) generalize it with arbitrary DAGs
|
|
172
|
+
- Change data capture (CDC) turns database writes into a stream downstream systems can consume
|
|
173
|
+
- Stream-table duality: a stream is the changelog of a table; a table is the materialized state of a stream
|
|
174
|
+
- Exactly-once semantics require idempotent operations or transactional output
|
|
175
|
+
- Time windowing (tumbling, hopping, session) is essential for aggregating unbounded streams
|
|
176
|
+
|
|
177
|
+
**Code applications:**
|
|
178
|
+
|
|
179
|
+
| Context | Pattern | Example |
|
|
180
|
+
|---------|---------|---------|
|
|
181
|
+
| **Daily analytics pipeline** | Batch processing with Spark | Read day's events from S3, aggregate, write to warehouse |
|
|
182
|
+
| **Real-time fraud detection** | Stream processing with Flink | Kafka payment events, rules over 5-second tumbling windows |
|
|
183
|
+
| **Syncing search index** | Change data capture | Debezium captures PostgreSQL WAL, Kafka feeds Elasticsearch |
|
|
184
|
+
| **Audit trail / event replay** | Event sourcing | Store `OrderPlaced`, `OrderShipped` events; rebuild state by replaying |
|
|
185
|
+
|
|
186
|
+
See [references/batch-stream.md](references/batch-stream.md) when designing a pipeline or deriving data from a system of record -- adds dataflow engines, CDC wiring, windowing, and exactly-once techniques.
|
|
187
|
+
|
|
188
|
+
### 7. Reliability and Fault Tolerance
|
|
189
|
+
|
|
190
|
+
**Core concept:** Faults are inevitable; failures are not. A reliable system continues operating correctly even when individual components fail. Design for faults, not against them.
|
|
191
|
+
|
|
192
|
+
**Key insights:**
|
|
193
|
+
- A fault is one component deviating from spec; a failure is the whole system stopping -- fault tolerance prevents the former becoming the latter
|
|
194
|
+
- Hardware faults are random and independent; software faults are correlated and systematic (more dangerous)
|
|
195
|
+
- Human error is the leading cause of outages -- minimize opportunity for mistakes, maximize ability to recover
|
|
196
|
+
- Timeouts are the fundamental fault detector, but tuning is hard: too short causes false positives, too long delays recovery
|
|
197
|
+
- Safety properties (nothing bad happens) must always hold; liveness (something good eventually happens) may be temporarily violated
|
|
198
|
+
- Byzantine fault tolerance is rarely needed outside blockchain; assume crash-stop or crash-recovery
|
|
199
|
+
|
|
200
|
+
**Code applications:**
|
|
201
|
+
|
|
202
|
+
| Context | Pattern | Example |
|
|
203
|
+
|---------|---------|---------|
|
|
204
|
+
| **Service communication** | Timeouts + retries with backoff | `retry(max=3, backoff=exponential(base=1s, max=30s))` with jitter |
|
|
205
|
+
| **Leader election** | Consensus algorithm (Raft/Paxos) | etcd or ZooKeeper for distributed locks and leader election |
|
|
206
|
+
| **Graceful degradation** | Circuit breaker | Resilience4j: open circuit after 50% failures in 10-second window |
|
|
207
|
+
|
|
208
|
+
See [references/fault-tolerance.md](references/fault-tolerance.md) when tuning timeouts/retries or adding consensus -- adds fault classification, timeout-tuning math, Raft/Paxos mechanics, and safety/liveness guarantees.
|
|
209
|
+
|
|
210
|
+
## Common Mistakes
|
|
211
|
+
|
|
212
|
+
| Mistake | Why It Fails | Fix |
|
|
213
|
+
|---------|-------------|------|
|
|
214
|
+
| **Choosing a database by popularity** | Engines have fundamentally different trade-offs | Match storage engine to actual read/write patterns |
|
|
215
|
+
| **Ignoring replication lag** | Stale reads, phantom reads, lost updates | Implement read-your-writes and monotonic-read guarantees |
|
|
216
|
+
| **Distributed transactions everywhere** | 2PC is slow, fragile; coordinator is a SPOF | Design single-partition operations; use sagas across services |
|
|
217
|
+
| **Hash partitioning everything** | Destroys range query ability | Key-range partitioning for time-series; composite keys for locality |
|
|
218
|
+
| **Assuming serializable isolation** | Defaults are weaker; write skew appears in production | Check the actual default; use explicit locking where needed |
|
|
219
|
+
| **Conflating batch and stream** | Wrong tool adds latency or wasted complexity | Match processing model to data boundedness and latency needs |
|
|
220
|
+
| **Treating all faults as recoverable** | Corruption and Byzantine faults need different handling | Classify faults; design a recovery strategy per class |
|
|
221
|
+
|
|
222
|
+
## Quick Diagnostic
|
|
223
|
+
|
|
224
|
+
| Question | If No | Action |
|
|
225
|
+
|----------|-------|--------|
|
|
226
|
+
| Can you explain why you chose this database over alternatives? | Choice was familiarity, not requirements | Evaluate data model fit, read/write ratio, consistency needs, scaling path |
|
|
227
|
+
| Do you know your database's default isolation level? | Latent concurrency bugs | Check docs; test for write skew and phantom reads |
|
|
228
|
+
| Is your replication strategy explicitly chosen? | Implicit consistency/durability assumptions | Document sync vs async, failover behavior, lag tolerance |
|
|
229
|
+
| Can your system handle a hot partition key? | One popular entity can down the cluster | Add key-splitting or load shedding for hot keys |
|
|
230
|
+
| Do you separate system of record from derived data? | Every change requires migrating everything | Introduce CDC or event sourcing to decouple |
|
|
231
|
+
| Are timeouts and retries tuned, not defaulted? | Cascading failures or needless delays | Measure p99; set timeouts above p99, below cascade threshold |
|
|
232
|
+
| Have you tested failover in production conditions? | Recovery plan is theoretical | Run chaos experiments: kill leaders, partition networks, fill disks |
|
|
233
|
+
|
|
234
|
+
## Further Reading
|
|
235
|
+
|
|
236
|
+
For the complete treatment with detailed diagrams and research references:
|
|
237
|
+
|
|
238
|
+
- [*"Designing Data-Intensive Applications"*](https://www.amazon.com/Designing-Data-Intensive-Applications-Reliable-Maintainable/dp/1449373321?tag=wondelai00-20) by Martin Kleppmann
|
|
239
|
+
|
|
240
|
+
## About the Author
|
|
241
|
+
|
|
242
|
+
**Martin Kleppmann** is a distributed-systems researcher at the University of Cambridge and a former engineer at LinkedIn and Rapportive, known for his work on CRDTs and local-first software. His book *Designing Data-Intensive Applications* (2017) is the definitive reference for engineers building data systems, praised for making distributed-systems concepts accessible and practical.
|
|
243
|
+
|
|
244
|
+
## Included References, Templates & Scripts (`@istmx/skills`)
|
|
245
|
+
|
|
246
|
+
Read and use these bundled files directly when executing this skill:
|
|
247
|
+
- `references/anti-patterns.md`
|
|
248
|
+
- `references/capacity-planning.md`
|
|
249
|
+
- `references/chaos-engineering.md`
|
|
250
|
+
- `references/deployment-strategies.md`
|
|
251
|
+
- `references/observability.md`
|
|
252
|
+
- `references/stability-patterns.md`
|
|
@@ -0,0 +1,279 @@
|
|
|
1
|
+
# Stability Anti-Patterns
|
|
2
|
+
|
|
3
|
+
Production systems do not fail because of bugs found in unit tests. They fail because of emergent behaviors that arise when systems interact under real-world conditions -- load spikes, network partitions, slow dependencies, and data growth that exceeds every assumption made during development.
|
|
4
|
+
|
|
5
|
+
Michael Nygard identifies a recurring set of anti-patterns that cause the vast majority of production outages. Recognizing these patterns is the first step toward building resilient systems.
|
|
6
|
+
|
|
7
|
+
## 1. Integration Points: The Number-One Killer
|
|
8
|
+
|
|
9
|
+
Every integration point -- every socket connection, HTTP call, database query, message queue interaction, or third-party API call -- is a potential failure point. Integration points are the number-one killer of production systems because they introduce failure modes that do not exist in isolated testing.
|
|
10
|
+
|
|
11
|
+
### How Integration Points Fail
|
|
12
|
+
|
|
13
|
+
| Failure Mode | Description | Consequence |
|
|
14
|
+
|-------------|-------------|-------------|
|
|
15
|
+
| **Connection refused** | Remote host rejects the connection | Fast failure; relatively benign |
|
|
16
|
+
| **Connection timeout** | Remote host does not respond to SYN | Thread blocked for 30-120 seconds (OS default) |
|
|
17
|
+
| **Read timeout** | Connection established but response never arrives | Thread blocked indefinitely without explicit timeout |
|
|
18
|
+
| **Partial response** | Connection drops mid-response | Corrupted data; parser exceptions |
|
|
19
|
+
| **Slow response** | Response eventually arrives but takes minutes | Threads accumulate; pool exhaustion; cascading failure |
|
|
20
|
+
| **Protocol violation** | Remote returns unexpected content type or format | Unhandled exceptions; crash |
|
|
21
|
+
|
|
22
|
+
### Defense Strategy
|
|
23
|
+
|
|
24
|
+
Every integration point needs a defense-in-depth strategy:
|
|
25
|
+
|
|
26
|
+
1. **Timeouts** on every connection and read operation -- never use defaults
|
|
27
|
+
2. **Circuit breakers** to stop calling a failing dependency
|
|
28
|
+
3. **Bulkheads** to isolate the failure from other parts of the system
|
|
29
|
+
4. **Fallbacks** to degrade gracefully when the dependency is unavailable
|
|
30
|
+
5. **Monitoring** to detect degradation before users notice
|
|
31
|
+
|
|
32
|
+
### Real-World Example
|
|
33
|
+
|
|
34
|
+
A retail application calls an inventory service to check stock levels. The inventory service's database enters a long garbage collection pause. The inventory service stops responding but does not close connections. The retail application's thread pool fills with threads waiting for inventory responses. The retail application can no longer serve any requests -- including requests that do not need inventory data. The entire site goes down because one dependency slowed down.
|
|
35
|
+
|
|
36
|
+
**Root cause:** No read timeout on the inventory service call. No bulkhead isolating inventory calls from other request handling.
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 2. Cascading Failures
|
|
41
|
+
|
|
42
|
+
A cascading failure occurs when a failure in one system causes failures in the systems that depend on it, which in turn cause failures in the systems that depend on them, and so on. The defining characteristic of a cascading failure is that the damage spreads far beyond the original failure.
|
|
43
|
+
|
|
44
|
+
### Cascade Mechanics
|
|
45
|
+
|
|
46
|
+
```
|
|
47
|
+
Service A (database overloaded)
|
|
48
|
+
→ Service B (calls A, threads block waiting)
|
|
49
|
+
→ Service C (calls B, threads block waiting)
|
|
50
|
+
→ Service D (calls C, threads block waiting)
|
|
51
|
+
→ User-facing application (completely unresponsive)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Why Cascading Failures Are Devastating
|
|
55
|
+
|
|
56
|
+
- The original failure may be minor (one database query slow)
|
|
57
|
+
- The cascade amplifies the failure geometrically
|
|
58
|
+
- Each layer adds more blocked threads, more resource consumption
|
|
59
|
+
- By the time the cascade is visible, every system in the chain is degraded
|
|
60
|
+
- Recovery requires coordinated action across all affected systems
|
|
61
|
+
|
|
62
|
+
### Breaking the Cascade
|
|
63
|
+
|
|
64
|
+
| Pattern | How It Breaks the Cascade |
|
|
65
|
+
|---------|--------------------------|
|
|
66
|
+
| **Circuit Breaker** | Stops calling the failing service; returns error immediately |
|
|
67
|
+
| **Timeout** | Limits how long a caller waits; frees threads to handle other work |
|
|
68
|
+
| **Bulkhead** | Isolates the failing dependency's impact to a limited set of resources |
|
|
69
|
+
| **Fallback** | Provides degraded but functional response when dependency fails |
|
|
70
|
+
| **Fail Fast** | Rejects requests immediately when system knows it cannot fulfill them |
|
|
71
|
+
|
|
72
|
+
### Prevention Checklist
|
|
73
|
+
|
|
74
|
+
- [ ] Every service-to-service call has a timeout
|
|
75
|
+
- [ ] Circuit breakers protect against sustained failures
|
|
76
|
+
- [ ] Failure in one dependency does not affect unrelated features
|
|
77
|
+
- [ ] Fallback behavior is defined for every critical dependency
|
|
78
|
+
- [ ] Cascading failure scenarios are included in chaos experiments
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## 3. Users as a Source of Load
|
|
83
|
+
|
|
84
|
+
Users are not gentle with your system. They do not arrive in an orderly queue at predictable intervals. Real user behavior generates load patterns that are fundamentally different from what synthetic tests produce.
|
|
85
|
+
|
|
86
|
+
### Unexpected User Behaviors
|
|
87
|
+
|
|
88
|
+
| Behavior | Load Impact | Example |
|
|
89
|
+
|----------|------------|---------|
|
|
90
|
+
| **Refresh storms** | Multiplies load when pages are slow | Users hit F5 repeatedly when checkout is slow |
|
|
91
|
+
| **Bot traffic** | Can exceed human traffic by 10-100x | Scrapers, search engines, monitoring tools |
|
|
92
|
+
| **Flash crowds** | Sudden, massive traffic spikes | Hacker News front page, TV mention, viral tweet |
|
|
93
|
+
| **Abandoned sessions** | Resource consumption without completion | Users open carts, leave; sessions consume server memory |
|
|
94
|
+
| **Power users** | Disproportionate resource consumption | One user with 50,000 items in a list; API consumers with no rate limit |
|
|
95
|
+
|
|
96
|
+
### Defense Strategy
|
|
97
|
+
|
|
98
|
+
- Rate limiting per user, per IP, and per API key
|
|
99
|
+
- Session limits and timeouts to reclaim abandoned resources
|
|
100
|
+
- Bot detection and separate handling (different rate limits, caching strategies)
|
|
101
|
+
- Graceful degradation under load (serve cached content, disable non-essential features)
|
|
102
|
+
- Load shedding: deliberately reject some requests to preserve service for others
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## 4. Blocked Threads
|
|
107
|
+
|
|
108
|
+
Blocked threads are the silent killer. Unlike a crash (which is loud and obvious), blocked threads produce no errors, no exceptions, and no log entries. The system simply stops processing requests.
|
|
109
|
+
|
|
110
|
+
### Common Causes of Blocked Threads
|
|
111
|
+
|
|
112
|
+
| Cause | How It Blocks | Detection |
|
|
113
|
+
|-------|--------------|-----------|
|
|
114
|
+
| **Missing timeouts** | Thread waits indefinitely for a response | Thread dump shows threads in WAITING/TIMED_WAITING |
|
|
115
|
+
| **Deadlocks** | Two threads each hold a lock the other needs | Thread dump shows circular lock dependencies |
|
|
116
|
+
| **Synchronized access** | All threads queue for a single lock | Throughput drops to single-threaded speed |
|
|
117
|
+
| **DNS resolution** | DNS lookup blocks the calling thread | Threads stuck in `InetAddress.getByName()` |
|
|
118
|
+
| **Log file I/O** | Synchronous logging blocks application threads | Threads stuck in file write; especially during disk pressure |
|
|
119
|
+
|
|
120
|
+
### Detection and Prevention
|
|
121
|
+
|
|
122
|
+
**Detection:**
|
|
123
|
+
- Thread dump analysis (scheduled periodic dumps, not just during incidents)
|
|
124
|
+
- Thread pool utilization metrics (active/idle/max)
|
|
125
|
+
- Request latency distribution (sudden latency spike = possible thread starvation)
|
|
126
|
+
- Health checks that verify thread pool availability
|
|
127
|
+
|
|
128
|
+
**Prevention:**
|
|
129
|
+
- Explicit timeouts on all blocking operations
|
|
130
|
+
- Asynchronous I/O where possible
|
|
131
|
+
- Bounded queues with rejection policies (not unbounded queues that grow forever)
|
|
132
|
+
- Thread pool sizing based on measured workload, not defaults
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## 5. Self-Denial Attacks
|
|
137
|
+
|
|
138
|
+
A self-denial attack is when your own system, marketing, or business operations generate load that overwhelms your infrastructure. The irony is that these are "success disasters" -- everything is working as intended, but the system cannot handle its own success.
|
|
139
|
+
|
|
140
|
+
### Common Self-Denial Scenarios
|
|
141
|
+
|
|
142
|
+
| Scenario | Mechanism | Prevention |
|
|
143
|
+
|----------|-----------|------------|
|
|
144
|
+
| **Marketing email blast** | 500,000 emails sent simultaneously, 10% click through in 5 minutes | Stagger sends over hours; pre-scale infrastructure |
|
|
145
|
+
| **Coupon code launch** | Viral sharing of limited coupon creates stampede | Queue-based redemption; rate limit per user |
|
|
146
|
+
| **Product launch countdown** | Users refresh at exactly midnight | Serve static page at launch time; queue for access |
|
|
147
|
+
| **Social media viral moment** | CEO's tweet goes viral, floods landing page | CDN caching; static page fallback |
|
|
148
|
+
| **Cron job stampede** | Every server runs cleanup job at midnight | Randomize cron schedules; use distributed job scheduling |
|
|
149
|
+
|
|
150
|
+
### Defense Strategy
|
|
151
|
+
|
|
152
|
+
- Coordinate marketing events with engineering capacity planning
|
|
153
|
+
- Use CDN and static page caching for high-traffic landing pages
|
|
154
|
+
- Implement queue-based access for limited-resource events
|
|
155
|
+
- Stagger scheduled jobs with random jitter
|
|
156
|
+
- Pre-scale infrastructure before planned events
|
|
157
|
+
|
|
158
|
+
---
|
|
159
|
+
|
|
160
|
+
## 6. Scaling Effects
|
|
161
|
+
|
|
162
|
+
Patterns that work at small scale break at large scale. A design that performs well with 10 servers may collapse at 100 servers. Scaling effects are the emergent behaviors that appear only when the system grows.
|
|
163
|
+
|
|
164
|
+
### Examples of Scaling Effects
|
|
165
|
+
|
|
166
|
+
| Pattern | Works at Small Scale | Breaks at Large Scale |
|
|
167
|
+
|---------|---------------------|----------------------|
|
|
168
|
+
| **Point-to-point connections** | 5 services = 20 connections | 50 services = 2,450 connections |
|
|
169
|
+
| **Broadcast messages** | 10 subscribers = manageable | 1,000 subscribers = message storm |
|
|
170
|
+
| **Shared database** | 5 services share one DB | 50 services = connection pool exhaustion |
|
|
171
|
+
| **Health check polling** | Load balancer checks 5 servers | Load balancer checks 500 servers = significant traffic |
|
|
172
|
+
| **Distributed locks** | Low contention with few nodes | High contention with many nodes |
|
|
173
|
+
|
|
174
|
+
### Mitigation
|
|
175
|
+
|
|
176
|
+
- Replace point-to-point with message buses or service meshes
|
|
177
|
+
- Use fan-out patterns with controlled concurrency
|
|
178
|
+
- Give each service its own data store (or at minimum, its own connection pool limits)
|
|
179
|
+
- Use push-based health checks or sampling strategies at scale
|
|
180
|
+
- Avoid distributed locks; use optimistic concurrency or partitioning instead
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## 7. Unbalanced Capacities
|
|
185
|
+
|
|
186
|
+
When upstream and downstream systems have different capacity limits, the faster system can overwhelm the slower one. This is particularly dangerous when a frontend tier can generate more requests than a backend tier can handle.
|
|
187
|
+
|
|
188
|
+
### Common Imbalances
|
|
189
|
+
|
|
190
|
+
- Web tier: 100 servers; backend API: 10 servers
|
|
191
|
+
- Batch job produces 10,000 records/sec; downstream consumer processes 500/sec
|
|
192
|
+
- Marketing campaign drives 10x normal traffic to a service scaled for 1x
|
|
193
|
+
|
|
194
|
+
### Defense Strategy
|
|
195
|
+
|
|
196
|
+
- Back-pressure: slow producers when consumers are overwhelmed
|
|
197
|
+
- Queue-based buffering between tiers with different throughput
|
|
198
|
+
- Rate limiting at the boundary between tiers
|
|
199
|
+
- Capacity modeling that considers the full request chain, not individual services in isolation
|
|
200
|
+
- Autoscaling policies that scale the entire chain, not just the entry point
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
## 8. Dogpile / Thundering Herd
|
|
205
|
+
|
|
206
|
+
A dogpile (also called thundering herd) occurs when many threads or processes simultaneously attempt the same expensive operation, typically after a cache expires or a service recovers.
|
|
207
|
+
|
|
208
|
+
### Common Dogpile Scenarios
|
|
209
|
+
|
|
210
|
+
| Scenario | Mechanism | Impact |
|
|
211
|
+
|----------|-----------|--------|
|
|
212
|
+
| **Cache expiration** | Popular cache key expires; 1,000 threads hit the database simultaneously | Database overwhelmed; slow response; more cache misses |
|
|
213
|
+
| **Service recovery** | Circuit breaker half-opens; all waiting requests flood the recovering service | Service fails again immediately |
|
|
214
|
+
| **Cron overlap** | Slow job still running when next execution triggers | Double resource consumption; data corruption |
|
|
215
|
+
| **Lock release** | Mutex released; all waiting threads resume simultaneously | Resource spike; possible re-contention |
|
|
216
|
+
|
|
217
|
+
### Prevention
|
|
218
|
+
|
|
219
|
+
- **Cache stampede prevention:** Use probabilistic early expiration, lock-based recomputation (only one thread refreshes), or serve stale + refresh in background
|
|
220
|
+
- **Circuit breaker recovery:** Half-open state allows only a small number of test requests through
|
|
221
|
+
- **Cron jobs:** Use distributed locks or leader election to ensure only one instance runs
|
|
222
|
+
- **Gradual ramp-up:** When recovering, slowly increase traffic rather than allowing full load immediately
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
## 9. Slow Responses (Worse Than No Response)
|
|
227
|
+
|
|
228
|
+
A fast failure is annoying. A slow failure is catastrophic. When a system responds slowly instead of failing fast, it creates a chain reaction of blocked resources throughout the calling stack.
|
|
229
|
+
|
|
230
|
+
### Why Slow Is Worse Than Down
|
|
231
|
+
|
|
232
|
+
| Fast Failure | Slow Failure |
|
|
233
|
+
|-------------|-------------|
|
|
234
|
+
| Circuit breaker trips immediately | Circuit breaker does not trip (still getting responses) |
|
|
235
|
+
| Thread released after milliseconds | Thread blocked for seconds or minutes |
|
|
236
|
+
| Error is visible and actionable | Problem is invisible until pool exhaustion |
|
|
237
|
+
| Users see error, retry once, move on | Users see spinner, refresh, multiply load |
|
|
238
|
+
| Affects one request | Blocks a thread, affecting all subsequent requests |
|
|
239
|
+
|
|
240
|
+
### Detection
|
|
241
|
+
|
|
242
|
+
- Monitor latency at p99 and p999, not just p50
|
|
243
|
+
- Alert on latency shifts, not just absolute thresholds
|
|
244
|
+
- Track thread pool utilization -- rising active threads with flat throughput indicates blocking
|
|
245
|
+
- Trace slow requests across service boundaries to find the bottleneck
|
|
246
|
+
|
|
247
|
+
### Prevention
|
|
248
|
+
|
|
249
|
+
- Set aggressive read timeouts (seconds, not minutes)
|
|
250
|
+
- Implement deadline propagation: if the user's request has 5 seconds left, do not start a 10-second operation
|
|
251
|
+
- Use asynchronous processing for long operations
|
|
252
|
+
- Implement load shedding: reject requests when response time exceeds SLO
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
## 10. Unbounded Result Sets
|
|
257
|
+
|
|
258
|
+
A query that returns 10 rows in development returns 10 million rows in production. Unbounded result sets are a time bomb that detonates when data grows beyond test assumptions.
|
|
259
|
+
|
|
260
|
+
### Common Manifestations
|
|
261
|
+
|
|
262
|
+
| Query Pattern | Development | Production |
|
|
263
|
+
|--------------|-------------|------------|
|
|
264
|
+
| `SELECT * FROM orders WHERE user_id = ?` | 3 orders | 50,000 orders (power user) |
|
|
265
|
+
| `SELECT * FROM events WHERE date > ?` | 100 events | 2 million events (6 months of data) |
|
|
266
|
+
| `SELECT * FROM logs` | 500 rows | Out of memory |
|
|
267
|
+
| API response with nested objects | Small JSON | 200MB JSON response |
|
|
268
|
+
|
|
269
|
+
### Prevention
|
|
270
|
+
|
|
271
|
+
- **Always paginate:** Every list query must have a `LIMIT` and `OFFSET` (or cursor-based pagination)
|
|
272
|
+
- **Cap result sizes:** Enforce maximum result count at the API layer, even if the caller does not request it
|
|
273
|
+
- **Stream large results:** Use cursors or streaming for batch operations rather than loading everything into memory
|
|
274
|
+
- **Monitor query performance:** Track query execution time and result set sizes in production
|
|
275
|
+
- **Test with production-scale data:** Use anonymized production data volumes in performance testing
|
|
276
|
+
|
|
277
|
+
### Rule of Thumb
|
|
278
|
+
|
|
279
|
+
If your code ever does `results = query.getAll()` without a limit, it is a production incident waiting to happen. Every query, every API response, every list operation must have an upper bound.
|