@a13xu/lucid 1.12.0 → 1.16.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/build/compression/semantic.d.ts +31 -0
- package/build/compression/semantic.js +196 -0
- package/build/config.d.ts +15 -0
- package/build/http/routes.d.ts +3 -0
- package/build/http/routes.js +56 -0
- package/build/http/server.d.ts +7 -0
- package/build/http/server.js +11 -0
- package/build/index.js +202 -2
- package/build/lucid-sync.d.ts +15 -0
- package/build/lucid-sync.js +72 -0
- package/build/retrieval/context.js +6 -0
- package/build/retrieval/qdrant.d.ts +1 -1
- package/build/retrieval/qdrant.js +11 -2
- package/build/tools/compress.d.ts +15 -0
- package/build/tools/compress.js +18 -0
- package/build/tools/init.js +62 -11
- package/build/tools/model-advisor.d.ts +9 -0
- package/build/tools/model-advisor.js +30 -0
- package/build/tools/smart-context.d.ts +16 -0
- package/build/tools/smart-context.js +54 -0
- package/build/tools/sync.js +8 -0
- package/build/tools/updater.d.ts +11 -0
- package/build/tools/updater.js +133 -0
- package/package.json +64 -59
- package/skills/lucid-audit/SKILL.md +73 -53
- package/skills/lucid-context/SKILL.md +69 -35
- package/skills/lucid-plan/SKILL.md +52 -60
- package/skills/lucid-security/SKILL.md +41 -59
- package/skills/lucid-start/SKILL.md +70 -0
- package/skills/lucid-webdev/SKILL.md +45 -123
|
@@ -1,123 +1,45 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: lucid-webdev
|
|
3
|
-
description:
|
|
4
|
-
argument-hint: "[
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
)
|
|
45
|
-
|
|
46
|
-
Returns: HTML meta tags + Open Graph + Twitter Card + JSON-LD structured data.
|
|
47
|
-
|
|
48
|
-
### Audit accessibility (WCAG)
|
|
49
|
-
```
|
|
50
|
-
accessibility_audit(
|
|
51
|
-
code="<your HTML/JSX/Vue snippet>",
|
|
52
|
-
wcag_level="AA", # A | AA | AAA
|
|
53
|
-
framework="vue" # html | jsx | vue
|
|
54
|
-
)
|
|
55
|
-
```
|
|
56
|
-
Returns: violations with severity (critical/warning/info), WCAG criterion, and corrected code.
|
|
57
|
-
|
|
58
|
-
## API & Testing
|
|
59
|
-
|
|
60
|
-
### Generate a typed API client
|
|
61
|
-
```
|
|
62
|
-
api_client(
|
|
63
|
-
endpoint="/users/:id",
|
|
64
|
-
method="GET", # GET | POST | PUT | PATCH | DELETE
|
|
65
|
-
response_schema="{ id: string; name: string; email: string }",
|
|
66
|
-
auth="bearer", # bearer | cookie | apikey | none
|
|
67
|
-
base_url_var="NEXT_PUBLIC_API_URL"
|
|
68
|
-
)
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### Generate tests
|
|
72
|
-
```
|
|
73
|
-
test_generator(
|
|
74
|
-
code="<your function or component source>",
|
|
75
|
-
test_framework="vitest", # vitest | jest | playwright
|
|
76
|
-
test_type="unit", # unit | integration | e2e
|
|
77
|
-
component_framework="vue" # vue | react | none
|
|
78
|
-
)
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
## Layout & Design
|
|
82
|
-
|
|
83
|
-
### Generate a responsive layout
|
|
84
|
-
```
|
|
85
|
-
responsive_layout(
|
|
86
|
-
description="sidebar left 260px, main content, right panel 240px",
|
|
87
|
-
framework="tailwind", # tailwind | css-grid | flexbox
|
|
88
|
-
breakpoints=["mobile", "tablet", "desktop"],
|
|
89
|
-
container="sidebar" # full | centered | sidebar
|
|
90
|
-
)
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
### Generate design tokens
|
|
94
|
-
```
|
|
95
|
-
design_tokens(
|
|
96
|
-
brand_name="Acme",
|
|
97
|
-
primary_color="#6366F1", # hex or name (blue, green, etc.)
|
|
98
|
-
mood="minimal", # minimal | bold | playful | corporate
|
|
99
|
-
output_format="css-variables" # css-variables | tailwind-config | json
|
|
100
|
-
)
|
|
101
|
-
```
|
|
102
|
-
|
|
103
|
-
## Security & Performance
|
|
104
|
-
|
|
105
|
-
### Scan for security vulnerabilities
|
|
106
|
-
```
|
|
107
|
-
security_scan(
|
|
108
|
-
code="<your code snippet>",
|
|
109
|
-
language="typescript", # javascript | typescript | html | vue
|
|
110
|
-
context="frontend" # frontend | backend | api
|
|
111
|
-
)
|
|
112
|
-
```
|
|
113
|
-
Detects: XSS, eval/injection, hardcoded secrets, SQL injection, open redirects, CORS issues.
|
|
114
|
-
|
|
115
|
-
### Analyze Core Web Vitals issues
|
|
116
|
-
```
|
|
117
|
-
perf_hints(
|
|
118
|
-
code="<your component or page source>",
|
|
119
|
-
framework="vue", # react | vue | nuxt | vanilla
|
|
120
|
-
context="page" # component | page | layout
|
|
121
|
-
)
|
|
122
|
-
```
|
|
123
|
-
Detects: missing image dimensions (CLS), render-blocking scripts (FCP), fetch-in-render (TTFB), heavy click handlers (INP), missing useMemo/computed.
|
|
1
|
+
---
|
|
2
|
+
name: lucid-webdev
|
|
3
|
+
description: Use for web development tasks — generates components, pages, audits, API clients, and performance hints via Lucid's 10 web dev tools.
|
|
4
|
+
argument-hint: "[what you are building: component/page/api/audit]"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
<HARD-GATE>
|
|
8
|
+
Before building any web component, page, or API client from scratch:
|
|
9
|
+
call the relevant generator tool first. Do not write boilerplate manually.
|
|
10
|
+
</HARD-GATE>
|
|
11
|
+
|
|
12
|
+
## When to invoke
|
|
13
|
+
|
|
14
|
+
**INVOKE when:** building UI components, scaffolding pages, writing API clients, running accessibility/security/performance audits
|
|
15
|
+
**DO NOT INVOKE for:** backend-only logic with no web layer
|
|
16
|
+
|
|
17
|
+
## Steps
|
|
18
|
+
|
|
19
|
+
### 0. Get model recommendation
|
|
20
|
+
```
|
|
21
|
+
suggest_model(task_description="<paste the user's task description>")
|
|
22
|
+
```
|
|
23
|
+
Say: **"Using [model] — [reasoning]"** then proceed.
|
|
24
|
+
|
|
25
|
+
## Available tools
|
|
26
|
+
|
|
27
|
+
| Task | Tool |
|
|
28
|
+
|---|---|
|
|
29
|
+
| Generate a React/Vue component | `generate_component(description, framework, styling, typescript)` |
|
|
30
|
+
| Scaffold a full page | `scaffold_page(page_name, framework, sections, seo_title)` |
|
|
31
|
+
| SEO meta tags | `seo_meta(title, description, keywords, page_type, url, image_url)` |
|
|
32
|
+
| Accessibility audit | `accessibility_audit(code, wcag_level, framework)` |
|
|
33
|
+
| API client | `api_client(endpoint, method, response_schema, auth, base_url_var)` |
|
|
34
|
+
| Test scaffolding | `test_generator(code, test_framework, test_type, component_framework)` |
|
|
35
|
+
| Responsive layout | `responsive_layout(description, framework, breakpoints, container)` |
|
|
36
|
+
| Security scan | `security_scan(code, language, context)` |
|
|
37
|
+
| Design tokens | `design_tokens(brand_name, primary_color, mood, output_format)` |
|
|
38
|
+
| Performance hints | `perf_hints(code, framework, context)` |
|
|
39
|
+
|
|
40
|
+
## Workflow
|
|
41
|
+
|
|
42
|
+
1. Call the relevant generator/auditor tool
|
|
43
|
+
2. Review output → adapt to project conventions
|
|
44
|
+
3. `sync_file(path="<generated file>")` after saving
|
|
45
|
+
4. Run /lucid-audit before marking done
|