awd-skill 1.0.0 → 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 CHANGED
@@ -41,7 +41,7 @@ Every mode also ships the **Asset Builder** (`/awd-assets`) — the **only** way
41
41
 
42
42
  The **AWD Editor** (`awd-editor/`) is the editor app: design canvas, generative canvas and editor projects. It is covered by the **same single $25/month plan** as the skill — no separate subscription. Skill users with the plan reach its APIs/UI **with their own account**: sign in with `POST /api/auth/login` at `http://127.0.0.1:4310` (local) or `https://editor.animotion.click/` (deployed); that origin sets the `awd_session` cookie. No bridge service, bearer token or second key is involved.
43
43
 
44
- - **Projects:** editor-created projects, **ZIP imports**, **Git URL imports**, and template-created projects. Design home lists **all editor-owned projects** regardless of design stage. Template submission stays operator-only (`/awd-template-submit-'project-path'` → `POST /api/admin/templates/submit`).
44
+ - **Projects:** editor-created projects, **ZIP imports**, **Git URL imports**, and template-created projects. Design home lists **all editor-owned projects** regardless of design stage. Templates are submitted only from the **Admin editor** (`POST /api/admin/templates/submit`); no skill command submits templates.
45
45
  - **`awd.design` agent:** a **direct LLM agent** (no "skill mode"), with editor-owned departments/resources, a model selector, a live credit quote, a paywall, and an admin badge **"Direct API — unmetered"**. Admin sign-in uses the direct API lane for **all** tools and is unmetered.
46
46
  - **`awd.generate`:** every output except FilmPro has exactly **two terminal actions — Download and Send to selected element in `awd.design`**. There is no agent-refine handoff, no free-description mode, and no manifest-slot target mode. FilmPro is unchanged.
47
47
  - **Plan & credits:** the one **$25/month** plan (`id: "template"`, checkout `https://skills.animotion.click/checkout?plan=template`) includes **400 AI credits/month** for all editor AI tools. `1 credit = $0.05` for generation; monthly credits reset each billing period with **no rollover**; optional top-ups never expire and monthly credits are spent first. `awd.design` Agent turns use `AWD_AGENT_CREDIT_USD=0.01` (5x faster, 2-credit floor) and settle from real usage. **Admin/direct identities are unmetered.** Routes: `POST /api/plan/checkout`, wallet endpoints, and the Stripe webhook (config: `STRIPE_SECRET_KEY`, `STRIPE_WEBHOOK_SECRET`, `STRIPE_PRICE_MONTHLY_25`; optional `AWD_PUBLIC_ORIGIN`/`APP_ORIGIN`). LLM catalogue is env-driven (`AWD_LLM_MODELS`, `AWD_LLM_BASE_URL`, `AWD_LLM_API_KEY`) — an empty catalogue fails closed.
