opencastle 1.5.0 → 1.6.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.
Files changed (177) hide show
  1. package/dist/cli/adapters/claude-code.d.ts.map +1 -1
  2. package/dist/cli/adapters/claude-code.js +1 -0
  3. package/dist/cli/adapters/claude-code.js.map +1 -1
  4. package/dist/cli/adapters/single-file-base.d.ts +8 -0
  5. package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
  6. package/dist/cli/adapters/single-file-base.js +48 -22
  7. package/dist/cli/adapters/single-file-base.js.map +1 -1
  8. package/dist/cli/bootstrap-on-init.test.js +11 -0
  9. package/dist/cli/bootstrap-on-init.test.js.map +1 -1
  10. package/dist/cli/command-namespace.test.js +17 -0
  11. package/dist/cli/command-namespace.test.js.map +1 -1
  12. package/dist/cli/convoy/engine.d.ts +12 -0
  13. package/dist/cli/convoy/engine.d.ts.map +1 -1
  14. package/dist/cli/convoy/engine.git.test.js +55 -0
  15. package/dist/cli/convoy/engine.git.test.js.map +1 -1
  16. package/dist/cli/convoy/engine.js +39 -1
  17. package/dist/cli/convoy/engine.js.map +1 -1
  18. package/dist/cli/convoy/findings.d.ts +35 -0
  19. package/dist/cli/convoy/findings.d.ts.map +1 -0
  20. package/dist/cli/convoy/findings.js +100 -0
  21. package/dist/cli/convoy/findings.js.map +1 -0
  22. package/dist/cli/convoy/findings.test.d.ts +2 -0
  23. package/dist/cli/convoy/findings.test.d.ts.map +1 -0
  24. package/dist/cli/convoy/findings.test.js +75 -0
  25. package/dist/cli/convoy/findings.test.js.map +1 -0
  26. package/dist/cli/convoy/isolation.d.ts.map +1 -1
  27. package/dist/cli/convoy/isolation.js +2 -1
  28. package/dist/cli/convoy/isolation.js.map +1 -1
  29. package/dist/cli/convoy/worktree.d.ts +5 -0
  30. package/dist/cli/convoy/worktree.d.ts.map +1 -1
  31. package/dist/cli/convoy/worktree.js +12 -0
  32. package/dist/cli/convoy/worktree.js.map +1 -1
  33. package/dist/cli/docs-accuracy.test.js +34 -0
  34. package/dist/cli/docs-accuracy.test.js.map +1 -1
  35. package/dist/cli/doctor.d.ts +11 -0
  36. package/dist/cli/doctor.d.ts.map +1 -1
  37. package/dist/cli/doctor.js +70 -6
  38. package/dist/cli/doctor.js.map +1 -1
  39. package/dist/cli/doctor.test.js +82 -1
  40. package/dist/cli/doctor.test.js.map +1 -1
  41. package/dist/cli/init.d.ts.map +1 -1
  42. package/dist/cli/init.js +58 -53
  43. package/dist/cli/init.js.map +1 -1
  44. package/dist/cli/init.test.js +28 -23
  45. package/dist/cli/init.test.js.map +1 -1
  46. package/dist/cli/layers.d.ts +20 -0
  47. package/dist/cli/layers.d.ts.map +1 -1
  48. package/dist/cli/layers.js +53 -1
  49. package/dist/cli/layers.js.map +1 -1
  50. package/dist/cli/layers.test.js +67 -1
  51. package/dist/cli/layers.test.js.map +1 -1
  52. package/dist/cli/lessons.d.ts +10 -0
  53. package/dist/cli/lessons.d.ts.map +1 -1
  54. package/dist/cli/lessons.js +26 -1
  55. package/dist/cli/lessons.js.map +1 -1
  56. package/dist/cli/lessons.test.js +38 -1
  57. package/dist/cli/lessons.test.js.map +1 -1
  58. package/dist/cli/plan.test.js +10 -8
  59. package/dist/cli/plan.test.js.map +1 -1
  60. package/dist/cli/sync-check.test.js +14 -2
  61. package/dist/cli/sync-check.test.js.map +1 -1
  62. package/dist/orchestrator/plugins/notion/config.d.ts.map +1 -1
  63. package/dist/orchestrator/plugins/notion/config.js +21 -17
  64. package/dist/orchestrator/plugins/notion/config.js.map +1 -1
  65. package/package.json +1 -1
  66. package/src/cli/adapters/claude-code.ts +1 -0
  67. package/src/cli/adapters/single-file-base.ts +63 -31
  68. package/src/cli/bootstrap-on-init.test.ts +12 -0
  69. package/src/cli/command-namespace.test.ts +17 -0
  70. package/src/cli/convoy/engine.git.test.ts +59 -0
  71. package/src/cli/convoy/engine.ts +44 -0
  72. package/src/cli/convoy/findings.test.ts +86 -0
  73. package/src/cli/convoy/findings.ts +129 -0
  74. package/src/cli/convoy/isolation.ts +2 -1
  75. package/src/cli/convoy/worktree.ts +12 -0
  76. package/src/cli/docs-accuracy.test.ts +42 -0
  77. package/src/cli/doctor.test.ts +101 -1
  78. package/src/cli/doctor.ts +73 -7
  79. package/src/cli/init.test.ts +27 -22
  80. package/src/cli/init.ts +62 -57
  81. package/src/cli/layers.test.ts +72 -1
  82. package/src/cli/layers.ts +52 -1
  83. package/src/cli/lessons.test.ts +48 -0
  84. package/src/cli/lessons.ts +27 -1
  85. package/src/cli/plan.test.ts +10 -8
  86. package/src/cli/sync-check.test.ts +16 -2
  87. package/src/orchestrator/agent-workflows/feature-implementation.md +1 -1
  88. package/src/orchestrator/agents/team-lead.agent.md +5 -5
  89. package/src/orchestrator/agents/testing-expert.agent.md +2 -2
  90. package/src/orchestrator/customizations/LESSONS-LEARNED.md +1 -1
  91. package/src/orchestrator/instructions/ai-optimization.instructions.md +6 -23
  92. package/src/orchestrator/instructions/general.instructions.md +22 -95
  93. package/src/orchestrator/plugins/astro/skills/astro-framework/SKILL.md +1 -3
  94. package/src/orchestrator/plugins/chrome-devtools/skills/browser-testing/SKILL.md +3 -5
  95. package/src/orchestrator/plugins/cloudflare/skills/cloudflare-platform/SKILL.md +2 -2
  96. package/src/orchestrator/plugins/contentful/skills/contentful-cms/SKILL.md +1 -1
  97. package/src/orchestrator/plugins/convex/skills/convex-database/SKILL.md +1 -3
  98. package/src/orchestrator/plugins/coolify/skills/coolify-deployment/SKILL.md +1 -1
  99. package/src/orchestrator/plugins/cypress/skills/cypress-testing/SKILL.md +1 -1
  100. package/src/orchestrator/plugins/drizzle/skills/drizzle-orm/SKILL.md +1 -1
  101. package/src/orchestrator/plugins/expo/skills/expo-development/SKILL.md +2 -2
  102. package/src/orchestrator/plugins/figma/skills/figma-design/SKILL.md +1 -3
  103. package/src/orchestrator/plugins/hetzner/skills/hetzner-cloud/SKILL.md +1 -1
  104. package/src/orchestrator/plugins/jira/skills/jira-management/SKILL.md +1 -3
  105. package/src/orchestrator/plugins/linear/skills/linear-task-management/SKILL.md +1 -3
  106. package/src/orchestrator/plugins/netlify/skills/netlify-deployment/SKILL.md +2 -2
  107. package/src/orchestrator/plugins/nextjs/skills/nextjs-framework/SKILL.md +13 -6
  108. package/src/orchestrator/plugins/notion/config.ts +21 -17
  109. package/src/orchestrator/plugins/notion/skills/notion-knowledge-management/SKILL.md +8 -16
  110. package/src/orchestrator/plugins/nx/skills/nx-workspace/SKILL.md +2 -4
  111. package/src/orchestrator/plugins/playwright/skills/playwright-testing/SKILL.md +1 -3
  112. package/src/orchestrator/plugins/prisma/skills/prisma-database/SKILL.md +1 -3
  113. package/src/orchestrator/plugins/resend/skills/resend-email/SKILL.md +2 -2
  114. package/src/orchestrator/plugins/sanity/skills/sanity-cms/SKILL.md +1 -3
  115. package/src/orchestrator/plugins/sentry/skills/sentry-monitoring/SKILL.md +1 -1
  116. package/src/orchestrator/plugins/slack/skills/slack-notifications/SKILL.md +1 -3
  117. package/src/orchestrator/plugins/strapi/skills/strapi-cms/SKILL.md +1 -3
  118. package/src/orchestrator/plugins/stripe/skills/stripe-payments/SKILL.md +4 -4
  119. package/src/orchestrator/plugins/supabase/skills/supabase-database/SKILL.md +3 -5
  120. package/src/orchestrator/plugins/teams/skills/teams-notifications/SKILL.md +1 -3
  121. package/src/orchestrator/plugins/trello/skills/trello-task-management/SKILL.md +1 -1
  122. package/src/orchestrator/plugins/turborepo/skills/turborepo-monorepo/SKILL.md +15 -88
  123. package/src/orchestrator/plugins/vercel/skills/vercel-deployment/SKILL.md +2 -2
  124. package/src/orchestrator/plugins/vitest/skills/vitest-testing/SKILL.md +17 -150
  125. package/src/orchestrator/prompts/assess-complexity.prompt.md +1 -0
  126. package/src/orchestrator/prompts/create-skill.prompt.md +13 -67
  127. package/src/orchestrator/prompts/fix-convoy.prompt.md +1 -0
  128. package/src/orchestrator/prompts/fix-prd.prompt.md +1 -0
  129. package/src/orchestrator/prompts/generate-prd.prompt.md +1 -0
  130. package/src/orchestrator/prompts/resolve-pr-comments.prompt.md +2 -2
  131. package/src/orchestrator/prompts/validate-convoy.prompt.md +1 -0
  132. package/src/orchestrator/prompts/validate-prd.prompt.md +1 -0
  133. package/src/orchestrator/skills/accessibility-standards/REFERENCE.md +17 -12
  134. package/src/orchestrator/skills/accessibility-standards/SKILL.md +1 -1
  135. package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -5
  136. package/src/orchestrator/skills/agent-hooks/SKILL.md +8 -6
  137. package/src/orchestrator/skills/api-patterns/SKILL.md +1 -1
  138. package/src/orchestrator/skills/code-commenting/SKILL.md +1 -1
  139. package/src/orchestrator/skills/context-map/REFERENCE.md +0 -2
  140. package/src/orchestrator/skills/context-map/SKILL.md +2 -2
  141. package/src/orchestrator/skills/data-engineering/REFERENCE.md +3 -9
  142. package/src/orchestrator/skills/data-engineering/SKILL.md +9 -16
  143. package/src/orchestrator/skills/decomposition/SKILL.md +1 -1
  144. package/src/orchestrator/skills/deployment-infrastructure/SKILL.md +4 -4
  145. package/src/orchestrator/skills/documentation-standards/SKILL.md +4 -2
  146. package/src/orchestrator/skills/fast-review/REFERENCE.md +0 -2
  147. package/src/orchestrator/skills/fast-review/SKILL.md +5 -5
  148. package/src/orchestrator/skills/frontend-design/REFERENCE.md +6 -28
  149. package/src/orchestrator/skills/frontend-design/SKILL.md +19 -9
  150. package/src/orchestrator/skills/git-workflow/SKILL.md +1 -1
  151. package/src/orchestrator/skills/memory-merger/SKILL.md +13 -15
  152. package/src/orchestrator/skills/observability-logging/SKILL.md +1 -1
  153. package/src/orchestrator/skills/orchestration-protocols/REFERENCE.md +5 -9
  154. package/src/orchestrator/skills/orchestration-protocols/SKILL.md +6 -6
  155. package/src/orchestrator/skills/panel-majority-vote/REFERENCE.md +0 -4
  156. package/src/orchestrator/skills/panel-majority-vote/SKILL.md +1 -1
  157. package/src/orchestrator/skills/panel-majority-vote/panel-report.template.md +0 -2
  158. package/src/orchestrator/skills/performance-optimization/SKILL.md +2 -2
  159. package/src/orchestrator/skills/project-consistency/SKILL.md +2 -2
  160. package/src/orchestrator/skills/project-consistency/TEMPLATES.md +0 -4
  161. package/src/orchestrator/skills/react-development/SKILL.md +3 -3
  162. package/src/orchestrator/skills/security-hardening/SKILL.md +5 -5
  163. package/src/orchestrator/skills/self-improvement/LESSON-CATEGORIES.md +0 -2
  164. package/src/orchestrator/skills/self-improvement/SKILL.md +1 -1
  165. package/src/orchestrator/skills/seo-patterns/SKILL.md +1 -1
  166. package/src/orchestrator/skills/session-checkpoints/CHECKPOINT-TEMPLATE.md +0 -2
  167. package/src/orchestrator/skills/session-checkpoints/SKILL.md +1 -1
  168. package/src/orchestrator/skills/team-lead-reference/SKILL.md +1 -1
  169. package/src/orchestrator/skills/technical-writing/SKILL.md +8 -13
  170. package/src/orchestrator/skills/testing-workflow/SKILL.md +6 -6
  171. package/src/orchestrator/skills/typescript-best-practices/SKILL.md +1 -1
  172. package/src/orchestrator/skills/unslop/SKILL.md +1 -1
  173. package/src/orchestrator/skills/validation-gates/REFERENCE.md +6 -31
  174. package/src/orchestrator/skills/validation-gates/SKILL.md +12 -26
  175. package/src/orchestrator/skills/writing-for-agents/SKILL.md +2 -2
  176. package/src/orchestrator/skills/documentation-standards/WRITING-GUIDE.md +0 -39
  177. package/src/orchestrator/skills/frontend-design/COMPONENTS.md +0 -113
