marko-6-language
Installation
SKILL.md
Marko 6 language
Distilled from the full Marko 6 docs (https://markojs.com/docs — reference, explanation, guide, tutorial; Marko 5 / class API intentionally excluded). This file = rules agents get wrong + quick reference. Full detail lives in references/:
| File | Read when |
|---|---|
references/language.md |
syntax: statements, attributes & shorthands, content, attr tags, tag vars/params, dynamic tags, concise mode, whitespace |
references/core-tags.md |
<if> <show> <for> <let> <const> <return> <script> <style> <define> <lifecycle> <id> <await> <try> + reactivity/scheduling model |
references/native-tags.md |
class=/style=/content=, event delegation, controllable value:=/checked:=/open:=, spread ownership |
references/typescript.md |
Input, Marko.* types, augmenting natives/globals/CSS, TS syntax in tags |
references/template-api.md |
render/mount, $global (serializedGlobals, cspNonce, renderId, runtimeId) |
references/custom-tags-styling.md |
tag discovery order, tags/ dirs, marko.json, styles, lazy with { load } |
references/patterns.md |
controllable components, nested state, serializable/immutable state, streaming, tooling |
Component architecture for this repo (Zag wiring, attr-tag APIs): skills/port-to-marko/references/marko-gotchas.md.