hawk
Build, refactor, and debug Hawk pages, templates, cards, and Hawk-500 code. Use when working with Hawk's page/file/card/load model, Sail/manx UI, `%twin`/`%call`/`%view`/`%lens` composition, Feather s
SKILL.md.claude/skills/hawk/SKILL.md
GitHubhawk skill
Use this skill when editing Hawk applications or explaining Hawk behavior.
Quick workflow
- Identify the page path, expected card shape, and whether this is a plain page, a template, or a composed page.
- Prefer simple
manxoutput first. Only reach for richerloadcomposition when behavior clearly needs it. - Read card data through
cand file/tree data throughf. - Use Feather classes and semantic Sail before adding custom CSS or JS.
- Check metadata early, especially
/title,/pulse,/peek/public, and/poke/public. - Put
!:at the top of Hawk-500 pages while debugging.
Read These References As Needed
- For Hawk's types, compile subject, loads, forms, event loop, and utility doors, read references/core-model.md.
- For Feather, Spine, templates, auth/public access, URL behavior, configuration, and debugging guidance, read references/ui-and-ops.md.
Default Working Rules
- Treat Hawk as a tree of programmable pages:
file -> page -> {meta, code, data}. - Keep the root dime at
/as the command kind for non-empty cards. - Prefer
%manxfor straightforward pages. - Use
%twinfor shared code,%callfor shared code with initialization data,%viewfor mirroring another page's data,%lensfor subtree reductions, and%shedonly as a final asynchronous load. - Do not hand-walk
infoorfiletrees unless the utility doors are insufficient. - Do not put secrets in public page code. A public page exposes its
code.pagetoo.
Practical Checks
- If a form behaves oddly, verify card path names and whether values are being parsed as dimes instead of plain strings.
- If a page does not update as expected, check whether it depends on the changed subtree through
%view,%twin,%call, or%lens. - If a page is meant to be internet-visible or form-submittable, verify
/peek/publicand/poke/public. - If styling drifts, prefer Feather classes or
head-extrasoverrides before custom one-off CSS.
Manual And Source Pointers
- Manual root:
https://hawk.computer/~~/~/manual/ - Some utilities are underdocumented in the manual. Inspect
/lib/hawk/hoonand/lib/html-utils/hoonwhen needed.