@@ -1,10 +1,12 @@
1
1
  ---
2
2
  name: validation-gates
3
- description: "Defines 10 sequential validation gates: secret scanning, lint/test/build checks, blast radius analysis, dependency auditing, browser testing, cache management, regression checks, smoke tests. Use when running pre-deploy validation or CI checks, CI/CD pipelines, deployment pipeline validation, pre-merge checks, continuous integration, or pull request validation."
3
+ description: "Defines the ten gates delegated work passes, from secret scanning and lint/test/build to blast radius, dependency audit, browser, regression and smoke tests. Use when deciding which checks a change needs, or whether work is ready to merge or deploy."
4
4
  ---
5
5
 
6
6
  # Validation Gates
7
7
 
8
+ The project's commands live under Key Commands in `.opencastle/project.instructions.md`; with a task runner (Nx, Turborepo), its skill has them. Every gate below runs those, never a guessed `npm run …`.
9
+
8
10
  | Gate | Name | Runs When |
9
11
  |------|------|-----------|
10
12
  | 1 | Secret Scanning | Every delegation |
@@ -12,7 +14,7 @@ description: "Defines 10 sequential validation gates: secret scanning, lint/test
12
14
  | 3 | Blast Radius Check | Every delegation |
13
15
  | 4 | Dependency Audit | When `package.json` or lockfiles change |
