@umacloud/knowledge 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/00-governance/governance-capabilities.md +557 -0
  2. package/00-governance/knowledge-map.md +39 -0
  3. package/00-governance/maintenance-policy.md +76 -0
  4. package/00-governance/review-checklist.md +81 -0
  5. package/README.md +13 -0
  6. package/ai/01-standards/agent-development-complete.md +691 -0
  7. package/ai/01-standards/llm-application-complete.md +488 -0
  8. package/ai/01-standards/mlops-complete.md +798 -0
  9. package/ai/01-standards/prompt-engineering-complete.md +646 -0
  10. package/ai/01-standards/rag-architecture-complete.md +649 -0
  11. package/ai/02-playbooks/llm-evaluation-playbook.md +847 -0
  12. package/ai/03-checklists/ai-project-checklist.md +215 -0
  13. package/ai/04-antipatterns/ai-antipatterns.md +661 -0
  14. package/ai/05-cases/case-rag-production.md +147 -0
  15. package/ai/06-glossary/ai-glossary.md +162 -0
  16. package/ai/agent-evaluation-benchmark.md +53 -0
  17. package/ai/ai-agent-memory-context-management.md +41 -0
  18. package/ai/ai-cost-capacity-optimization-playbook.md +42 -0
  19. package/ai/ai-data-security-and-compliance-playbook.md +37 -0
  20. package/ai/ai-domain-index-and-checklist.md +40 -0
  21. package/ai/ai-governance-maturity-model.md +50 -0
  22. package/ai/ai-model-selection-and-routing-strategy.md +47 -0
  23. package/ai/ai-observability-and-oncall-runbook.md +52 -0
  24. package/ai/ai-rag-engineering-playbook.md +42 -0
  25. package/ai/ai-red-team-and-safety-evaluation.md +42 -0
  26. package/ai/ai-release-readiness-and-rollback-gate.md +42 -0
  27. package/ai/llm-agent-engineering-deep-dive.md +57 -0
  28. package/ai/prompt-and-tool-guardrails.md +52 -0
  29. package/api/01-standards/enterprise-api-standards.md +198 -0
  30. package/api/01-standards/rest-api-design-guide.md +63 -0
  31. package/api/02-playbooks/api-pagination-playbook.md +93 -0
  32. package/api/02-playbooks/graphql-production-playbook.md +176 -0
  33. package/api/03-checklists/api-review-checklist.md +55 -0
  34. package/api/04-antipatterns/api-antipatterns.md +112 -0
  35. package/architecture/01-standards/api-gateway-patterns.md +496 -0
  36. package/architecture/01-standards/cloud-native-patterns.md +644 -0
  37. package/architecture/01-standards/distributed-systems-patterns.md +591 -0
  38. package/architecture/01-standards/event-driven-architecture.md +595 -0
  39. package/architecture/01-standards/microservices-patterns-complete.md +968 -0
  40. package/architecture/01-standards/microservices-patterns.md +495 -0
  41. package/architecture/01-standards/system-design-interview.md +664 -0
  42. package/architecture/02-playbooks/microservices-patterns-playbook.md +137 -0
  43. package/architecture/02-playbooks/migration-playbook.md +780 -0
  44. package/architecture/02-playbooks/system-design-playbook.md +779 -0
  45. package/architecture/03-checklists/architecture-decision-checklist.md +297 -0
  46. package/architecture/04-antipatterns/architecture-antipatterns.md +417 -0
  47. package/architecture/05-cases/case-netflix-microservices.md +413 -0
  48. package/architecture/06-glossary/architecture-glossary.md +164 -0
  49. package/architecture/adr-template-and-examples.md +38 -0
  50. package/architecture/api-gateway-deep-dive.md +1291 -0
  51. package/architecture/configuration-management.md +1162 -0
  52. package/architecture/distributed-transactions.md +1220 -0
  53. package/architecture/microservices-complete.md +735 -0
  54. package/architecture/resilience-and-disaster-patterns.md +37 -0
  55. package/architecture/service-governance.md +1198 -0
  56. package/architecture/system-architecture-deep-dive.md +37 -0
  57. package/backend/01-standards/analytics-and-growth.md +65 -0
  58. package/backend/01-standards/api-and-error-conventions.md +120 -0
  59. package/backend/01-standards/application-layering-and-packaging.md +160 -0
  60. package/backend/01-standards/auth-implementation.md +104 -0
  61. package/backend/01-standards/backend-framework-idioms.md +74 -0
  62. package/backend/01-standards/background-jobs-and-async.md +66 -0
  63. package/backend/01-standards/caching-strategies-complete.md +390 -0
  64. package/backend/01-standards/config-and-observability.md +77 -0
  65. package/backend/01-standards/data-modeling-and-persistence.md +94 -0
  66. package/backend/01-standards/django-complete.md +1765 -0
  67. package/backend/01-standards/email-and-notifications.md +64 -0
  68. package/backend/01-standards/fastapi-complete.md +925 -0
  69. package/backend/01-standards/file-upload-and-storage.md +66 -0
  70. package/backend/01-standards/graphql-api-complete.md +416 -0
  71. package/backend/01-standards/llm-application-standard.md +78 -0
  72. package/backend/01-standards/message-queue-patterns.md +379 -0
  73. package/backend/01-standards/microservices-and-distributed.md +78 -0
  74. package/backend/01-standards/nestjs-complete.md +2167 -0
  75. package/backend/01-standards/payment-integration.md +80 -0
  76. package/backend/01-standards/rate-limiting-complete.md +451 -0
  77. package/backend/01-standards/realtime-and-websocket.md +65 -0
  78. package/backend/01-standards/search-and-filtering.md +64 -0
  79. package/backend/01-standards/spring-boot-complete.md +445 -0
  80. package/backend/02-playbooks/api-design-playbook.md +718 -0
  81. package/backend/02-playbooks/email-send-playbook.md +130 -0
  82. package/backend/02-playbooks/file-upload-s3-playbook.md +153 -0
  83. package/backend/02-playbooks/typescript-enterprise-playbook.md +133 -0
  84. package/backend/02-playbooks/websocket-realtime-playbook.md +154 -0
  85. package/backend/03-checklists/api-launch-checklist.md +189 -0
  86. package/backend/04-antipatterns/backend-antipatterns.md +1051 -0
  87. package/blockchain/01-standards/blockchain-basics.md +557 -0
  88. package/blockchain/01-standards/smart-contract-development.md +1315 -0
  89. package/cicd/01-standards/deployment-and-delivery-standard.md +96 -0
  90. package/cicd/01-standards/github-actions-complete.md +473 -0
  91. package/cicd/01-standards/release-and-store-submission.md +75 -0
  92. package/cicd/02-playbooks/cicd-pipeline-playbook.md +144 -0
  93. package/cicd/02-playbooks/release-management-playbook.md +605 -0
  94. package/cicd/03-checklists/pipeline-security-checklist.md +168 -0
  95. package/cicd/04-antipatterns/cicd-antipatterns.md +589 -0
  96. package/cicd/05-cases/case-deployment-automation.md +221 -0
  97. package/cicd/05-cases/case-gitops-transformation.md +212 -0
  98. package/cicd/06-glossary/cicd-glossary.md +114 -0
  99. package/cicd/cicd-blueprint-deep-dive.md +38 -0
  100. package/cicd/release-readiness-gate.md +37 -0
  101. package/cloud-native/01-standards/container-security.md +741 -0
  102. package/cloud-native/01-standards/kubernetes-complete.md +812 -0
  103. package/cloud-native/02-playbooks/api-gateway-playbook.md +155 -0
  104. package/cloud-native/02-playbooks/gitops-with-argocd.md +760 -0
  105. package/cloud-native/02-playbooks/k8s-troubleshooting-playbook.md +1942 -0
  106. package/cloud-native/02-playbooks/message-queue-playbook.md +129 -0
  107. package/cloud-native/02-playbooks/multicloud-governance.md +726 -0
  108. package/cloud-native/02-playbooks/serverless-patterns.md +788 -0
  109. package/cloud-native/02-playbooks/service-mesh-playbook.md +612 -0
  110. package/cloud-native/02-playbooks/terraform-iac-playbook.md +143 -0
  111. package/cloud-native/03-checklists/container-security-checklist.md +431 -0
  112. package/cloud-native/03-checklists/k8s-production-readiness-checklist.md +460 -0
  113. package/cloud-native/04-antipatterns/container-antipatterns.md +660 -0
  114. package/cloud-native/04-antipatterns/k8s-antipatterns.md +743 -0
  115. package/cloud-native/05-cases/case-k8s-migration.md +478 -0
  116. package/cloud-native/05-cases/case-k8s-scaling.md +642 -0
  117. package/cloud-native/05-cases/case-k8s-security-incident.md +397 -0
  118. package/cloud-native/06-glossary/cloud-native-glossary.md +337 -0
  119. package/cross-platform/01-standards/cross-platform-frameworks.md +83 -0
  120. package/cross-platform/01-standards/platform-selection-and-architecture.md +77 -0
  121. package/data/01-standards/elasticsearch-complete.md +2098 -0
  122. package/data/01-standards/postgresql-complete.md +1613 -0
  123. package/data/01-standards/redis-complete.md +1527 -0
  124. package/data/02-playbooks/database-optimization-playbook.md +403 -0
  125. package/data/02-playbooks/elasticsearch-production-playbook.md +132 -0
  126. package/data/03-checklists/database-launch-checklist.md +187 -0
  127. package/data/04-antipatterns/database-antipatterns.md +873 -0
  128. package/data/05-cases/case-database-migration.md +310 -0
  129. package/data/06-glossary/database-glossary.md +440 -0
  130. package/data/data-governance-and-modeling-deep-dive.md +39 -0
  131. package/data-engineering/01-standards/airflow-complete.md +523 -0
  132. package/data-engineering/01-standards/kafka-complete.md +1521 -0
  133. package/data-engineering/02-playbooks/spark-etl-playbook.md +496 -0
  134. package/data-engineering/03-checklists/pipeline-launch-checklist.md +194 -0
  135. package/data-engineering/04-antipatterns/data-pipeline-antipatterns.md +684 -0
  136. package/data-engineering/05-cases/case-real-time-pipeline.md +355 -0
  137. package/data-engineering/06-glossary/data-engineering-glossary.md +429 -0
  138. package/database/01-standards/database-schema-standards.md +147 -0
  139. package/database/02-playbooks/postgresql-optimization-quick.md +52 -0
  140. package/database/02-playbooks/postgresql-performance-optimization.md +58 -0
  141. package/database/02-playbooks/postgresql-production-playbook.md +146 -0
  142. package/database/02-playbooks/redis-caching-playbook.md +117 -0
  143. package/database/03-checklists/database-review-checklist.md +50 -0
  144. package/database/04-antipatterns/database-antipatterns.md +112 -0
  145. package/design/01-standards/ui-design-system-complete.md +423 -0
  146. package/design/02-playbooks/design-handoff-playbook.md +254 -0
  147. package/design/02-playbooks/design-review-playbook.md +388 -0
  148. package/design/03-checklists/design-review-checklist.md +246 -0
  149. package/design/04-antipatterns/design-antipatterns.md +378 -0
  150. package/design/05-cases/case-design-system-adoption.md +328 -0
  151. package/design/06-glossary/design-glossary.md +329 -0
  152. package/design/ui-full-lifecycle-cross-platform-playbook.md +571 -0
  153. package/design/ux-system-deep-dive.md +38 -0
  154. package/design-systems/00-craft-rules.md +71 -0
  155. package/design-systems/aesthetic-families.md +43 -0
  156. package/design-systems/anti-ai-slop.md +162 -0
  157. package/design-systems/bold-geometric.md +120 -0
  158. package/design-systems/brutalist-bold.md +103 -0
  159. package/design-systems/editorial-clean.md +109 -0
  160. package/design-systems/glass-aurora.md +108 -0
  161. package/design-systems/modern-minimal.md +145 -0
  162. package/design-systems/premium-luxury.md +106 -0
  163. package/design-systems/product-type-design-map.md +48 -0
  164. package/design-systems/soft-warm.md +123 -0
  165. package/design-systems/tech-utility.md +113 -0
  166. package/desktop/01-standards/desktop-app-standard.md +72 -0
  167. package/desktop/01-standards/desktop-design.md +71 -0
  168. package/development/00-governance/document-template.md +41 -0
  169. package/development/01-standards/api-versioning-strategies.md +432 -0
  170. package/development/01-standards/authentication-patterns-complete.md +479 -0
  171. package/development/01-standards/css-architecture-complete.md +550 -0
  172. package/development/01-standards/database-migration-strategies.md +484 -0
  173. package/development/01-standards/elasticsearch-complete.md +347 -0
  174. package/development/01-standards/git-complete.md +371 -0
  175. package/development/01-standards/golang-complete.md +1565 -0
  176. package/development/01-standards/graphql-complete.md +298 -0
  177. package/development/01-standards/javascript-bundlers-complete.md +469 -0
  178. package/development/01-standards/javascript-typescript-complete.md +528 -0
  179. package/development/01-standards/jest-complete.md +275 -0
  180. package/development/01-standards/linux-complete.md +234 -0
  181. package/development/01-standards/logging-observability-complete.md +526 -0
  182. package/development/01-standards/microservices-communication.md +502 -0
  183. package/development/01-standards/mongodb-complete.md +406 -0
  184. package/development/01-standards/oauth2-complete.md +285 -0
  185. package/development/01-standards/performance-optimization-complete.md +289 -0
  186. package/development/01-standards/playwright-complete.md +247 -0
  187. package/development/01-standards/postgresql-complete.md +456 -0
  188. package/development/01-standards/pytest-complete.md +340 -0
  189. package/development/01-standards/python-async-programming.md +902 -0
  190. package/development/01-standards/python-complete.md +956 -0
  191. package/development/01-standards/python-decorators-complete.md +799 -0
  192. package/development/01-standards/python-design-patterns.md +2854 -0
  193. package/development/01-standards/python-packaging-distribution.md +420 -0
  194. package/development/01-standards/python-testing-strategies.md +607 -0
  195. package/development/01-standards/python-web-frameworks-comparison.md +471 -0
  196. package/development/01-standards/redis-complete.md +317 -0
  197. package/development/01-standards/rest-api-complete.md +316 -0
  198. package/development/01-standards/rust-complete.md +578 -0
  199. package/development/01-standards/typescript-advanced-types.md +1513 -0
  200. package/development/01-standards/web-security-complete.md +292 -0
  201. package/development/02-playbooks/api-design-playbook.md +810 -0
  202. package/development/02-playbooks/database-migration-playbook.md +580 -0
  203. package/development/02-playbooks/debugging-playbook.md +692 -0
  204. package/development/02-playbooks/feature-delivery-playbook.md +430 -0
  205. package/development/02-playbooks/incident-hotfix-playbook.md +387 -0
  206. package/development/02-playbooks/performance-optimization-playbook.md +531 -0
  207. package/development/02-playbooks/performance-tuning-playbook.md +652 -0
  208. package/development/02-playbooks/refactor-playbook.md +403 -0
  209. package/development/02-playbooks/release-playbook.md +469 -0
  210. package/development/03-checklists/architecture-review-checklist.md +168 -0
  211. package/development/03-checklists/data-migration-checklist.md +157 -0
  212. package/development/03-checklists/oncall-handover-checklist.md +173 -0
  213. package/development/03-checklists/pr-checklist.md +158 -0
  214. package/development/03-checklists/production-readiness-checklist.md +190 -0
  215. package/development/03-checklists/release-readiness-checklist.md +154 -0
  216. package/development/03-checklists/security-review-checklist.md +182 -0
  217. package/development/04-antipatterns/api-antipatterns.md +657 -0
  218. package/development/04-antipatterns/architecture-antipatterns.md +686 -0
  219. package/development/04-antipatterns/backend-antipatterns.md +648 -0
  220. package/development/04-antipatterns/cicd-antipatterns.md +540 -0
  221. package/development/04-antipatterns/code-smell-antipatterns.md +571 -0
  222. package/development/04-antipatterns/data-antipatterns.md +658 -0
  223. package/development/04-antipatterns/database-antipatterns.md +578 -0
  224. package/development/04-antipatterns/frontend-antipatterns.md +635 -0
  225. package/development/04-antipatterns/reliability-antipatterns.md +700 -0
  226. package/development/04-antipatterns/security-antipatterns.md +747 -0
  227. package/development/05-cases/case-api-version-migration.md +428 -0
  228. package/development/05-cases/case-authorization-hardening.md +383 -0
  229. package/development/05-cases/case-bluegreen-rollback.md +466 -0
  230. package/development/05-cases/case-cache-snowball-protection.md +485 -0
  231. package/development/05-cases/case-ci-cd-pipeline.md +544 -0
  232. package/development/05-cases/case-database-scaling.md +500 -0
  233. package/development/05-cases/case-db-hotspot-optimization.md +487 -0
  234. package/development/05-cases/case-incident-mttr-reduction.md +563 -0
  235. package/development/05-cases/case-microservice-migration.md +375 -0
  236. package/development/05-cases/case-performance-optimization.md +406 -0
  237. package/development/05-cases/case-security-incident-response.md +345 -0
  238. package/development/06-glossary/full-stack-glossary.md +166 -0
  239. package/development/09-maturity/quarterly-audit-template.md +35 -0
  240. package/development/11-ui-excellence/ui-aesthetic-system.md +41 -0
  241. package/development/11-ui-excellence/ui-engineering-excellence.md +435 -0
  242. package/development/12-scenarios/development-scenarios-guide.md +565 -0
  243. package/development/13-implementation-assets/implementation-toolkit.md +282 -0
  244. package/development/13-implementation-assets/knowledge-gates-execution.md +43 -0
  245. package/development/14-full-lifecycle/software-lifecycle-gates.md +511 -0
  246. package/development/15-lifecycle-templates/project-templates-collection.md +791 -0
  247. package/development/api-contract-and-versioning-guide.md +36 -0
  248. package/development/api-governance-complete.md +43 -0
  249. package/development/backend-engineering-complete.md +43 -0
  250. package/development/code-review-quality-complete.md +43 -0
  251. package/development/concurrency-reliability-complete.md +43 -0
  252. package/development/database-engineering-complete.md +43 -0
  253. package/development/engineering-effectiveness-complete.md +43 -0
  254. package/development/engineering-standards-deep-dive.md +38 -0
  255. package/development/frontend-engineering-complete.md +43 -0
  256. package/development/performance-capacity-complete.md +43 -0
  257. package/development/refactor-migration-complete.md +42 -0
  258. package/development/refactoring-and-techdebt-playbook.md +37 -0
  259. package/development/security-in-development-complete.md +43 -0
  260. package/devops/01-standards/cicd-pipeline-complete.md +262 -0
  261. package/devops/01-standards/docker-complete.md +1490 -0
  262. package/devops/01-standards/github-actions-complete.md +337 -0
  263. package/devops/01-standards/kubernetes-complete.md +638 -0
  264. package/devops/01-standards/terraform-complete.md +2117 -0
  265. package/devops/02-playbooks/docker-compose-playbook.md +233 -0
  266. package/devops/02-playbooks/docker-k8s-production-playbook.md +186 -0
  267. package/devops/02-playbooks/docker-production-playbook.md +952 -0
  268. package/edge-iot/01-standards/edge-iot-complete.md +473 -0
  269. package/experts/architect/api-design.md +178 -0
  270. package/experts/architect/methodology.md +124 -0
  271. package/experts/architect/security.md +75 -0
  272. package/experts/backend-lead/methodology.md +216 -0
  273. package/experts/devops/methodology.md +160 -0
  274. package/experts/frontend-lead/methodology.md +178 -0
  275. package/experts/product-manager/industry/ecommerce.md +43 -0
  276. package/experts/product-manager/industry/saas.md +40 -0
  277. package/experts/product-manager/methodology.md +97 -0
  278. package/experts/qa-lead/methodology.md +123 -0
  279. package/experts/qa-lead/test-strategy.md +128 -0
  280. package/experts/uiux-designer/methodology.md +125 -0
  281. package/frontend/01-standards/accessibility-complete.md +532 -0
  282. package/frontend/01-standards/accessibility-standard.md +74 -0
  283. package/frontend/01-standards/admin-dashboard-and-crud.md +72 -0
  284. package/frontend/01-standards/design-tokens-complete.md +444 -0
  285. package/frontend/01-standards/forms-and-validation.md +77 -0
  286. package/frontend/01-standards/frontend-architecture-and-layering.md +119 -0
  287. package/frontend/01-standards/i18n-and-localization.md +65 -0
  288. package/frontend/01-standards/nextjs-complete.md +451 -0
  289. package/frontend/01-standards/react-complete.md +713 -0
  290. package/frontend/01-standards/react-hooks-complete-guide.md +1100 -0
  291. package/frontend/01-standards/react-hooks-complete.md +1171 -0
  292. package/frontend/01-standards/seo-and-web-vitals.md +77 -0
  293. package/frontend/01-standards/state-management-complete.md +444 -0
  294. package/frontend/01-standards/vue-complete.md +499 -0
  295. package/frontend/01-standards/vue3-complete.md +2002 -0
  296. package/frontend/01-standards/web-framework-best-practices.md +64 -0
  297. package/frontend/01-standards/web-performance-complete.md +495 -0
  298. package/frontend/02-playbooks/accessibility-a11y-playbook.md +161 -0
  299. package/frontend/02-playbooks/frontend-performance-playbook.md +707 -0
  300. package/frontend/02-playbooks/i18n-internationalization-playbook.md +120 -0
  301. package/frontend/02-playbooks/performance-optimization-playbook.md +163 -0
  302. package/frontend/02-playbooks/react-nextjs-production-playbook.md +167 -0
  303. package/frontend/02-playbooks/react-state-management-playbook.md +173 -0
  304. package/frontend/03-checklists/component-quality-checklist.md +166 -0
  305. package/frontend/03-checklists/frontend-launch-checklist.md +299 -0
  306. package/frontend/04-antipatterns/frontend-antipatterns.md +886 -0
  307. package/frontend/05-cases/case-performance-optimization.md +274 -0
  308. package/harmony/01-standards/harmonyos-arkts-standard.md +75 -0
  309. package/harmony/01-standards/harmonyos-design.md +65 -0
  310. package/high-quality-engineering-playbook.md +54 -0
  311. package/incident/01-standards/incident-response-complete.md +303 -0
  312. package/incident/02-playbooks/chaos-engineering-playbook.md +883 -0
  313. package/incident/02-playbooks/postmortem-playbook.md +398 -0
  314. package/incident/03-checklists/incident-readiness-checklist.md +181 -0
  315. package/incident/04-antipatterns/incident-antipatterns.md +490 -0
  316. package/incident/05-cases/case-cascade-failure.md +176 -0
  317. package/incident/06-glossary/incident-glossary.md +114 -0
  318. package/incident/postmortem-and-response-deep-dive.md +39 -0
  319. package/industries/ecommerce/ecommerce-complete.md +631 -0
  320. package/industries/education/education-complete.md +555 -0
  321. package/industries/fintech/fintech-complete.md +501 -0
  322. package/industries/gaming/gaming-complete.md +587 -0
  323. package/industries/healthcare/healthcare-complete.md +452 -0
  324. package/low-code/01-standards/low-code-complete.md +944 -0
  325. package/miniprogram/01-standards/ai-common-mistakes.md +61 -0
  326. package/miniprogram/01-standards/miniprogram-custom-navbar-capsule.md +77 -0
  327. package/miniprogram/01-standards/miniprogram-design.md +61 -0
  328. package/miniprogram/01-standards/miniprogram-standard.md +81 -0
  329. package/mobile/01-standards/android-material-design.md +70 -0
  330. package/mobile/01-standards/flutter-complete.md +384 -0
  331. package/mobile/01-standards/ios-design-hig.md +78 -0
  332. package/mobile/01-standards/mobile-app-standard.md +85 -0
  333. package/mobile/01-standards/react-native-complete.md +352 -0
  334. package/mobile/02-playbooks/mobile-cross-platform-playbook.md +175 -0
  335. package/mobile/02-playbooks/mobile-performance.md +473 -0
  336. package/mobile/03-checklists/mobile-release-checklist.md +234 -0
  337. package/mobile/04-antipatterns/mobile-antipatterns.md +798 -0
  338. package/mobile/05-cases/case-app-performance.md +500 -0
  339. package/mobile/05-cases/case-app-startup-optimization.md +218 -0
  340. package/mobile/06-glossary/mobile-glossary.md +484 -0
  341. package/observability/01-standards/observability-standards.md +103 -0
  342. package/observability/02-playbooks/prometheus-grafana-playbook.md +135 -0
  343. package/observability/02-playbooks/structured-logging-playbook.md +73 -0
  344. package/observability/03-checklists/observability-checklist.md +54 -0
  345. package/observability/04-antipatterns/observability-antipatterns.md +106 -0
  346. package/operations/01-standards/prometheus-monitoring-complete.md +1578 -0
  347. package/operations/02-playbooks/capacity-planning-playbook.md +620 -0
  348. package/operations/03-checklists/production-launch-checklist.md +365 -0
  349. package/operations/04-antipatterns/operations-antipatterns.md +664 -0
  350. package/operations/05-cases/case-sre-practices.md +581 -0
  351. package/operations/06-glossary/operations-glossary.md +120 -0
  352. package/operations/aiops-anomaly-detection.md +758 -0
  353. package/operations/capacity-planning.md +1061 -0
  354. package/operations/chaos-engineering.md +659 -0
  355. package/operations/incident-command-system.md +38 -0
  356. package/operations/observability-complete.md +442 -0
  357. package/operations/slo-sli-playbook.md +517 -0
  358. package/operations/sre-operations-deep-dive.md +39 -0
  359. package/package.json +8 -0
  360. package/performance/01-standards/performance-and-scalability.md +80 -0
  361. package/performance/01-standards/performance-standards.md +156 -0
  362. package/performance/02-playbooks/query-optimization-playbook.md +103 -0
  363. package/performance/03-checklists/performance-checklist.md +56 -0
  364. package/performance/04-antipatterns/performance-antipatterns.md +146 -0
  365. package/product/01-standards/product-management-complete.md +285 -0
  366. package/product/02-playbooks/feature-launch-playbook.md +207 -0
  367. package/product/02-playbooks/user-research-playbook.md +532 -0
  368. package/product/03-checklists/feature-launch-checklist.md +275 -0
  369. package/product/04-antipatterns/product-antipatterns.md +355 -0
  370. package/product/05-cases/case-mvp-to-scale.md +384 -0
  371. package/product/06-glossary/product-glossary.md +462 -0
  372. package/product/feature-prioritization-framework.md +40 -0
  373. package/product/kpi-and-metric-tree.md +37 -0
  374. package/product/product-discovery-and-prd-deep-dive.md +41 -0
  375. package/quantum/01-standards/quantum-complete.md +1186 -0
  376. package/security/01-standards/api-security-complete.md +511 -0
  377. package/security/01-standards/container-runtime-security.md +574 -0
  378. package/security/01-standards/data-protection-gdpr.md +543 -0
  379. package/security/01-standards/owasp-top10-complete.md +1890 -0
  380. package/security/01-standards/secure-coding-baseline.md +90 -0
  381. package/security/01-standards/supply-chain-security.md +441 -0
  382. package/security/01-standards/web-security-checklist.md +108 -0
  383. package/security/01-standards/zero-trust-architecture.md +521 -0
  384. package/security/02-playbooks/auth-sso-playbook.md +166 -0
  385. package/security/02-playbooks/incident-response-security-playbook.md +588 -0
  386. package/security/02-playbooks/owasp-api-security-playbook.md +129 -0
  387. package/security/02-playbooks/payment-integration-playbook.md +119 -0
  388. package/security/02-playbooks/penetration-testing-playbook.md +517 -0
  389. package/security/03-checklists/security-audit-checklist.md +356 -0
  390. package/security/04-antipatterns/security-coding-antipatterns.md +580 -0
  391. package/security/05-cases/case-log4shell-incident.md +537 -0
  392. package/security/05-cases/case-major-breaches.md +468 -0
  393. package/security/06-glossary/security-glossary.md +212 -0
  394. package/security/compliance-automation.md +993 -0
  395. package/security/container-security.md +680 -0
  396. package/security/devsecops-complete.md +426 -0
  397. package/security/sast-dast-sca.md +775 -0
  398. package/security/secrets-management.md +594 -0
  399. package/security/security-architecture-deep-dive.md +37 -0
  400. package/security/threat-modeling-stride-playbook.md +40 -0
  401. package/seed-templates/auth-system.md +59 -0
  402. package/seed-templates/blog-content.md +94 -0
  403. package/seed-templates/dashboard.md +89 -0
  404. package/seed-templates/docs-site.md +73 -0
  405. package/seed-templates/e-commerce.md +50 -0
  406. package/seed-templates/saas-landing.md +92 -0
  407. package/seed-templates/settings-page.md +51 -0
  408. package/testing/01-standards/test-strategy-and-layering.md +83 -0
  409. package/testing/01-standards/testing-strategy-complete.md +422 -0
  410. package/testing/01-standards/unit-testing-best-practices.md +118 -0
  411. package/testing/02-playbooks/e2e-testing-playbook.md +988 -0
  412. package/testing/02-playbooks/testing-strategy-playbook.md +126 -0
  413. package/testing/03-checklists/test-strategy-checklist.md +208 -0
  414. package/testing/04-antipatterns/testing-antipatterns.md +718 -0
  415. package/testing/05-cases/case-testing-transformation.md +300 -0
  416. package/testing/06-glossary/testing-glossary.md +110 -0
  417. package/testing/risk-based-test-matrix.md +36 -0
  418. package/testing/testing-strategy-deep-dive.md +37 -0
