# create-landing-template Agent Skill

> Open-source MIT-licensed agent skill for Claude Code, Cursor, Codex, and Antigravity. Enforces one central brand idea, a local HTML brand-board approval gate before code is written, a complete motion system, and automated verification.

- HTML page: https://www.openlanding.page/skill
- Source directory: https://github.com/Famanias/openlanding.page/tree/master/skills/create-landing-template
- License: MIT
- Workflow: 8 phases, 9 skill files

## Step 01: Fast sparse checkout (recommended, ~3.7s)

Clone only `skills/create-landing-template` without downloading the gallery's ~2.88 GiB template media pack:

```bash
git clone --depth 1 --filter=blob:none --sparse https://github.com/Famanias/openlanding.page.git openlanding-skill
cd openlanding-skill
git sparse-checkout set skills/create-landing-template
cp -R skills/create-landing-template /path/to/your-project/.claude/skills/create-landing-template
# Or for Codex / Antigravity / Cursor agent directories:
cp -R skills/create-landing-template /path/to/your-project/.agents/skills/create-landing-template
```

## Step 02: Alternative — skills CLI

```bash
npx skills add Famanias/openlanding.page --skill create-landing-template -y
```

> Note: `npx skills add` currently clones the full `Famanias/openlanding.page` repository (~2.88 GiB of template videos and imagery). Prefer Step 01's sparse checkout for fast installs in external projects.

## Standalone / external project mode

When used outside `Famanias/openlanding.page`, the skill keeps the brand concept, local brand board (`<skill-dir>/brand-board/serve.mjs`), media key detection (`<skill-dir>/media/detect-keys.mjs`), motion map, and verification workflow, while skipping OpenLandingPage's gallery registration files (`scripts/templates.config.ts`, `src/app/(index)/data/templates.ts`, and `repo-wiring.md`'s 6 gallery registration points).

## 8-phase workflow

1. **Recon (silent):** Inspect existing designs and check configured media API keys via `<skill-dir>/media/detect-keys.mjs`.
2. **Ask:** At most two focused discovery rounds from `questions.md`, each with a 'you decide' option.
3. **Concept:** Lock in brand name, story, central idea -> signature mechanic, section map, 5-word mood, and motion identity.
4. **Brand board (hard gate):** Serve `.openlanding-page/<slug>/board/index.html` via `<skill-dir>/brand-board/serve.mjs` and wait for approval before writing page code.
5. **Write design docs:** Author `DESIGN.md` (with complete motion map), media prompts, and `PROMPT.md`.
6. **Build & media in parallel:** Build motion primitives first, write pure logic tests first, scaffold sections, and generate or place media.
7. **Verify:** TypeScript, unit tests, Playwright E2E, desktop/mobile screenshots, `prefers-reduced-motion`, no-JS fallback, and mobile Lighthouse (Perf >= 90, A11y >= 95, Best Practices 100).
8. **Hand off:** Summarize deliverables, design decisions, and remaining media status.