14
16
  | 5 | Fast Review | Every delegation (with auto-PASS exceptions) |
15
- | 6 | Cache Clearing | Before browser testing |
17
+ | 6 | Cache Clearing | Only when a stale cache is suspected |
16
18
  | 7 | Browser Testing | UI changes |
17
19
  | 8 | Regression Testing | Every delegation |
18
20
  | 9 | Panel Review | High-stakes changes only |
@@ -35,15 +37,11 @@ Not a hit: obviously fake test fixtures (`sk-test-1234567890`), documentation
35
37
  placeholders (`YOUR_API_KEY_HERE`), and pattern matches inside explanatory
36
38
  comments.
37
39
 
38
- Scan every diff **before** any other gate: `gitleaks detect --source . --verbosity warn` (or CI equivalent) — fail on any findings.
40
+ Scan every diff **before** any other gate: `gitleaks git --redact --log-opts="main..HEAD"` for the branch's commits, `gitleaks dir <path>` for uncommitted files (or the CI equivalent). Fail on any finding.
39
41
 
40
42
  ## Gate 2: Deterministic Checks
41
43
 
42
- Run for every affected project (resolve exact commands via **codebase-tool** skill): lint (with auto-fix), test, build. All must pass with zero errors.
43
-
44
- ```bash
45
- npm run lint && npm test --silent && npm run build
46
- ```
44
+ Run the project's own lint (with auto-fix), test and build commands for every affected project. All must pass with zero errors.
47
45
 
