awd-skill 0.0.0-stage → 1.0.1
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/README.md +324 -3
- package/bin/install.js +758 -0
- package/commands/awd-skill-assets.md +25 -0
- package/commands/awd-skill-backend.md +12 -0
- package/commands/awd-skill-content.md +12 -0
- package/commands/awd-skill-deploy.md +12 -0
- package/commands/awd-skill-design.md +12 -0
- package/commands/awd-skill-frontend.md +12 -0
- package/commands/awd-skill-growth.md +12 -0
- package/commands/awd-skill-launch.md +12 -0
- package/commands/awd-skill-list.md +12 -0
- package/commands/awd-skill-mode-e.md +18 -0
- package/commands/awd-skill-mode-f.md +16 -0
- package/commands/awd-skill-motion.md +12 -0
- package/commands/awd-skill-qa.md +12 -0
- package/commands/awd-skill-research.md +12 -0
- package/commands/awd-skill-strategy.md +12 -0
- package/commands/awd-skill-taste.md +18 -0
- package/commands/awd-skill-template-use.md +15 -0
- package/commands/awd-skill.md +11 -0
- package/docs/EXAMPLES.md +124 -0
- package/docs/INSTALL.md +203 -0
- package/docs/LICENSING.md +150 -0
- package/docs/PRODUCTION.md +921 -0
- package/docs/TEMPLATES.md +105 -0
- package/docs/VISUAL-GATES.md +131 -0
- package/docs/animotion/AGENTIC-MODE.md +537 -0
- package/docs/animotion/API-REFERENCE.md +2457 -0
- package/docs/animotion/DECLARATIVE-ATTRIBUTES.md +8563 -0
- package/docs/animotion/EFFECTS-PLAYBOOK.md +377 -0
- package/docs/animotion/IMPERATIVE-API.md +9056 -0
- package/docs/design-editor-plan.md +259 -0
- package/docs/generative-ai-canvas-plan.md +144 -0
- package/docs/target-state-plan.md +466 -0
- package/package.json +68 -4
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
# Templates — save one, use one (Mode E)
|
|
2
|
+
|
|
3
|
+
A finished build becomes a **template**: everything swappable (brand, copy, SEO, contact, assets, links, facts) turns into a `{{AWD:...}}` slot listed in a `template-manifest.json`, and every new site from it answers only the **swap interview** — what changes — while the design, structure and motion stay locked. This guide covers both halves: **making** templates (a project, a page, or a single section) and **using** them the correct way — from your library or from the template catalog's copy modes.
|
|
4
|
+
|
|
5
|
+
> **License: one plan, not two.** Template **browsing** is signed-in/free; **using** a template requires the single **$25/month plan** (`id: "template"`, [Get AWD — $25/month](https://skills.animotion.click/checkout?plan=template)). The agent validates it with `"plan": "template"` before any template use at all — `/awd-template-use`, `/awd-skill-mode-e`, `template_project_create`, `POST /api/templates/:id/use`, a pasted `AWD-COPY/1` payload, a section/prompt copy or an item link. Unmet → `402 PLAN_REQUIRED` with `upgrade: /api/plan/checkout`. The skill itself and every department stay free; there is no separate Studio key or second plan. One key covers all template, motion and editor work. Setup: [LICENSING.md](LICENSING.md).
|
|
6
|
+
|
|
7
|
+
## The 30-second version
|
|
8
|
+
|
|
9
|
+
| I want to… | Say / run |
|
|
10
|
+
|---|---|
|
|
11
|
+
| Save this finished project as a template | `/awd-mode-e` inside the project |
|
|
12
|
+
| Save one page or one section as a template | `/awd-mode-e` + "save just the testimonials section as a template" |
|
|
13
|
+
| Build a new site from a saved template | `/awd-mode-e-<template-name>` |
|
|
14
|
+
| Use a template from the catalog | `/awd-template-use` with the item link, copy output (any copy mode) or name |
|
|
15
|
+
| See what's in the library | `/awd-mode-e` with no project open (browse signed-in/free) |
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
## Part 1 — Turning a project into a template
|
|
20
|
+
|
|
21
|
+
**Precondition:** the project was built with this skill (it has `build-state.md`, or artifacts like `tokens.json` / `copy.md` / `qa-report.md`). The agent saves **AWD projects only** — anything else gets a one-line decline. Saving uses the same one $25/month plan as template use.
|
|
22
|
+
|
|
23
|
+
Run `/awd-mode-e` (or just say "save this project as a template"). Four stages, one gate each — you answer only four questions:
|
|
24
|
+
|
|
25
|
+
| Stage | What the agent does | The gate (you answer) |
|
|
26
|
+
|---|---|---|
|
|
27
|
+
| **E.S1 Source scan** | Inventories the project: framework, pages, mode, `brand.md`, assets, copy, SEO, deploy target | *"Found [11 pages, HTML/CSS, 24 assets, mode A] — save this as a template?"* |
|
|
28
|
+
| **E.S2 Placeholder extraction** | Converts everything swappable into namespaced tokens `{{AWD:...}}` and writes a **generation brief** for every asset slot | *"27 slots found (12 copy, 6 assets, 5 brand, 4 links). Extract all?"* |
|
|
29
|
+
| **E.S3 Sanitization** | Strips secrets, `.git`, `node_modules`, build outputs, client PII, personal paths — anything that must never ship | *"Sanitized: removed [items]. [K] files still contain [list] — slot or delete?"* |
|
|
30
|
+
| **E.S4 Manifest & save** | Writes `template-manifest.json` + a `template.md` card into `~/.awd-skill/templates/<slug>/` | *"Template [name] saved ([N] slots, [M] assets). Build one now, or stop?"* |
|
|
31
|
+
|
|
32
|
+
**What becomes a slot** — you review the list at E.S2 and can keep anything fixed instead:
|
|
33
|
+
|
|
34
|
+
| Category | Examples | Swapped at |
|
|
35
|
+
|---|---|---|
|
|
36
|
+
| `brand` | logo, palette, fonts, name, tagline | swap interview |
|
|
37
|
+
| `copy` | H1, hero sub, CTA labels, section headings | swap interview (keep sample · rewrite · paste yours) |
|
|
38
|
+
| `seo` | title, meta description, OG image, favicon | content/SEO swap |
|
|
39
|
+
| `contact` | phone, email, address, hours, socials | swap interview |
|
|
40
|
+
| `assets` | hero image/video, feature shots, icons | Asset Builder — free-lane source only |
|
|
41
|
+
| `links` | nav targets, external URLs, legal pages | swap interview |
|
|
42
|
+
| `colors-type` | token overrides | swap interview (optional) |
|
|
43
|
+
| `business-facts` | pricing, testimonials, stats — **never invented** | you supply values or keep samples |
|
|
44
|
+
|
|
45
|
+
**Where it lives:** `~/.awd-skill/templates/<slug>/` — one shared library every agent sees (`template-manifest.json` + `template.md` + `project/`). Re-saving the same name asks before replacing; deletion only on your explicit request.
|
|
46
|
+
|
|
47
|
+
## Part 2 — Turning a page or a section into a template
|
|
48
|
+
|
|
49
|
+
Same command, scoped — say what to save:
|
|
50
|
+
|
|
51
|
+
> "Save just the testimonials section as a template." · "Turn the pricing page into a template."
|
|
52
|
+
|
|
53
|
+
The same four stages run over just that scope's files, and the manifest is written with `kind: "page"` or `kind: "section"` — scoped slots, scoped asset briefs, same schema. These scoped templates are exactly what the template catalog's **section** copies carry: drop-in pieces you compose into new pages (slot clashes between composed pieces are namespaced automatically).
|
|
54
|
+
|
|
55
|
+
## Part 3 — The correct way to use a template
|
|
56
|
+
|
|
57
|
+
### From your library
|
|
58
|
+
|
|
59
|
+
```
|
|
60
|
+
/awd-template-use clinic-landing
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
(or `/awd-mode-e-clinic-landing`, or `/awd-mode-e` with no project open → pick from the list). The agent instantiates the template and runs the apply flow below.
|
|
64
|
+
|
|
65
|
+
### From the template catalog (any copy mode)
|
|
66
|
+
|
|
67
|
+
Browse the catalog, open an item, and use whichever copy button fits — each emits a payload your agent already understands (`AWD-COPY/1`), so **pasting it (or the item link, or just the item name) with `/awd-template-use` is all you do**:
|
|
68
|
+
|
|
69
|
+
| Copy button | What it gives you | What the agent does with it |
|
|
70
|
+
|---|---|---|
|
|
71
|
+
| **Copy template** | the whole item (manifest + files) | installs it to your library, then runs the apply flow |
|
|
72
|
+
| **Copy section** | one drop-in fragment with its slots | places it in your page, swaps its slots, fills its assets |
|
|
73
|
+
| **Copy prompt** | a build brief that recreates the item | rebuilds it in your stack through the normal departments |
|
|
74
|
+
| **Copy link** | the item URL | fetches the item itself and continues as above |
|
|
75
|
+
|
|
76
|
+
Works mid-project too — "add this testimonials section to the pricing page" with the payload pasted is a normal ask. Browsing and copy buttons can be signed-in/free; the **use** step runs the one-plan gate.
|
|
77
|
+
|
|
78
|
+
### What happens when you use one (the apply flow)
|
|
79
|
+
|
|
80
|
+
1. **One-plan check first** — validate the single $25/month plan with `"plan": "template"` (once per session). Unmet → `402 PLAN_REQUIRED`, `upgrade: /api/plan/checkout`, no files touched.
|
|
81
|
+
2. **Ingest** (catalog copies) — parsed, validated, installed with `source`, `sourceUrl`, `version`, `license` and `attribution` recorded.
|
|
82
|
+
3. **Swap interview** — the only interview you get: brand → contact → copy → links → facts. Each slot shows the sample as the recommended default; copy slots offer *keep sample · rewrite for my business · paste mine*.
|
|
83
|
+
4. **Assets** — the free-lane Asset Builder only: a client brand file placed as an input, hand-drawn SVG/procedural art, a Crucible local 3D still, or your own agent-native model. No credits, top-ups, proxy or paid generation. Template demo assets never ship.
|
|
84
|
+
5. **Content & SEO swap** — every token replaced; rewrites follow the Content rules when you asked for new copy.
|
|
85
|
+
6. **Light pipeline** — mandatory AnimotionJS motion verify → full QA (never skipped) → Deploy on approval.
|
|
86
|
+
7. **Sign-off** — zero leftover `{{AWD:` tokens, asset + attribution summary, live URL.
|
|
87
|
+
|
|
88
|
+
## Part 4 — the rules that protect you
|
|
89
|
+
|
|
90
|
+
- **The gate always runs first on use.** No template use — any category, any copy mode, even a pasted payload — before the one-plan check. No valid plan → the agent stops with `402 PLAN_REQUIRED` and shows `https://skills.animotion.click/checkout?plan=template`; it never improvises around it.
|
|
91
|
+
- **Facts are never invented.** Testimonials, pricing, stats come from you. No value given → the sample stays and is marked as a placeholder.
|
|
92
|
+
- **Assets are never faked or bought.** Free-lane Asset Builder sources only — no placeholders, no "keep the demo", no stock swaps, no paid lane.
|
|
93
|
+
- **Attribution and license travel with catalog items** and are printed at sign-off; license headers are never stripped.
|
|
94
|
+
- **Your template's design is law.** The agent swaps and refines; it never redesigns without asking.
|
|
95
|
+
|
|
96
|
+
## Troubleshooting
|
|
97
|
+
|
|
98
|
+
| Symptom | What's going on |
|
|
99
|
+
|---|---|
|
|
100
|
+
| An agent asks for a license key at project start | Wrong — the skill is free. Only template use/Mode E/F, motion and editor tools need the one $25/month plan ([LICENSING.md](LICENSING.md)) |
|
|
101
|
+
| A Studio key is rejected on template work | Expected — there is no separate Studio plan; the one $25/month plan (`id: "template"`) covers templates, motion and editor tools |
|
|
102
|
+
| I pasted a copy payload and nothing happened | Say "use this as a template" or run `/awd-template-use` — the payload is recognized by its `AWD-COPY` header; the plan is checked before details are fetched |
|
|
103
|
+
| `402 PLAN_REQUIRED` after browsing | Browsing is free, **using** is not — follow `upgrade: /api/plan/checkout` or `https://skills.animotion.click/checkout?plan=template` |
|
|
104
|
+
| Where did my template go? | `~/.awd-skill/templates/<slug>/` — `/awd-mode-e` with no project lists everything |
|
|
105
|
+
| I copied a newer version of a catalog item | The agent asks before replacing the installed one — never a silent overwrite |
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# Visual gates — seeing where the build is and answering at a glance
|
|
2
|
+
|
|
3
|
+
AWD Skill already stops at a gate after every stage. **Visual gates** are the presentation layer on top of that: the same pipeline, the same one-decision-per-stage rule, but readable at a glance instead of buried in prose.
|
|
4
|
+
|
|
5
|
+
Two layers, in this order:
|
|
6
|
+
|
|
7
|
+
| Layer | Always on? | What it is |
|
|
8
|
+
|---|---|---|
|
|
9
|
+
| **1 · Text** | Yes — every host | Stage rail in the footer, numbered gate cards, `/awd-list` visual map |
|
|
10
|
+
| **2 · Rendered** | When the host can show files | `.awd/visual/progress-board.html`, `.awd/visual/gate-card.html`, real screenshots |
|
|
11
|
+
|
|
12
|
+
Text is the source of truth. The rendered layer is additive — if an artifact and the chat disagree, the chat is right and the artifact is regenerated.
|
|
13
|
+
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
## 1 · The stage rail
|
|
17
|
+
|
|
18
|
+
Every response ends with the footer plus a rail of one glyph per department:
|
|
19
|
+
|
|
20
|
+
```
|
|
21
|
+
📍 Progress — Design · Stage 2/3: Design production (/awd-design)
|
|
22
|
+
🧭 Rail — 1✓ 2✓ 3✓ 4⏸ 5○ 6– 7○ 8○ 9○ 10– 11○
|
|
23
|
+
⏭️ Next — Design · Stage 3: Asset production (/awd-design)
|
|
24
|
+
▶️ Move to the next stage? (yes / stay / jump to <department or stage — full index: /awd-list)
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
| Glyph | Meaning |
|
|
28
|
+
|---|---|
|
|
29
|
+
| `✓` | Department complete |
|
|
30
|
+
| `▸` | Current department, work in progress |
|
|
31
|
+
| `⏸` | Current department, gate open — waiting on you |
|
|
32
|
+
| `○` | Not started |
|
|
33
|
+
| `–` | Skipped / not requested (Backend, Launch, or bypassed) |
|
|
34
|
+
|
|
35
|
+
The rail is **one glyph per department** — the exact stage is in the Progress and Next lines. Mode E and Mode F print their own rail (`E.1✓ E.2⏸ E.3○ …`, `F.1✓ …`).
|
|
36
|
+
|
|
37
|
+
## 2 · Gate cards
|
|
38
|
+
|
|
39
|
+
Each stage ends with one numbered card — what exists, what to look at, and 2–4 options with one recommendation:
|
|
40
|
+
|
|
41
|
+
```
|
|
42
|
+
🚦 GATE — Design · 4.2 Design production
|
|
43
|
+
**Produced:** hero + full page design · taste audit 84/100
|
|
44
|
+
**Review:** `design/full-page.png` · `design/tokens.json` · http://localhost:3000
|
|
45
|
+
**Choose one:**
|
|
46
|
+
1. **Approve** — lock the design and move to 4.3 asset production ← recommended
|
|
47
|
+
2. **Request changes** — say what to adjust; same direction
|
|
48
|
+
3. **Explore another direction** — I'll produce a new 3-up set first
|
|
49
|
+
Reply with a number or your own words — this gate stays open until you answer.
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
The card options are the same choices the agent's `question` tool shows — numbering is identical, so either input works. There is never a second question hiding inside an option.
|
|
53
|
+
|
|
54
|
+
Credit-spending gates add a `Cost:` line with the quoted range and the refund rule before the option that spends.
|
|
55
|
+
|
|
56
|
+
## 2b · Answering on the board
|
|
57
|
+
|
|
58
|
+
On the rendered board the options are real buttons, not decoration:
|
|
59
|
+
|
|
60
|
+
| Do this | Get this |
|
|
61
|
+
|---|---|
|
|
62
|
+
| Click an option, or press `1`–`4` | It's marked selected and an answer bar appears |
|
|
63
|
+
| `Enter`, or the **Copy** button | `4.2 → 1 — Approve` on your clipboard (or selected, if the browser blocks the clipboard) |
|
|
64
|
+
| `Esc`, or **Clear** | Selection cleared |
|
|
65
|
+
| Reload the page | Selection restored — it's saved in the page's local storage |
|
|
66
|
+
|
|
67
|
+
Then paste the line in the chat, or just type the number. Here is the limit, stated plainly: **a click cannot reach the agent by itself.** A local HTML page has no channel into your chat, so the board never says "sent", "submitted" or "received" — it captures your choice and hands you the exact reply to paste.
|
|
68
|
+
|
|
69
|
+
Where the agent has a browser tool and you opened the board as a tab it can read (not just a preview pane), it reads your selection back at the start of its next turn and confirms it in one line — which makes the copy step optional. If it can't read the tab (preview-only pane, closed tab, different port), it asks for the number instead of guessing.
|
|
70
|
+
|
|
71
|
+
When the agent is showing a `question` tool, that tool is the control — click there. The board is the evidence view.
|
|
72
|
+
|
|
73
|
+
## 3 · The `/awd-list` visual map
|
|
74
|
+
|
|
75
|
+
`/awd-list` prints a flow line and a stage-dot matrix before the precise stage table:
|
|
76
|
+
|
|
77
|
+
```
|
|
78
|
+
FLOW (default order only — never enforced)
|
|
79
|
+
1 Strategy → 2 Research → 3 Content → 4 Design → 5 Frontend → [6 Backend*]
|
|
80
|
+
→ 7 Motion → 8 QA → 9 Deploy → [10 Launch*] → 11 Growth
|
|
81
|
+
|
|
82
|
+
STAGE MAP ✓ done · ▸ working · ⏸ gate open · ○ not started · – skipped
|
|
83
|
+
1 Strategy ✓ ✓ ✓ 7 Motion ○ ○
|
|
84
|
+
2 Research ✓ ✓ 8 QA ○ ○ ○
|
|
85
|
+
3 Content ✓ ⏸ ○ 9 Deploy ○ ○
|
|
86
|
+
4 Design ○ ○ ○ 10 Launch – – – (on request)
|
|
87
|
+
5 Frontend ○ ○ 11 Growth ○ ○ ○
|
|
88
|
+
6 Backend – – – (on request)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
With a project open, every dot mirrors `build-state.md` — one dot per stage.
|
|
92
|
+
|
|
93
|
+
## 4 · The rendered board
|
|
94
|
+
|
|
95
|
+
When the host can open files, the agent writes two working files into the project:
|
|
96
|
+
|
|
97
|
+
```
|
|
98
|
+
<project>/
|
|
99
|
+
└── .awd/
|
|
100
|
+
└── visual/
|
|
101
|
+
├── progress-board.html # whole map + current state + open gate + next
|
|
102
|
+
├── gate-card.html # the open gate, large (review gates)
|
|
103
|
+
└── shots/
|
|
104
|
+
├── 4.2-desktop.png
|
|
105
|
+
└── 4.2-mobile.png
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
- **`progress-board.html`** is regenerated at every gate. It shows all 11 department cards with stage bars, the current stage and status pill, the open gate with its numbered options (clickable, with an answer bar), evidence thumbnails, the next step, and Mode E/F lanes when active.
|
|
109
|
+
- **`gate-card.html`** is the focused view for review gates (Design, Frontend, QA, Deployment) — same gate, same clickable options, larger.
|
|
110
|
+
- Both come from `templates/visual-gates-template.html` — one self-contained file, no network requests, no external fonts. The agent replaces only a marked `CONFIG` object. It is generated from `build-state.md`, never invented.
|
|
111
|
+
- Screenshots are captured at **1440×900** and **390×844** and attached to the gate as evidence.
|
|
112
|
+
|
|
113
|
+
## 5 · Host support
|
|
114
|
+
|
|
115
|
+
| Host tier | Examples | What you get |
|
|
116
|
+
|---|---|---|
|
|
117
|
+
| `text` | Google AI Studio, chat-only clients | Rail + gate cards + `/awd-list` map. No file artifacts. |
|
|
118
|
+
| `files` | Terminal agents (codex, aider, cline, continue…) | Everything in `text`, plus the files are written and their paths printed — you open them. |
|
|
119
|
+
| `render` | opencode (review pane / browser), Claude Code with a viewer, Cursor preview, any agent with a browser tool | Everything in `files`, plus the board opens in the preview and screenshots render inline. |
|
|
120
|
+
|
|
121
|
+
The agent detects the tier once per session from the tools actually available and records it in `build-state.md` → `## Visual`. It never claims a preview it can't show.
|
|
122
|
+
|
|
123
|
+
## 6 · Turning it off
|
|
124
|
+
|
|
125
|
+
Say **"stop with the visuals"** at any time. The agent records `visuals: off` in `## Visual` and stops writing artifacts and screenshot lines for the session. The stage rail stays, because it is part of the progress footer; the gate card falls back to a plain numbered question.
|
|
126
|
+
|
|
127
|
+
## 7 · Working files, never deliverables
|
|
128
|
+
|
|
129
|
+
`.awd/` is excluded from the site build: it is added to `.gitignore`, never imported by site code, and stripped by the Deployment department alongside the dev-mode toolkit. QA checks that the production build doesn't contain it.
|
|
130
|
+
|
|
131
|
+
The method the agent follows lives in the skill at `references/visual-gates.md`; the HTML source at `templates/visual-gates-template.html`.
|