contextos-agents 1.5.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/.agents/AGENTS.md +421 -0
- package/.agents/adapters/aider/export.js +137 -0
- package/.agents/adapters/claude/export.js +55 -0
- package/.agents/adapters/copilot/export.js +107 -0
- package/.agents/adapters/cursor/export.js +210 -0
- package/.agents/adapters/gemini/export.js +115 -0
- package/.agents/adapters/shared.js +119 -0
- package/.agents/adapters/zed/export.js +111 -0
- package/.agents/core/profiles/backend.yaml +47 -0
- package/.agents/core/profiles/enterprise.yaml +46 -0
- package/.agents/core/profiles/frontend.yaml +46 -0
- package/.agents/core/profiles/hackathon.yaml +45 -0
- package/.agents/core/profiles/mvp.yaml +43 -0
- package/.agents/core/profiles/startup.yaml +48 -0
- package/.agents/core/skills/adapters/EXAMPLES.md +19 -0
- package/.agents/core/skills/adapters/SKILL.md +105 -0
- package/.agents/core/skills/adapters/TROUBLESHOOTING.md +7 -0
- package/.agents/core/skills/adapters/VALIDATION.json +12 -0
- package/.agents/core/skills/adapters/skill.yaml +10 -0
- package/.agents/core/skills/architecture-diagrams/SKILL.md +108 -0
- package/.agents/core/skills/architecture-diagrams/VALIDATION.json +12 -0
- package/.agents/core/skills/architecture-diagrams/skill.yaml +8 -0
- package/.agents/core/skills/brutalist-design/SKILL.md +150 -0
- package/.agents/core/skills/brutalist-design/VALIDATION.json +12 -0
- package/.agents/core/skills/brutalist-design/skill.yaml +8 -0
- package/.agents/core/skills/context-manager/EXAMPLES.md +19 -0
- package/.agents/core/skills/context-manager/SKILL.md +126 -0
- package/.agents/core/skills/context-manager/TROUBLESHOOTING.md +7 -0
- package/.agents/core/skills/context-manager/VALIDATION.json +12 -0
- package/.agents/core/skills/context-manager/skill.yaml +10 -0
- package/.agents/core/skills/context-os/EXAMPLES.md +21 -0
- package/.agents/core/skills/context-os/SKILL.md +169 -0
- package/.agents/core/skills/context-os/TROUBLESHOOTING.md +7 -0
- package/.agents/core/skills/context-os/VALIDATION.json +12 -0
- package/.agents/core/skills/context-os/packs.yaml +59 -0
- package/.agents/core/skills/context-os/references/context-rules.md +68 -0
- package/.agents/core/skills/context-os/references/pipeline.md +119 -0
- package/.agents/core/skills/context-os/references/project-graph.md +103 -0
- package/.agents/core/skills/context-os/rules.yaml +135 -0
- package/.agents/core/skills/context-os/skill.yaml +10 -0
- package/.agents/core/skills/database/EXAMPLES.md +74 -0
- package/.agents/core/skills/database/SKILL.md +101 -0
- package/.agents/core/skills/database/TROUBLESHOOTING.md +18 -0
- package/.agents/core/skills/database/VALIDATION.json +11 -0
- package/.agents/core/skills/database/skill.yaml +25 -0
- package/.agents/core/skills/ddd/EXAMPLES.md +42 -0
- package/.agents/core/skills/ddd/SKILL.md +247 -0
- package/.agents/core/skills/ddd/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/ddd/VALIDATION.json +12 -0
- package/.agents/core/skills/ddd/ddd.md +178 -0
- package/.agents/core/skills/ddd/skill.yaml +10 -0
- package/.agents/core/skills/decisions/EXAMPLES.md +35 -0
- package/.agents/core/skills/decisions/SKILL.md +90 -0
- package/.agents/core/skills/decisions/TROUBLESHOOTING.md +13 -0
- package/.agents/core/skills/decisions/VALIDATION.json +12 -0
- package/.agents/core/skills/decisions/skill.yaml +10 -0
- package/.agents/core/skills/docker/EXAMPLES.md +56 -0
- package/.agents/core/skills/docker/SKILL.md +63 -0
- package/.agents/core/skills/docker/TROUBLESHOOTING.md +18 -0
- package/.agents/core/skills/docker/VALIDATION.json +11 -0
- package/.agents/core/skills/docker/skill.yaml +23 -0
- package/.agents/core/skills/engineering-workflow/EXAMPLES.md +57 -0
- package/.agents/core/skills/engineering-workflow/SKILL.md +343 -0
- package/.agents/core/skills/engineering-workflow/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/engineering-workflow/VALIDATION.json +12 -0
- package/.agents/core/skills/engineering-workflow/skill.yaml +13 -0
- package/.agents/core/skills/fastapi/EXAMPLES.md +36 -0
- package/.agents/core/skills/fastapi/SKILL.md +148 -0
- package/.agents/core/skills/fastapi/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/fastapi/VALIDATION.json +12 -0
- package/.agents/core/skills/fastapi/fastapi.md +112 -0
- package/.agents/core/skills/fastapi/skill.yaml +10 -0
- package/.agents/core/skills/gemini-precision/SKILL.md +169 -0
- package/.agents/core/skills/gemini-precision/VALIDATION.json +12 -0
- package/.agents/core/skills/gemini-precision/skill.yaml +9 -0
- package/.agents/core/skills/generators/EXAMPLES.md +19 -0
- package/.agents/core/skills/generators/SKILL.md +112 -0
- package/.agents/core/skills/generators/TROUBLESHOOTING.md +7 -0
- package/.agents/core/skills/generators/VALIDATION.json +12 -0
- package/.agents/core/skills/generators/skill.yaml +10 -0
- package/.agents/core/skills/generators/templates/API.md +77 -0
- package/.agents/core/skills/generators/templates/ARCHITECTURE.md +70 -0
- package/.agents/core/skills/generators/templates/DATABASE.md +42 -0
- package/.agents/core/skills/generators/templates/DECISION.md +46 -0
- package/.agents/core/skills/generators/templates/PRD.md +67 -0
- package/.agents/core/skills/generators/templates/PROJECT_GRAPH.md +56 -0
- package/.agents/core/skills/generators/templates/ROADMAP.md +51 -0
- package/.agents/core/skills/generators/templates/TASKS.md +43 -0
- package/.agents/core/skills/generators/templates/UI.md +73 -0
- package/.agents/core/skills/graphify/EXAMPLES.md +73 -0
- package/.agents/core/skills/graphify/SKILL.md +130 -0
- package/.agents/core/skills/graphify/VALIDATION.json +12 -0
- package/.agents/core/skills/graphify/skill.yaml +13 -0
- package/.agents/core/skills/gstack-roles/EXAMPLES.md +23 -0
- package/.agents/core/skills/gstack-roles/SKILL.md +152 -0
- package/.agents/core/skills/gstack-roles/TROUBLESHOOTING.md +13 -0
- package/.agents/core/skills/gstack-roles/VALIDATION.json +12 -0
- package/.agents/core/skills/gstack-roles/skill.yaml +12 -0
- package/.agents/core/skills/impeccable-design/EXAMPLES.md +26 -0
- package/.agents/core/skills/impeccable-design/SKILL.md +201 -0
- package/.agents/core/skills/impeccable-design/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/impeccable-design/VALIDATION.json +12 -0
- package/.agents/core/skills/impeccable-design/skill.yaml +14 -0
- package/.agents/core/skills/interview-me/SKILL.md +97 -0
- package/.agents/core/skills/interview-me/VALIDATION.json +12 -0
- package/.agents/core/skills/interview-me/skill.yaml +8 -0
- package/.agents/core/skills/microservices/EXAMPLES.md +38 -0
- package/.agents/core/skills/microservices/SKILL.md +164 -0
- package/.agents/core/skills/microservices/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/microservices/VALIDATION.json +12 -0
- package/.agents/core/skills/microservices/microservices.md +119 -0
- package/.agents/core/skills/microservices/skill.yaml +10 -0
- package/.agents/core/skills/minimalist-design/SKILL.md +113 -0
- package/.agents/core/skills/minimalist-design/VALIDATION.json +12 -0
- package/.agents/core/skills/minimalist-design/skill.yaml +8 -0
- package/.agents/core/skills/nestjs/EXAMPLES.md +40 -0
- package/.agents/core/skills/nestjs/SKILL.md +139 -0
- package/.agents/core/skills/nestjs/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/nestjs/VALIDATION.json +12 -0
- package/.agents/core/skills/nestjs/nestjs.md +103 -0
- package/.agents/core/skills/nestjs/skill.yaml +10 -0
- package/.agents/core/skills/nextjs/EXAMPLES.md +40 -0
- package/.agents/core/skills/nextjs/SKILL.md +163 -0
- package/.agents/core/skills/nextjs/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/nextjs/VALIDATION.json +12 -0
- package/.agents/core/skills/nextjs/nextjs.md +67 -0
- package/.agents/core/skills/nextjs/skill.yaml +10 -0
- package/.agents/core/skills/node/EXAMPLES.md +80 -0
- package/.agents/core/skills/node/SKILL.md +128 -0
- package/.agents/core/skills/node/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/node/VALIDATION.json +12 -0
- package/.agents/core/skills/node/node.md +87 -0
- package/.agents/core/skills/node/skill.yaml +10 -0
- package/.agents/core/skills/performance/EXAMPLES.md +30 -0
- package/.agents/core/skills/performance/SKILL.md +75 -0
- package/.agents/core/skills/performance/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/performance/VALIDATION.json +12 -0
- package/.agents/core/skills/performance/performance.md +52 -0
- package/.agents/core/skills/performance/skill.yaml +10 -0
- package/.agents/core/skills/ponytail-mindset/EXAMPLES.md +45 -0
- package/.agents/core/skills/ponytail-mindset/SKILL.md +193 -0
- package/.agents/core/skills/ponytail-mindset/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/ponytail-mindset/VALIDATION.json +12 -0
- package/.agents/core/skills/ponytail-mindset/skill.yaml +14 -0
- package/.agents/core/skills/react/EXAMPLES.md +79 -0
- package/.agents/core/skills/react/SKILL.md +132 -0
- package/.agents/core/skills/react/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/react/VALIDATION.json +12 -0
- package/.agents/core/skills/react/react.md +93 -0
- package/.agents/core/skills/react/skill.yaml +10 -0
- package/.agents/core/skills/react-best-practices/SKILL.md +155 -0
- package/.agents/core/skills/react-best-practices/VALIDATION.json +12 -0
- package/.agents/core/skills/react-best-practices/skill.yaml +10 -0
- package/.agents/core/skills/redesign-audit/SKILL.md +117 -0
- package/.agents/core/skills/redesign-audit/VALIDATION.json +12 -0
- package/.agents/core/skills/redesign-audit/skill.yaml +8 -0
- package/.agents/core/skills/security/EXAMPLES.md +64 -0
- package/.agents/core/skills/security/SKILL.md +158 -0
- package/.agents/core/skills/security/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/security/VALIDATION.json +12 -0
- package/.agents/core/skills/security/security.md +106 -0
- package/.agents/core/skills/security/skill.yaml +10 -0
- package/.agents/core/skills/soft-design/SKILL.md +108 -0
- package/.agents/core/skills/soft-design/VALIDATION.json +12 -0
- package/.agents/core/skills/soft-design/skill.yaml +8 -0
- package/.agents/core/skills/state-management/EXAMPLES.md +56 -0
- package/.agents/core/skills/state-management/SKILL.md +48 -0
- package/.agents/core/skills/state-management/TROUBLESHOOTING.md +18 -0
- package/.agents/core/skills/state-management/VALIDATION.json +11 -0
- package/.agents/core/skills/state-management/skill.yaml +22 -0
- package/.agents/core/skills/subagent-orchestrator/SKILL.md +100 -0
- package/.agents/core/skills/subagent-orchestrator/VALIDATION.json +12 -0
- package/.agents/core/skills/subagent-orchestrator/skill.yaml +8 -0
- package/.agents/core/skills/system-design/EXAMPLES.md +75 -0
- package/.agents/core/skills/system-design/SKILL.md +419 -0
- package/.agents/core/skills/system-design/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/system-design/VALIDATION.json +12 -0
- package/.agents/core/skills/system-design/skill.yaml +13 -0
- package/.agents/core/skills/system-design/system-design.md +112 -0
- package/.agents/core/skills/testing/EXAMPLES.md +71 -0
- package/.agents/core/skills/testing/SKILL.md +70 -0
- package/.agents/core/skills/testing/TROUBLESHOOTING.md +18 -0
- package/.agents/core/skills/testing/VALIDATION.json +11 -0
- package/.agents/core/skills/testing/skill.yaml +26 -0
- package/.agents/core/skills/typescript/EXAMPLES.md +64 -0
- package/.agents/core/skills/typescript/SKILL.md +112 -0
- package/.agents/core/skills/typescript/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/typescript/VALIDATION.json +12 -0
- package/.agents/core/skills/typescript/skill.yaml +10 -0
- package/.agents/core/skills/typescript/typescript.md +71 -0
- package/.agents/core/skills/ui-design/EXAMPLES.md +21 -0
- package/.agents/core/skills/ui-design/SKILL.md +124 -0
- package/.agents/core/skills/ui-design/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/ui-design/VALIDATION.json +12 -0
- package/.agents/core/skills/ui-design/skill.yaml +10 -0
- package/.agents/core/skills/ui-design/ui.md +88 -0
- package/.agents/core/skills/ui-ux-pro/EXAMPLES.md +62 -0
- package/.agents/core/skills/ui-ux-pro/SKILL.md +375 -0
- package/.agents/core/skills/ui-ux-pro/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/ui-ux-pro/VALIDATION.json +12 -0
- package/.agents/core/skills/ui-ux-pro/skill.yaml +13 -0
- package/.agents/core/skills/ux-design/EXAMPLES.md +36 -0
- package/.agents/core/skills/ux-design/SKILL.md +116 -0
- package/.agents/core/skills/ux-design/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/ux-design/VALIDATION.json +12 -0
- package/.agents/core/skills/ux-design/skill.yaml +10 -0
- package/.agents/core/skills/ux-design/ux.md +80 -0
- package/.agents/core/skills/vercel-optimize/SKILL.md +83 -0
- package/.agents/core/skills/vercel-optimize/VALIDATION.json +12 -0
- package/.agents/core/skills/vercel-optimize/skill.yaml +10 -0
- package/.agents/core/skills/web-accessibility/EXAMPLES.md +39 -0
- package/.agents/core/skills/web-accessibility/SKILL.md +170 -0
- package/.agents/core/skills/web-accessibility/TROUBLESHOOTING.md +19 -0
- package/.agents/core/skills/web-accessibility/VALIDATION.json +12 -0
- package/.agents/core/skills/web-accessibility/accessibility.md +63 -0
- package/.agents/core/skills/web-accessibility/skill.yaml +10 -0
- package/.agents/ctx.js +370 -0
- package/.agents/generated/claude/skills/adapters/SKILL.md +126 -0
- package/.agents/generated/claude/skills/architecture-diagrams/SKILL.md +101 -0
- package/.agents/generated/claude/skills/brutalist-design/SKILL.md +145 -0
- package/.agents/generated/claude/skills/context-manager/SKILL.md +147 -0
- package/.agents/generated/claude/skills/context-os/SKILL.md +191 -0
- package/.agents/generated/claude/skills/database/SKILL.md +191 -0
- package/.agents/generated/claude/skills/ddd/SKILL.md +305 -0
- package/.agents/generated/claude/skills/decisions/SKILL.md +134 -0
- package/.agents/generated/claude/skills/docker/SKILL.md +135 -0
- package/.agents/generated/claude/skills/engineering-workflow/SKILL.md +414 -0
- package/.agents/generated/claude/skills/fastapi/SKILL.md +200 -0
- package/.agents/generated/claude/skills/gemini-precision/SKILL.md +161 -0
- package/.agents/generated/claude/skills/generators/SKILL.md +133 -0
- package/.agents/generated/claude/skills/graphify/SKILL.md +198 -0
- package/.agents/generated/claude/skills/gstack-roles/SKILL.md +184 -0
- package/.agents/generated/claude/skills/impeccable-design/SKILL.md +241 -0
- package/.agents/generated/claude/skills/interview-me/SKILL.md +90 -0
- package/.agents/generated/claude/skills/microservices/SKILL.md +218 -0
- package/.agents/generated/claude/skills/minimalist-design/SKILL.md +108 -0
- package/.agents/generated/claude/skills/nestjs/SKILL.md +195 -0
- package/.agents/generated/claude/skills/nextjs/SKILL.md +219 -0
- package/.agents/generated/claude/skills/node/SKILL.md +224 -0
- package/.agents/generated/claude/skills/performance/SKILL.md +121 -0
- package/.agents/generated/claude/skills/ponytail-mindset/SKILL.md +252 -0
- package/.agents/generated/claude/skills/react/SKILL.md +227 -0
- package/.agents/generated/claude/skills/react-best-practices/SKILL.md +146 -0
- package/.agents/generated/claude/skills/redesign-audit/SKILL.md +112 -0
- package/.agents/generated/claude/skills/security/SKILL.md +237 -0
- package/.agents/generated/claude/skills/soft-design/SKILL.md +103 -0
- package/.agents/generated/claude/skills/state-management/SKILL.md +120 -0
- package/.agents/generated/claude/skills/subagent-orchestrator/SKILL.md +93 -0
- package/.agents/generated/claude/skills/system-design/SKILL.md +507 -0
- package/.agents/generated/claude/skills/testing/SKILL.md +157 -0
- package/.agents/generated/claude/skills/typescript/SKILL.md +192 -0
- package/.agents/generated/claude/skills/ui-design/SKILL.md +161 -0
- package/.agents/generated/claude/skills/ui-ux-pro/SKILL.md +451 -0
- package/.agents/generated/claude/skills/ux-design/SKILL.md +168 -0
- package/.agents/generated/claude/skills/vercel-optimize/SKILL.md +76 -0
- package/.agents/generated/claude/skills/web-accessibility/SKILL.md +225 -0
- package/.agents/generated/gemini/skills/adapters/SKILL.md +135 -0
- package/.agents/generated/gemini/skills/architecture-diagrams/SKILL.md +107 -0
- package/.agents/generated/gemini/skills/brutalist-design/SKILL.md +151 -0
- package/.agents/generated/gemini/skills/context-manager/SKILL.md +156 -0
- package/.agents/generated/gemini/skills/context-os/SKILL.md +200 -0
- package/.agents/generated/gemini/skills/database/SKILL.md +200 -0
- package/.agents/generated/gemini/skills/ddd/SKILL.md +314 -0
- package/.agents/generated/gemini/skills/decisions/SKILL.md +143 -0
- package/.agents/generated/gemini/skills/docker/SKILL.md +144 -0
- package/.agents/generated/gemini/skills/engineering-workflow/SKILL.md +423 -0
- package/.agents/generated/gemini/skills/fastapi/SKILL.md +209 -0
- package/.agents/generated/gemini/skills/gemini-precision/SKILL.md +167 -0
- package/.agents/generated/gemini/skills/generators/SKILL.md +142 -0
- package/.agents/generated/gemini/skills/graphify/SKILL.md +205 -0
- package/.agents/generated/gemini/skills/gstack-roles/SKILL.md +193 -0
- package/.agents/generated/gemini/skills/impeccable-design/SKILL.md +250 -0
- package/.agents/generated/gemini/skills/interview-me/SKILL.md +96 -0
- package/.agents/generated/gemini/skills/microservices/SKILL.md +227 -0
- package/.agents/generated/gemini/skills/minimalist-design/SKILL.md +114 -0
- package/.agents/generated/gemini/skills/nestjs/SKILL.md +204 -0
- package/.agents/generated/gemini/skills/nextjs/SKILL.md +298 -0
- package/.agents/generated/gemini/skills/node/SKILL.md +323 -0
- package/.agents/generated/gemini/skills/performance/SKILL.md +185 -0
- package/.agents/generated/gemini/skills/ponytail-mindset/SKILL.md +261 -0
- package/.agents/generated/gemini/skills/react/SKILL.md +332 -0
- package/.agents/generated/gemini/skills/react-best-practices/SKILL.md +152 -0
- package/.agents/generated/gemini/skills/redesign-audit/SKILL.md +118 -0
- package/.agents/generated/gemini/skills/security/SKILL.md +355 -0
- package/.agents/generated/gemini/skills/soft-design/SKILL.md +109 -0
- package/.agents/generated/gemini/skills/state-management/SKILL.md +129 -0
- package/.agents/generated/gemini/skills/subagent-orchestrator/SKILL.md +99 -0
- package/.agents/generated/gemini/skills/system-design/SKILL.md +631 -0
- package/.agents/generated/gemini/skills/testing/SKILL.md +166 -0
- package/.agents/generated/gemini/skills/typescript/SKILL.md +275 -0
- package/.agents/generated/gemini/skills/ui-design/SKILL.md +170 -0
- package/.agents/generated/gemini/skills/ui-ux-pro/SKILL.md +460 -0
- package/.agents/generated/gemini/skills/ux-design/SKILL.md +177 -0
- package/.agents/generated/gemini/skills/vercel-optimize/SKILL.md +82 -0
- package/.agents/generated/gemini/skills/web-accessibility/SKILL.md +300 -0
- package/.agents/mcp/runtime.py +454 -0
- package/.agents/mcp/server.mjs +189373 -0
- package/.agents/plugins.js +574 -0
- package/.agents/profiles.js +267 -0
- package/.agents/resolver.js +336 -0
- package/.agents/skills-index.json +200 -0
- package/.agents/skills.json +6 -0
- package/.agents/validate.js +500 -0
- package/LICENSE +21 -0
- package/README.md +415 -0
- package/benchmarks/gemini-issues.js +533 -0
- package/bin/index.js +458 -0
- package/package.json +70 -0
- package/registry.json +53 -0
- package/registry.schema.json +32 -0
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
# impeccable-design
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Hard QA design review checklist consisting of 50 deterministic rules covering typography (T1-T10), color systems (C1-C12), layout constraints (L1-L11), component contracts (K1-K11), and micro-animations (A1-A8).
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
Activate during the REVIEW phase of all frontend tasks as a strict visual and functional QA gate before marking UI work complete.
|
|
10
|
+
|
|
11
|
+
## Rules & Patterns
|
|
12
|
+
|
|
13
|
+
Based on [pbakaus/impeccable](https://github.com/pbakaus/impeccable) — deterministic detector rules for AI-generated frontend design.
|
|
14
|
+
|
|
15
|
+
## Core Principle
|
|
16
|
+
|
|
17
|
+
> Every model is trained on the same SaaS templates. Skip this guidance and you get the same handful of tells on every project. Impeccable eliminates them.
|
|
18
|
+
|
|
19
|
+
## Role in the Pipeline
|
|
20
|
+
|
|
21
|
+
> **This skill acts as a QA-designer at the `/review` phase.** `ui-ux-pro` is the planning guideline; `impeccable-design` is the hard checklist that runs before merge.
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## Anti-Pattern Rules
|
|
26
|
+
|
|
27
|
+
### Typography (Rules T1–T10)
|
|
28
|
+
|
|
29
|
+
| Rule | Anti-Pattern | Correct Approach |
|
|
30
|
+
| ------ | ------------- | ----------------- |
|
|
31
|
+
| T1 | Using Inter for all text | Use Inter for UI body, pair with a distinct display font for headings OR with `JetBrains Mono` for technical/number accents (premium SaaS pattern) |
|
|
32
|
+
| T2 | Using Arial or Helvetica | Use a curated Google Font pairing |
|
|
33
|
+
| T3 | All text same weight | Use weight contrast: 700 headings, 400 body, 500 labels |
|
|
34
|
+
| T4 | Line height = 1 (tight) | Body: 1.6–1.8, Headings: 1.1–1.3 |
|
|
35
|
+
| T5 | No letter-spacing on caps | Uppercase labels: `letter-spacing: 0.08em` (Tailwind: `tracking-widest`) |
|
|
36
|
+
| T6 | Text too wide | Max line length: 60–75 characters — use `max-w-prose` or `max-w-[65ch]` |
|
|
37
|
+
| T7 | Monospace only for code | Use `tabular-nums` Tailwind class for number tables and data grids |
|
|
38
|
+
| T8 | Random font sizing | Use a consistent modular scale (1.25× or 1.333×) — use Tailwind's `text-*` scale |
|
|
39
|
+
| T9 | Body text too small | Minimum `text-sm` (14px) for body, never smaller than 12px |
|
|
40
|
+
| T10 | Bold everywhere | Bold is for emphasis. Diluted if overused. |
|
|
41
|
+
|
|
42
|
+
**Tailwind typography utilities:**
|
|
43
|
+
|
|
44
|
+
- `text-balance` — for headlines (prevents orphan words)
|
|
45
|
+
- `text-pretty` — for body paragraphs (smart line-breaks)
|
|
46
|
+
- `tabular-nums` — for numerical data tables
|
|
47
|
+
|
|
48
|
+
### Color (Rules C1–C12)
|
|
49
|
+
|
|
50
|
+
| Rule | Anti-Pattern | Correct Approach |
|
|
51
|
+
| ------ | ------------- | ----------------- |
|
|
52
|
+
| C1 | Pure black `#000` | Tint toward brand: `hsl(240, 10%, 4%)` |
|
|
53
|
+
| C2 | Pure white `#fff` for surfaces | Near-white with warmth: `hsl(40, 30%, 97%)` |
|
|
54
|
+
| C3 | Gray on colored background | Check contrast — likely fails WCAG. Use white/dark |
|
|
55
|
+
| C4 | Purple → Blue gradient | Clichéd AI palette. Use brand-derived gradients |
|
|
56
|
+
| C5 | Neon primary colors | Neon = accent only, never primary surface or text |
|
|
57
|
+
| C6 | Too many colors | 3 colors max: primary, neutral, semantic (success/error) |
|
|
58
|
+
| C7 | All links same blue `#0000EE` | Style links with brand color, preserve underline |
|
|
59
|
+
| C8 | Disabled state = gray only | Disabled: `opacity-40` + `cursor-not-allowed` |
|
|
60
|
+
| C9 | Success always green, Error always red | Check brand conflicts. Use accessible variants |
|
|
61
|
+
| C10 | Dark mode = inverted light mode | Dark mode needs separate palette — use `@layer base { .dark { ... } }` |
|
|
62
|
+
| C11 | No hover state change | Hover: shift lightness 8–12%, add `transition-colors duration-150` |
|
|
63
|
+
| C12 | Brand color on dark surface loses identity | Adjust saturation/lightness for dark bg context |
|
|
64
|
+
|
|
65
|
+
### Layout & Spacing (Rules L1–L11)
|
|
66
|
+
|
|
67
|
+
| Rule | Anti-Pattern | Correct Approach |
|
|
68
|
+
| ------ | ------------- | ----------------- |
|
|
69
|
+
| L1 | Cards inside cards | One level of card depth maximum |
|
|
70
|
+
| L2 | Icon tile above every heading | Use icons inline, in context, not decoratively above text |
|
|
71
|
+
| L3 | Centered long paragraphs | `text-center` max 2 lines only. Use `text-pretty` + left-align for body |
|
|
72
|
+
| L4 | Inconsistent spacing | Use Tailwind spacing utilities only. **Never arbitrary values** like `gap-[17px]` |
|
|
73
|
+
| L5 | Zero whitespace between sections | Sections need `py-16` to `py-24` breathing room |
|
|
74
|
+
| L6 | Content touching edges | Always `px-4` minimum on mobile |
|
|
75
|
+
| L7 | Same visual weight everywhere | Use hierarchy: primary > secondary > tertiary zones |
|
|
76
|
+
| L8 | Grid breaks on tablet | Test at 768px. Use 4-col on tablet, 12-col on desktop |
|
|
77
|
+
| L9 | Full-width everything | Max content width: `max-w-7xl` centered |
|
|
78
|
+
| L10 | Missing grid alignment | Use CSS Grid or Tailwind `grid` — not absolute positioning |
|
|
79
|
+
| L11 | Arbitrary high z-indexes | **NEVER** use `z-[999]` or `z-50` manually. Rely on DOM order + Radix/shadcn Portals which already handle modal elevation correctly |
|
|
80
|
+
| L12 | Default Rhythm | Break the 'Hero → 3 Features → CTA' structure. Build structurally diverse pages tailored to the content. |
|
|
81
|
+
| L13 | Symmetric card grids everywhere | Use asymmetric layouts (e.g., bento boxes, masonry, alternating left/right) to reduce the AI-generated feel. |
|
|
82
|
+
|
|
83
|
+
### Components (Rules K1–K11)
|
|
84
|
+
|
|
85
|
+
| Rule | Anti-Pattern | Correct Approach |
|
|
86
|
+
| ------ | ------------- | ----------------- |
|
|
87
|
+
| K1 | Two filled buttons side-by-side | `<Button variant="default">` + `<Button variant="outline">` or `variant="ghost"` |
|
|
88
|
+
| K2 | Button without loading state | Always add spinner + `disabled` during async actions |
|
|
89
|
+
| K3 | Modal without backdrop blur | shadcn `<Dialog>` handles this. Don't override with plain divs |
|
|
90
|
+
| K4 | Empty states left blank | **Always** design empty states: illustration + helpful message + primary CTA |
|
|
91
|
+
| K5 | No skeleton screens | Use `<Skeleton>` from shadcn for content areas, not just spinners |
|
|
92
|
+
| K6 | Tooltip on click (not hover) | Tooltips on hover, modals on click — use shadcn `<Tooltip>` + `<Dialog>` |
|
|
93
|
+
| K7 | Dropdown without keyboard nav | Use shadcn `<DropdownMenu>` — keyboard nav is built-in |
|
|
94
|
+
| K8 | Table without row hover | shadcn `<TableRow>` handles hover state automatically. Do **not** override it |
|
|
95
|
+
| K9 | Building complex UI from scratch | **Check shadcn/ui first**. If the component exists, generate the CLI command: `npx shadcn@latest add dialog`. Never manually rewrite what shadcn already provides |
|
|
96
|
+
| K10 | Native `<select>` or `<input type="date">` in premium UI | Native form controls cannot be styled consistently across Chrome/Safari/Firefox. Use `shadcn <Select>` and `shadcn <DatePicker>` for cross-browser consistency |
|
|
97
|
+
| K11 | Form without error state styling | Every input must have error state: red border + error message below |
|
|
98
|
+
|
|
99
|
+
### Animation (Rules A1–A8)
|
|
100
|
+
|
|
101
|
+
| Rule | Anti-Pattern | Correct Approach |
|
|
102
|
+
| ------ | ------------- | ----------------- |
|
|
103
|
+
| A1 | CSS bounce/elastic/spring easing | CSS spring animations are forbidden. **Exception**: If using Framer Motion, highly damped springs are encouraged: `{ type: "spring", stiffness: 400, damping: 30 }` for modals and popovers — this creates a premium, physical feel like Vercel/Linear |
|
|
104
|
+
| A2 | Animations that take > 400ms | Micro: 100–150ms, Components: 200–300ms, Pages: 300–400ms |
|
|
105
|
+
| A3 | Animations everywhere | Animate max 2–3 elements simultaneously |
|
|
106
|
+
| A4 | Same animation for enter and exit | Enter: ease-out (decelerate), Exit: ease-in (accelerate) |
|
|
107
|
+
| A5 | Animating expensive properties | Only animate `transform` and `opacity` — never `height`, `width`, `top` |
|
|
108
|
+
| A6 | No animation on mobile | Respect `prefers-reduced-motion: reduce` — wrap in `@media` or use `useReducedMotion()` |
|
|
109
|
+
| A7 | Scroll-triggered animations that block | Don't block content visibility for scroll reveals |
|
|
110
|
+
| A8 | Hover animations on touch devices | Wrap hover effects in `@media (hover: hover)` |
|
|
111
|
+
|
|
112
|
+
### Images & Icons (Rules I1–I8)
|
|
113
|
+
|
|
114
|
+
| Rule | Anti-Pattern | Correct Approach |
|
|
115
|
+
| ------ | ------------- | ----------------- |
|
|
116
|
+
| I1 | Decorative icons on every list item | Icons add meaning, not decoration. Use selectively. |
|
|
117
|
+
| I2 | Mix of icon styles | Pick one icon set (e.g., Lucide for shadcn). Stick with it. |
|
|
118
|
+
| I3 | Low-contrast icons | Icons need ≥ 3:1 contrast ratio |
|
|
119
|
+
| I4 | Images without aspect-ratio | Always set `aspect-video` or `aspect-square` to prevent layout shifts |
|
|
120
|
+
| I5 | No image loading state | Use `<Skeleton>` placeholder or blur hash |
|
|
121
|
+
| I6 | SVG icons inline without aria | Add `aria-hidden="true"` or `aria-label` |
|
|
122
|
+
| I7 | Stock photo generic humans | Use illustrations, abstract art, or genuine brand photography |
|
|
123
|
+
| I8 | Unoptimized images | WebP/AVIF, properly sized, `loading="lazy"` below fold |
|
|
124
|
+
|
|
125
|
+
---
|
|
126
|
+
|
|
127
|
+
## Design Initialization Checklist
|
|
128
|
+
|
|
129
|
+
Start every new design with:
|
|
130
|
+
|
|
131
|
+
```markdown
|
|
132
|
+
## Design Context
|
|
133
|
+
|
|
134
|
+
**Surface type**: [brand/marketing OR product/app]
|
|
135
|
+
**Target audience**: [who are they? what do they value?]
|
|
136
|
+
**Brand tone**: [professional/playful/bold/minimal/technical]
|
|
137
|
+
**Anti-references**: [designs this should NOT look like]
|
|
138
|
+
**Primary font**: [chosen font + why + Framer Motion / shadcn pairing]
|
|
139
|
+
**Color palette**: [3 semantic colors + HSL values for light AND dark]
|
|
140
|
+
**Component library**: [shadcn/ui | radix | custom]
|
|
141
|
+
**Animation library**: [CSS only | Framer Motion | GSAP]
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## Design Review Audits
|
|
147
|
+
|
|
148
|
+
### Quick Audit (before PR)
|
|
149
|
+
|
|
150
|
+
- Typography: Is there clear visual hierarchy? Are fonts intentional? Is Inter paired properly?
|
|
151
|
+
- Color: Any pure black/white? Contrast failures? Too many colors? Dark mode?
|
|
152
|
+
- Spacing: Consistent Tailwind scale? No arbitrary values? Enough whitespace?
|
|
153
|
+
- Animation: Any CSS bounce/elastic? Too slow (>400ms)? Too many simultaneous?
|
|
154
|
+
- Components: Any native `<select>` or `<input type="date">` that should be shadcn?
|
|
155
|
+
- Z-index: Any hardcoded `z-[999]` or `z-50`?
|
|
156
|
+
|
|
157
|
+
### Full Audit (before release)
|
|
158
|
+
|
|
159
|
+
- Accessibility: Run axe DevTools or Lighthouse — target 90+ score
|
|
160
|
+
- Responsiveness: Test at 375px, 768px, 1280px, 1440px
|
|
161
|
+
- Dark mode: Does the full palette hold up? No inverted-only shortcuts?
|
|
162
|
+
- Empty states: Does every list/table have a designed empty state?
|
|
163
|
+
- Edge cases: Loading states, error states, long text overflow, RTL
|
|
164
|
+
|
|
165
|
+
---
|
|
166
|
+
|
|
167
|
+
## Premium Design Markers
|
|
168
|
+
|
|
169
|
+
These details separate premium from mediocre:
|
|
170
|
+
|
|
171
|
+
1. **Consistent border radius** — pick one and use it everywhere (`rounded-md` = 6px, `rounded-lg` = 8px)
|
|
172
|
+
2. **Intentional drop shadows** — darker near surface, lighter for floating elements
|
|
173
|
+
3. **Micro-copy quality** — button labels are verbs: "Save changes" not "Submit"
|
|
174
|
+
4. **Focus ring styling** — `focus-visible:ring-2 focus-visible:ring-primary` matching brand
|
|
175
|
+
5. **Smooth color transitions** — `transition-colors duration-150` on all interactive elements
|
|
176
|
+
6. **Optical alignment** — icon + text optically centered, not mathematically (`items-center gap-1.5`)
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
## Code Examples
|
|
180
|
+
|
|
181
|
+
See `EXAMPLES.md` for detailed code examples.
|
|
182
|
+
|
|
183
|
+
## Validation Checklist
|
|
184
|
+
|
|
185
|
+
What to verify during the review phase before completing the task.
|
|
186
|
+
|
|
187
|
+
## Common Mistakes
|
|
188
|
+
|
|
189
|
+
Anti-patterns and things to explicitly avoid. See `TROUBLESHOOTING.md`.
|
|
190
|
+
|
|
191
|
+
## Integration Notes
|
|
192
|
+
|
|
193
|
+
How this skill interacts with other skills.
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
# impeccable-design Examples — Anti-patterns vs ContextOS Standard
|
|
197
|
+
|
|
198
|
+
## Example 1: Dark Mode Surfaces & Elevation
|
|
199
|
+
|
|
200
|
+
### Anti-pattern: Pure Black with Flat Cards
|
|
201
|
+
|
|
202
|
+
```css
|
|
203
|
+
/* BAD: Pure #000000 background with harsh pure white borders and flat cards */
|
|
204
|
+
body { background-color: #000000; color: #ffffff; }
|
|
205
|
+
.card { background-color: #111111; border: 1px solid #ffffff; }
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### Best practice: ContextOS Standard (Atmospheric Depth & Tinted Surfaces)
|
|
209
|
+
|
|
210
|
+
```css
|
|
211
|
+
/* GOOD: Tinted dark background with layered elevation surfaces and subtle border */
|
|
212
|
+
body {
|
|
213
|
+
background-color: #0B0D13; /* Tinted with subtle deep blue */
|
|
214
|
+
color: #E2E8F0;
|
|
215
|
+
}
|
|
216
|
+
.surface-1 {
|
|
217
|
+
background-color: #111522;
|
|
218
|
+
border: 1px solid rgba(255, 255, 255, 0.08);
|
|
219
|
+
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
|
|
220
|
+
}
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
# impeccable-design Troubleshooting & Common Mistakes
|
|
224
|
+
|
|
225
|
+
## 1. Nested Border Radius Mismatch
|
|
226
|
+
|
|
227
|
+
- **Symptom**: Corners of an inner element poke out or look visually awkward inside a container.
|
|
228
|
+
- **Root Cause**: Using the same border-radius on both outer container and inner child.
|
|
229
|
+
- **Fix**: Inner radius formula: r_inner = max(0, r_outer - padding).
|
|
230
|
+
|
|
231
|
+
## 2. Animation Performance Stutter
|
|
232
|
+
|
|
233
|
+
- **Symptom**: Janky animations and dropped frames during transitions.
|
|
234
|
+
- **Root Cause**: Animating layout properties (width, height, top, margin).
|
|
235
|
+
- **Fix**: Animate only composited GPU-accelerated properties: transform and opacity.
|
|
236
|
+
|
|
237
|
+
## 3. Cluttered Visual Density
|
|
238
|
+
|
|
239
|
+
- **Symptom**: Interface feels overwhelming, cramped, and cheap.
|
|
240
|
+
- **Root Cause**: Cramming too many borders, dividers, badges, and icons into one view.
|
|
241
|
+
- **Fix**: Replace borders with generous whitespace; let alignment and typography hierarchy define grouping.
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# interview-me
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Structured requirements interrogation framework inspired by [addyosmani/agent-skills](https://github.com/addyosmani/agent-skills). Prevents wasted cycles by transforming vague user intents into crisp, unambiguous architectural constraints through single-question progressive interview loops.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
Activate whenever:
|
|
10
|
+
|
|
11
|
+
- User task has underspecified requirements, open UX decisions, or multiple viable architectural trade-offs.
|
|
12
|
+
- A high-blast-radius change (database migrations, auth refactor, API contract change) is requested.
|
|
13
|
+
- Explicitly triggered via `/spec`, `/interview`, or "ask me questions first".
|
|
14
|
+
|
|
15
|
+
## Rules & Patterns
|
|
16
|
+
|
|
17
|
+
### 1. The One-Question-At-A-Time Rule
|
|
18
|
+
|
|
19
|
+
**Never overwhelm the user with a 10-point interrogation form.**
|
|
20
|
+
|
|
21
|
+
- Ask **exactly ONE focused question** per turn (or at most two tightly-coupled binary options).
|
|
22
|
+
- Provide the recommended option first with clear rationale: `"(Recommended) Option A because..."`.
|
|
23
|
+
- Always allow write-in or clarification.
|
|
24
|
+
|
|
25
|
+
### 2. The 4 Interrogation Dimensions
|
|
26
|
+
|
|
27
|
+
Interrogate in this strict priority order:
|
|
28
|
+
|
|
29
|
+
1. **Business Outcome & Invariants**:
|
|
30
|
+
- What core problem does this solve?
|
|
31
|
+
- What behavior is strictly forbidden?
|
|
32
|
+
2. **Scope Boundaries (In vs Out)**:
|
|
33
|
+
- What must be delivered in this atomic slice?
|
|
34
|
+
- What is explicitly deferred to later?
|
|
35
|
+
3. **Technical Constraints**:
|
|
36
|
+
- Versions, libraries, database engines, backwards compatibility requirements.
|
|
37
|
+
4. **Edge Cases & Failure Modes**:
|
|
38
|
+
- What happens on network disconnect, empty response, or unauthorized token?
|
|
39
|
+
|
|
40
|
+
### 3. Progressive Synthesis
|
|
41
|
+
|
|
42
|
+
After each user answer:
|
|
43
|
+
|
|
44
|
+
- Acknowledge the decision and update the mental model.
|
|
45
|
+
- If more critical decisions remain, ask the next question.
|
|
46
|
+
- Once 2–4 key questions are resolved, synthesize the formal Feature Spec and transition to `engineering-workflow` (`[PHASE: Plan]`).
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Code Examples
|
|
51
|
+
|
|
52
|
+
### Interactive Interview Turn Example
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
**Question 1 of 3 (Authentication Strategy)**
|
|
56
|
+
|
|
57
|
+
Before implementing the API authentication layer, we need to align on session storage:
|
|
58
|
+
|
|
59
|
+
1. **(Recommended) HTTP-only Secure Cookies with Refresh Tokens**:
|
|
60
|
+
- *Why*: Immune to XSS token theft, standard for web dashboards.
|
|
61
|
+
2. **Bearer Token in Authorization Header**:
|
|
62
|
+
- *Why*: Ideal if this API will also be consumed by mobile apps or third-party CLI tools.
|
|
63
|
+
|
|
64
|
+
Which model fits your architecture best?
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Validation Checklist
|
|
70
|
+
|
|
71
|
+
- [ ] Question addresses an actual ambiguity (never ask about obvious defaults).
|
|
72
|
+
- [ ] Exactly one question (or two tightly coupled choices) asked.
|
|
73
|
+
- [ ] Recommendation provided with clear engineering justification.
|
|
74
|
+
- [ ] User response incorporated into the final spec before coding.
|
|
75
|
+
|
|
76
|
+
---
|
|
77
|
+
|
|
78
|
+
## Common Mistakes
|
|
79
|
+
|
|
80
|
+
- **Asking obvious questions**: Asking "Do you want error handling?" instead of making a sensible senior default.
|
|
81
|
+
- **Interrogation bombardment**: Dumping a list of 8 open-ended questions in a single wall of text.
|
|
82
|
+
- **Ignoring user answers**: Asking a question, receiving an answer, and then implementing something else.
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## Integration Notes
|
|
87
|
+
|
|
88
|
+
- Runs at the start of `engineering-workflow` Phase 1 (`/spec`).
|
|
89
|
+
- Interacts with `gstack-roles` (`[ROLE: Product Manager]` or `[ROLE: Architect]`).
|
|
90
|
+
- Hands off to `ponytail-mindset` once scope is defined.
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
# Microservices
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
Distributed systems architecture standard. Enforces bounded context isolation, asynchronous event-driven messaging (Kafka, RabbitMQ), Saga distributed transactions, API gateways, and outbox patterns.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
Activate when decomposing monoliths into independent services, designing inter-service communications, or building scalable distributed systems.
|
|
10
|
+
|
|
11
|
+
## Rules & Patterns
|
|
12
|
+
<!-- Source: microservices.md -->
|
|
13
|
+
|
|
14
|
+
## Microservices — Architecture Guide
|
|
15
|
+
|
|
16
|
+
## When to Use Microservices
|
|
17
|
+
|
|
18
|
+
**Use when:**
|
|
19
|
+
|
|
20
|
+
- Team > 10 engineers working on the same product
|
|
21
|
+
- Independent deployment of components is critical
|
|
22
|
+
- Different components have different scaling needs
|
|
23
|
+
- Different components need different tech stacks
|
|
24
|
+
|
|
25
|
+
**Don't use when:**
|
|
26
|
+
|
|
27
|
+
- Small team (< 5 engineers)
|
|
28
|
+
- MVP or prototype
|
|
29
|
+
- No operational expertise (monitoring, tracing, deployment)
|
|
30
|
+
- Tight coupling between components
|
|
31
|
+
|
|
32
|
+
## Core Principles
|
|
33
|
+
|
|
34
|
+
### 1. Single Responsibility
|
|
35
|
+
|
|
36
|
+
Each service does ONE thing well.
|
|
37
|
+
|
|
38
|
+
### 2. Own Your Data
|
|
39
|
+
|
|
40
|
+
Each service has its own database. No shared databases.
|
|
41
|
+
|
|
42
|
+
### 3. API Contracts
|
|
43
|
+
|
|
44
|
+
Services communicate through well-defined APIs. Internal implementation is hidden.
|
|
45
|
+
|
|
46
|
+
### 4. Autonomous Deployment
|
|
47
|
+
|
|
48
|
+
Each service can be deployed independently.
|
|
49
|
+
|
|
50
|
+
## Communication Patterns
|
|
51
|
+
|
|
52
|
+
### Synchronous (REST/gRPC)
|
|
53
|
+
|
|
54
|
+
- **When**: Request needs immediate response
|
|
55
|
+
- **Tools**: REST (HTTP), gRPC (high-performance)
|
|
56
|
+
- **Risk**: Cascading failures, latency accumulation
|
|
57
|
+
|
|
58
|
+
### Asynchronous (Events/Messages)
|
|
59
|
+
|
|
60
|
+
- **When**: Eventual consistency is acceptable
|
|
61
|
+
- **Tools**: Kafka, RabbitMQ, Redis Streams, AWS SQS
|
|
62
|
+
- **Benefit**: Loose coupling, resilience
|
|
63
|
+
|
|
64
|
+
### Saga Pattern (Distributed Transactions)
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
Order Service → Payment Service → Inventory Service → Shipping Service
|
|
68
|
+
↓ (failure)
|
|
69
|
+
Compensating transactions reverse each step
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
1. **Choreography (Event-Driven)**: Each service emits events, downstream services listen and react. Best for simple flows (≤ 3 steps) where a central coordinator adds unnecessary coupling.
|
|
73
|
+
2. **Orchestration (State Machine)**: A dedicated Saga Orchestrator controls the flow and explicitly triggers compensating transactions on failure (e.g., `RefundPayment`, `ReleaseInventoryReservation`). Mandatory for complex multi-step workflows.
|
|
74
|
+
|
|
75
|
+
### Dead Letter Queues (DLQ) & Poison Pill Handling
|
|
76
|
+
|
|
77
|
+
- **Never retry infinitely**: Set max retries (e.g. 3) with exponential backoff and jitter.
|
|
78
|
+
- After max retries, route failed messages to a **Dead Letter Queue (DLQ)** with error metadata.
|
|
79
|
+
- Provide alerting on DLQ depth and an admin CLI/script to replay DLQ messages.
|
|
80
|
+
|
|
81
|
+
## CQRS (Command Query Responsibility Segregation)
|
|
82
|
+
|
|
83
|
+
Separate read and write models:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
Command (Write) → Write Model → Event Store → Projections → Read Model → Query (Read)
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
**When**: Read patterns differ significantly from write patterns.
|
|
90
|
+
|
|
91
|
+
## Event Sourcing
|
|
92
|
+
|
|
93
|
+
Store events, not state:
|
|
94
|
+
|
|
95
|
+
```
|
|
96
|
+
UserCreated → EmailUpdated → RoleChanged → PasswordReset
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
Current state = replay all events. Full audit trail.
|
|
100
|
+
|
|
101
|
+
## Service Boundaries
|
|
102
|
+
|
|
103
|
+
### Bounded Contexts (from DDD)
|
|
104
|
+
|
|
105
|
+
- Identify domain boundaries
|
|
106
|
+
- Each service maps to a bounded context
|
|
107
|
+
- Shared language within the context, translation at boundaries
|
|
108
|
+
|
|
109
|
+
### Anti-Corruption Layer
|
|
110
|
+
|
|
111
|
+
When integrating with legacy or external systems, create an adapter that translates between models.
|
|
112
|
+
|
|
113
|
+
## Operational Concerns
|
|
114
|
+
|
|
115
|
+
### Observability (The Three Pillars)
|
|
116
|
+
|
|
117
|
+
1. **Logs** — structured JSON, correlated by request ID
|
|
118
|
+
2. **Metrics** — latency, error rate, throughput (RED)
|
|
119
|
+
3. **Traces** — distributed tracing across services (Jaeger, Zipkin)
|
|
120
|
+
|
|
121
|
+
### Resilience
|
|
122
|
+
|
|
123
|
+
- **Circuit Breaker** — stop calling failing services
|
|
124
|
+
- **Retry with Backoff** — exponential backoff + jitter
|
|
125
|
+
- **Timeout** — every call has a timeout
|
|
126
|
+
- **Bulkhead** — isolate failures
|
|
127
|
+
|
|
128
|
+
### Deployment
|
|
129
|
+
|
|
130
|
+
- **Containers** — Docker for consistency
|
|
131
|
+
- **Orchestration** — Kubernetes for production
|
|
132
|
+
- **CI/CD** — independent pipelines per service
|
|
133
|
+
- **Blue-Green / Canary** — safe rollouts
|
|
134
|
+
|
|
135
|
+
## Anti-Patterns
|
|
136
|
+
|
|
137
|
+
- [FAIL] Distributed monolith — services that can't deploy independently
|
|
138
|
+
- [FAIL] Shared database — defeats the purpose
|
|
139
|
+
- [FAIL] Synchronous chains — A calls B calls C calls D
|
|
140
|
+
- [FAIL] No versioning — breaking API changes
|
|
141
|
+
- [FAIL] Premature microservices — start with a modular monolith
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
## Code Examples
|
|
145
|
+
|
|
146
|
+
See `EXAMPLES.md` for detailed code examples.
|
|
147
|
+
|
|
148
|
+
## Validation Checklist
|
|
149
|
+
|
|
150
|
+
What to verify during the review phase before completing the task.
|
|
151
|
+
|
|
152
|
+
## Common Mistakes
|
|
153
|
+
|
|
154
|
+
Anti-patterns and things to explicitly avoid. See `TROUBLESHOOTING.md`.
|
|
155
|
+
|
|
156
|
+
## Integration Notes
|
|
157
|
+
|
|
158
|
+
How this skill interacts with other skills.
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
# microservices Examples — Anti-patterns vs ContextOS Standard
|
|
162
|
+
|
|
163
|
+
## Example 1: Inter-service Communication
|
|
164
|
+
|
|
165
|
+
### Anti-pattern: Synchronous HTTP Call Chains (The Distributed Monolith)
|
|
166
|
+
|
|
167
|
+
```text
|
|
168
|
+
User -> OrderService (HTTP) -> InventoryService (HTTP) -> PaymentService (HTTP) -> EmailService (HTTP)
|
|
169
|
+
Problem: High latency, 99.9% availability compounding to 96% overall availability, cascading failure.
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Best practice: ContextOS Standard (Asynchronous Event Choreography)
|
|
173
|
+
|
|
174
|
+
```text
|
|
175
|
+
User -> OrderService (creates order with status 'PENDING')
|
|
176
|
+
OrderService publishes 'OrderPlaced' event to Event Broker (Kafka/RabbitMQ)
|
|
177
|
+
├── InventoryService consumes 'OrderPlaced' -> Reserves stock
|
|
178
|
+
├── PaymentService consumes 'OrderPlaced' -> Charges customer
|
|
179
|
+
└── NotificationService consumes 'PaymentProcessed' -> Sends confirmation email
|
|
180
|
+
```
|
|
181
|
+
|
|
182
|
+
---
|
|
183
|
+
|
|
184
|
+
## Example 2: Database Architecture
|
|
185
|
+
|
|
186
|
+
### Anti-pattern: Shared Database Across Multiple Microservices
|
|
187
|
+
|
|
188
|
+
```text
|
|
189
|
+
BAD: OrderService and UserService both directly read and write to the same 'users' table.
|
|
190
|
+
Schema migrations in UserService immediately break OrderService.
|
|
191
|
+
```
|
|
192
|
+
|
|
193
|
+
### Best practice: ContextOS Standard (Database-per-Service)
|
|
194
|
+
|
|
195
|
+
```text
|
|
196
|
+
GOOD: UserService owns user data. OrderService maintains a local read-model (denormalized user info)
|
|
197
|
+
synchronized via 'UserUpdated' events. Each service can migrate and scale independently.
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
# microservices Troubleshooting & Common Mistakes
|
|
201
|
+
|
|
202
|
+
## 1. Missing Consumer Idempotency
|
|
203
|
+
|
|
204
|
+
- **Symptom**: Users charged twice or duplicate records created when events are re-delivered.
|
|
205
|
+
- **Root Cause**: Message brokers guarantee at-least-once delivery; network retries re-send events.
|
|
206
|
+
- **Fix**: Store processed message/event IDs in a deduplication table with unique constraint.
|
|
207
|
+
|
|
208
|
+
## 2. Circular Service Dependencies
|
|
209
|
+
|
|
210
|
+
- **Symptom**: Service A cannot boot or operate without Service B, and Service B depends on Service A.
|
|
211
|
+
- **Root Cause**: Improper domain boundaries and coupled synchronous dependencies.
|
|
212
|
+
- **Fix**: Invert dependency using domain events or introduce a composite BFF/Orchestrator.
|
|
213
|
+
|
|
214
|
+
## 3. Distributed Tracing Blindness
|
|
215
|
+
|
|
216
|
+
- **Symptom**: Impossible to diagnose which downstream microservice caused a 500 error or latency spike.
|
|
217
|
+
- **Root Cause**: HTTP headers and event messages do not propagate correlation IDs.
|
|
218
|
+
- **Fix**: Propagate X-Correlation-ID / traceparent across all HTTP requests and event headers.
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# Protocol: Premium Utilitarian Minimalism UI Architect
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
An advanced frontend engineering directive for generating highly refined, ultra-minimalist, "document-style" web interfaces analogous to top-tier workspace platforms. This protocol strictly enforces a high-contrast warm monochrome palette, bespoke typographic hierarchies, meticulous structural macro-whitespace, bento-grid layouts, and an ultra-flat component architecture with deliberate muted pastel accents. It actively rejects standard generic SaaS design trends.
|
|
6
|
+
|
|
7
|
+
## When to Use
|
|
8
|
+
|
|
9
|
+
- When designing clean, editorial, or Notion-like document interfaces, workspaces, or notes apps.
|
|
10
|
+
- When creating minimalist SaaS dashboards, personal essays, portfolios, or agency landing pages.
|
|
11
|
+
- When asked for a "clean", "minimalist", "warm monochrome", or "flat bento-box" layout.
|
|
12
|
+
|
|
13
|
+
## Rules & Patterns
|
|
14
|
+
|
|
15
|
+
### 1. Absolute Negative Constraints (Banned Elements)
|
|
16
|
+
|
|
17
|
+
The AI must strictly avoid the following generic web development defaults:
|
|
18
|
+
|
|
19
|
+
- DO NOT use the "Inter", "Roboto", or "Open Sans" typefaces.
|
|
20
|
+
- DO NOT use generic, thin-line icon libraries like "Lucide", "Feather", or standard "Heroicons".
|
|
21
|
+
- DO NOT use Tailwind's default heavy drop shadows (e.g., `shadow-md`, `shadow-lg`, `shadow-xl`). Shadows must be practically non-existent or heavily customized to be ultra-diffuse and low opacity (< 0.05).
|
|
22
|
+
- DO NOT use primary colored backgrounds for large elements or sections (e.g., no bright blue, green, or red hero sections).
|
|
23
|
+
- DO NOT use gradients, neon colors, or 3D glassmorphism (beyond subtle navbar blurs).
|
|
24
|
+
- DO NOT use `rounded-full` (pill shapes) for large containers, cards, or primary buttons.
|
|
25
|
+
- DO NOT use emojis anywhere in code, markup, text content, headings, or alt text. Replace with proper icons or clean SVG primitives.
|
|
26
|
+
- DO NOT use generic placeholder names like "John Doe", "Acme Corp", or "Lorem Ipsum". Use realistic, contextual content.
|
|
27
|
+
- DO NOT use AI copywriting clichés: "Elevate", "Seamless", "Unleash", "Next-Gen", "Game-changer", "Delve". Write plain, specific language.
|
|
28
|
+
|
|
29
|
+
### 2. Typographic Architecture
|
|
30
|
+
|
|
31
|
+
The interface must rely on extreme typographic contrast and premium font selection to establish an editorial feel.
|
|
32
|
+
|
|
33
|
+
- **Primary Sans-Serif (Body, UI, Buttons):** Use clean, geometric, or system-native fonts with character (`'SF Pro Display', 'Geist Sans', 'Helvetica Neue', 'Switzer', sans-serif`).
|
|
34
|
+
- **Editorial Serif (Hero Headings & Quotes):** (`'Lyon Text', 'Newsreader', 'Playfair Display', 'Instrument Serif', serif`). Apply tight tracking (`-0.02em` to `-0.04em`) and tight line-height (`1.1`).
|
|
35
|
+
- **Monospace (Code, Keystrokes, Meta-data):** (`'Geist Mono', 'SF Mono', 'JetBrains Mono', monospace`).
|
|
36
|
+
- **Text Colors:** Body text must never be absolute black (`#000000`). Use off-black/charcoal (`#111111` or `#2F3437`) with a generous line-height of `1.6` for legibility. Secondary text should be muted gray (`#787774`).
|
|
37
|
+
|
|
38
|
+
### 3. Color Palette (Warm Monochrome + Spot Pastels)
|
|
39
|
+
|
|
40
|
+
Color is a scarce resource, utilized only for semantic meaning or subtle accents.
|
|
41
|
+
|
|
42
|
+
- **Canvas / Background:** Pure White `#FFFFFF` or Warm Bone/Off-White `#F7F6F3` / `#FBFBFA`.
|
|
43
|
+
- **Primary Surface (Cards):** `#FFFFFF` or `#F9F9F8`.
|
|
44
|
+
- **Structural Borders / Dividers:** Ultra-light gray `#EAEAEA` or `rgba(0,0,0,0.06)`.
|
|
45
|
+
- **Accent Colors:** Exclusively use highly desaturated, washed-out pastels for tags, inline code backgrounds, or subtle icon backgrounds:
|
|
46
|
+
- Pale Red: `#FDEBEC` (Text: `#9F2F2D`)
|
|
47
|
+
- Pale Blue: `#E1F3FE` (Text: `#1F6C9F`)
|
|
48
|
+
- Pale Green: `#EDF3EC` (Text: `#346538`)
|
|
49
|
+
- Pale Yellow: `#FBF3DB` (Text: `#956400`)
|
|
50
|
+
|
|
51
|
+
### 4. Component Specifications
|
|
52
|
+
|
|
53
|
+
- **Bento Box Feature Grids:** Asymmetrical CSS Grid layouts. Cards have `border: 1px solid #EAEAEA`, crisp border-radius (`8px` to `12px` max), and generous internal padding (`24px` to `40px`).
|
|
54
|
+
- **Primary Call-To-Action (Buttons):** Solid `#111111`, text `#FFFFFF`, radius `4px` to `6px`, no box-shadow. Micro-scale `transform: scale(0.98)` on active.
|
|
55
|
+
- **Tags & Status Badges:** Pill-shaped (`rounded-full`), small typography (`text-xs`), uppercase with wide tracking (`0.05em`), pastel background.
|
|
56
|
+
- **Accordions (FAQ):** Separated by `border-bottom: 1px solid #EAEAEA` without card boxes. Crisp `+` / `-` toggle icons.
|
|
57
|
+
- **Keystroke Micro-UIs:** `<kbd className="border border-[#EAEAEA] rounded bg-[#F7F6F3] font-mono px-1.5 py-0.5 text-xs">`.
|
|
58
|
+
|
|
59
|
+
### 5. Iconography & Imagery
|
|
60
|
+
|
|
61
|
+
- **System Icons:** Phosphor Icons (Bold/Fill) or Radix UI Icons for crisp, technical strokes.
|
|
62
|
+
- **Photography:** Desaturated images with warm tint and subtle grain overlay (`opacity: 0.04`).
|
|
63
|
+
- **Depth:** Subtle ambient gradients (`radial-gradient` with warm tones at `opacity: 0.03`) or minimal geometric line patterns.
|
|
64
|
+
|
|
65
|
+
### 6. Subtle Motion & Micro-Animations
|
|
66
|
+
|
|
67
|
+
- **Scroll Entry:** Fade-in + `translateY(12px)` over 600ms via `IntersectionObserver`.
|
|
68
|
+
- **Hover States:** Subtle card lift with ultra-diffuse shadow (`0 2px 8px rgba(0,0,0,0.04)`).
|
|
69
|
+
- **Staggered Reveals:** Cascading delay (`calc(var(--index) * 80ms)`).
|
|
70
|
+
|
|
71
|
+
## Code Examples
|
|
72
|
+
|
|
73
|
+
```tsx
|
|
74
|
+
export function BentoFeatureCard({ title, description, badge, tagColor = "blue" }: { title: string; description: string; badge: string; tagColor?: string }) {
|
|
75
|
+
return (
|
|
76
|
+
<div className="bg-[#FFFFFF] border border-[#EAEAEA] rounded-xl p-8 hover:shadow-[0_2px_8px_rgba(0,0,0,0.04)] transition-all duration-200">
|
|
77
|
+
<div className="flex items-center justify-between mb-4">
|
|
78
|
+
<span className="text-xs uppercase tracking-wider font-mono font-medium px-2.5 py-0.5 rounded-full bg-[#E1F3FE] text-[#1F6C9F]">
|
|
79
|
+
{badge}
|
|
80
|
+
</span>
|
|
81
|
+
</div>
|
|
82
|
+
<h3 className="font-serif text-2xl tracking-tight text-[#111111] mb-2">{title}</h3>
|
|
83
|
+
<p className="text-sm text-[#787774] leading-relaxed">{description}</p>
|
|
84
|
+
</div>
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Validation Checklist
|
|
90
|
+
|
|
91
|
+
- [ ] Macro-whitespace established with generous vertical section padding (`py-24` to `py-32`).
|
|
92
|
+
- [ ] No pure black (`#000000`) for text or backgrounds.
|
|
93
|
+
- [ ] Borders use crisp `1px solid #EAEAEA` or `rgba(0,0,0,0.06)`.
|
|
94
|
+
- [ ] No generic AI buzzwords or emojis used in copy.
|
|
95
|
+
- [ ] Typography uses editorial serif headers paired with clean sans-serif body.
|
|
96
|
+
- [ ] Card corners constrained to crisp 8px-12px radius; no pill containers.
|
|
97
|
+
|
|
98
|
+
## Common Mistakes
|
|
99
|
+
|
|
100
|
+
- Using heavy saturated primary colors for hero backgrounds.
|
|
101
|
+
- Adding default Tailwind drop-shadows (`shadow-lg`).
|
|
102
|
+
- Cluttering interfaces with emojis instead of clean SVG icons.
|
|
103
|
+
- Using default Inter or Roboto fonts without editorial contrast.
|
|
104
|
+
|
|
105
|
+
## Integration Notes
|
|
106
|
+
|
|
107
|
+
- Complements `ui-ux-pro` for color tokens and accessibility.
|
|
108
|
+
- Integrates with `impeccable-design` for QA and anti-pattern enforcement.
|