---
name: habify-english-author
description: AI Agent lesson authoring router for Habify English (HELP v1.0). Read live schemas, upload validated images/audio, dry-run validate, and submit draft lessons straight into human Sandbox Preview without ever exposing publish, billing, or child PII routes.
homepage: https://english.dev.habifyhub.com/ai-agents
metadata:
  category: curriculum-authoring
  version: "1.0.0"
  author: Habify English
  install: https://english.dev.habifyhub.com/install.sh
  skills_index: https://english.dev.habifyhub.com/skills/index.json
---

# Habify English — AI Agent Lesson Authoring Skill (v1.0.0)

Author, validate, and submit **HELP v1.0** interactive English lessons directly into the Habify English **Sandbox Preview & Review Queue** (`review_status = "pending_review"`).

> **IMMUTABLE SAFETY CONTRACT (HARD DENYLIST):**
> - Agent tokens (`eng_agt_...`) are **strictly preview-only**. You can read specs, upload assets, dry-run validate, submit drafts to `pending_review`, and read reviewer feedback.
> - Agent tokens are **unconditionally blocked (`403 AGENT_HARD_DENIED`)** from publishing/archiving lessons, editing billing/RBAC/settings, or accessing any child/student/parent PII.
> - **Always fetch live schemas & voices via `GET /api/v1/agent/spec`** before drafting JSON so you never guess enum values or `tts_voices` codes.

---

## 1. Quick Setup & Authentication

```bash
# Install all Habify English skills into ~/.claude/skills/, ~/.codex/skills/, ~/.gemini/skills/
curl -fsSL https://english.dev.habifyhub.com/install.sh | bash

# Export your scoped Agent Token (issued by Platform Admin or Center Growth/Scale Studio):
export HABIFY_ENGLISH_URL="https://english.dev.habifyhub.com"
export HABIFY_ENGLISH_AGENT_TOKEN="eng_agt_your_token_here"

# Verify scope (platform vs center) and rate limits:
curl -fsS -H "Authorization: Bearer ${HABIFY_ENGLISH_AGENT_TOKEN}" \
  "${HABIFY_ENGLISH_URL}/api/v1/agent/whoami"
```

---

## 2. Sub-Skills Directory

Read the specialized sub-skills below before generating lesson JSON or media assets:

| Sub-Skill | Path / Live URL | Purpose |
|---|---|---|
| `author` | `~/.claude/skills/habify-english-author/SKILL.md` · [Online](https://english.dev.habifyhub.com/skills/author/SKILL.md) | End-to-end AI Agent workflow to authenticate with eng_agt_* tokens, inspect live spec, upload validated media assets, validate HELP v1.0 JSON/ZIP packages, submit to Sandbox Preview, and iterate on reviewer feedback. |
| `help-spec` | `~/.claude/skills/habify-english-help-spec/SKILL.md` · [Online](https://english.dev.habifyhub.com/skills/help-spec/SKILL.md) | Complete reference for manifest.schema.json, lesson.schema.json, all 12 interactive activity primitives, Voice Coach 5s/10s/15s idle hint timing, and the 6 curated Habify TTS voices. |
| `pedagogy` | `~/.claude/skills/habify-english-pedagogy/SKILL.md` · [Online](https://english.dev.habifyhub.com/skills/pedagogy/SKILL.md) | Age cognitive bands A1-A5 (cartoon_bold <=41m vs crisp real-world photography >=42m), HEPS 0-1000 proficiency tiers, gentle zero-punishment wrong-answer copy, and Vietnamese bilingual scaffold rules. |

Manifest JSON: `https://english.dev.habifyhub.com/skills/index.json`

---

## 3. Core 5-Step Authoring Loop

1. **Inspect Live Spec:** `GET https://english.dev.habifyhub.com/api/v1/agent/spec` -> retrieve `manifest.schema.json`, `lesson.schema.json`, `tts_voices[]`, `age_bands[]`, `heps_tiers[]`, and taxonomy.
2. **Design Pedagogy First:** Follow **`pedagogy`** (`AgeBand <= 41m` uses `cartoon_bold` max 2 choices; `AgeBand >= 42m` uses realistic clean photos).
3. **Upload Assets:** `POST https://english.dev.habifyhub.com/api/v1/agent/assets/upload` (multipart `file`, `asset_kind=image|audio|lottie`) -> returns `asset_ref` (e.g. `assets/images/fox.webp`) and R2 URL.
4. **Dry-Run Validate:** `POST https://english.dev.habifyhub.com/api/v1/agent/lessons/validate` with `{ manifest, lesson }` (or multipart `.zip`). Fix any `422` schema path errors before submitting.
5. **Submit to Sandbox Preview:** `POST https://english.dev.habifyhub.com/api/v1/agent/lessons/submit-preview` -> creates `draft` + `pending_review`, triggers dual-accent TTS pre-bake (`en-US`, `en-GB`), and returns `preview_url`. Check reviewer notes anytime via `GET https://english.dev.habifyhub.com/api/v1/agent/lessons/{lessonId}/feedback`.

---

## 4. Hard Limits & Rules

- Rate limits: **30 preview submissions/hour** and **200 asset uploads/hour** per `eng_agt_*` token.
- Never embed raw base64 images inside JSON; always upload via `/api/v1/agent/assets/upload` (images max 2 MB `webp/png/jpg`, audio max 5 MB `mp3/ogg/wav/m4a`).
- Every interactive lesson MUST include both `title.vi` and `title.en`, an `intro_scene`, scored activities, and a `celebration_reward` step.