48
46
  ## Gate 3: Blast Radius Check
49
47
 
@@ -70,40 +68,28 @@ Full checklist (license, duplicates, maintenance, peer deps, type coverage) with
70
68
 
71
69
  ## Gate 5: Fast Review
72
70
 
73
- Spawn reviewer sub-agent (load **fast-review** skill). PASS → proceed; FAIL → re-delegate (max 2); 3× FAIL → Gate 9. Auto-PASS rules: see **fast-review** skill.
71
+ Spawn a reviewer sub-agent (load **fast-review**). Auto-PASS rules, retries and escalation: the **fast-review** Handle Verdict table.
74
72
 
75
73
  ## Gate 6: Cache Clearing
76
74
 
77
- ```bash
78
- rm -rf node_modules/.cache .next/cache .astro/ dist/
79
- ```
75
+ Skip unless a stale cache is the suspect: the browser shows old output, or a build reports files that no longer exist. Then clear the framework cache (e.g. `.next/cache`, `node_modules/.cache`) and the project's own build output directory, named in its build config, and rebuild.
80
76
 
81
77
  ## Gate 7: Browser Testing
82
78
 
83
- UI changes are verified in Chrome. Start dev server → verify ACs → responsive breakpoints → screenshots as evidence, at most 3 per session. Load **browser-testing** skill.
84
-
85
- ```json
86
- { "tool": "browser-testing/take_screenshot", "url": "http://localhost:3000", "viewports": ["mobile", "desktop"] }
87
- ```
88
-
89
- Additional options: see [REFERENCE.md](REFERENCE.md).
79
+ UI changes are verified in Chrome with the **browser-testing** skill (Chrome DevTools MCP: `navigate_page`, `take_snapshot`, `evaluate_script` with a `function`). Start the dev server → verify ACs → every project breakpoint → at most 3 screenshots, as evidence.
90
80
 