package/bin/install.js CHANGED
@@ -286,10 +286,12 @@ const COMMANDS = {
286
286
  function resolveCommandsSource(skillDir) {
287
287
  const nested = path.join(skillDir, "commands");
288
288
  if (fs.existsSync(nested)) return nested;
289
- const pkgCommands = path.join(PKG_ROOT, "commands");
290
- if (fs.existsSync(pkgCommands)) return pkgCommands;
289
+ // A local --source checkout wins over the npm package's commands, so testing
290
+ // or installing from a checkout never pulls stale commands from a published copy.
291
291
  const sibling = path.join(path.dirname(skillDir), "commands");
292
292
  if (fs.existsSync(sibling)) return sibling;
293
+ const pkgCommands = path.join(PKG_ROOT, "commands");
294
+ if (fs.existsSync(pkgCommands)) return pkgCommands;
293
295
  return null;
294
296
  }
295
297
 
package/docs/INSTALL.md CHANGED
@@ -65,7 +65,7 @@ Commands installed (**37 files — 19 sources**: `awd-skill.md` + 18 `/awd-skill
65
65
  | `/awd-skill-template-use` · `/awd-template-use` | **Template use** — validate the one plan before using any template, section, prompt, payload or link; `402 PLAN_REQUIRED` with `upgrade: /api/plan/checkout` when unmet |
66
66
  | `/awd-skill-mode-f` · `/awd-mode-f` | **Mode F** — maintain & iterate a site this skill built (one $25/month plan) |
67
67
 
68
- Departments: `strategy` · `research` · `content` · `design` · `frontend` · `backend` · `motion` · `qa` · `deploy` · `launch` · `growth` — plus the standalone taste trainer (`taste`), the Asset Builder (`assets`), Mode E (`mode-e`), template use (`template-use`), Mode F (`mode-f`) and the operator-only `template-submit`. Skip with `--no-commands`; refresh with `--force`. Agents other than opencode/claude still get the full skill — they just enter departments by asking ("use the Design department") instead of a slash command.
68
+ Departments: `strategy` · `research` · `content` · `design` · `frontend` · `backend` · `motion` · `qa` · `deploy` · `launch` · `growth` — plus the standalone taste trainer (`taste`), the Asset Builder (`assets`), Mode E (`mode-e`), template use (`template-use`) and Mode F (`mode-f`). Templates are submitted only from the Admin editor; no skill command submits templates. Skip with `--no-commands`; refresh with `--force`. Agents other than opencode/claude still get the full skill — they just enter departments by asking ("use the Design department") instead of a slash command.
69
69
 
70
70
  ## Skill source
71
71
 
@@ -13,7 +13,7 @@ This document is the single source of truth for the awd-editor/skill split. It r
13
13
  |---|---|
14
14
  | 1 | The editor works standalone for projects created in the editor, imported into the editor, or created from template projects. |
15
15
  | 2 | The skill ships with **no editor bridge**: with the one `$25/month` plan, a user can reach editor APIs/UI using their own account (`awd_session` cookie from `POST /api/auth/login`, `http://127.0.0.1:4310` or `https://editor.animotion.click/`). Asset work stays in the **free-lane asset builder**; no bearer token or second service is introduced. |
16
- | 3 | The operator-only command `/awd-template-submit-'project-path'` remains and still calls `POST /api/admin/templates/submit`. |
16
+ | 3 | Templates are submitted only from the **Admin editor** (`POST /api/admin/templates/submit`); the skill has no template-submit command. |
17
17
  | 4 | The `awd.design` agent tab has **no "skill mode"**. Initial skill departments/stages are rehomed as editor-owned resources used by the `awd.design` LLM agent. |
18
18
  | 5 | The editor owns its design and asset resources; the skill keeps its free-lane asset builder. **AnimotionJS is mandatory for all skill motion and included in the one plan**; the editor keeps its own Animotion module with no shared runtime bridge. |
19
19
  | 6 | Every `awd.generate` output except FilmPro has exactly two terminal actions: **Download** or **Send to selected element in `awd.design`**. The agent-refine handoff is removed. |
@@ -107,7 +107,7 @@ The design home gets four cards/actions:
107
107
 
108
108
  ### 3.5 Template projects
109
109
 
110
- - Editor reads the catalog from `templates.mjs`; adding to the catalog remains operator-only via `/awd-template-submit-'project-path'` → `POST /api/admin/templates/submit`.
110
+ - Editor reads the catalog from `templates.mjs`; adding to the catalog is possible only from the **Admin editor** (`POST /api/admin/templates/submit`).
111
111
  - Template creation copies catalog files into a new user-owned project with `source: 'template'`.
112
112
  - The skill cannot call template submit, read the editor catalog through the bridge, or import editor projects.
113
113
 
@@ -369,7 +369,7 @@ Final verification (this stabilization pass):
369
369
  | `awd-skill/references/asset-resources.md` | Remove editor asset-resource ownership; describe skill-local free resources only. |
370
370
  | `awd-skill/references/generative-canvas.md` | Rewrite as “editor-only canvas; skill does not drive it” or remove from the router if no standalone-skill audience remains. |
371
371
  | `awd-skill/references/design-tools.md` | Remove editor design popup as the skill's default; keep external-tool fallback and standalone-skill design guidance. |
372
- | `commands/awd-skill-template-submit.md` | **No change.** Preserve command text and `POST /api/admin/templates/submit`. |
372
+ | `commands/awd-skill-template-submit.md` | **Removed.** Templates are submitted only from the Admin editor; no skill command. |
373
373
  | `commands/awd-skill-template-use.md` | **New.** Browse signed-in/free; validate the single $25/month plan (`id: "template"`) before any template use (`/awd-template-use`, Mode E, `template_project_create`, `POST /api/templates/:id/use`); `402 PLAN_REQUIRED` + `upgrade: /api/plan/checkout` when unmet. |
374
374
  | `commands/awd-skill-mode-f.md` | **New.** Maintain/iterate under the one plan, using the user's own `awd_session` for editor APIs/UI; free-lane assets and mandatory AnimotionJS. |
375
375
 
@@ -444,7 +444,7 @@ Final verification (this stabilization pass):
444
444
 
445
445
  ## 9. Implementation order and exit criteria
446
446
 
447
- 1. **Detach the skill.** Remove editor bridge imports and skill reads from editor runtime; rewrite skill docs; preserve template-submit command. Exit: editor boots with `skill-bridge.mjs` deleted and no `SKILL.md` reads.
447
+ 1. **Detach the skill.** Remove editor bridge imports and skill reads from editor runtime; rewrite skill docs; remove the template-submit command. Exit: editor boots with `skill-bridge.mjs` deleted and no `SKILL.md` reads.
448
448
  2. **Editor-owned resources + design agent.** Add resource registry, direct LLM route, model list, quote/confirm UI. Exit: design chat works with no skill mode and no refine pipeline.
449
449
  3. **Project sourcing.** Add source scoping, remove stage filter, ZIP/Git import, template create. Exit: all owned projects visible regardless stage; skill-authored projects enter the editor only through the paid template-use flow.
450
450
  4. **Design element rules.** Add before/after/inside and `main.page`. Exit: §5 acceptance criteria pass.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awd-skill",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Department-based agentic skill for building high-converting websites that sell — 11 departments (Strategy, Research, Content, Design, Frontend, Backend, Motion, QA, Deploy, Launch, Growth) with slash commands (/awd-skill-*, short aliases /awd-*), /awd-list stage index (start any department/stage any time), design DNA extraction, outlier competitor research, conversion blueprints, the M.O.N.E.Y sales framework, lead generation, cloning, outreach and deployment. Six modes — build-and-sell, novel product launch, 3D/WebGL (Three.js static scenes/shaders/viewers), design-sketch intake, template reuse (/awd-template-use, saved templates and a ThreeUI-style catalog: template bundle, drop-in section, build prompt, item link) and maintain & iterate (/awd-mode-f). Install is free and the Asset Builder in every mode (/awd-assets) is free-lane: client brand files, hand-drawn SVG/procedural art, local Crucible 3D stills and your own agent-native AI models — no credits, no proxy. Exactly ONE paid plan: $25/month, id \"template\", checkout https://skills.animotion.click/checkout?plan=template — it covers templates, mandatory AnimotionJS agentic animation, awd-editor/ APIs/UI, design tools/resources, anti-slop/taste resources and 400 AI credits/month (1 credit = $0.05; admin/direct unmetered). Skill users with the plan use the editor with their own account (awd_session cookie from POST /api/auth/login; http://127.0.0.1:4310 or https://editor.animotion.click/) — no bridge service or bearer token.",
5
5
  "keywords": [
6
6
  "opencode",
@@ -59,7 +59,7 @@
59
59
  },
60
60
  "license": "UNLICENSED",
61
61
  "awd": {
62
- "source": "https://4e2zaktqel.ucarecd.net/60bcd308-d6ca-486d-810d-04665bef29cf/skilltar.gz"
62
+ "source": "https://4e2zaktqel.ucarecd.net/ff753cb8-78a2-46d3-ba3a-77de6f4131ee/skilltar.gz"
63
63
  },
64
64
  "publishConfig": {
65
65
  "access": "public"
@@ -1,16 +0,0 @@
1
- ---
2
- description: AWD Skill — TEMPLATE SUBMIT (OPERATOR ONLY — ingest a project path into the awd.template catalog; users never run this)
3
- ---
4
-
5
- Run the **awd-skill** skill (read its `SKILL.md` first).
6
-
7
- **⛔ OPERATOR-ONLY COMMAND.** `/awd-template-submit-<project-path>` exists for the skill maintainer to publish templates into the editor's **awd.template** catalog. If a *user* runs it, stop in one line: "This command is operator-only — browse and use templates from the awd.template page instead." Never ingest on a user's behalf.
8
-
9
- 1. **Parse the path** from the arguments (`/awd-template-submit-'project-path'` → the `project-path` inside the quotes). It must be an absolute or cwd-relative folder on this machine that contains a built site: `build/index.html` (an AWD project) or `index.html` at the root (a plain static site). Missing or wrong → say exactly what is wrong and stop.
10
- 2. **Read the project metadata** if present (`awd.json` → name/brief; `build-state.md` → one-line description). Ask the operator (one question, options + default) only for what is missing: **name**, **category** (General · Business · Portfolio · Landing · E-commerce · Docs · Creative · 3D · Three.js), **description**, and optional **tags**.
11
- 3. **Ingest into the editor** — the editor must be running (`awd-editor/`, `npm start`). With admin credentials:
12
- `POST {EDITOR_URL}/api/admin/templates/submit` `{ path, name, category, description, tags }` with the operator's session cookie (the route requires the **admin** role and answers `403` otherwise). The server copies `build/` (or the site folder) into `data/templates/<slug>/site/`, writes `template.json`, and returns the catalog entry. Editor unavailable → copy the same layout manually: `data/templates/<slug>/template.json` + `data/templates/<slug>/site/`.
13
- 4. **Verify the entry**: `GET {EDITOR_URL}/api/templates` lists it (newest first), and `/template-preview/<id>/` renders the site. Report the entry's **id**, name and category, and remind the operator that users now see it in **awd.template** (browse grid · category chips · item pages · "Use template" seeds a new project from it).
14
- 5. **Never touch the catalog from anywhere else.** Template ingest is this command plus the admin route only; normal departments never write `data/templates/`. Existing entries may be re-submitted (same slug overwrites); deleting is done by removing the folder as the operator.
15
-
16
- User arguments: $ARGUMENTS