@@ -0,0 +1,145 @@
1
+ ---
2
+ id: modern-minimal
3
+ title: Modern Minimal
4
+ domain: design-systems
5
+ category: modern-minimal.md
6
+ difficulty: intermediate
7
+ tags: [borders, color, component, design-systems, minimal, modern, palette, patterns]
8
+ quality_score: 70
9
+ last_updated: 2026-06-15
10
+ ---
11
+ # Modern Minimal
12
+
13
+ > Precise, geometric, whitespace-first. Inspired by Linear, Vercel, Raycast.
14
+
15
+ ## When to use
16
+
17
+ SaaS products, developer tools, dashboards, productivity apps. Products where information density matters but visual noise must stay low.
18
+
19
+ ## Color palette
20
+
21
+ ```css
22
+ :root {
23
+ /* Surface */
24
+ --color-bg: #fafafa;
25
+ --color-surface: #ffffff;
26
+ --color-surface-elevated: #ffffff;
27
+ --color-surface-sunken: #f4f4f5;
28
+
29
+ /* Text */
30
+ --color-text: #18181b;
31
+ --color-text-secondary: #71717a;
32
+ --color-text-tertiary: #a1a1aa;
33
+
34
+ /* Brand */
35
+ --color-primary: #2563eb;
36
+ --color-primary-hover: #1d4ed8;
37
+ --color-primary-muted: #dbeafe;
38
+
39
+ /* Accent */
40
+ --color-accent: #8b5cf6;
41
+
42
+ /* Status */
43
+ --color-success: #22c55e;
44
+ --color-warning: #f59e0b;
45
+ --color-error: #ef4444;
46
+
47
+ /* Border */
48
+ --color-border: #e4e4e7;
49
+ --color-border-hover: #d4d4d8;
50
+ --color-border-focus: #2563eb;
51
+
52
+ /* Shadow */
53
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
54
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
55
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.04);
56
+ }
57
+
58
+ @media (prefers-color-scheme: dark) {
59
+ :root {
60
+ --color-bg: #09090b;
61
+ --color-surface: #18181b;
62
+ --color-surface-elevated: #27272a;
63
+ --color-surface-sunken: #09090b;
64
+ --color-text: #fafafa;
65
+ --color-text-secondary: #a1a1aa;
66
+ --color-text-tertiary: #71717a;
67
+ --color-primary-muted: #1e3a5f;
68
+ --color-border: #27272a;
69
+ --color-border-hover: #3f3f46;
70
+ --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
71
+ --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4);
72
+ --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.5);
73
+ }
74
+ }
75
+ ```
76
+
77
+ ## Typography
78
+
79
+ - **Headings**: `Inter, -apple-system, BlinkMacSystemFont, sans-serif`, weight 600
80
+ - **Body**: `Inter, -apple-system, BlinkMacSystemFont, sans-serif`, weight 400
81
+ - **Code**: `JetBrains Mono, Menlo, monospace`, weight 400
82
+
83
+ | Level | Size | Weight | Line-height | Letter-spacing | Use |
84
+ |---|---|---|---|---|---|
85
+ | h1 | 2.25rem (36px) | 700 | 1.2 | -0.025em | Page title |
86
+ | h2 | 1.5rem (24px) | 600 | 1.3 | -0.02em | Section header |
87
+ | h3 | 1.25rem (20px) | 600 | 1.4 | -0.015em | Card title |
88
+ | body-lg | 1.125rem (18px) | 400 | 1.6 | 0 | Hero subtitle |
89
+ | body | 1rem (16px) | 400 | 1.5 | 0 | Default text |
90
+ | body-sm | 0.875rem (14px) | 400 | 1.5 | 0 | Secondary text |
91
+ | caption | 0.75rem (12px) | 500 | 1.4 | 0.02em | Labels, badges |
92
+
93
+ ## Spacing
94
+
95
+ 4px base grid: `4 / 8 / 12 / 16 / 20 / 24 / 32 / 40 / 48 / 64 / 80 / 96`
96
+
97
+ ## Borders & radius
98
+
99
+ - Default radius: `8px`
100
+ - Small radius: `6px` (badges, tags)
101
+ - Large radius: `12px` (cards, modals)
102
+ - Full radius: `9999px` (pills, avatars)
103
+ - Border width: `1px`
104
+
105
+ ## Component patterns
106
+
107
+ ### Buttons
108
+ - Primary: `bg-primary text-white`, hover darkens 10%, active darkens 15%, disabled opacity 0.5
109
+ - Secondary: `bg-transparent border-default text-primary`, hover bg-surface-sunken
110
+ - Ghost: no border, hover bg-surface-sunken
111
+ - Height: 36px (sm), 40px (md), 44px (lg)
112
+ - Padding: 12px horizontal (sm), 16px (md), 20px (lg)
113
+ - Font: body-sm weight 500
114
+
115
+ ### Cards
116
+ - `bg-surface border-default radius-lg shadow-sm`
117
+ - Hover: `shadow-md border-hover`
118
+ - Padding: 20px (compact), 24px (default)
119
+
120
+ ### Inputs
121
+ - Height: 40px
122
+ - `bg-surface border-default radius-md`
123
+ - Focus: `border-focus shadow(0 0 0 3px primary-muted)`
124
+ - Error: `border-error`
125
+
126
+ ## Motion
127
+
128
+ - `--transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1)` — hover, focus
129
+ - `--transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1)` — expand, collapse
130
+ - `--transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1)` — modals, drawers
131
+
132
+ ## Do
133
+
134
+ - Let whitespace do the work. 24-32px between sections minimum.
135
+ - One accent color, used at most 2x per screen.
136
+ - Subtle borders over heavy shadows.
137
+ - Monochrome icons (Lucide stroke width 1.5).
138
+
139
+ ## Don't
140
+
141
+ - Purple/pink gradient hero backgrounds.
142
+ - More than 2 font weights per page.
143
+ - Shadows heavier than `shadow-md` on cards.
144
+ - Icon + text + icon on every row.
145
+ - Rounded everything (keep some sharp edges for contrast).
@@ -0,0 +1,106 @@
1
+ ---
2
+ id: premium-luxury
3
+ title: Premium Luxury
4
+ domain: design-systems
5
+ category: premium-luxury.md
6
+ difficulty: intermediate
7
+ tags: [luxury, premium, refined, elegant, serif, dark, single-accent, generous-space, design-systems, palette, patterns]
8
+ quality_score: 72
9
+ last_updated: 2026-06-19
10
+ last_note: high-end refined aesthetic
11
+ ---
12
+ # Premium Luxury
13
+
14
+ > 高端、精致、克制:近黑底 + 单一精炼金属/宝石色、大量呼吸留白、优雅的衬线/无衬线对比、慢而顺滑的动效。"$150k 机构感"——少即是贵。
15
+
16
+ ## When to use
17
+
18
+ 奢侈品牌、高端金融/私行/财富、汽车/腕表/珠宝、高端 SaaS / 企业旗舰、会员制产品、精品内容。**核心**:克制是奢华的本质——任何"多"都减分。**不适合**:大众消费打折促销、儿童、数据密集后台。
19
+
20
+ ## Color palette
21
+
22
+ ```css
23
+ :root {
24
+ --color-bg: #0b0b0c;
25
+ --color-surface: #131316;
26
+ --color-surface-elevated: #1b1b1f;
27
+ --color-text: #f5f3ef; /* 暖白,非纯白 */
28
+ --color-text-secondary: #b8b3a8;
29
+ --color-text-tertiary: #76726a;
30
+ --color-primary: #c8a96a; /* 单一精炼金 —— 唯一强调,面积极小 */
31
+ --color-primary-hover: #d9bd84;
32
+ --color-accent: #c8a96a; /* 不引入第二强调色 */
33
+ --color-success: #7d9a76;
34
+ --color-error: #b5544e;
35
+ --color-border: #26262b;
36
+ --color-border-accent: rgba(200,169,106,0.4);
37
+ --radius: 4px; /* 极小圆角,克制 */
38
+ --shadow-soft: 0 24px 60px rgba(0,0,0,0.5);
39
+ }
40
+
41
+ @media (prefers-color-scheme: light) {
42
+ :root {
43
+ --color-bg: #faf8f3; /* 暖象牙白(非奶油 AI 米色——靠极低饱和的真象牙 + 金强调区分) */
44
+ --color-surface: #ffffff;
45
+ --color-text: #1a1814;
46
+ --color-text-secondary: #5c574d;
47
+ --color-primary: #9a7b3f; /* 浅底下加深金以保对比 */
48
+ --color-border: #e7e2d6;
49
+ }
50
+ }
51
+ ```
52
+
53
+ ## Typography
54
+
55
+ - **Display / Headlines**: `"Canela", "Ogg", "Tiempos Headline", Georgia, serif`(精致衬线建立高级感)weight 400–500
56
+ - **Body / UI**: `"Söhne", "Suisse Int'l", "Neue Haas Grotesk", system-ui, sans-serif`, weight 400
57
+ - 衬线标题 × 无衬线正文的对比,是奢华版式的标志。
58
+
59
+ | Level | Size | Weight | Line-height | Letter-spacing | Use |
60
+ |---|---|---|---|---|---|
61
+ | display | 4rem (64px) | 400 | 1.05 | -0.01em | Hero(衬线,细 weight 反而更贵) |
62
+ | h1 | 2.5rem (40px) | 500 | 1.15 | -0.005em | Section(衬线) |
63
+ | h2 | 1.5rem (24px) | 500 | 1.25 | 0 | Subsection |
64
+ | body-lg | 1.25rem (20px) | 400 | 1.7 | 0 | Lead(无衬线) |
65
+ | body | 1rem (16px) | 400 | 1.7 | 0 | 正文 |
66
+ | overline | 0.75rem (12px) | 500 | 1.2 | 0.18em | 标签,ALL CAPS,宽字距 |
67
+
68
+ ## Spacing
69
+
70
+ 8px 基,**慷慨**:`8 / 16 / 32 / 64 / 96 / 160 / 240`。Hero 与区块用 160px+ 垂直留白。留白是主角。
71
+
72
+ ## Layout
73
+
74
+ - 大量负空间;少而精的元素;严格对齐与基线网格。
75
+ - 居中或经典栅格皆可,但**密度低**——一屏只讲一件事。
76
+ - 全幅高质量影像(产品/材质特写)配极简文字。
77
+
78
+ ## Component patterns
79
+
80
+ ### Hero
81
+ - 衬线大标题(细 weight)+ 一行副标 + 一个克制的描边/文字按钮(非实心大色块)。
82
+ - 背景:纯深色或极细的材质纹理;金色仅出现在一处。
83
+
84
+ ### Card
85
+ - 极小圆角、`--shadow-soft` 极柔阴影或 1px `--color-border`;可用"双层内描边"(concentric border)增加精工感。
86
+ - hover:极轻微上浮 + 边框转金,动作慢(500-700ms)。
87
+
88
+ ### Button
89
+ - 首选描边/幽灵按钮或细金线;实心仅留给唯一主 CTA。圆角小。
90
+
91
+ ## Motion
92
+
93
+ - `--ease: cubic-bezier(0.32, 0.72, 0, 1)`;时长 **500–700ms**(慢即贵);退场 ≈75%。
94
+ - 入场:缓慢 fade + 轻微上移 + 轻微 blur 收敛;尊重 `prefers-reduced-motion`。
95
+
96
+ ## Do
97
+
98
+ - 单一金/宝石强调色,面积极小(一屏 1-2 处)。
99
+ - 衬线标题 × 无衬线正文;细字重;宽字距 ALL CAPS 标签。
100
+ - 慷慨留白 + 慢动效 + 高质量影像。
101
+
102
+ ## Don't
103
+
104
+ - 多强调色、饱和色、渐变、紫色。
105
+ - 拥挤密集、小留白、廉价的实心大色块按钮。
106
+ - 快/弹跳动效(与"贵"相反);emoji。
@@ -0,0 +1,48 @@
1
+ # 产品类型 → 设计推荐表(concrete palette + 字体对,照抄起步)
2
+
3
+ > 别从空白页开始猜。先按产品类型查这张表拿到**具体起步 token(已做 WCAG 调整)+ 字体对 + 落地结构 + 必避反模式**,再结合所选档位(`anti-ai-slop.md` 的家族)细化。颜色都是语义 token 的起点,不是终点——可调,但要保持一致与对比。
4
+
5
+ ## 用法
6
+ 1. 按需求匹配最接近的产品类型行。
7
+ 2. 取它的 Primary/Accent/Background 作为 `--color-*` token 起点(仍写进 `:root`,组件里用 var)。
8
+ 3. 取字体对作为 display×body(标题/正文对比轴)。
9
+ 4. 落地结构与必避项作为硬约束。
10
+
11
+ ## 推荐表
12
+
13
+ | 产品类型 | 主风格 | Primary | Accent | Background | 字体对(display / body) | 落地结构 | 必避 |
14
+ |---|---|---|---|---|---|---|---|
15
+ | SaaS(通用) | 玻璃+扁平 | `#2563EB` | `#EA580C` | `#F8FAFC` | Geist / Inter | Hero+Features+CTA | 过度动效、默认深色 |
16
+ | 微 SaaS / indie | 扁平+活力 | `#6366F1` | `#059669` | `#F5F3FF` | Space Grotesk / DM Sans | Minimal+Demo | 静态无演示、移动端差 |
17
+ | 电商 | 鲜明块面 | `#059669` | `#EA580C` | `#ECFDF5` | Clash Display / Inter | 商品showcase | 无深度的纯扁平、文字堆砌 |
18
+ | 电商-奢侈 | premium-luxury | `#1C1917` | `#A16207` | `#FAFAF9` | Playfair / Inter | 大图+留白 | 鲜艳/廉价实心按钮 |
19
+ | B2B 服务 | 信任+极简 | `#0F172A` | `#0369A1` | `#F8FAFC` | Söhne / Inter | 信任模块+案例 | 花哨、第二强调色 |
20
+ | 金融仪表盘 | 数据密+深色 | `#0F172A` | `#22C55E` | `#020617` | Inter / Inter | 数据看板 | 涨跌只用色不用符号 |
21
+ | 分析后台 | 数据密+热力 | `#1E40AF` | `#D97706` | `#F8FAFC` | Inter / Inter | 表格+图表 | 小字、gray-on-gray |
22
+ | 医疗健康 | 柔和+可达 | `#0891B2` | `#059669` | `#ECFEFF` | Lora / Raleway | 信任+预约 | AI 紫粉渐变、低对比 |
23
+ | 教育 | claymorphism+微交互 | `#4F46E5` | `#EA580C` | `#EEF2FF` | Fredoka / Nunito | 课程+进度 | 冷峻严肃、密集 |
24
+ | 创意机构 | brutalist-bold+motion | `#0A0A0A` | `#E6FF00` | `#0A0A0A` | Archivo Expanded / Inter Tight | 作品流 | 圆角柔和、居中弱字 |
25
+ | 作品集 | motion+极简 | `#18181B` | `#2563EB` | `#FAFAFA` | Clash Display / Inter | 项目网格 | 千篇一律模板 |
26
+ | 游戏 | 3D+赛博/合成波 | `#7C3AED` | `#F43F5E` | `#0F0F23` | Orbitron / Rajdhani | 沉浸 hero | 平淡无能量 |
27
+ | 金融科技/Crypto | glass-aurora+深色 | `#5E8BFF` | `#36E0C8` | `#07080D` | General Sans / Inter | 实时数据+信任 | 满屏紫渐变、夸大收益 |
28
+ | 约会/社交 | 活力+motion | `#FF4D6D` | `#FF8CC6` | `#FFF0F4` | Cabinet Grotesk / Inter | 卡片流 | 冷淡、低饱和 |
29
+ | 餐饮/美食 | 暖色+motion | `#E2571E` | `#F2B705` | `#FFF8F0` | Recoleta / Inter | 大图诱食 | 冷色、无食物图 |
30
+ | 健身 | 活力+深色 OLED | `#FF6B35` | `#00D4FF` | `#0A0A0A` | Druk / Inter | 强动感 hero | 柔弱、低对比 |
31
+ | 房产 | 玻璃+极简 | `#0077B6` | `#C8A96A` | `#FFFFFF` | Canela / Inter | 大图+地图 | 廉价、密集 |
32
+ | 旅行 | aurora+motion | `#0EA5E9` | `#F59E0B` | `#F0F9FF` | Tiempos / Inter | 目的地大图 | 灰暗无憧憬感 |
33
+ | 音乐流媒体 | 深色 OLED+专辑色 | `#1DB954` | 取自封面 | `#121212` | Inter / Inter | 沉浸播放 | 浅底、低对比 |
34
+ | 开发者工具/IDE | tech-utility/terminal | `#E0E0E0` | `#4AF626` | `#0A0A0A` | Berkeley Mono / Inter | 暗色+蓝焦点 | 花哨、圆润可爱 |
35
+ | AI/大模型产品 | glass-aurora | `#5E8BFF` | `#36E0C8` | `#07080D` | General Sans / Inter | 对话/生成展示 | **`#6366F1` 这种 AI 紫**、满屏渐变 |
36
+
37
+ ## 字体对速查(按气质)
38
+ - 古典优雅(奢侈):Playfair/Canela × Inter
39
+ - 现代专业(SaaS):Geist/Poppins × Inter
40
+ - 科技初创(dev/AI):Space Grotesk/General Sans × DM Sans
41
+ - 极简瑞士(后台):Inter × Inter(密度优先时唯一可用 Inter 的场景)
42
+ - 活泼创意(儿童/教育):Fredoka/Cabinet × Nunito
43
+ - 大胆宣言(机构/文化):Archivo Expanded/Druk × Source Sans
44
+ - 康养平和(健康):Lora × Raleway
45
+ - 编辑经典(出版):Cormorant/Tiempos × Libre Baskerville
46
+
47
+ ---
48
+ **注**:`#6366F1 / #7c3aed / #667eea→#764ba2` 是公认的"AI-slop 紫"——即便做 AI 产品也**别**用它当主色/hero 渐变;用上表的电蓝+青绿(glass-aurora)来表达"AI/未来感"。
@@ -0,0 +1,123 @@
1
+ ---
2
+ id: soft-warm
3
+ title: Soft Warm
4
+ domain: design-systems
5
+ category: soft-warm.md
6
+ difficulty: intermediate
7
+ tags: [borders, color, component, design-systems, palette, patterns, radius, soft]
8
+ quality_score: 70
9
+ last_updated: 2026-06-15
10
+ ---
11
+ # Soft Warm
12
+
13
+ > Rounded, approachable, warm tones. Inspired by Notion, Headspace, Duolingo.
14
+
15
+ ## When to use
16
+
17
+ Consumer apps, education, wellness, onboarding flows, community products. Products where friendliness and accessibility matter more than information density.
18
+
19
+ ## Color palette
20
+
21
+ ```css
22
+ :root {
23
+ --color-bg: #fffbf5;
24
+ --color-surface: #ffffff;
25
+ --color-surface-elevated: #ffffff;
26
+ --color-surface-sunken: #faf5ee;
27
+ --color-text: #37352f;
28
+ --color-text-secondary: #787774;
29
+ --color-text-tertiary: #b4b4b0;
30
+ --color-primary: #eb5757;
31
+ --color-primary-hover: #d94444;
32
+ --color-primary-muted: #fce8e8;
33
+ --color-accent: #4ea8de;
34
+ --color-success: #4dab6f;
35
+ --color-warning: #e9b949;
36
+ --color-error: #eb5757;
37
+ --color-border: #e9e5df;
38
+ --color-border-hover: #ddd9d3;
39
+ --color-border-focus: #eb5757;
40
+ --shadow-sm: 0 1px 4px rgb(55 53 47 / 0.06);
41
+ --shadow-md: 0 4px 16px rgb(55 53 47 / 0.08);
42
+ }
43
+
44
+ @media (prefers-color-scheme: dark) {
45
+ :root {
46
+ --color-bg: #191919;
47
+ --color-surface: #202020;
48
+ --color-surface-sunken: #141414;
49
+ --color-text: #ffffffcf;
50
+ --color-text-secondary: #ffffff80;
51
+ --color-border: #ffffff14;
52
+ }
53
+ }
54
+ ```
55
+
56
+ ## Typography
57
+
58
+ - **Headings**: `"DM Sans", "Nunito", system-ui, sans-serif`, weight 700
59
+ - **Body**: `"DM Sans", "Nunito", system-ui, sans-serif`, weight 400
60
+
61
+ | Level | Size | Weight | Line-height | Use |
62
+ |---|---|---|---|---|
63
+ | h1 | 2rem (32px) | 700 | 1.25 | Page title |
64
+ | h2 | 1.5rem (24px) | 700 | 1.3 | Section header |
65
+ | h3 | 1.125rem (18px) | 600 | 1.4 | Card title |
66
+ | body | 1rem (16px) | 400 | 1.6 | Default text |
67
+ | body-sm | 0.875rem (14px) | 400 | 1.5 | Secondary text |
68
+ | caption | 0.75rem (12px) | 600 | 1.4 | Labels |
69
+
70
+ ## Spacing
71
+
72
+ 4px base: `4 / 8 / 12 / 16 / 24 / 32 / 48 / 64`
73
+
74
+ Generous padding. Cards: 24px minimum. Sections: 48-64px vertical.
75
+
76
+ ## Borders & radius
77
+
78
+ - Default radius: `12px`
79
+ - Small radius: `8px`
80
+ - Large radius: `16px`
81
+ - Full radius: `9999px` (avatars, pills, floating action buttons)
82
+
83
+ ## Component patterns
84
+
85
+ ### Card
86
+ - `bg-surface radius-lg shadow-sm`, 24px padding
87
+ - Hover: translate-y -2px + shadow-md (gentle lift)
88
+ - Colorful left accent stripe (4px, rounded) optional
89
+
90
+ ### Button
91
+ - Primary: `bg-primary text-white radius-full`, 44px height
92
+ - Hover: scale 1.02 + darken 5%
93
+ - Pill-shaped for primary CTAs
94
+
95
+ ### Avatar
96
+ - Circular, border 2px white, pastel background for initials
97
+ - Size: 32px (sm), 40px (md), 56px (lg)
98
+
99
+ ### Toast/notification
100
+ - Rounded, gentle shadow, slide-in from bottom
101
+ - Icon + text, dismiss on swipe
102
+
103
+ ## Motion
104
+
105
+ - `--transition-fast: 180ms cubic-bezier(0.2, 0, 0, 1)` — hover
106
+ - `--transition-normal: 300ms cubic-bezier(0.2, 0, 0, 1)` — expand
107
+ - `--transition-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1)` — celebratory moments
108
+
109
+ ## Do
110
+
111
+ - Rounded everything. 12px+ radius gives warmth.
112
+ - Pastel accent colors for backgrounds (muted tints of primary/accent).
113
+ - Playful micro-interactions (button press scale, check animation).
114
+ - Friendly copy ("You're all set!" not "Operation successful").
115
+ - Illustration style over photography when possible.
116
+
117
+ ## Don't
118
+
119
+ - Sharp corners on interactive elements.
120
+ - Dense data tables (use cards or lists instead).
121
+ - Dark, moody color schemes.
122
+ - Corporate / formal tone in UI copy.
123
+ - Monospace fonts anywhere in the UI.
@@ -0,0 +1,113 @@
1
+ ---
2
+ id: tech-utility
3
+ title: Tech Utility
4
+ domain: design-systems
5
+ category: tech-utility.md
6
+ difficulty: intermediate
7
+ tags: [color, component, design-systems, motion, palette, patterns, spacing, tech]
8
+ quality_score: 70
9
+ last_updated: 2026-06-15
10
+ ---
11
+ # Tech Utility
12
+
13
+ > Dense, monospace accents, dark-mode-native. Inspired by GitHub, Datadog, Grafana.
14
+
15
+ ## When to use
16
+
17
+ CLI companions, code platforms, monitoring dashboards, data tools, developer-facing products. Products where information density is a feature, not a bug.
18
+
19
+ ## Color palette
20
+
21
+ ```css
22
+ :root {
23
+ --color-bg: #0d1117;
24
+ --color-surface: #161b22;
25
+ --color-surface-elevated: #1c2128;
26
+ --color-surface-sunken: #010409;
27
+ --color-text: #e6edf3;
28
+ --color-text-secondary: #8b949e;
29
+ --color-text-tertiary: #6e7681;
30
+ --color-primary: #58a6ff;
31
+ --color-primary-hover: #79c0ff;
32
+ --color-primary-muted: rgba(56, 139, 253, 0.15);
33
+ --color-accent: #bc8cff;
34
+ --color-success: #3fb950;
35
+ --color-warning: #d29922;
36
+ --color-error: #f85149;
37
+ --color-border: #30363d;
38
+ --color-border-hover: #484f58;
39
+ --color-border-focus: #58a6ff;
40
+ --shadow-sm: 0 0 0 1px var(--color-border);
41
+ --shadow-md: 0 3px 12px rgb(1 4 9 / 0.4);
42
+ }
43
+
44
+ @media (prefers-color-scheme: light) {
45
+ :root {
46
+ --color-bg: #ffffff;
47
+ --color-surface: #f6f8fa;
48
+ --color-surface-elevated: #ffffff;
49
+ --color-text: #1f2328;
50
+ --color-text-secondary: #656d76;
51
+ --color-primary: #0969da;
52
+ --color-border: #d0d7de;
53
+ }
54
+ }
55
+ ```
56
+
57
+ ## Typography
58
+
59
+ - **Headings**: `"Inter", -apple-system, sans-serif`, weight 600
60
+ - **Body**: `"Inter", -apple-system, sans-serif`, weight 400
61
+ - **Code / Data**: `"JetBrains Mono", "Fira Code", monospace`, weight 400
62
+
63
+ | Level | Size | Weight | Line-height | Use |
64
+ |---|---|---|---|---|
65
+ | h1 | 1.75rem (28px) | 600 | 1.25 | Page title (compact) |
66
+ | h2 | 1.25rem (20px) | 600 | 1.3 | Section header |
67
+ | h3 | 1rem (16px) | 600 | 1.4 | Panel title |
68
+ | body | 0.875rem (14px) | 400 | 1.5 | Default text |
69
+ | body-sm | 0.8125rem (13px) | 400 | 1.45 | Table cells, metadata |
70
+ | mono | 0.8125rem (13px) | 400 | 1.5 | Code, terminal output |
71
+ | caption | 0.75rem (12px) | 500 | 1.3 | Timestamps, status labels |
72
+
73
+ ## Spacing
74
+
75
+ 4px base: `4 / 8 / 12 / 16 / 24 / 32 / 48`
76
+
77
+ Tighter than other systems. Panels: 16px padding. Gap between panels: 8-12px.
78
+
79
+ ## Component patterns
80
+
81
+ ### Data table
82
+ - Monospace numbers right-aligned, text left-aligned
83
+ - Alternating row bg: transparent / surface-sunken
84
+ - Sticky header, sortable columns (chevron indicator)
85
+ - Compact row height: 36px
86
+
87
+ ### Status badge
88
+ - Dot (8px circle) + label. Colors: success/warning/error/neutral
89
+ - No filled backgrounds — just colored dot + text
90
+
91
+ ### Code block
92
+ - `bg-surface-sunken`, monospace, line numbers in text-tertiary
93
+ - Copy button top-right, language label top-left
94
+
95
+ ## Motion
96
+
97
+ - `--transition-fast: 100ms ease` — everything. Tech UIs should feel instant.
98
+ - Minimal animation. No bounces, no spring physics.
99
+
100
+ ## Do
101
+
102
+ - Smaller base font (14px). Dense but legible.
103
+ - Monospace for any data: timestamps, IDs, metrics, code.
104
+ - Dark mode as the PRIMARY mode (light is the override).
105
+ - Subtle borders over shadows. 1px borders everywhere.
106
+ - Tabular data in actual tables, not cards.
107
+
108
+ ## Don't
109
+
110
+ - Large hero sections with marketing copy.
111
+ - Rounded card corners > 8px (keep it sharp).
112
+ - Colorful illustrations or decorative elements.
113
+ - More than 2 status colors visible at once per panel.
@@ -0,0 +1,72 @@
1
+ ---
2
+ id: desktop-app-standard
3
+ title: 桌面应用开发标准(Windows/macOS/Linux · 商业级)
4
+ domain: desktop
5
+ category: 01-standards
6
+ difficulty: intermediate
7
+ tags: [桌面, desktop, electron, tauri, windows, macos, linux, 主进程, 渲染进程, ipc, 自动更新, 代码签名, 系统集成, 商业级]
8
+ quality_score: 93
9
+ last_updated: 2026-06-19
10
+ ---
11
+
12
+ # 桌面应用开发标准(Windows/macOS/Linux · 商业级)
13
+
14
+ > 桌面 App 要做好进程架构、安全、系统集成、打包签名与多平台差异。"把网页用 Electron 一包"远不够商业级。
15
+
16
+ ## 1. 技术选型
17
+
18
+ - **Tauri**(Rust 后端 + 系统 WebView):包小(几 MB)、内存省、默认更安全。**新项目推荐**。
19
+ - **Electron**(Chromium + Node):生态成熟、一致渲染,但包大(~100MB+)、内存高。需要 Node 生态/特定 Chromium 特性时用。
20
+ - **原生 / 跨平台原生**:重性能/深度系统集成 → 原生(SwiftUI/AppKit、WinUI/WPF)、或 Qt/.NET MAUI/Flutter Desktop。
21
+ - 不要为一个简单工具上 Electron 拖出 100MB+ 包;也不要用 web 技术硬做重图形/底层场景。
22
+
23
+ ## 2. 进程架构与 IPC
24
+
25
+ - **主进程**(系统能力/窗口/生命周期)与**渲染进程/前端**(UI)分离;通过 **IPC** 通信。
26
+ - 渲染层不直接拿系统全权限;系统能力封装在主进程,渲染层经受控 IPC 调用(最小暴露面)。
27
+ - 前端本身仍按前端架构分层(feature/状态/数据访问),系统调用走"桌面能力适配层"。
28
+
29
+ ## 3. 安全(桌面是高权限环境,极重要)
30
+
31
+ - **Electron**:`contextIsolation: true`、`nodeIntegration: false`、用 `preload` + `contextBridge` 暴露**最小** API;开启 CSP;校验/限制 `webContents` 导航与新窗口;不加载不可信远程内容到有 Node 权限的窗口。
32
+ - **Tauri**:用 **allowlist/capabilities** 最小授权,只开用到的系统能力;校验前端→后端命令参数。
33
+ - 不在渲染层执行不可信代码;IPC 入参当不可信处理(校验);密钥不放前端。
34
+ - 自动更新走 **HTTPS + 签名校验**,防中间人投毒。
35
+
36
+ ## 4. 系统集成(桌面体验关键)
37
+
38
+ - 原生菜单(macOS 顶部菜单栏 / Windows 菜单)、托盘(Tray)、系统通知、全局快捷键。
39
+ - 文件系统:打开/保存对话框、拖拽文件、最近文件、关联文件类型。
40
+ - 窗口管理:多窗口、最小化到托盘、记住窗口位置/尺寸、多显示器。
41
+ - 遵循各平台 UI 约定(macOS 与 Windows 的按钮顺序、菜单、快捷键 Cmd vs Ctrl 不同)。
42
+
43
+ ## 5. 打包、签名、分发
44
+
45
+ - 多平台产物:Windows(`.exe/.msi`)、macOS(`.dmg/.pkg`)、Linux(`.AppImage/.deb/.rpm`)。
46
+ - **代码签名**:Windows 代码签名证书、**macOS 签名 + 公证(notarization)**——不签名会被系统拦截/警告,商业必做。
47
+ - **自动更新**(electron-updater / Tauri updater):增量/全量、回滚、签名校验、灰度。
48
+ - 包体优化、启动速度;崩溃监控(Sentry)。
49
+
50
+ ## 6. 离线与数据
51
+
52
+ - 桌面常需离线:本地数据库(SQLite)、本地配置、缓存;联网同步 + 冲突解决。
53
+ - 用户数据存平台标准目录(AppData / Application Support / .config),不要乱放。
54
+
55
+ ## 7. 反模式(出现即不合格)
56
+
57
+ - Electron 开 `nodeIntegration` + 关 `contextIsolation` + 加载远程内容(远程代码可拿系统权限,重大漏洞)。
58
+ - 渲染层直接全权访问系统/文件/shell;IPC 不校验入参。
59
+ - 不做代码签名/公证(用户装不上或报毒);自动更新无签名校验。
60
+ - 用 web 范式忽略原生菜单/快捷键/多平台差异(Cmd vs Ctrl)。
61
+ - 简单工具硬上 Electron 拖出超大包。
62
+
63
+ ## 8. 最低交付 checklist
64
+
65
+ - [ ] 选型合理(优先 Tauri/按需 Electron/原生);主进程与渲染分离 + 最小 IPC。
66
+ - [ ] 安全:Electron(contextIsolation/nodeIntegration off/preload+contextBridge/CSP) 或 Tauri(allowlist 最小授权);IPC 入参校验。
67
+ - [ ] 系统集成:原生菜单/托盘/通知/快捷键/文件对话框/窗口记忆/多显示器,遵循各平台约定。
68
+ - [ ] 多平台打包 + 代码签名 + macOS 公证 + 自动更新(签名校验/回滚)。
69
+ - [ ] 离线数据本地库 + 标准用户目录 + 同步冲突处理 + 崩溃监控。
70
+
71
+ ---
72
+ **参考**:Tauri 安全(allowlist/capabilities)、Electron 安全清单(contextIsolation/preload)、代码签名与公证、各平台桌面 UI 约定、自动更新。
@@ -0,0 +1,71 @@
1
+ ---
2
+ id: desktop-design
3
+ title: 桌面端设计规范(macOS HIG / Windows Fluent · 官方)
4
+ domain: desktop
5
+ category: 01-standards
6
+ difficulty: intermediate
7
+ tags: [桌面, desktop, macos, windows, linux, 设计规范, hig, fluent-design, 菜单栏, 快捷键, 多窗口, 平台约定, 商业级]
8
+ quality_score: 92
9
+ last_updated: 2026-06-19
10
+ ---
11
+
12
+ # 桌面端设计规范(macOS HIG / Windows Fluent · 官方)
13
+
14
+ > 桌面 App 各平台有用户已内化的约定,偏离就产生摩擦。纯底座常把桌面做成"放大的网页",不遵循 macOS/Windows 原生约定。本标准给出各平台桌面设计要点。
15
+
16
+ ## 1. 通用原则
17
+
18
+ - 桌面服务**高级用户**:期望深度键盘控制、持久菜单、可调整的多窗口布局、紧密系统集成。
19
+ - 用户通过反复使用形成心智模型——**遵循平台约定**(菜单、快捷键、按钮顺序),不要无理由自创。
20
+ - 信息密度比移动端高,但仍要清晰层次、留白、对齐。
21
+
22
+ ## 2. macOS(遵循 Apple HIG for Mac)
23
+
24
+ - **必有菜单栏(Menu Bar)**——Mac 命令的主要发现入口。至少包含:**App / File / Edit / View / Window / Help**;非文档型应用可省 File;应用特有菜单放在 Edit 与 View 或 View 与 Window 之间。
25
+ - 标准快捷键:**Cmd** 为修饰键(Cmd+C/V/Z/S/W/Q…),与 Windows 的 Ctrl 不同——不要照搬。
26
+ - 工具栏(Toolbar)、侧边栏(Sidebar) 导航、可调分栏;窗口可缩放、记住尺寸位置;支持全屏、多窗口/标签。
27
+ - 视觉遵循 macOS:系统材质(毛玻璃)、SF 字体、系统控件、浅/深色;遵循 Clarity/Deference/Depth。
28
+ - 系统集成:Dock、菜单栏图标、通知中心、拖放、服务、快捷指令。
29
+
30
+ ## 3. Windows(遵循 Microsoft Fluent Design System)
31
+
32
+ - 遵循 **Fluent Design**:光(Light)、深度、运动、材质(Acrylic/Mica)、缩放比例。
33
+ - **Ctrl** 为修饰键;标准菜单/快捷键;标题栏 + 可选 Ribbon/菜单;右键上下文菜单。
34
+ - 导航:NavigationView(左侧/顶部)、命令栏(CommandBar);适配窗口大小/响应式。
35
+ - 用 WinUI/系统控件,支持浅/深色与系统强调色;DPI 缩放适配;触控+鼠标+键盘多输入。
36
+ - 系统集成:任务栏、系统托盘、通知、跳转列表、文件关联。
37
+
38
+ ## 4. Linux
39
+
40
+ - 遵循目标桌面环境约定(GNOME HIG / KDE HIG);用对应工具包(GTK/Qt)原生控件。
41
+ - 尊重系统主题/暗色、键盘约定;打包多发行版(AppImage/Flatpak/deb/rpm)。
42
+
43
+ ## 5. 跨平台桌面(Electron/Tauri/Flutter 时)
44
+
45
+ - **不要一套 UI 硬套所有平台**:菜单/快捷键/按钮顺序按平台适配(Cmd vs Ctrl、确认/取消按钮顺序 mac 与 win 相反)。
46
+ - 用平台原生菜单 API(非自绘网页菜单);窗口控件(红绿灯 vs 最小化/最大化/关闭)位置按平台。
47
+ - 至少让每个平台"感觉对",而非在所有平台都像 web。
48
+
49
+ ## 6. 通用桌面交互
50
+
51
+ - 键盘:完整快捷键 + Tab 焦点顺序 + 可访问性。
52
+ - 多窗口/标签、拖放、右键上下文菜单、撤销/重做、批量操作。
53
+ - 状态保持(窗口位置、上次会话);空/加载/错误三态;长操作有进度可取消。
54
+
55
+ ## 7. 反模式(出现即不合格 / "像放大的网页")
56
+
57
+ - 桌面无原生菜单栏(尤其 macOS)、无快捷键、不能多窗口/调整大小。
58
+ - 一套 UI 套所有平台(Cmd/Ctrl 不分、按钮顺序不对、网页右键菜单)。
59
+ - 不遵循 macOS HIG / Windows Fluent 视觉与控件;不适配 DPI/暗色/系统强调色。
60
+ - 无拖放/上下文菜单/撤销重做等桌面用户期望;不记住窗口状态。
61
+
62
+ ## 8. 最低交付 checklist
63
+
64
+ - [ ] macOS:原生菜单栏(App/File/Edit/View/Window/Help)+Cmd 快捷键+工具栏/侧边栏+窗口记忆+系统集成。
65
+ - [ ] Windows:Fluent 视觉/材质+Ctrl 快捷键+NavigationView/CommandBar+DPI/暗色/强调色+任务栏/托盘。
66
+ - [ ] Linux:遵循桌面环境 HIG + 原生工具包 + 多发行版打包。
67
+ - [ ] 跨平台:菜单/快捷键/按钮顺序按平台适配,用原生菜单 API。
68
+ - [ ] 键盘全可达 + 多窗口/拖放/上下文菜单/撤销重做 + 窗口状态保持 + 三态。
69
+
70
+ ---
71
+ **参考(官方)**:Apple HIG (macOS)、Microsoft Fluent Design System、GNOME/KDE HIG、各平台键盘与窗口约定。