91
81
  ## Gate 8: Regression Testing
92
82
 
93
- 1. Full test suite for all affected projects (resolve the command via the **codebase-tool** slot)
83
+ 1. Full test suite for all affected projects.
94
84
  2. Browser-test adjacent pages (navigation, routing, back-button) — find them via `rg "href=\"/changed-path|import .*from '@/components/changed'"`.
95
85
  3. Find consuming apps/packages via `rg "from '@/components/PriceRange'|@my-org/ui-package"`; run their tests or smoke builds.
96
86
 
97
87
  ## Gate 9: Panel Review
98
88
 
99
- Load **panel-majority-vote** skill — spawns 3 isolated reviewers, majority (2/3) wins. Use for: security-sensitive changes, DB migrations, architecture decisions.
89
+ Load **panel-majority-vote** — 3 isolated reviewers, majority (2/3) wins. Use for: the 3rd fast-review FAIL, security-sensitive changes, DB migrations.
100
90
 
101
91
  ## Gate 10: Final Smoke Test
102
92
 
103
93
  > Runs once after ALL tasks are Done.
104
94
 
105
- ```bash
106
- npm run build && npm test && npx playwright test
107
- ```
108
-
109
- Full build + test from clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
95
+ The project's full build and test commands, its E2E suite included, from a clean state → E2E browser walkthrough → cross-task integration check → responsive sweep (if UI). On failure: re-delegate specific failing integration only.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: writing-for-agents
3
- description: "Levers for writing documents an agent consumes: context pointers, the two loads, information hierarchy, progressive disclosure, completion criteria, leading words, and pruning. Use when creating or editing a skill, an agent definition, an instruction file, AGENTS.md, or CLAUDE.md."
3
+ description: "Levers for writing documents an agent reads: context pointers, progressive disclosure, completion criteria, leading words and pruning. Use when creating or editing a skill, an agent, an instruction file, AGENTS.md or CLAUDE.md."
4
4
  ---
