Build a Flint Static template by analysing a URL or image. Use when a user says "build this", "clone this site", "make a template from this URL", or provides a screenshot and asks to replicate the design.
Fetch a URL (or analyse an image), break down the design into Flint Static primitives, then implement a working template with any required new components.
Use fetch_webpage on the URL. Extract:
If the user provides an image instead of a URL, analyse the screenshot visually using the same checklist.
Map every detected section using references/section-patterns.md.
For each section decide:
| Decision | Action |
|---|---|
| Matches an existing Flint Static component | Reuse — add frontmatter key to content |
| Close but needs a variant | Extend existing component with a prop |
| Unique — appears on this page only | :::html block in content |
| Unique — will appear on multiple pages | New Component<T> (follow add-component skill) |
| Layout/structural wrapper | Goes in the template HTML |
Document your classification before writing any code. One line per section is enough.
Use references/tailwind-map.md to translate visual observations into Tailwind classes.
Priorities:
bg-gradient-to-r for gradient hero backgroundsExecute in this order:
Follow the add-component skill procedure:
src/components/<name>.test.tssrc/components/<name>.tssrc/templates/tag-engine.tsbun run test:run — must pass before continuingFollow the add-template skill procedure:
themes/<THEME>/templates/<name>.html (check THEME in .env; use themes/default/templates/ for a base template available to all themes){{head}}, {{content}}, {{foot-scripts}} as the required skeleton{{#if}} guards<style> tags)Create content/<name>.md with:
Template: <name>bun run build && bun run test:run
Fix any errors before handing back to the user.
Before completing, confirm:
{{#if}} guards on all optional tags<script>, <style>, or hard-coded text in templatereferences/section-patterns.md — Design section → Flint Static primitive lookup tablereferences/tailwind-map.md — Visual properties → Tailwind class heuristics..add-template/SKILL.md — Full template procedure and tag list..add-component/SKILL.md — Full component procedure