tutuca 0.9.54 → 0.9.55
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/package.json +1 -1
- package/skill/tutuca/SKILL.md +15 -25
package/package.json
CHANGED
package/skill/tutuca/SKILL.md
CHANGED
|
@@ -1,37 +1,27 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: tutuca
|
|
3
|
-
description:
|
|
3
|
+
description: Use when authoring or reviewing tutuca modules — `component({...})` definitions, `html\`...\`` views, `@`-directives, `input` / `bubble` / `receive` / `response` / `alter` handlers, macros, or `getTests` exports — or when running the `tutuca` CLI (`lint` / `test` / `render` / `docs`). Covers the post-edit `tutuca <module> lint` → `test` → `render --title "<example>"` verification recipe.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Tutuca is an immutable-state SPA framework: components have typed
|
|
9
|
-
`fields`, auto-generated mutators (`setX`, `pushInX`, …), HTML-template
|
|
10
|
-
`view`s with `@`-prefixed directives, and `bubble` / `receive` /
|
|
11
|
-
`response` handlers for orchestration.
|
|
12
|
-
|
|
13
|
-
## Verifying changes
|
|
6
|
+
<!-- This file is generated by scripts/build-skill.js from docs/llm/. Do not edit. -->
|
|
14
7
|
|
|
15
|
-
|
|
16
|
-
done:
|
|
17
|
-
|
|
18
|
-
1. **Lint** — catches undefined fields/handlers/macros/events. Exits
|
|
19
|
-
`2` on any error-level finding.
|
|
8
|
+
# Tutuca
|
|
20
9
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
Tutuca is an immutable-state SPA framework. See [core.md](./core.md)
|
|
11
|
+
for the framework primer and the post-edit verification recipe
|
|
12
|
+
(`tutuca <module> lint` → `test` → `render --title "<example>"`).
|
|
24
13
|
|
|
25
|
-
|
|
26
|
-
confirms the component mounts in a headless DOM with the new
|
|
27
|
-
behavior. Exits `3` on render crash.
|
|
14
|
+
## Companion skills
|
|
28
15
|
|
|
29
|
-
|
|
30
|
-
tutuca <module-path> render --title "<example title>"
|
|
31
|
-
```
|
|
16
|
+
When authoring tutuca code, also load these if available:
|
|
32
17
|
|
|
33
|
-
|
|
34
|
-
|
|
18
|
+
- **immutable-js** — every `immutable` export is reachable through
|
|
19
|
+
`tutuca` (`List`, `IMap`, `OMap`, `ISet`, `Record`, `Seq`,
|
|
20
|
+
`fromJS`, `is`, …). Reach for it whenever the work touches state
|
|
21
|
+
values.
|
|
22
|
+
- **margaui** — the Tailwind v4 / daisyUI-compatible class library.
|
|
23
|
+
Reach for it when the project uses MargaUI / Tailwind class lists in
|
|
24
|
+
`class=` / `:class=`.
|
|
35
25
|
|
|
36
26
|
## Routing
|
|
37
27
|
|