5
5
 
6
6
  # Writing for Agents
@@ -79,6 +79,6 @@ When skills multiply past what a human can remember, that piled-up cognitive loa
79
79
 
80
80
  ## How this project compiles a skill
81
81
 
82
- A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer and the only part guaranteed to reach every assistant, so it carries the trigger branches. Claude Code and the single-file targets also receive sibling files, but Cursor and Windsurf compile `SKILL.md` alone. Anything the agent must have therefore belongs in `SKILL.md`.
82
+ A skill is one directory holding `SKILL.md` with `name` and `description` frontmatter. The `description` is the skill's top-level context pointer, always loaded, so it carries the trigger branches. Every target copies the whole directory, so companion files ship beside `SKILL.md` and are reached through the pointers `SKILL.md` gives them: what every branch needs stays in `SKILL.md`, what only some branches need can live in a companion file.
83
83
 
84
84
  Adapted from the `writing-for-agents` skill in [mattpocock/skills](https://github.com/mattpocock/skills), MIT, copyright 2026 Matt Pocock.
@@ -1,39 +0,0 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
- # Writing & Formatting Guide
4
-
5
- ## Voice & Tone
6
-
7
- - **Imperative mood** for instructions: "Add the header" not "You should add the header"
8
- - **Active voice**: "The function returns X" not "X is returned by the function"
9
- - **Concise**: one idea per sentence; trim filler words (just, simply, basically, very)
10
-
11
- ## Formatting Rules
12
-
13
- | Element | Convention |
14
- |---------|-----------|
15
- | Headings | Sentence case (`## Core principles`, not `## Core Principles`). Exception: proper nouns and acronyms. |
16
- | Lists | Parallel structure — all items start with same part of speech |
17
- | Code | Inline backticks for symbols/commands; fenced blocks for multi-line |
18
- | Links | Descriptive text: `[migration guide](./migrate.md)` not `[click here](./migrate.md)` |
19
- | Tables | Use for structured comparisons; keep columns ≤5 |
20
- | Line length | Wrap prose at ~120 characters for diff readability |
21
-
22
- ## Markdown Standards
23
-
24
- - One blank line before, after headings, code blocks, tables
25
- - No trailing whitespace
26
- - Files end with a single newline
27
- - Use `---` for horizontal rules (sparingly)
28
- - Prefer `-` for unordered lists
29
-
30
- ## Anti-Patterns
31
-
32
- | Anti-pattern | Fix |
33
- |-------------|-----|
34
- | Walls of prose without structure | Break into headings, bullets, or tables |
35
- | Duplicate content across docs | Link to canonical source |
36
- | Stale "Last Updated" dates | Remove or automate; manual dates drift |
37
- | TODO/FIXME placeholders in published docs | Resolve before merging |
38
- | Screenshots without alt text | Add descriptive alt text for accessibility |
39
- | Overly nested headings (h4+) | Flatten; if you need h4, consider splitting the doc |
@@ -1,113 +0,0 @@
1
- > Parent: [SKILL.md](./SKILL.md)
2
-
3
- # Frontend Design Components
4
-
5
- Extended component patterns, card variants, hero animations for **frontend-design** skill.
6
-
7
- ## Design Tokens (starter)
8
-
9
- ```css
10
- :root {
11
- --color-bg: #0f1724;
12
- --color-ink: #e6eef8;
13
- --color-accent: #ff7a59;
14
- --space-1: 4px;
15
- --space-2: 8px;
16
- --space-3: 16px;
17
- --radius-1: 6px;
18
- }
19
- ```
20
-
21
- ## Entrance Animation (starter)
22
-
23
- ```css
24
- @keyframes fadeUp {
25
- from { opacity: 0; transform: translateY(8px); }
26
- to { opacity: 1; transform: translateY(0); }
27
- }
28
-
29
- @media (prefers-reduced-motion: no-preference) {
30
- .fade-in-up { animation: fadeUp 420ms cubic-bezier(.2,.9,.2,1) both; }
31
- }
32
- ```
33
-
34
- ## Card Patterns
35
-
36
- ### Glass Card
37
-
38
- ```css
39
- .card-glass {
40
- background: rgba(255, 255, 255, 0.05);
41
- backdrop-filter: blur(12px);
42
- border: 1px solid rgba(255, 255, 255, 0.1);
43
- border-radius: var(--radius-1);
44
- padding: var(--space-3);
45
- }
46
- ```
47
-
48
- ### Elevated Card
49
-
50
- ```css
51
- .card-elevated {
52
- background: var(--color-bg);
53
- border-radius: var(--radius-1);
54
- padding: var(--space-3);
55
- box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
56
- transition: transform 200ms ease, box-shadow 200ms ease;
57
- }
58
- .card-elevated:hover {
59
- transform: translateY(-2px);
60
- box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
61
- }
62
- ```
63
-
64
- ## Hero Animations
65
-
66
- ### Staggered Fade-In
67
-
68
- ```css
69
- .hero-stagger > * {
70
- opacity: 0;
71
- transform: translateY(12px);
72
- animation: fadeUp 500ms cubic-bezier(.2,.9,.2,1) forwards;
73
- }
74
- .hero-stagger > *:nth-child(1) { animation-delay: 0ms; }
75
- .hero-stagger > *:nth-child(2) { animation-delay: 80ms; }
76
- .hero-stagger > *:nth-child(3) { animation-delay: 160ms; }
77
- ```
78
-
79
- ### Gradient Shift
80
-
81
- ```css
82
- .hero-gradient {
83
- background: linear-gradient(135deg, var(--color-accent), var(--color-bg));
84
- background-size: 200% 200%;
85
- animation: gradientShift 6s ease infinite;
86
- }
87
- @keyframes gradientShift {
88
- 0%, 100% { background-position: 0% 50%; }
89
- 50% { background-position: 100% 50%; }
90
- }
91
- ```
92
-
93
- ## Button Variants
94
-
95
- ```css
96
- .btn-primary {
97
- background: var(--color-accent);
98
- color: #fff;
99
- padding: var(--space-2) var(--space-3);
100
- border-radius: var(--radius-1);
101
- font-weight: 600;
102
- transition: opacity 150ms ease;
103
- }
104
- .btn-primary:hover { opacity: 0.9; }
105
-
106
- .btn-ghost {
107
- background: transparent;
108
- color: var(--color-ink);
109
- border: 1px solid currentColor;
110
- padding: var(--space-2) var(--space-3);
111
- border-radius: var(--radius-1);
112
- }
113
- ```