@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,174 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: istm-architecture
|
|
3
|
-
allowed-tools: Bash, Read, Grep, Glob, Write, Edit, Agent, AskUserQuestion
|
|
4
|
-
description: "Master orchestrator for the @istmx/skills framework. Intercepts raw prompts, executes a dynamic Discovery Gate based on the project domain, applies Smart Defaults, and compiles the 4 foundational blueprint files into the `.istm-context/` directory without generating generic AI slop."
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Output style (plain words, no dashes, no hyphens)
|
|
8
|
-
|
|
9
|
-
<!-- OUTPUT-STYLE:START -->
|
|
10
|
-
Write everything this skill produces, files and messages alike, in plain simple language. Keep technical terms that carry real meaning; explain each in plain words. Never use a dash or a hyphen as punctuation: no em dash, no en dash, and no hyphenated compounds. Write `read only`, not `read-only`. Say it in simple words, or reword the sentence. Code, file paths, command flags, and values other skills match on keep their hyphens. Use short sentences, commas, or parentheses. Clear beats clever.
|
|
11
|
-
<!-- OUTPUT-STYLE:END -->
|
|
12
|
-
|
|
13
|
-
## What this skill does
|
|
14
|
-
|
|
15
|
-
The master context orchestrator: evaluates user prompts, resolves structural ambiguity, and writes the 4 Pillars of Truth that every later skill and AI tool reads.
|
|
16
|
-
|
|
17
|
-
- Greenfield (no code yet, raw prompt): executes the Discovery Gate. Analyzes the domain of the idea (e.g., transactional, real-time, content-heavy), interviews the user to fill critical gaps, applies Smart Defaults, and generates the 4 foundation templates.
|
|
18
|
-
- Brownfield (with `--codebase` flag): bypasses the interview entirely. Scans high-leverage structural files (`package.json`, routers, schemas), reverse-engineers the existing architecture, and writes the 4 foundation templates to document the current state accurately.
|
|
19
|
-
- UI & Motion Enforcement: explicitly forces the AI to extract typography, colors, and layouts from the `.istm-context/design/` and `.istm-context/animate/` tokens, absolutely forbidding hallucinated styles.
|
|
20
|
-
|
|
21
|
-
Does not create production application code (the implementation agent owns that), audit for accessibility (/audit owns that), or write the feature scope (/scope owns that).
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## Folder Structure & Stack-Idiomatic Architecture
|
|
25
|
-
|
|
26
|
-
1. **Stack-Idiomatic Structure**: Respect native framework conventions without dogmatic over-engineering:
|
|
27
|
-
- **Next.js (App Router)**: Native `app/` routes, `components/ui/` for primitives, and colocated or domain components where appropriate.
|
|
28
|
-
- **Vite / React / Vue / Nuxt / SvelteKit / Flutter / Mobile**: Strictly adhere to the canonical structure of the target framework.
|
|
29
|
-
- **Existing Codebases**: Always inspect and adopt existing directory conventions before introducing new paths.
|
|
30
|
-
2. **Live Stack Research Gate**: When scaffolding unfamiliar, new, or bleeding-edge framework versions (e.g. Next.js 15/16, React 19, Tailwind v4, Vite 6), execute a live web search or official documentation lookup to verify current directory conventions, router configurations, and config filenames before generating code.
|
|
31
|
-
3. **Component Architecture & Primitive Reuse**:
|
|
32
|
-
- **UI Primitives (`@/components/ui/` or `shared/components/`)**: Atomic, reusable building blocks (Buttons, Dialogs, Inputs, Tooltips, Sheets, Dropdowns). ALWAYS reuse existing Shadcn UI / Radix primitives instead of reinventing bespoke, unaccessible `<div>` and `<button>` hacks.
|
|
33
|
-
- **Composite Sections (Page / Domain Specific)**: High-level stateful assemblies and narrative sections (HeroSection, PricingTable, CheckoutForm, InteractivePlayground) that consume atomic primitives.
|
|
34
|
-
|
|
35
|
-
## Landing Page Narrative Arc Law (Anti-Slop Standard)
|
|
36
|
-
|
|
37
|
-
Lazy 2-section outputs (Hero + Footer only) are strictly banned as generic AI slop. Any landing page, marketing site, or full-page experience must construct a complete, multi-layered narrative arc with rich visual craft:
|
|
38
|
-
|
|
39
|
-
1. **High-Impact Hero**: Compelling value proposition, primary/secondary CTAs, live preview/visual anchor.
|
|
40
|
-
2. **Social Proof & Trust**: Partner/client logos, live developer counts, security badges, or performance metrics.
|
|
41
|
-
3. **Interactive Bento Grid / Feature Showcase**: Asymmetrical bento grid highlighting core capabilities with subtle hover states.
|
|
42
|
-
4. **Live Interactive Universe / Demo**: A tangible, interactive playground, live canvas, or sandbox allowing users to experience the product directly.
|
|
43
|
-
5. **Deep-Dive Architecture & Value Columns**: Technical deep-dive, side-by-side workflow comparisons, or architecture breakdowns.
|
|
44
|
-
6. **Social Validation / Case Studies**: Verifiable developer quotes, case studies, or user reviews with authentic typography.
|
|
45
|
-
7. **Pricing & Conversion Funnel**: Transparent tiers, feature comparison matrix, and clear upgrade triggers.
|
|
46
|
-
8. **Interactive FAQ Accordion**: Smooth expand/collapse answers addressing user objections and technical questions.
|
|
47
|
-
9. **God-Tier Footer**: Full navigation columns, live status indicators, newsletter/CTA, and brand manifesto.
|
|
48
|
-
|
|
49
|
-
## Modern Styling & TypeScript Standards
|
|
50
|
-
|
|
51
|
-
1. **Tailwind v4 Semantic Token Standard**:
|
|
52
|
-
- Strictly FORBID ugly inline arbitrary variables like `bg-[var(--background)]`, `text-[var(--primary)]`, or `border-[var(--border)]`.
|
|
53
|
-
- Enforce clean first-class semantic utility tokens (`bg-background`, `text-foreground`, `bg-muted`, `text-muted-foreground`, `border-border`, `bg-card`, `text-card-foreground`) mapped directly via `@theme` or root CSS variables.
|
|
54
|
-
2. **Compiler-Grade TypeScript (Zero `any` Tolerance)**:
|
|
55
|
-
- Absolute ban on `any` and `unknown as any`.
|
|
56
|
-
- Mandate strict TypeScript interfaces, discriminated unions for UI/server state machines, Zod schema validation on all inputs, and inferred types from ORMs/schemas.
|
|
57
|
-
3. **Clean Code & Noise Comment Ban**:
|
|
58
|
-
- Strictly forbid redundant, chatty comments (`// handle click`, `// button component`, `// state for user`).
|
|
59
|
-
- Code must be self-documenting. Comments are permitted ONLY for non-obvious business invariants, complex mathematical equations, or custom physics/shader algorithms.
|
|
60
|
-
|
|
61
|
-
## Blueprint file convention (The 4 Pillars)
|
|
62
|
-
|
|
63
|
-
Durable context lives in the `.istm-context/` directory. These files govern all future logic:
|
|
64
|
-
|
|
65
|
-
- `agents.md` (or `.cursorrules` / `GEMINI.md` chameleon): The operational brain holding memory loops and rules.
|
|
66
|
-
- `architecture.md`: The system design, database models, and API flows.
|
|
67
|
-
- `design.md`: The UX strategy, motion logic, and UI principles.
|
|
68
|
-
- `project-overview.md`: The business logic and core user journeys.
|
|
69
|
-
|
|
70
|
-
Write knowledge into these 4 files by replacing their `{variables}` with concrete decisions. Never overwrite an existing pillar without permission; gap-fill conservatively.
|
|
71
|
-
|
|
72
|
-
## Scope
|
|
73
|
-
|
|
74
|
-
The `--codebase` flag argument routes directly to Phase 2 (reverse engineering). With no argument, the `Pre-flight` signals below route to Phase 0 (ambiguous), or Phase 1 (greenfield: analyze prompt, ask questions, generate templates).
|
|
75
|
-
|
|
76
|
-
## Acts vs asks
|
|
77
|
-
|
|
78
|
-
Phase 1 asks architectural questions via MCQ before generating the templates. Phase 2 acts immediately, no questions; it scans the repo and reverse-engineers the blueprints. Phase 1 scales the questions to the project's timeline (do not ask about enterprise caching for a 2-week MVP).
|
|
79
|
-
|
|
80
|
-
## Artifact ownership
|
|
81
|
-
|
|
82
|
-
The 4 Pillar files hold the content. Create them if missing. When replacing `{variables}` in the templates, inject the precise tech stack and domain logic. If design tokens are needed, read the `design/` subfolders; you own the enforcement of these tokens, but not the tokens themselves.
|
|
83
|
-
|
|
84
|
-
## Portability (any OS, any agent)
|
|
85
|
-
|
|
86
|
-
- Commands: `git` is the only required CLI, same on every OS. Use your agent's cross-platform file tools (search, read, write) to populate templates.
|
|
87
|
-
- If interactive question support (`AskUserQuestion`) is missing, ask any multiple choice question as plain text with the same options.
|
|
88
|
-
|
|
89
|
-
## Execution
|
|
90
|
-
|
|
91
|
-
The main thread does the writing itself in every phase; it never hands the context writing to a subagent. Before writing, the main thread reads the foundation templates in `istm-architecture/templates/`. Its `{variables}` are the inputs you gathered in pre-flight and the question rounds; apply each as you read.
|
|
92
|
-
|
|
93
|
-
### `Pre-flight` (main thread does this before anything else)
|
|
94
|
-
|
|
95
|
-
Gather several signals to determine the execution path:
|
|
96
|
-
|
|
97
|
-
1. Flag check: Was `--codebase` provided? → `CODEBASE_FLAG`.
|
|
98
|
-
2. Context files: Are the 4 pillars already hydrated in `.istm-context/`? → `PILLARS_EXIST`.
|
|
99
|
-
3. Source count: Are there existing source files (`.ts`, `.js`, `.py`, `.go`) indicating a populated repo? → `HAS_CODE`.
|
|
100
|
-
|
|
101
|
-
Pick the phase based on these signals:
|
|
102
|
-
|
|
103
|
-
| Condition | Phase |
|
|
104
|
-
|---|---|
|
|
105
|
-
| `CODEBASE_FLAG` is present | Phase 2 (Reverse-engineer the existing codebase). |
|
|
106
|
-
| `PILLARS_EXIST` | Phase 3 (Gap-fill: analyze the prompt against existing blueprints and update only what changed). |
|
|
107
|
-
| No flag, no pillars, no code (or raw prompt) | Phase 1 (Greenfield: execute Discovery Gate and Interview). |
|
|
108
|
-
| No flag, no pillars, but `HAS_CODE` | Phase 0 (Ambiguous: ask if they want to bootstrap from prompt or reverse-engineer from code). |
|
|
109
|
-
|
|
110
|
-
### Route to the selected phase (The 2-Track Architecture Engine)
|
|
111
|
-
|
|
112
|
-
#### Track 1: Greenfield Setup (Brand New Project)
|
|
113
|
-
- **Discovery Gate**: Evaluate the user's raw prompt and idea domain (transactional SaaS, real-time collab, e-commerce, portfolio).
|
|
114
|
-
- **Interactive Interview**: Ask targeted multiple-choice questions to resolve load-bearing unknowns (Auth provider, Database/ORM, Asset strategy). Do not ask enterprise caching questions for a small MVP.
|
|
115
|
-
- **Smart Defaults**: If the user has no preference, apply stable, modern defaults (PostgreSQL, Prisma/Drizzle, Next.js App Router, Tailwind v4, Shadcn UI).
|
|
116
|
-
- **Template Hydration**: Hydrate the 4 Pillar templates from `istm-architecture/templates/` with fresh choices.
|
|
117
|
-
|
|
118
|
-
#### Track 2: Brownfield Reverse-Engineering (Existing Codebase)
|
|
119
|
-
- **Zero Interrogation**: Bypass the interview entirely. Do NOT ask what database, auth, or CSS framework to use if the codebase already contains them.
|
|
120
|
-
- **Step 2.A — Automatic Runtime & Dependency Ingestion**:
|
|
121
|
-
- Read `package.json` dependencies and devDependencies (or `Cargo.toml`, `pyproject.toml`, `go.mod`).
|
|
122
|
-
- Automatically detect runtime (`Next.js App/Pages Router`, `Vite`, `Nuxt`, `SvelteKit`, `Remix`, `FastAPI`, `Expo`).
|
|
123
|
-
- Automatically detect styling (`Tailwind v4`, `Tailwind v3`, `CSS Modules`, `Shadcn UI`, `@radix-ui`).
|
|
124
|
-
- Automatically detect DB & ORM (`Prisma`, `Drizzle`, `Mongoose`, `Supabase`, `PostgreSQL`, `MySQL`).
|
|
125
|
-
- Automatically detect Auth & State (`Auth.js/NextAuth`, `Supabase Auth`, `Clerk`, `Firebase`, `Zustand`, `TanStack Query`).
|
|
126
|
-
- **Step 2.B — Structural & Schema Ingestion**:
|
|
127
|
-
- Read live schema files (`prisma/schema.prisma`, `src/db/schema.ts`, `drizzle/`, `models/`).
|
|
128
|
-
- Read route hierarchy (`app/`, `pages/`, `src/routes/`, `routes/`, `api/`).
|
|
129
|
-
- Read design tokens and styles (`globals.css`, `tailwind.config.*`, `@/components/ui/`).
|
|
130
|
-
- **Step 2.C — Reverse-Engineered 4 Pillars Hydration**:
|
|
131
|
-
- `architecture.md`: Accurately documents the **actual live database models**, active API endpoints, server actions, and table relations.
|
|
132
|
-
- `design.md`: Extracts the **actual color variables**, font families from `layout.tsx`/`globals.css`, and existing component primitives.
|
|
133
|
-
- `project-overview.md`: Summarizes real project purpose from READMEs, package metadata, and domain routes.
|
|
134
|
-
- `agents.md`: Locks in **existing codebase conventions** (preserves `src/` vs root, custom linters, existing helper paths) with zero destructive rewrites.
|
|
135
|
-
- **Step 2.D — Non-Destructive Guarantee**:
|
|
136
|
-
- Never delete, overwrite, or refactor existing working application code.
|
|
137
|
-
- Established patterns are documented as the immutable law for all future AI generations.
|
|
138
|
-
|
|
139
|
-
#### Track 3: Gap Fill (Updating Existing Context)
|
|
140
|
-
- Read existing `.istm-context/` blueprints. Identify what the new prompt requires. Update existing blueprints carefully without wiping unrelated context.
|
|
141
|
-
|
|
142
|
-
### Phase 0: Classify (only when `pre-flight` is ambiguous)
|
|
143
|
-
|
|
144
|
-
Don't guess. Ask once via your agent's interactive option picker (`AskUserQuestion`), or plain text.
|
|
145
|
-
- question: "I see an existing codebase, but no `.istm-context/` blueprints. How should I proceed?"
|
|
146
|
-
- header: "Project state"
|
|
147
|
-
- options: 1. `(Recommended) Reverse-Engineer from Codebase`, "I will scan your files and accurately document the existing architecture." → Track 2 (Phase 2). 2. `Start Fresh from Prompt`, "I will interview you and scaffold a fresh architecture." → Track 1 (Phase 1).
|
|
148
|
-
|
|
149
|
-
### After all phases
|
|
150
|
-
|
|
151
|
-
If no templates were written when they should have been, report the failure.
|
|
152
|
-
|
|
153
|
-
**CRITICAL SELF-DESTRUCT RULE**: Once Track 1 or Track 2 is complete and you have fully hydrated the rulebook template (`agents.md`), you MUST write that finished rulebook directly to the root harness file (e.g., `.cursorrules`, `CLAUDE.md`, `GEMINI.md`), overwriting this very orchestrator script. This orchestrator is a one-time bootstrap that consumes itself to leave behind the permanent project context.
|
|
154
|
-
|
|
155
|
-
Otherwise, relay the report: what was discovered, what templates were written, and what tech stack choices were locked in.
|
|
156
|
-
|
|
157
|
-
## Asset Strategy & Empty States
|
|
158
|
-
|
|
159
|
-
During the Phase 1 Interview, you MUST ask the user about their visual asset strategy (illustrations, custom icons, logos):
|
|
160
|
-
1. **Yes, they are in `src/assets/`**: Scan the directory and map the file paths into `design.md`. Empty states must use these branded assets.
|
|
161
|
-
2. **Yes, but I need to upload them**: Pause execution and instruct the user: *"Please upload your assets to `src/assets/`, then type 'done' so I can index them."*
|
|
162
|
-
3. **No, use code only**: Write a strict rule in `design.md`: *"Do NOT use image files. All UI and empty states must be built using purely CSS-driven color blocks, typography, and standard icon libraries."*
|
|
163
|
-
|
|
164
|
-
**Empty State & Iconography Rule**:
|
|
165
|
-
You are strictly forbidden from using emojis in the UI or empty states. Always use proper SVG icon libraries (e.g., Lucide, Heroicons) instead of emojis. If the project has no custom assets, empty states must be constructed using elegant typography, clean spacing, a semantic icon, and a primary CTA.
|
|
166
|
-
|
|
167
|
-
## Strict Aesthetic Enforcement
|
|
168
|
-
|
|
169
|
-
When generating or referencing the blueprints, you must enforce the UI extraction process:
|
|
170
|
-
- **Typography & Headings**: You must explicitly read the `design/typography` rules. Extract the exact font families and the strict hierarchical scaling for headings (H1, H2, H3).
|
|
171
|
-
- **Color Palettes**: Read `design/colors`. Extract the exact semantic background, surface, and ink tokens. Never hallucinate raw hex codes.
|
|
172
|
-
- **Motion**: Read `animate/`. You must adhere strictly to the Dual Motion Standard.
|
|
173
|
-
- Ensure these constraints are permanently written into the final `agents.md` memory file.
|
|
174
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
No,Category,Guideline,Description,Do,Don't,Code Good,Code Bad,Severity,Docs URL
|
|
2
|
-
1,Components,Use standalone components,Angular 17+ default; no NgModule needed,Standalone components for all new code,NgModule-based components for new projects,@Component({ standalone: true imports: [CommonModule] }),@NgModule({ declarations: [MyComp] }),High,https://angular.dev/guide/components/importing
|
|
3
|
-
2,Components,Use signals for state,Signals are Angular's reactive primitive for fine-grained reactivity,Signals for component state over class properties,Mutable class properties without signals,count = signal(0); increment() { this.count.update(v => v + 1) },count = 0; increment() { this.count++ },High,https://angular.dev/guide/signals
|
|
4
|
-
3,Components,Use @if/@for/@switch control flow,Built-in control flow syntax replaces *ngIf/*ngFor directives,@if and @for in templates,*ngIf and *ngFor structural directives,@if (isLoggedIn) { <Dashboard /> } @else { <Login /> },"<div *ngIf=""isLoggedIn""><Dashboard /></div>",High,https://angular.dev/guide/templates/control-flow
|
|
5
|
-
4,Components,Use input() and output() signals,Signal-based inputs/outputs replace @Input()/@Output() decorators,input() and output() for component API,@Input() and @Output() decorators,name = input<string>(); clicked = output<void>(),@Input() name: string; @Output() clicked = new EventEmitter(),High,https://angular.dev/guide/components/inputs
|
|
6
|
-
5,Components,Use content projection,ng-content for flexible component composition,ng-content with select for named slots,Rigid templates that can't be customized,"<ng-content select=""[header]"" /> <ng-content />","<div class=""header"">{{ title }}</div>",Medium,https://angular.dev/guide/components/content-projection
|
|
7
|
-
6,Components,Keep components small,Single responsibility; components should do one thing,Extract sub-components when template exceeds 50 lines,Monolithic components handling multiple concerns,<UserAvatar /> <UserDetails /> <UserActions />,One 300-line component template,Medium,https://angular.dev/guide/components
|
|
8
|
-
7,Components,Use OnPush change detection,Reduces re-renders by only checking on input changes or signal updates,OnPush for all components,Default change detection strategy,changeDetection: ChangeDetectionStrategy.OnPush,changeDetection: ChangeDetectionStrategy.Default,High,https://angular.dev/guide/components/lifecycle
|
|
9
|
-
8,Components,Avoid direct DOM manipulation,Use renderer or ElementRef sparingly; prefer template bindings,Template bindings and Angular directives,Direct document.querySelector or innerHTML,"[class.active]=""isActive""",this.el.nativeElement.classList.add('active'),High,https://angular.dev/guide/components/host-elements
|
|
10
|
-
9,Routing,Lazy load feature routes,Load route chunks on demand to reduce initial bundle,loadComponent() for all feature routes,Eager-loaded routes in app config,{ path: 'admin' loadComponent: () => import('./admin/admin.component') },{ path: 'admin' component: AdminComponent },High,https://angular.dev/guide/routing/lazy-loading
|
|
11
|
-
10,Routing,Use route guards with functional API,Protect routes with canActivate/canMatch functional guards,Functional guards returning boolean or UrlTree,Class-based guards with CanActivate interface,canActivate: [() => inject(AuthService).isLoggedIn()],canActivate: [AuthGuard],High,https://angular.dev/guide/routing/common-router-tasks#preventing-unauthorized-access
|
|
12
|
-
11,Routing,Use route resolvers for data,Pre-fetch data before route activation using resolve,ResolveFn for route data,Fetching data in ngOnInit causing flash of empty state,resolve: { user: () => inject(UserService).getUser() },Fetch in ngOnInit with loading state flickering,Medium,https://angular.dev/guide/routing/common-router-tasks#resolve
|
|
13
|
-
12,Routing,Type route params with inject,Use inject(ActivatedRoute) with signals or toSignal,Typed route params via ActivatedRoute,Untyped route.snapshot.params string access,const id = toSignal(route.paramMap.pipe(map(p => p.get('id')))),const id = this.route.snapshot.params['id'],Medium,https://angular.dev/api/router/ActivatedRoute
|
|
14
|
-
13,Routing,Use nested routes for layouts,Compose shared layouts using router-outlet nesting,Nested routes with shared layout components,Duplicating layout code across routes,{ path: 'app' component: ShellComponent children: [...] },Duplicate header/sidebar in each route component,Medium,https://angular.dev/guide/routing/router-tutorial-toh#child-route-configuration
|
|
15
|
-
14,Routing,Configure preloading strategies,Preload lazy modules in background after initial load,PreloadAllModules or custom strategy,No preloading causing delayed navigation,provideRouter(routes withPreloading(PreloadAllModules)),provideRouter(routes),Low,https://angular.dev/api/router/PreloadAllModules
|
|
16
|
-
15,State,Use signals for local state,Signals provide synchronous reactive state without RxJS overhead,signal() for component-local reactive state,BehaviorSubject for simple local state,const items = signal<Item[]>([]); addItem(i: Item) { this.items.update(arr => [...arr i]) },items$ = new BehaviorSubject<Item[]>([]),High,https://angular.dev/guide/signals
|
|
17
|
-
16,State,Use computed() for derived state,Lazily evaluated derived values that update when dependencies change,computed() for values derived from other signals,Duplicated state or manual sync,readonly total = computed(() => this.items().reduce((s i) => s + i.price 0)),this.total = this.items.reduce(...) // called manually,High,https://angular.dev/guide/signals#computed-signals
|
|
18
|
-
17,State,Use effect() carefully,Effects run side effects when signals change; avoid overuse,effect() for side effects like logging or localStorage sync,effect() for deriving state (use computed instead),effect(() => localStorage.setItem('cart' JSON.stringify(this.cart()))),effect(() => { this.total.set(this.items().length) }),Medium,https://angular.dev/guide/signals#effects
|
|
19
|
-
18,State,Use NgRx Signal Store for complex state,NgRx Signal Store is the modern lightweight state management for Angular,@ngrx/signals SignalStore for feature state,Full NgRx reducer/action/effect boilerplate for simple state,const Store = signalStore(withState({ count: 0 }) withMethods(s => ({ increment: () => patchState(s { count: s.count() + 1 }) }))),createReducer(on(increment state => ({ ...state count: state.count + 1 }))),Medium,https://ngrx.io/guide/signals
|
|
20
|
-
19,State,Inject services for shared state,Services with signals share state across components without a store,Injectable service with signals for cross-component state,Prop drilling or @Input chains for shared state,@Injectable({ providedIn: 'root' }) class CartService { items = signal<Item[]>([]) },@Input() cartItems passed through 4 component levels,Medium,https://angular.dev/guide/di/creating-injectable-service
|
|
21
|
-
20,State,Avoid mixing RxJS and signals unnecessarily,Use toSignal() to bridge RxJS into signal world at the boundary,toSignal() to convert observable to signal at component edge,Subscribing in components and storing in signal manually,readonly user = toSignal(this.userService.user$),this.userService.user$.subscribe(u => this.user.set(u)),Medium,https://angular.dev/guide/rxjs-interop
|
|
22
|
-
21,Forms,Use typed reactive forms,FormGroup/FormControl with explicit generics for compile-time safety,FormBuilder with typed controls,Untyped FormControl or any casts,fb.group<LoginForm>({ email: fb.control('') password: fb.control('') }),new FormGroup({ email: new FormControl(null) }),High,https://angular.dev/guide/forms/typed-forms
|
|
23
|
-
22,Forms,Use reactive forms over template-driven,Reactive forms scale better and are fully testable,ReactiveFormsModule for all non-trivial forms,FormsModule with ngModel for complex forms,"<input [formControl]=""emailControl"" />","<input [(ngModel)]=""email"" />",Medium,https://angular.dev/guide/forms/reactive-forms
|
|
24
|
-
23,Forms,Write custom validators as functions,Functional validators are composable and tree-shakeable,ValidatorFn functions for custom validation,Class-based validators implementing Validator interface,const noSpaces: ValidatorFn = ctrl => ctrl.value?.includes(' ') ? { noSpaces: true } : null,class NoSpacesValidator implements Validator { validate(c) {} },Medium,https://angular.dev/guide/forms/form-validation#custom-validators
|
|
25
|
-
24,Forms,Use updateOn for performance,Control when validation runs to avoid per-keystroke validation overhead,updateOn: 'blur' or 'submit' for expensive validators,Default updateOn: 'change' for async validators,fb.control('' { updateOn: 'blur' validators: [Validators.email] }),fb.control('' [Validators.email]) // validates on every key,Low,https://angular.dev/api/forms/AbstractControl#updateOn
|
|
26
|
-
25,Forms,Use FormArray for dynamic fields,FormArray manages variable-length lists of controls,FormArray for add/remove field scenarios,Manually tracking index-based controls,get items(): FormArray { return this.form.get('items') as FormArray },items: [FormControl] managed outside form,Medium,https://angular.dev/guide/forms/reactive-forms#using-the-formarray-class
|
|
27
|
-
26,Forms,Display validation errors clearly,Use form control touched and dirty states to show errors at the right time,Show errors after field is touched,Show all errors on page load,@if (email.invalid && email.touched) { <span>Invalid email</span> },@if (email.invalid) { <span>Invalid email</span> },Medium,https://angular.dev/guide/forms/form-validation
|
|
28
|
-
27,Performance,Apply OnPush to all components,OnPush + signals eliminates most unnecessary change detection cycles,OnPush change detection everywhere,Default strategy which checks entire tree on every event,changeDetection: ChangeDetectionStrategy.OnPush,changeDetection: ChangeDetectionStrategy.Default,High,https://angular.dev/best-practices/skipping-component-subtrees
|
|
29
|
-
28,Performance,Use trackBy in @for blocks,Stable identity for list items prevents full DOM re-creation on change,track item.id in @for,track $index for dynamic data,@for (item of items; track item.id) { <li>{{ item.name }}</li> },@for (item of items; track $index) { <li>{{ item.name }}</li> },High,https://angular.dev/guide/templates/control-flow#track-and-identity
|
|
30
|
-
29,Performance,Use @defer for below-the-fold content,Defer blocks lazy-load components when they enter the viewport,@defer with on viewport for non-critical UI,Eagerly loading all components at startup,@defer (on viewport) { <HeavyChart /> } @placeholder { <Skeleton /> },<HeavyChart /> loaded at startup,High,https://angular.dev/guide/defer
|
|
31
|
-
30,Performance,Use NgOptimizedImage,Enforces image best practices: lazy loading LCP hints and proper sizing,NgOptimizedImage for all img tags,Plain img tags for CMS or user content,"<img ngSrc=""/hero.jpg"" width=""800"" height=""400"" priority />","<img src=""/hero.jpg"" />",High,https://angular.dev/guide/image-optimization
|
|
32
|
-
31,Performance,Tree-shake unused Angular features,Import only what you use from Angular packages,Import specific Angular modules needed,Import BrowserAnimationsModule when not using animations,import { NgOptimizedImage } from '@angular/common',import { CommonModule } from '@angular/common' // entire module,Medium,https://angular.dev/tools/cli/build
|
|
33
|
-
32,Performance,Avoid subscribe in components,Subscriptions leak and cause bugs; prefer async pipe or toSignal,toSignal() or async pipe instead of manual subscribe,Manual subscribe without unsubscribe in ngOnDestroy,readonly data = toSignal(this.service.data$),this.service.data$.subscribe(d => this.data = d),High,https://angular.dev/guide/rxjs-interop
|
|
34
|
-
33,Performance,Use SSR with Angular Universal,Pre-render pages for faster LCP and better SEO,SSR or SSG for public-facing routes,Pure CSR for SEO-critical pages,ng add @angular/ssr,"// no SSR, client renders empty shell",Medium,https://angular.dev/guide/ssr
|
|
35
|
-
34,Performance,Minimize bundle with standalone APIs,Standalone components + provideRouter() eliminate dead NgModule code,provideRouter() and provideHttpClient() in app.config,Root AppModule with all imports,provideRouter(routes) in app.config.ts,@NgModule({ imports: [RouterModule.forRoot(routes)] }),Medium,https://angular.dev/guide/routing/standalone
|
|
36
|
-
35,Testing,Use TestBed for component tests,TestBed sets up Angular DI for realistic component testing,TestBed.configureTestingModule for component tests,Instantiate components with new keyword,TestBed.configureTestingModule({ imports: [MyComponent] }),const comp = new MyComponent(),High,https://angular.dev/guide/testing/components-basics
|
|
37
|
-
36,Testing,Use Angular CDK component harnesses,Harnesses provide a stable testing API that survives template refactors,MatButtonHarness and custom HarnessLoader,Direct native element queries that break on template changes,const btn = await loader.getHarness(MatButtonHarness),fixture.debugElement.query(By.css('button')),Medium,https://material.angular.io/cdk/test-harnesses/overview
|
|
38
|
-
37,Testing,Use Spectator for less boilerplate,Spectator wraps TestBed with a cleaner API reducing test setup noise,Spectator for unit tests,Raw TestBed for every test,const spectator = createComponentFactory(MyComponent),TestBed.configureTestingModule({ declarations: [MyComponent] providers: [...] }),Low,https://github.com/ngneat/spectator
|
|
39
|
-
38,Testing,Mock services with jasmine.createSpyObj,Isolate unit tests by providing mock implementations of dependencies,SpyObj or jest.fn() mocks for services,Real HTTP calls in unit tests,const spy = jasmine.createSpyObj('UserService' ['getUser']); spy.getUser.and.returnValue(of(user)),providers: [UserService] // real service in unit test,High,https://angular.dev/guide/testing/services
|
|
40
|
-
39,Testing,Write integration tests for routes,Test full route navigation including guards and resolvers,RouterTestingHarness for route integration tests,Mock all routing behavior in unit tests,const harness = await RouterTestingHarness.create(); await harness.navigateByUrl('/home'),// manually calling route guard methods,Medium,https://angular.dev/api/router/testing/RouterTestingHarness
|
|
41
|
-
40,Testing,Test signal-based components,Signals update synchronously; no async flush needed in most cases,Read signal value directly in test assertions,TestBed.tick() or fakeAsync for signal reads,component.count.set(5); expect(component.double()).toBe(10),fakeAsync(() => { component.count.set(5); tick(); expect(component.double()).toBe(10) }),Medium,https://angular.dev/guide/testing
|
|
42
|
-
41,Styling,Use ViewEncapsulation.Emulated,Default emulation scopes styles to component preventing global leaks,Emulated or None for intentional global styles,ViewEncapsulation.None for component-specific styles,ViewEncapsulation.Emulated (default),ViewEncapsulation.None on feature components,Medium,https://angular.dev/guide/components/styling#style-scoping
|
|
43
|
-
42,Styling,Use :host selector,Style the component's host element using :host pseudo-class,:host for host element styles,Adding wrapper div just for styling,:host { display: block; padding: 1rem },"<div class=""wrapper"">...</div> + .wrapper { padding: 1rem }",Medium,https://angular.dev/guide/components/styling#host-element
|
|
44
|
-
43,Styling,Use CSS custom properties for theming,CSS variables work across component boundaries and enable dynamic theming,CSS custom properties for colors and spacing,Hardcoded hex values in component styles,:root { --primary: #6200ee } button { background: var(--primary) },button { background: #6200ee },Medium,https://angular.dev/guide/components/styling
|
|
45
|
-
44,Styling,Integrate Tailwind with Angular,Tailwind utilities work alongside Angular's ViewEncapsulation via global stylesheet,Add Tailwind in styles.css and use utility classes in templates,Custom CSS for layout that Tailwind already handles,"<div class=""flex items-center gap-4 p-6"">","<div class=""my-custom-flex""> /* .my-custom-flex { display: flex } */",Low,https://tailwindcss.com/docs/guides/angular
|
|
46
|
-
45,Styling,Use Angular Material theming tokens,Material 3 uses design tokens for systematic theming,M3 token-based theming for Angular Material,Overriding Angular Material CSS with deep selectors,@include mat.button-theme($my-theme),::ng-deep .mat-button { background: red },Medium,https://material.angular.io/guide/theming
|
|
47
|
-
46,Architecture,Use injection tokens for config,Provide configuration via InjectionToken for testability and flexibility,InjectionToken for environment-specific values,Importing environment.ts directly in services,const API_URL = new InjectionToken<string>('apiUrl'); provide: [{ provide: API_URL useValue: env.apiUrl }],constructor(private env: Environment) { this.url = env.apiUrl },Medium,https://angular.dev/guide/di/dependency-injection-providers#using-an-injectiontoken-object
|
|
48
|
-
47,Architecture,Use HTTP interceptors,Intercept requests for auth headers error handling and logging,Functional interceptors with withInterceptors(),Service-level header management in every request,withInterceptors([authInterceptor errorInterceptor]),httpClient.get(url { headers: { Authorization: token } }) in every call,High,https://angular.dev/guide/http/interceptors
|
|
49
|
-
48,Architecture,Organize by feature not type,Feature-based folder structure scales better than type-based,Feature folders with collocated component service and routes,Flat folders: all-components/ all-services/,src/features/checkout/checkout.component.ts checkout.service.ts checkout.routes.ts,src/components/checkout.component.ts src/services/checkout.service.ts,Medium,https://angular.dev/style-guide#folders-by-feature-structure
|
|
50
|
-
49,Architecture,Use environment configurations,Separate environment values for dev staging and prod via Angular build configs,angular.json fileReplacements for env configs,Hardcoded API URLs or feature flags in source,fileReplacements: [{ replace: environment.ts with: environment.prod.ts }],const API = 'https://api.example.com' // hardcoded in service,High,https://angular.dev/tools/cli/environments
|
|
51
|
-
50,Architecture,Prefer inject() over constructor DI,inject() function is composable and works in more contexts than constructor injection,inject() for dependency injection,Constructor parameters for new code,readonly http = inject(HttpClient); readonly router = inject(Router),constructor(private http: HttpClient private router: Router) {},Medium,https://angular.dev/api/core/inject
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
No,Category,Guideline,Description,Do,Don't,Code Good,Code Bad,Severity,Docs URL
|
|
2
|
-
1,Architecture,Use Islands Architecture,Astro's partial hydration only loads JS for interactive components,Interactive components with client directives,Hydrate entire page like traditional SPA,<Counter client:load />,Everything as client component,High,https://docs.astro.build/en/concepts/islands/
|
|
3
|
-
2,Architecture,Default to zero JS,Astro ships zero JS by default - add only when needed,Static components without client directive,Add client:load to everything,<Header /> (static),<Header client:load /> (unnecessary),High,https://docs.astro.build/en/basics/astro-components/
|
|
4
|
-
3,Architecture,Choose right client directive,Different directives for different hydration timing,client:visible for below-fold client:idle for non-critical,client:load for everything,<Comments client:visible />,<Comments client:load />,Medium,https://docs.astro.build/en/reference/directives-reference/#client-directives
|
|
5
|
-
4,Architecture,Use content collections,Type-safe content management for blogs docs,Content collections for structured content,Loose markdown files without schema,const posts = await getCollection('blog'),import.meta.glob('./posts/*.md'),High,https://docs.astro.build/en/guides/content-collections/
|
|
6
|
-
5,Architecture,Define collection schemas,Zod schemas for content validation,Schema with required fields and types,No schema validation,defineCollection({ schema: z.object({...}) }),defineCollection({}),High,https://docs.astro.build/en/guides/content-collections/#defining-a-collection-schema
|
|
7
|
-
6,Routing,Use file-based routing,Create routes by adding .astro files in pages/,pages/ directory for routes,Manual route configuration,src/pages/about.astro,Custom router setup,Medium,https://docs.astro.build/en/basics/astro-pages/
|
|
8
|
-
7,Routing,Dynamic routes with brackets,Use [param] for dynamic routes,Bracket notation for params,Query strings for dynamic content,pages/blog/[slug].astro,pages/blog.astro?slug=x,Medium,https://docs.astro.build/en/guides/routing/#dynamic-routes
|
|
9
|
-
8,Routing,Use getStaticPaths for SSG,Generate static pages at build time,getStaticPaths for known dynamic routes,Fetch at runtime for static content,export async function getStaticPaths() { return [...] },No getStaticPaths with dynamic route,High,https://docs.astro.build/en/reference/api-reference/#getstaticpaths
|
|
10
|
-
9,Routing,Enable SSR when needed,Server-side rendering for dynamic content,output: 'server' or 'hybrid' for dynamic,SSR for purely static sites,export const prerender = false;,SSR for static blog,Medium,https://docs.astro.build/en/guides/server-side-rendering/
|
|
11
|
-
10,Components,Keep .astro for static,Use .astro components for static content,Astro components for layout structure,React/Vue for static markup,<Layout><slot /></Layout>,<ReactLayout>{children}</ReactLayout>,High,
|
|
12
|
-
11,Components,Use framework components for interactivity,React Vue Svelte for complex interactivity,Framework component with client directive,Astro component with inline scripts,<ReactCounter client:load />,<script> in .astro for complex state,Medium,https://docs.astro.build/en/guides/framework-components/
|
|
13
|
-
12,Components,Pass data via props,Astro components receive props in frontmatter,Astro.props for component data,Global state for simple data,const { title } = Astro.props;,Import global store,Low,https://docs.astro.build/en/basics/astro-components/#component-props
|
|
14
|
-
13,Components,Use slots for composition,Named and default slots for flexible layouts,<slot /> for child content,Props for HTML content,"<slot name=""header"" />",<Component header={<div>...</div>} />,Medium,https://docs.astro.build/en/basics/astro-components/#slots
|
|
15
|
-
14,Components,Colocate component styles,Scoped styles in component file,<style> in same .astro file,Separate CSS files for component styles,<style> .card { } </style>,import './Card.css',Low,
|
|
16
|
-
15,Styling,Use scoped styles by default,Astro scopes styles to component automatically,<style> for component-specific styles,Global styles for everything,<style> h1 { } </style> (scoped),<style is:global> for everything,Medium,https://docs.astro.build/en/guides/styling/#scoped-styles
|
|
17
|
-
16,Styling,Use is:global sparingly,Global styles only when truly needed,is:global for base styles or overrides,is:global for component styles,<style is:global> body { } </style>,<style is:global> .card { } </style>,Medium,
|
|
18
|
-
17,Styling,Integrate Tailwind properly,Use @astrojs/tailwind integration,Official Tailwind integration,Manual Tailwind setup,npx astro add tailwind,Manual PostCSS config,Low,https://docs.astro.build/en/guides/integrations-guide/tailwind/
|
|
19
|
-
18,Styling,Use CSS variables for theming,Define tokens in :root,CSS custom properties for themes,Hardcoded colors everywhere,:root { --primary: #3b82f6; },color: #3b82f6; everywhere,Medium,
|
|
20
|
-
19,Data,Fetch in frontmatter,Data fetching in component frontmatter,Top-level await in frontmatter,useEffect for initial data,const data = await fetch(url),client-side fetch on mount,High,https://docs.astro.build/en/guides/data-fetching/
|
|
21
|
-
20,Data,Use Astro.glob for local files,Import multiple local files,Astro.glob for markdown/data files,Manual imports for each file,const posts = await Astro.glob('./posts/*.md'),import post1; import post2;,Medium,
|
|
22
|
-
21,Data,Prefer content collections over glob,Type-safe collections for structured content,getCollection() for blog/docs,Astro.glob for structured content,await getCollection('blog'),await Astro.glob('./blog/*.md'),High,
|
|
23
|
-
22,Data,Use environment variables correctly,Import.meta.env for env vars,PUBLIC_ prefix for client vars,Expose secrets to client,import.meta.env.PUBLIC_API_URL,import.meta.env.SECRET in client,High,https://docs.astro.build/en/guides/environment-variables/
|
|
24
|
-
23,Performance,Preload critical assets,Use link preload for important resources,Preload fonts above-fold images,No preload hints,"<link rel=""preload"" href=""font.woff2"" as=""font"">",No preload for critical assets,Medium,
|
|
25
|
-
24,Performance,Optimize images with astro:assets,Built-in image optimization,<Image /> component for optimization,<img> for local images,import { Image } from 'astro:assets';,"<img src=""./image.jpg"">",High,https://docs.astro.build/en/guides/images/
|
|
26
|
-
25,Performance,Use picture for responsive images,Multiple formats and sizes,<Picture /> for art direction,Single image size for all screens,<Picture /> with multiple sources,<Image /> with single size,Medium,
|
|
27
|
-
26,Performance,Lazy load below-fold content,Defer loading non-critical content,loading=lazy for images client:visible for components,Load everything immediately,"<img loading=""lazy"">",No lazy loading,Medium,
|
|
28
|
-
27,Performance,Minimize client directives,Each directive adds JS bundle,Audit client: usage regularly,Sprinkle client:load everywhere,Only interactive components hydrated,Every component with client:load,High,
|
|
29
|
-
28,ViewTransitions,Enable View Transitions,Smooth page transitions,<ViewTransitions /> in head,Full page reloads,import { ViewTransitions } from 'astro:transitions';,No transition API,Medium,https://docs.astro.build/en/guides/view-transitions/
|
|
30
|
-
29,ViewTransitions,Use transition:name,Named elements for morphing,transition:name for persistent elements,Unnamed transitions,"<header transition:name=""header"">",<header> without name,Low,
|
|
31
|
-
30,ViewTransitions,Handle transition:persist,Keep state across navigations,transition:persist for media players,Re-initialize on every navigation,"<video transition:persist id=""player"">",Video restarts on navigation,Medium,
|
|
32
|
-
31,ViewTransitions,Add fallback for no-JS,Graceful degradation,Content works without JS,Require JS for basic navigation,Static content accessible,Broken without ViewTransitions JS,High,
|
|
33
|
-
32,SEO,Use built-in SEO component,Head management for meta tags,Astro SEO integration or manual head,No meta tags,"<title>{title}</title><meta name=""description"">",No SEO tags,High,
|
|
34
|
-
33,SEO,Generate sitemap,Automatic sitemap generation,@astrojs/sitemap integration,Manual sitemap maintenance,npx astro add sitemap,Hand-written sitemap.xml,Medium,https://docs.astro.build/en/guides/integrations-guide/sitemap/
|
|
35
|
-
34,SEO,Add RSS feed for content,RSS for blogs and content sites,@astrojs/rss for feed generation,No RSS feed,rss() helper in pages/rss.xml.js,No feed for blog,Low,https://docs.astro.build/en/guides/rss/
|
|
36
|
-
35,SEO,Use canonical URLs,Prevent duplicate content issues,Astro.url for canonical generation,No canonical tags,"<link rel=""canonical"" href={Astro.url}>",No canonical tags,Medium,
|
|
37
|
-
36,Integrations,Use official integrations,Astro's integration system,npx astro add for integrations,Manual configuration,npx astro add react,Manual React setup,Medium,https://docs.astro.build/en/guides/integrations-guide/
|
|
38
|
-
37,Integrations,Configure integrations in astro.config,Centralized configuration,integrations array in config,Scattered configuration,"integrations: [react(), tailwind()]",Multiple config files,Low,
|
|
39
|
-
38,Integrations,Use adapter for deployment,Platform-specific adapters,Correct adapter for host,Wrong or no adapter,@astrojs/vercel for Vercel,No adapter for SSR,High,https://docs.astro.build/en/guides/deploy/
|
|
40
|
-
39,TypeScript,Enable TypeScript,Type safety for Astro projects,tsconfig.json with astro types,No TypeScript,Astro TypeScript template,JavaScript only,Medium,https://docs.astro.build/en/guides/typescript/
|
|
41
|
-
40,TypeScript,Type component props,Define prop interfaces,Props interface in frontmatter,Untyped props,interface Props { title: string },No props typing,Medium,
|
|
42
|
-
41,TypeScript,Use strict mode,Catch errors early,strict: true in tsconfig,Loose TypeScript config,strictest template,base template,Low,
|
|
43
|
-
42,Markdown,Use MDX for components,Components in markdown content,@astrojs/mdx for interactive docs,Plain markdown with workarounds,<Component /> in .mdx,HTML in .md files,Medium,https://docs.astro.build/en/guides/integrations-guide/mdx/
|
|
44
|
-
43,Markdown,Configure markdown plugins,Extend markdown capabilities,remarkPlugins rehypePlugins in config,Manual HTML for features,remarkPlugins: [remarkToc],Manual TOC in every post,Low,
|
|
45
|
-
44,Markdown,Use frontmatter for metadata,Structured post metadata,Frontmatter with typed schema,Inline metadata,title date in frontmatter,# Title as first line,Medium,
|
|
46
|
-
45,API,Use API routes for endpoints,Server endpoints in pages/api,pages/api/[endpoint].ts for APIs,External API for simple endpoints,pages/api/posts.json.ts,Separate Express server,Medium,https://docs.astro.build/en/guides/endpoints/
|
|
47
|
-
46,API,Return proper responses,Use Response object,new Response() with headers,Plain objects,return new Response(JSON.stringify(data)),return data,Medium,
|
|
48
|
-
47,API,Handle methods correctly,Export named method handlers,export GET POST handlers,Single default export,export const GET = async () => {},export default async () => {},Low,
|
|
49
|
-
48,Security,Sanitize user content,Prevent XSS in dynamic content,set:html only for trusted content,set:html with user input,<Fragment set:html={sanitized} />,<div set:html={userInput} />,High,
|
|
50
|
-
49,Security,Use HTTPS in production,Secure connections,HTTPS for all production sites,HTTP in production,https://example.com,http://example.com,High,
|
|
51
|
-
50,Security,Validate API input,Check and sanitize all input,Zod validation for API routes,Trust all input,const body = schema.parse(data),const body = await request.json(),High,
|
|
52
|
-
51,Build,Use hybrid rendering,Mix static and dynamic pages,output: 'hybrid' for flexibility,All SSR or all static,prerender per-page basis,Single rendering mode,Medium,https://docs.astro.build/en/guides/server-side-rendering/#hybrid-rendering
|
|
53
|
-
52,Build,Analyze bundle size,Monitor JS bundle impact,Build output shows bundle sizes,Ignore bundle growth,Check astro build output,No size monitoring,Medium,
|
|
54
|
-
53,Build,Use prefetch,Preload linked pages,prefetch integration,No prefetch for navigation,npx astro add prefetch,Manual prefetch,Low,https://docs.astro.build/en/guides/prefetch/
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
No,Category,Guideline,Description,Do,Don't,Code Good,Code Bad,Severity,Docs URL
|
|
2
|
-
1,XAML,Use Avalonia XAML namespace,Avalonia has its own XAML namespace not WPF,xmlns= for Avalonia-specific namespace,WPF xmlns or UWP xmlns,"<Window xmlns=""https://github.com/avaloniaui"">","<Window xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation"">",High,https://docs.avaloniaui.net/docs/fundamentals/avalonia-xaml
|
|
3
|
-
2,XAML,Use compiled bindings with x:DataType,Enable compile-time binding validation,x:DataType on root or DataTemplate for compiled bindings,Reflection-based bindings in production,"<Window x:DataType=""vm:MainViewModel""><TextBlock Text=""{Binding Name}""/></Window>","<Window><TextBlock Text=""{Binding Name}""/> without x:DataType",High,https://docs.avaloniaui.net/docs/data-binding/compiled-bindings
|
|
4
|
-
3,XAML,Enable compiled bindings globally,AvaloniaUseCompiledBindingsByDefault in csproj makes every binding require x:DataType and is required for trim-safe Native AOT,AvaloniaUseCompiledBindingsByDefault MSBuild property in csproj,Relying on runtime binding resolution,"<AvaloniaUseCompiledBindingsByDefault>true</AvaloniaUseCompiledBindingsByDefault>","No compiled binding enforcement",High,https://docs.avaloniaui.net/docs/data-binding/compiled-bindings
|
|
5
|
-
4,XAML,Use #name shorthand for element-to-element bindings,Compiled bindings cannot resolve {Binding ElementName=...} - use the #name shorthand which relies on NameScope lookup,#name shorthand referencing x:Name controls in the same NameScope,ElementName binding inside a compiled-binding scope,"<TextBlock Text=""{Binding #SearchBox.Text}""/>","<TextBlock Text=""{Binding ElementName=SearchBox, Path=Text}""/> under compiled bindings",Medium,https://docs.avaloniaui.net/docs/data-binding/compiled-bindings
|
|
6
|
-
5,Styling,Use CSS-like selectors,Avalonia uses selectors not implicit styles,Selectors targeting control types classes and pseudoclasses,WPF-style implicit Style with TargetType,"<Style Selector=""Button.primary""><Setter Property=""Background"" Value=""Blue""/></Style>","<Style TargetType=""Button""> without Selector",High,https://docs.avaloniaui.net/docs/styling/selectors
|
|
7
|
-
6,Styling,Use pseudoclass selectors for states,Target control states with colon syntax,:pointerover :pressed :focus for interactive states,VisualStateManager or Triggers,"<Style Selector=""Button:pointerover""><Setter Property=""Opacity"" Value=""0.8""/></Style>","<VisualStateManager> for hover effects",Medium,https://docs.avaloniaui.net/docs/styling/pseudoclasses
|
|
8
|
-
7,Styling,Use nesting selectors,Child and descendant combinators for scoped styles,> for direct child and space for descendant,Flat selectors that match too broadly,"<Style Selector=""StackPanel > Button""><Setter Property=""Margin"" Value=""4""/></Style>","<Style Selector=""Button""> that affects all buttons unintentionally",Medium,https://docs.avaloniaui.net/docs/styling/style-selector-syntax
|
|
9
|
-
8,Styling,Use StyleInclude for modularity,Split styles into separate AXAML files,StyleInclude to import themed resource files,All styles in a single monolithic App.axaml,"<StyleInclude Source=""/Styles/ButtonStyles.axaml""/>","1000+ line App.axaml with all styles",Medium,https://docs.avaloniaui.net/docs/styling/styles
|
|
10
|
-
9,Styling,Use Fluent or Simple theme,Built-in Avalonia themes,FluentTheme or SimpleTheme as base,Custom theme from scratch,"<FluentTheme/>","Building all control templates manually",High,https://docs.avaloniaui.net/docs/styling/themes
|
|
11
|
-
10,Styling,Use theme variants for dark mode,Switch between light and dark,RequestedThemeVariant for theme switching,"Hardcoded colors ignoring theme variants","Application.Current.RequestedThemeVariant = ThemeVariant.Dark;","Manually changing every brush for dark mode",Medium,https://docs.avaloniaui.net/docs/styling/themes
|
|
12
|
-
11,Controls,Use DataGrid for tabular data,DataGrid is a separate Avalonia.Controls.DataGrid NuGet package and requires its theme StyleInclude in App.axaml,DataGrid after adding package and StyleInclude for the matching theme,Custom Grid layouts for tabular data or DataGrid without the theme StyleInclude,"<DataGrid ItemsSource=""{Binding Items}"" AutoGenerateColumns=""False""/> with <StyleInclude Source=""avares://Avalonia.Controls.DataGrid/Themes/Fluent.xaml""/> in App.axaml","<DataGrid/> with no package reference or no StyleInclude (renders unstyled)",Medium,https://docs.avaloniaui.net/docs/reference/controls/datagrid/
|
|
13
|
-
12,Controls,Use TreeView with TreeDataTemplate,Avalonia uses TreeDataTemplate for hierarchical data - HierarchicalDataTemplate is WPF only,TreeDataTemplate inside TreeView.ItemTemplate with ItemsSource pointing at child collection,HierarchicalDataTemplate copied from WPF or nested ItemsControls,"<TreeView ItemsSource=""{Binding Nodes}""><TreeView.ItemTemplate><TreeDataTemplate ItemsSource=""{Binding Children}""><TextBlock Text=""{Binding Name}""/></TreeDataTemplate></TreeView.ItemTemplate></TreeView>","<TreeView><TreeView.ItemTemplate><HierarchicalDataTemplate/></TreeView.ItemTemplate></TreeView> // HierarchicalDataTemplate does not exist in Avalonia",High,https://docs.avaloniaui.net/docs/reference/controls/treeview-1
|
|
14
|
-
13,Controls,Use NativeMenu for platform menus,Native menu bar on macOS and desktop,NativeMenu for cross-platform menu bar,Custom menu implementation per platform,"<NativeMenu.Menu><NativeMenu><NativeMenuItem Header=""File""/></NativeMenu></NativeMenu.Menu>","Custom menu bar control for each platform",Medium,https://docs.avaloniaui.net/docs/reference/controls/nativemenu
|
|
15
|
-
14,Data Binding,Implement INotifyPropertyChanged,Standard .NET property notification,INotifyPropertyChanged or CommunityToolkit.Mvvm,Properties without change notification,"[ObservableProperty] private string _name;","public string Name { get; set; } without notification",High,https://docs.avaloniaui.net/docs/data-binding/inotifypropertychanged
|
|
16
|
-
15,Data Binding,Use ObservableCollection for lists,UI updates on collection changes,ObservableCollection<T> for bound collections,List<T> for ItemsSources,"ObservableCollection<Item> Items { get; } = new();","List<Item> Items { get; set; }",High,https://docs.avaloniaui.net/docs/data-binding/inotifypropertychanged
|
|
17
|
-
16,Data Binding,Use binding to named controls,Element-to-element binding with # syntax,#ElementName.Property for cross-element binding,Code-behind for element references,"<TextBlock Text=""{Binding #slider.Value, StringFormat='{}{0:F0}'}""/>","Code-behind ValueChanged handler to update TextBlock",Medium,https://docs.avaloniaui.net/docs/data-binding/introduction-to-data-binding
|
|
18
|
-
17,Data Binding,Use converters or FuncValueConverter,Transform data for display,FuncValueConverter for simple inline conversions,Complex IValueConverter classes for trivial transforms,"public static FuncValueConverter<bool, IBrush> BoolToColor = new(b => b ? Brushes.Green : Brushes.Red);","Full IValueConverter class for bool to color",Medium,https://docs.avaloniaui.net/docs/data-binding/how-to-create-a-custom-data-binding-converter
|
|
19
|
-
18,Cross-Platform,Use platform-specific code carefully,Isolate platform code behind abstractions,Interface + platform implementation pattern,#if directives scattered through ViewModels,"IPlatformService with platform-specific implementations","#if WINDOWS ... #elif LINUX ... in ViewModel",Medium,https://docs.avaloniaui.net/docs/guides/building-cross-platform-applications/
|
|
20
|
-
19,Cross-Platform,Test on all target platforms,Rendering and behavior varies across platforms,CI testing on Windows macOS and Linux,Testing only on development platform,"GitHub Actions matrix with windows-latest ubuntu-latest macos-latest","Testing only on Windows assuming cross-platform works",High,https://docs.avaloniaui.net/docs/guides/building-cross-platform-applications/
|
|
21
|
-
20,Cross-Platform,Handle platform file paths,Path separators differ across OS,Path.Combine and Environment.SpecialFolder,Hardcoded backslashes or forward slashes,"Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), ""MyApp"")","@""C:\Users\data\config.json""",Medium,https://docs.avaloniaui.net/docs/guides/building-cross-platform-applications/dealing-with-platforms
|
|
22
|
-
21,Cross-Platform,Use Avalonia asset system,Platform-agnostic resource loading,avares:// URI scheme for embedded resources,File system paths for assets,"<Image Source=""avares://MyApp/Assets/logo.png""/>","<Image Source=""C:/images/logo.png""/>",High,https://docs.avaloniaui.net/docs/fundamentals/including-assets
|
|
23
|
-
22,Performance,Use virtualization for large lists,Only render visible items,ListBox and ItemsRepeater with virtualization,Non-virtualizing ItemsControl for large lists,"<ListBox ItemsSource=""{Binding LargeList}""/>","<ItemsControl><StackPanel> for 10K items",High,https://docs.avaloniaui.net/docs/reference/controls/listbox
|
|
24
|
-
23,Performance,Avoid unnecessary bindings,Each binding has overhead,Bind only properties that change,Binding static labels and headers,"<TextBlock Text=""{Binding DynamicTitle}""/> but static: <TextBlock Text=""Settings""/>","<TextBlock Text=""{Binding SettingsLabel}""/> for constant string",Low,https://docs.avaloniaui.net/docs/data-binding/introduction-to-data-binding
|
|
25
|
-
24,Performance,Set bitmap interpolation mode on scaled images,RenderOptions.BitmapInterpolationMode controls image scaling quality vs cost; default may look aliased on upscaled or downscaled bitmaps,RenderOptions.SetBitmapInterpolationMode tuned to the use case,Default interpolation on scaled images that look blurry or aliased,"RenderOptions.SetBitmapInterpolationMode(image, BitmapInterpolationMode.HighQuality);","Image scaled with Stretch and no interpolation hint set",Low,https://docs.avaloniaui.net/docs/concepts/image-interpolation
|
|
26
|
-
25,Performance,Profile with Avalonia DevTools,Built-in diagnostic tools,DevTools for visual tree and binding inspection,Console.WriteLine debugging,Attach DevTools in debug mode with F12,Print statements to debug layout issues,Medium,https://docs.avaloniaui.net/docs/guides/implementation-guides/developer-tools
|
|
27
|
-
26,Architecture,Use MVVM with ReactiveUI or CommunityToolkit,Proven MVVM frameworks for Avalonia,ReactiveUI or CommunityToolkit.Mvvm for ViewModels,Code-behind for all logic,"public class MainViewModel : ReactiveObject { }","MainWindow.axaml.cs with all business logic",High,https://v11.docs.avaloniaui.net/docs/concepts/reactiveui/
|
|
28
|
-
27,Architecture,Use ViewLocator pattern,Convention-based View-ViewModel resolution,ViewLocator for automatic view resolution,Manual view instantiation and DataContext wiring,"class ViewLocator : IDataTemplate { Build(object data) => new MainView(); }","new MainView { DataContext = new MainViewModel() } everywhere",Medium,https://docs.avaloniaui.net/docs/data-templates/view-locator
|
|
29
|
-
28,Architecture,Use dependency injection,Register services in a Microsoft.Extensions.DependencyInjection container during startup before any view is constructed - resolve ViewModels through the provider not via a static ServiceLocator,Build the ServiceProvider in BuildAvaloniaApp or OnFrameworkInitializationCompleted then resolve ViewModels from it,Static ServiceLocator or new-ing ViewModels inline in code-behind,"services.AddSingleton<IDataService, DataService>(); services.AddTransient<MainViewModel>(); var provider = services.BuildServiceProvider(); // wired before windows are created","ServiceLocator.Current.GetInstance<IDataService>() called from random ViewModels with no registration ordering",Medium,https://docs.avaloniaui.net/docs/app-development/dependency-injection
|
|
30
|
-
29,Architecture,Separate Views from ViewModels,Keep UI and logic in separate projects,ViewModels in a separate class library,ViewModels in the same project referencing Avalonia types,"MyApp.Core (no Avalonia refs) + MyApp.Desktop (Avalonia views)","ViewModel importing Avalonia.Controls",Medium,https://v11.docs.avaloniaui.net/docs/concepts/reactiveui/
|
|
31
|
-
30,Accessibility,Set AutomationProperties,Enable screen reader support,AutomationProperties.Name on interactive controls,Controls without accessible names,"<Button AutomationProperties.Name=""Close dialog""><PathIcon Data=""...""/></Button>","<Button><PathIcon/></Button> without accessible name",High,https://docs.avaloniaui.net/api/avalonia/automation/automationproperties
|
|
32
|
-
31,Accessibility,Support keyboard navigation,Full keyboard operability,TabIndex and KeyboardNavigation properties,Mouse-only interactions,"<Button TabIndex=""1"" Content=""Save""/>","Clickable controls without keyboard support",High,https://docs.avaloniaui.net/docs/input-interaction/keyboard-and-hotkeys
|
|
33
|
-
32,Accessibility,Use semantic control types,Controls convey meaning to assistive tech,Button for actions ListBox for selection,TextBlock with PointerPressed as fake button,"<Button Content=""Submit""/>","<TextBlock PointerPressed=""OnSubmitClick"" Text=""Submit""/>",High,https://docs.avaloniaui.net/docs/reference/controls/
|
|
34
|
-
33,Testing,Use Avalonia.Headless for UI tests,Run UI tests without display server,Avalonia.Headless for CI-compatible UI testing,Skipping UI tests in CI,"[AvaloniaTest] public void Button_Click_Updates_Label() { ... }","UI tests that require a display server",Medium,https://docs.avaloniaui.net/docs/concepts/headless/
|
|
35
|
-
34,Testing,Unit test ViewModels,Test business logic independently,xUnit or NUnit on ViewModel methods,Testing through UI only,"[Fact] public void AddItem_IncreasesCount() { vm.AddItem(); Assert.Equal(1, vm.Items.Count); }","Manual testing by running the app",Medium,https://docs.avaloniaui.net/docs/concepts/headless/
|
|
36
|
-
35,Testing,Test converters independently,Value converters contain testable logic,Unit tests on Convert and ConvertBack,Assuming converters work without tests,"[Fact] public void BoolToColor_True_ReturnsGreen() { Assert.Equal(Brushes.Green, converter.Convert(true)); }","No converter tests",Low,https://docs.avaloniaui.net/docs/data-binding/how-to-create-a-custom-data-binding-converter
|
|
37
|
-
36,Navigation,Use ReactiveUI routing for navigation,IScreen and RoutingState for page navigation,ReactiveUI RoutingState with IScreen on main ViewModel,Manual content swapping in code-behind,"public RoutingState Router { get; } = new(); Router.Navigate.Execute(new DetailViewModel());","contentControl.Content = new DetailView(); in code-behind",Medium,https://v11.docs.avaloniaui.net/docs/concepts/reactiveui/routing
|
|
38
|
-
37,Navigation,Use UserControl for views,Pages and screens should be UserControls hosted in a ContentControl,UserControl for each view with RoutedViewHost or ContentControl,Window per page or nested Windows,"<UserControl x:Class=""MyApp.Views.DetailView"">","new Window() for each page in the app",Medium,https://docs.avaloniaui.net/docs/custom-controls/
|
|
39
|
-
38,Navigation,Use page transitions for view switching,Built-in transitions for smooth navigation,CrossFade PageSlide or CompositePageTransition declared as a property element,Abrupt content swaps with no visual continuity,"<RoutedViewHost><RoutedViewHost.PageTransition><PageSlide Orientation=""Horizontal"" Duration=""0:0:0.3""/></RoutedViewHost.PageTransition></RoutedViewHost>","ContentControl with no transition between views",Low,https://docs.avaloniaui.net/docs/reference/controls/transitioningcontentcontrol
|
|
40
|
-
39,Navigation,Support back navigation,Maintain navigation history for complex apps,Router.NavigateBack or custom back stack,No way to return to previous views,"<Button Command=""{Binding Router.NavigateBack}"" Content=""Back""/>","Single-direction navigation with no back support",Medium,https://v11.docs.avaloniaui.net/docs/concepts/reactiveui/routing
|
|
41
|
-
40,Controls,Use AutoCompleteBox for search,Built-in autocomplete and suggestion control,AutoCompleteBox with FilterMode and ItemsSource,TextBox with manual Popup and ListBox for suggestions,"<AutoCompleteBox ItemsSource=""{Binding Suggestions}"" FilterMode=""Contains""/>","TextBox with custom Popup for autocomplete",Medium,https://docs.avaloniaui.net/docs/reference/controls/autocompletebox
|
|
42
|
-
41,Controls,Use TabControl for tabbed interfaces,Standard tabbed navigation and content switching,TabControl with TabItem for tabbed layouts,Manual toggle buttons swapping content,"<TabControl><TabItem Header=""General""><GeneralView/></TabItem><TabItem Header=""Advanced""><AdvancedView/></TabItem></TabControl>","ToggleButtons with manual content switching logic",Medium,https://docs.avaloniaui.net/docs/reference/controls/tabcontrol
|
|
43
|
-
42,Controls,Use SplitView for master-detail,Collapsible pane layout for navigation or panels,SplitView with Pane and Content areas,Manual Grid with column toggling for sidebar,"<SplitView IsPaneOpen=""{Binding IsPaneOpen}"" DisplayMode=""Inline""><SplitView.Pane><ListBox/></SplitView.Pane><ContentControl/></SplitView>","Grid with manual column width animation for sidebar",Medium,https://docs.avaloniaui.net/docs/reference/controls/splitview
|
|
44
|
-
43,Controls,Use Flyout for contextual actions,Attach popup menus and actions to controls,Flyout and MenuFlyout on Button or other controls,Custom Popup positioning and management,"<Button Content=""Options""><Button.Flyout><MenuFlyout><MenuItem Header=""Edit""/><MenuItem Header=""Delete""/></MenuFlyout></Button.Flyout></Button>","Custom Popup with manual open/close and positioning",Medium,https://docs.avaloniaui.net/docs/reference/controls/flyouts
|
|
45
|
-
44,Lifecycle,Use AppBuilder for app configuration,Configure platform features and services at startup,AppBuilder with UsePlatformDetect and fluent API,Manual platform initialization,"AppBuilder.Configure<App>().UsePlatformDetect().WithInterFont().StartWithClassicDesktopLifetime(args);","Manual platform-specific startup code per OS",High,https://docs.avaloniaui.net/docs/fundamentals/application-lifetimes
|
|
46
|
-
45,Lifecycle,Initialize MainWindow in OnFrameworkInitializationCompleted,Override OnFrameworkInitializationCompleted on App and check ApplicationLifetime - on desktop cast to IClassicDesktopStyleApplicationLifetime to set MainWindow and ShutdownMode; never create windows in the App constructor before the framework is ready,Override OnFrameworkInitializationCompleted and pattern-match on IClassicDesktopStyleApplicationLifetime for desktop-only setup,Creating windows in the App constructor or assuming the same lifetime type on every platform,"public override void OnFrameworkInitializationCompleted() { if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) { desktop.MainWindow = new MainWindow(); desktop.ShutdownMode = ShutdownMode.OnMainWindowClose; } base.OnFrameworkInitializationCompleted(); }","public App() { new MainWindow().Show(); } // window created before framework init and ignores lifetime type",High,https://docs.avaloniaui.net/docs/fundamentals/application-lifetimes
|
|
47
|
-
46,Animation,Use CSS-like keyframe animations,Avalonia supports declarative animations in XAML and code,Animation with KeyFrame and Setter for property animations,Manual timer-based property updates,"<Border.Transitions><DoubleTransition Property=""Opacity"" Duration=""0:0:0.3""/></Border.Transitions>","DispatcherTimer ticking to update Opacity manually",Medium,https://docs.avaloniaui.net/docs/graphics-animation/animations
|
|
48
|
-
47,Animation,Use Transitions for implicit animations,Automatic animation when property values change,Transitions collection on controls for smooth changes,Instant property changes with no visual feedback,"<Button.Transitions><TransformOperationsTransition Property=""RenderTransform"" Duration=""0:0:0.2""/></Button.Transitions>","Direct property set with no transition",Low,https://docs.avaloniaui.net/docs/graphics-animation/control-transitions
|
|
49
|
-
48,Performance,Use compiled bindings and TrimmerRoots.xml for PublishAot,Avalonia 11+ supports Native AOT for self-contained desktop deployments; XAML reflection paths must use compiled bindings or be preserved via TrimmerRoots so trimming does not strip them,x:CompileBindings=True on every view plus TrimmerRoots.xml for runtime-resolved types,PublishAot with reflection-based {Binding} markup or trimming without checking warnings,"<UserControl x:CompileBindings=""True"" x:DataType=""vm:MainViewModel""/> with <PublishAot>true</PublishAot> and TrimmerRoots.xml listing reflected types","<PublishAot>true</PublishAot> with default <Binding> markup and no TrimmerRoots configuration",Medium,https://docs.avaloniaui.net/docs/deployment/native-aot
|
|
50
|
-
49,Threading,Marshal cross-thread work to the UI thread,Avalonia controls and bound properties are not thread-safe and touching them off the UI thread throws InvalidOperationException,Dispatcher.UIThread.Post or InvokeAsync to bounce work back to the UI thread,Direct property writes from Task.Run or background threads,"await Dispatcher.UIThread.InvokeAsync(() => Status = ""Done"");","Task.Run(() => { Status = ""Done""; }); // throws Call from invalid thread",High,https://docs.avaloniaui.net/docs/app-development/threading
|
|
51
|
-
50,Commands,Use AsyncRelayCommand or ReactiveCommand for async work,Async-aware commands disable themselves while running and surface CancellationToken so users cannot double-invoke a long operation,[RelayCommand] async Task method or ReactiveCommand.CreateFromTask,async void event handlers or fire-and-forget Task.Run from a click handler,"[RelayCommand] private async Task LoadAsync(CancellationToken ct) { await _api.GetAsync(ct); }","private async void OnClick(object s, RoutedEventArgs e) { await LongOperation(); }",High,https://docs.avaloniaui.net/docs/input-interaction/commanding
|
|
52
|
-
51,Styling,Use DynamicResource for theme-aware brushes,ResourceDictionary.ThemeDictionaries entries must be looked up via DynamicResource - StaticResource resolves once at load and won't update when the active theme variant changes,DynamicResource for brushes and colors that follow the active theme variant,Hardcoded hex colors or StaticResource for values that should follow theme,"<Border Background=""{DynamicResource SystemControlBackgroundAccentBrush}""/>","<Border Background=""#FF0078D4""/> while the rest of the app honors light/dark variants",Medium,https://docs.avaloniaui.net/docs/app-development/resource-dictionary
|
|
53
|
-
52,Input,Use HotKey or KeyBinding for keyboard shortcuts,Built-in HotKey on ICommandSource and Window.KeyBindings handle modifier keys focus scoping and cross-platform Ctrl/Cmd mapping,HotKey on a command-bound control or KeyBinding on the Window,Manual KeyDown handlers checking Key and KeyModifiers,"<Button Command=""{Binding SaveCommand}"" HotKey=""Ctrl+S"" Content=""Save""/>","OnKeyDown checking e.Key == Key.S && e.KeyModifiers == KeyModifiers.Control",Medium,https://docs.avaloniaui.net/docs/input-interaction/mouse-and-keyboard-shortcuts
|
|
54
|
-
53,Windowing,Customize window chrome with ExtendClientAreaToDecorationsHint,Set ExtendClientAreaToDecorationsHint to extend content into the title bar area and tag a region with WindowDecorationProperties.ElementRole=TitleBar to keep native drag and maximize behavior,ExtendClientAreaToDecorationsHint plus a region tagged ElementRole=TitleBar,SystemDecorations=None with hand-rolled PointerPressed dragging in code-behind,"<Window ExtendClientAreaToDecorationsHint=""True""><Border WindowDecorationProperties.ElementRole=""TitleBar""/></Window>","<Window SystemDecorations=""None""> with manual BeginMoveDrag from code-behind",Medium,https://docs.avaloniaui.net/docs/app-development/window-management
|
|
55
|
-
54,Storage,Use TopLevel.StorageProvider for file pickers,The legacy OpenFileDialog/SaveFileDialog APIs are obsolete in Avalonia 11 - use TopLevel.GetTopLevel(this).StorageProvider with OpenFilePickerAsync/SaveFilePickerAsync/OpenFolderPickerAsync which returns IStorageFile/IStorageFolder and works on desktop mobile and browser,TopLevel.StorageProvider with OpenFilePickerAsync and FilePickerOpenOptions,OpenFileDialog or SaveFileDialog from older Avalonia samples or copied from WPF,"var top = TopLevel.GetTopLevel(this); var files = await top.StorageProvider.OpenFilePickerAsync(new FilePickerOpenOptions { AllowMultiple = false });","var dlg = new OpenFileDialog(); var paths = await dlg.ShowAsync(window); // obsolete API",High,https://docs.avaloniaui.net/docs/concepts/services/storage-provider/
|
|
56
|
-
55,Windowing,Use TrayIcon for system tray icon,TrayIcon shows a native system tray/notification-area icon with a NativeMenu - declare it via the Application.TrayIcon.Icons attached property in App.axaml; works on Windows macOS and most Linux desktops,TrayIcon with NativeMenu inside TrayIcon.Icons on the Application,Custom borderless window pretending to be a tray icon or per-platform native interop,"<TrayIcon.Icons><TrayIcons><TrayIcon Icon=""/Assets/tray.ico"" ToolTipText=""MyApp""><TrayIcon.Menu><NativeMenu><NativeMenuItem Header=""Show"" Command=""{Binding ShowCommand}""/></NativeMenu></TrayIcon.Menu></TrayIcon></TrayIcons></TrayIcon.Icons>","Hidden Window with custom shell-notification-area P/Invoke",Medium,https://docs.avaloniaui.net/docs/controls/tray-icon
|
|
57
|
-
56,Cross-Platform,Use OnPlatform and OnFormFactor markup for per-OS values,OnPlatform and OnFormFactor markup extensions resolve to a different value per OS or form factor at XAML load time and replace if-statements in code-behind for tweaks like fonts spacing or icon sizes,OnPlatform with Default Windows macOS Linux entries directly in the property setter,RuntimeInformation.IsOSPlatform branches in code-behind to set XAML properties,"<TextBlock FontFamily=""{OnPlatform Default='Inter', Windows='Segoe UI', macOS='SF Pro Text', Linux='Ubuntu'}""/>","if (OperatingSystem.IsWindows()) textBlock.FontFamily = new(""Segoe UI""); else if (OperatingSystem.IsMacOS()) ...",Medium,https://docs.avaloniaui.net/docs/platform-specific-guides/xaml
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
No,Category,Guideline,Description,Do,Don't,Code Good,Code Bad,Severity,Docs URL
|
|
2
|
-
1,Widgets,Use StatelessWidget when possible,Immutable widgets are simpler,StatelessWidget for static UI,StatefulWidget for everything,class MyWidget extends StatelessWidget,class MyWidget extends StatefulWidget (static),Medium,https://api.flutter.dev/flutter/widgets/StatelessWidget-class.html
|
|
3
|
-
2,Widgets,Keep widgets small,Single responsibility principle,Extract widgets into smaller pieces,Large build methods,Column(children: [Header() Content()]),500+ line build method,Medium,
|
|
4
|
-
3,Widgets,Use const constructors,Compile-time constants for performance,const MyWidget() when possible,Non-const for static widgets,const Text('Hello'),Text('Hello') for literals,High,https://dart.dev/guides/language/language-tour#constant-constructors
|
|
5
|
-
4,Widgets,Prefer composition over inheritance,Combine widgets using children,Compose widgets,Extend widget classes,Container(child: MyContent()),class MyContainer extends Container,Medium,
|
|
6
|
-
5,State,Use setState correctly,Minimal state in StatefulWidget,setState for UI state changes,setState for business logic,setState(() { _counter++; }),Complex logic in setState,Medium,https://api.flutter.dev/flutter/widgets/State/setState.html
|
|
7
|
-
6,State,Avoid setState in build,Never call setState during build,setState in callbacks only,setState in build method,onPressed: () => setState(() {}),build() { setState(); },High,
|
|
8
|
-
7,State,Use state management for complex apps,Provider Riverpod BLoC,State management for shared state,setState for global state,Provider.of<MyState>(context),Global setState calls,Medium,
|
|
9
|
-
8,State,Prefer Riverpod or Provider,Recommended state solutions,Riverpod for new projects,InheritedWidget manually,ref.watch(myProvider),Custom InheritedWidget,Medium,https://riverpod.dev/
|
|
10
|
-
9,State,Dispose resources,Clean up controllers and subscriptions,dispose() for cleanup,Memory leaks from subscriptions,@override void dispose() { controller.dispose(); },No dispose implementation,High,
|
|
11
|
-
10,Layout,Use Column and Row,Basic layout widgets,Column Row for linear layouts,Stack for simple layouts,"Column(children: [Text(), Button()])",Stack for vertical list,Medium,https://api.flutter.dev/flutter/widgets/Column-class.html
|
|
12
|
-
11,Layout,Use Expanded and Flexible,Control flex behavior,Expanded to fill space,Fixed sizes in flex containers,Expanded(child: Container()),Container(width: 200) in Row,Medium,
|
|
13
|
-
12,Layout,Use SizedBox for spacing,Consistent spacing,SizedBox for gaps,Container for spacing only,SizedBox(height: 16),Container(height: 16),Low,
|
|
14
|
-
13,Layout,Use LayoutBuilder for responsive,Respond to constraints,LayoutBuilder for adaptive layouts,Fixed sizes for responsive,LayoutBuilder(builder: (context constraints) {}),Container(width: 375),Medium,https://api.flutter.dev/flutter/widgets/LayoutBuilder-class.html
|
|
15
|
-
14,Layout,Avoid deep nesting,Keep widget tree shallow,Extract deeply nested widgets,10+ levels of nesting,Extract widget to method or class,Column(Row(Column(Row(...)))),Medium,
|
|
16
|
-
15,Lists,Use ListView.builder,Lazy list building,ListView.builder for long lists,ListView with children for large lists,"ListView.builder(itemCount: 100, itemBuilder: ...)",ListView(children: items.map(...).toList()),High,https://api.flutter.dev/flutter/widgets/ListView-class.html
|
|
17
|
-
16,Lists,Provide itemExtent when known,Skip measurement,itemExtent for fixed height items,No itemExtent for uniform lists,ListView.builder(itemExtent: 50),ListView.builder without itemExtent,Medium,
|
|
18
|
-
17,Lists,Use keys for stateful items,Preserve widget state,Key for stateful list items,No key for dynamic lists,ListTile(key: ValueKey(item.id)),ListTile without key,High,
|
|
19
|
-
18,Lists,Use SliverList for custom scroll,Custom scroll effects,CustomScrollView with Slivers,Nested ListViews,CustomScrollView(slivers: [SliverList()]),ListView inside ListView,Medium,https://api.flutter.dev/flutter/widgets/SliverList-class.html
|
|
20
|
-
19,Navigation,Use Navigator 2.0 or GoRouter,Declarative routing,go_router for navigation,Navigator.push for complex apps,GoRouter(routes: [...]),Navigator.push everywhere,Medium,https://pub.dev/packages/go_router
|
|
21
|
-
20,Navigation,Use named routes,Organized navigation,Named routes for clarity,Anonymous routes,Navigator.pushNamed(context '/home'),Navigator.push(context MaterialPageRoute()),Low,
|
|
22
|
-
21,Navigation,Handle back button (PopScope),Android back behavior and predictive back (Android 14+),Use PopScope widget (WillPopScope is deprecated),Use WillPopScope,"PopScope(canPop: false, onPopInvoked: (didPop) => ...)",WillPopScope(onWillPop: ...),High,https://api.flutter.dev/flutter/widgets/PopScope-class.html
|
|
23
|
-
22,Navigation,Pass typed arguments,Type-safe route arguments,Typed route arguments,Dynamic arguments,MyRoute(id: '123'),arguments: {'id': '123'},Medium,
|
|
24
|
-
23,Async,Use FutureBuilder,Async UI building,FutureBuilder for async data,setState for async,FutureBuilder(future: fetchData()),fetchData().then((d) => setState()),Medium,https://api.flutter.dev/flutter/widgets/FutureBuilder-class.html
|
|
25
|
-
24,Async,Use StreamBuilder,Stream UI building,StreamBuilder for streams,Manual stream subscription,StreamBuilder(stream: myStream),stream.listen in initState,Medium,https://api.flutter.dev/flutter/widgets/StreamBuilder-class.html
|
|
26
|
-
25,Async,Handle loading and error states,Complete async UI states,ConnectionState checks,Only success state,if (snapshot.connectionState == ConnectionState.waiting),No loading indicator,High,
|
|
27
|
-
26,Async,Cancel subscriptions,Clean up stream subscriptions,Cancel in dispose,Memory leaks,subscription.cancel() in dispose,No subscription cleanup,High,
|
|
28
|
-
27,Theming,Use ThemeData,Consistent theming,ThemeData for app theme,Hardcoded colors,Theme.of(context).primaryColor,Color(0xFF123456) everywhere,Medium,https://api.flutter.dev/flutter/material/ThemeData-class.html
|
|
29
|
-
28,Theming,Use ColorScheme,Material 3 color system,ColorScheme for colors,Individual color properties,colorScheme: ColorScheme.fromSeed(),primaryColor: Colors.blue,Medium,
|
|
30
|
-
29,Theming,Access theme via context,Dynamic theme access,Theme.of(context),Static theme reference,Theme.of(context).textTheme.bodyLarge,TextStyle(fontSize: 16),Medium,
|
|
31
|
-
30,Theming,Support dark mode,Respect system theme,darkTheme in MaterialApp,Light theme only,"MaterialApp(theme: light, darkTheme: dark)",MaterialApp(theme: light),Medium,
|
|
32
|
-
31,Animation,Use implicit animations,Simple animations,AnimatedContainer AnimatedOpacity,Explicit for simple transitions,AnimatedContainer(duration: Duration()),AnimationController for fade,Low,https://api.flutter.dev/flutter/widgets/AnimatedContainer-class.html
|
|
33
|
-
32,Animation,Use AnimationController for complex,Fine-grained control,AnimationController with Ticker,Implicit for complex sequences,AnimationController(vsync: this),AnimatedContainer for staggered,Medium,
|
|
34
|
-
33,Animation,Dispose AnimationControllers,Clean up animation resources,dispose() for controllers,Memory leaks,controller.dispose() in dispose,No controller disposal,High,
|
|
35
|
-
34,Animation,Use Hero for transitions,Shared element transitions,Hero for navigation animations,Manual shared element,Hero(tag: 'image' child: Image()),Custom shared element animation,Low,https://api.flutter.dev/flutter/widgets/Hero-class.html
|
|
36
|
-
35,Forms,Use Form widget,Form validation,Form with GlobalKey,Individual validation,Form(key: _formKey child: ...),TextField without Form,Medium,https://api.flutter.dev/flutter/widgets/Form-class.html
|
|
37
|
-
36,Forms,Use TextEditingController,Control text input,Controller for text fields,onChanged for all text,final controller = TextEditingController(),onChanged: (v) => setState(),Medium,
|
|
38
|
-
37,Forms,Validate on submit,Form validation flow,_formKey.currentState!.validate(),Skip validation,if (_formKey.currentState!.validate()),Submit without validation,High,
|
|
39
|
-
38,Forms,Dispose controllers,Clean up text controllers,dispose() for controllers,Memory leaks,controller.dispose() in dispose,No controller disposal,High,
|
|
40
|
-
39,Performance,Use const widgets,Reduce rebuilds,const for static widgets,No const for literals,const Icon(Icons.add),Icon(Icons.add),High,
|
|
41
|
-
40,Performance,Avoid rebuilding entire tree,Minimal rebuild scope,Isolate changing widgets,setState on parent,Consumer only around changing widget,setState on root widget,High,
|
|
42
|
-
41,Performance,Use RepaintBoundary,Isolate repaints,RepaintBoundary for animations,Full screen repaints,RepaintBoundary(child: AnimatedWidget()),Animation without boundary,Medium,https://api.flutter.dev/flutter/widgets/RepaintBoundary-class.html
|
|
43
|
-
42,Performance,Profile with DevTools,Measure before optimizing,Flutter DevTools profiling,Guess at performance,DevTools performance tab,Optimize without measuring,Medium,https://docs.flutter.dev/tools/devtools
|
|
44
|
-
43,Accessibility,Use Semantics widget,Screen reader support,Semantics for accessibility,Missing accessibility info,Semantics(label: 'Submit button'),GestureDetector without semantics,High,https://api.flutter.dev/flutter/widgets/Semantics-class.html
|
|
45
|
-
44,Accessibility,Support large fonts,MediaQuery text scaling,MediaQuery.textScaleFactor,Fixed font sizes,style: Theme.of(context).textTheme,TextStyle(fontSize: 14),High,
|
|
46
|
-
45,Accessibility,Test with screen readers,TalkBack and VoiceOver,Test accessibility regularly,Skip accessibility testing,Regular TalkBack testing,No screen reader testing,High,
|
|
47
|
-
46,Testing,Use widget tests,Test widget behavior,WidgetTester for UI tests,Unit tests only,testWidgets('...' (tester) async {}),Only test() for UI,Medium,https://docs.flutter.dev/testing
|
|
48
|
-
47,Testing,Use integration tests,Full app testing,integration_test package,Manual testing only,IntegrationTestWidgetsFlutterBinding,Manual E2E testing,Medium,
|
|
49
|
-
48,Testing,Mock dependencies,Isolate tests,Mockito or mocktail,Real dependencies in tests,when(mock.method()).thenReturn(),Real API calls in tests,Medium,
|
|
50
|
-
49,Platform,Use Platform checks,Platform-specific code,Platform.isIOS Platform.isAndroid,Same code for all platforms,if (Platform.isIOS) {},Hardcoded iOS behavior,Medium,
|
|
51
|
-
50,Platform,Use kIsWeb for web,Web platform detection,kIsWeb for web checks,Platform for web,if (kIsWeb) {},Platform.isWeb (doesn't exist),Medium,
|
|
52
|
-
51,Packages,Use pub.dev packages,Community packages,Popular maintained packages,Custom implementations,cached_network_image,Custom image cache,Medium,https://pub.dev/
|
|
53
|
-
52,Packages,Check package quality,Quality before adding,Pub points and popularity,Any package without review,100+ pub points,Unmaintained packages,Medium,
|