[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZ6SSC505K713Y0TKY8H2X":3,"skill-same:01M6CZ6SSC505K713Y0TKY8H2X":75},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":23,"publishedAt":40,"linkOnly":41,"markdownContent":42,"markdownBody":43,"frontMatter":44,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":57,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6CZ6SSC505K713Y0TKY8H2X","deploy-prototype",null,"Generate a small app or tool and deploy it live to Vercel via API","aeonfun\u002Faeon","aeonfun","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287715280?v=4","01M6CZ23C6MXGMF4N0V1DZ1247","aeon","01M6CZ23GMZP1BR424J8Y8K3DG",793,"MIT","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fskills\u002Fdeploy-prototype\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",[24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39],"prototype","deploy","deploy prototype","generate","dev","api","tool","gh","global","vercel","build","token","live","app","via","it","2026-11-10 10:12:30",false,"---\nname: deploy-prototype\ndescription: Generate a small app or tool and deploy it live to Vercel via API\nmetadata:\n  title: Deploy Prototype\n  category: dev\n  var: \"\"\n  tags:\n    - dev\n    - build\n  requires:\n    - VERCEL_TOKEN?\n    - GH_GLOBAL?\n---\n\u003C!-- autoresearch: variation B — sharper output via prototype quality bar + self-check + signal-anchored record -->\n\n> **${var}** — What to build and deploy.\n> - Empty → auto-select from recent signals (articles, logs, memory topics).\n> - Plain text (e.g. `market heatmap`) → interpret as a build brief.\n> - Typed form `type:slug description` (e.g. `tool:market-heatmap volume heatmap of top-20 tokens`, `viz:tx-graph`, `api:summarize`, `landing:startup-idea`) → use `type` to bias shape and `slug` as the deployment name.\n\nToday is ${today}. Your task is to ship a small, self-contained prototype that someone could actually use in the browser today.\n\n## Steps\n\n1. **Read context.** Read `memory\u002FMEMORY.md` and the most recent entries in `memory\u002Flogs\u002F` for active topics.\n   If running as part of a chain, scan injected upstream outputs for a concrete artifact worth making interactive.\n\n2. **Pick what to build (if `${var}` is empty or vague).**\n\n   Scan these sources, in order, for prototype-worthy signals:\n   - `output\u002Farticles\u002F` — last 7 entries by mtime: any claim, finding, or dataset that would be more useful as an interactive page?\n   - `memory\u002Ftopics\u002F*.md` — running narratives; pick one with a live data source (prices, feeds, markets)\n   - `memory\u002Flogs\u002F${today}.md` and the two prior days — skill outputs flagged as interesting\n   - `memory\u002FMEMORY.md` → \"Next Priorities\" and \"Recent Articles\"\n\n   Score each candidate 1-5 on:\n   - **Leverage** — does an interactive version beat the static write-up?\n   - **Concreteness** — is the spec obvious in one sentence? (if no, reject)\n   - **Novelty** — haven't shipped this in the last 14 days (check `output\u002Farticles\u002Fprototype-*.md` by mtime and any `memory\u002Ftopics\u002Fprototypes.md`)\n\n   Pick the highest-total candidate. If no candidate reaches 9\u002F15, skip building and exit as `DEPLOY_PROTOTYPE_EMPTY` (step 9).\n\n   Record the chosen signal — its source file(s) and one-line rationale — you'll use it in steps 6 and 7.\n\n3. **Commit to a shape before writing code.** Before touching `.pending-deploy\u002F`, write out (in your reasoning, not a file):\n   - **Slug**: `aeon-prototype-\u003Cdescriptor>`, all lowercase, `[a-z0-9-]`, 3–50 chars after prefix (e.g. `aeon-prototype-market-heatmap`). If `${var}` supplied a typed slug, use it; otherwise derive one.\n   - **Tagline** (≤90 chars) — the one-liner that appears in the page title and OG tags.\n   - **Primary action** — what is the one thing a visitor does in the first 10 seconds? (read a number, click a filter, submit an input, compare two things). If you can't name it, go back to step 2.\n   - **Shape**: static HTML+JS \u002F static + `api\u002F` function \u002F Next.js. Default to static single-file HTML unless the idea genuinely needs a serverless function.\n\n4. **Write the files.** Clear stale state from prior runs, then create the dir, each as its own Bash call (see **Shell shape** in the Network note; `rm` is not an allowed command, so the clear goes through `node`):\n   ```bash\n   node -e \"require('fs').rmSync('.pending-deploy',{recursive:true,force:true})\"\n   ```\n   ```bash\n   mkdir -p .pending-deploy\u002Ffiles\n   ```\n   Write all project files into `.pending-deploy\u002Ffiles\u002F`. This directory is the repo root — everything here is pushed to GitHub and deployed to Vercel.\n\n   **Quality bar — every prototype must meet these:**\n   - **Self-contained** — no external build step where avoidable. Prefer one `index.html` with inline `\u003Cstyle>` and `\u003Cscript>`; fall back to a `main.css` \u002F `main.js` only when size justifies it.\n   - **Loads in \u003C1s on a cold visit.** No jQuery, no CDN UI libraries for a single-page tool. Vanilla JS or a ~10KB util max. No `\u003Clink rel=\"stylesheet\">` to a CDN font unless it's one font.\n   - **Mobile-first, works on a phone.** Viewport meta set, tap targets ≥40px, no horizontal scroll at 360px wide.\n   - **Share-friendly.** Include `\u003Ctitle>`, `\u003Cmeta name=\"description\">`, `\u003Cmeta property=\"og:title\">`, `\u003Cmeta property=\"og:description\">`, `\u003Cmeta property=\"og:type\" content=\"website\">`. Skip OG image unless you generate one.\n   - **Real content, not lorem.** If the prototype shows data, fetch it from a public no-auth endpoint at load time (CoinGecko, GitHub public API, public RSS, public JSON feeds) — or hardcode a recent, realistic snapshot with the timestamp visible. Never ship placeholder `[example data]`.\n   - **One visible CTA or primary surface.** Clear hierarchy: what does the visitor look at first?\n   - **Works with JS disabled to at least show the tagline** (progressive enhancement — not required for interactive tools, but the title and description must render server-free).\n   - **Light + dark via `prefers-color-scheme`** — 4 CSS vars is enough.\n   - **No secrets.** No API keys, tokens, or env vars embedded anywhere. If the idea requires auth, redesign around a public endpoint or drop the idea.\n   - **Include a `README.md`** in `.pending-deploy\u002Ffiles\u002F` with: what it is (1 line), how to run locally (1 line), signal source (1 line link to the article\u002Flog\u002Ftopic from step 2).\n\n   For **API endpoints**: place handlers in `api\u002F` (e.g. `api\u002Findex.js` exporting `export default function handler(req, res) { ... }`).\n   For **Next.js**: keep it one page — `package.json` + `pages\u002Findex.js`. Only if the idea genuinely needs SSR.\n\n5. **Write deploy metadata.** Create `.pending-deploy\u002Fmeta.json`:\n   ```json\n   {\n     \"name\": \"aeon-prototype-\u003Cslug-from-step-3>\",\n     \"description\": \"One-sentence description, matches the OG description on the page\",\n     \"framework\": null,\n     \"tagline\": \"≤90 chars — matches \u003Ctitle> on the page\",\n     \"signal_source\": \"path or URL of the article\u002Flog\u002Ftopic that triggered this prototype\",\n     \"primary_action\": \"what the visitor does in the first 10 seconds\"\n   }\n   ```\n   - `framework`: `null` for static; `\"nextjs\"`, `\"svelte\"`, etc. when used.\n   - The extra fields (`tagline`, `signal_source`, `primary_action`) are for the prototype record and downstream dashboards; the deploy step may ignore them.\n\n6. **Build the Vercel deploy payload.** Write `.pending-deploy\u002Fpayload.json`:\n   ```json\n   {\n     \"name\": \"aeon-prototype-\u003Cslug>\",\n     \"files\": [\n       { \"file\": \"index.html\", \"data\": \"\u003C!DOCTYPE html>...\", \"encoding\": \"utf-8\" }\n     ],\n     \"projectSettings\": {\n       \"framework\": null,\n       \"buildCommand\": null,\n       \"outputDirectory\": null\n     },\n     \"target\": \"production\"\n   }\n   ```\n   Use `\"encoding\": \"base64\"` for any binary file.\n\n   **Pre-flight checks** (run before writing the notify):\n   - File count ≤ 20. Reject if above.\n   - Total payload JSON ≤ 4MB. Reject if above (Vercel inline deploy practical limit).\n   - Slug matches `^aeon-prototype-[a-z0-9][a-z0-9-]{2,49}$`.\n   - Grep every file for: `VERCEL_TOKEN`, `GH_GLOBAL`, `ANTHROPIC_API_KEY`, `sk-ant-`, `sk-`, `ghp_`, `xoxb-`, `xai-`. Any hit → abort and rewrite the offending file without the value.\n   - Grep every file for literal `TODO`, `FIXME`, `lorem ipsum`, `placeholder`. Any hit → fix in place before proceeding.\n   - If `VERCEL_TOKEN` is unset, the build still completes but the live deploy in step 8 is skipped (you'll exit `DEPLOY_PROTOTYPE_NO_TOKEN` there) — the pre-flight itself doesn't fail on a missing token.\n\n7. **Save the prototype record.** Write to `output\u002Farticles\u002Fprototype-${today}.md`. If a file with that name already exists (second run in the same day), append `-02`, `-03`, etc.\n   ```markdown\n   # Prototype: \u003CName>\n\n   **Built:** ${today}\n   **Tagline:** \u003Ctagline from meta.json>\n   **Status:** Pending deploy\n   **Live URL:** _(filled in-run in step 8 once the Vercel deploy returns its URL)_\n\n   ## Signal\n   What triggered this: one paragraph. Link the source article\u002Flog\u002Ftopic (`signal_source` from meta.json).\n\n   ## What it does\n   One paragraph, plain language. Include the primary action a visitor takes.\n\n   ## How it works\n   Brief technical notes - stack, data source, anything non-obvious. No code dumps.\n\n   ## Files\n   - `index.html` - brief description\n   - …\n\n   ## Extend\n   Three bullets on what would make this a real product (not placeholder - concrete next steps).\n   ```\n\n   Append a one-line row to `memory\u002Ftopics\u002Fprototypes.md` (create the file with a header row if missing):\n   ```\n   | date | slug | tagline | signal_source | live_url |\n   |------|------|---------|---------------|----------|\n   | 2026-04-20 | aeon-prototype-foo | ... | output\u002Farticles\u002F... | _pending_ |\n   ```\n\n8. **Deploy live (in-run).** The deploy is the skill's irreversible action, so it runs **in-run** as the final step — behind the step-6 pre-flight — not deferred to any post-run script.\n\n   If `VERCEL_TOKEN` is unset → skip the deploy, leave `.pending-deploy\u002F` in place, and exit `DEPLOY_PROTOTYPE_NO_TOKEN` (step 10). The build still succeeded; the operator just needs to add the token and re-run.\n\n   Otherwise POST the inline deployment built in step 6. Write the key as the literal `{VERCEL_TOKEN}` placeholder so `.\u002Fsecretcurl` substitutes it internally — a bare `$VERCEL_TOKEN` on the command line is refused by the Bash permission layer, and plain `curl` must not carry the token:\n   One call; it prints `http=\u003Ccode> bytes=\u003Cn>`:\n   ```bash\n   .\u002Fsecretcurl -sS -o .pending-deploy\u002Fdeploy-resp.json -w 'http=%{http_code} bytes=%{size_download}\\n' \\\n     -X POST \"https:\u002F\u002Fapi.vercel.com\u002Fv13\u002Fdeployments\" \\\n     -H \"Authorization: Bearer {VERCEL_TOKEN}\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     --data @.pending-deploy\u002Fpayload.json\n   ```\n   - **`http` 200\u002F201:** read the deployment host from the response (`.url` in `deploy-resp.json`) and form the live URL `https:\u002F\u002F\u003Curl>`. Backfill it into the step-7 record (`**Status:** Live`, `**Live URL:** https:\u002F\u002F…`) and the `memory\u002Ftopics\u002Fprototypes.md` row (replace `_pending_`). Exit `DEPLOY_PROTOTYPE_OK` (step 10).\n   - **Any non-2xx \u002F `--max-time` timeout \u002F 200 with empty body:** print the real reason (`http=\u003Ccode>` \u002F `timeout` \u002F `empty`), keep `.pending-deploy\u002F` for a retry, and exit `DEPLOY_PROTOTYPE_DEPLOY_FAILED` (step 10). Never mark the record Live on a failed deploy.\n\n   **Optional source mirror (best-effort, non-fatal).** If `GH_GLOBAL` is set, also publish the source to GitHub. `gh` already authenticates as `GH_GLOBAL` in-run (it's the ambient `GH_TOKEN`), so no secret goes on the command line. Check whether it is set: read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `GH_GLOBAL` is not on that line, skip the mirror. Otherwise run these in order, each as its own call:\n   ```bash\n   git -C .pending-deploy\u002Ffiles init -q\n   ```\n   ```bash\n   git -C .pending-deploy\u002Ffiles add -A\n   ```\n   ```bash\n   git -C .pending-deploy\u002Ffiles -c user.name=aeon -c user.email=aeon@users.noreply.github.com commit -qm \"prototype: \u003Cslug>\"\n   ```\n   ```bash\n   gh repo create \u003Cslug> --public --source=.pending-deploy\u002Ffiles --push\n   ```\n   If any of them fails, stop the mirror there and run `echo \"::notice::source mirror skipped (non-fatal)\"`. A mirror failure never fails the run - the live Vercel URL is the deliverable.\n\n9. **Notify.** Send via `.\u002Fnotify` (one of these, depending on outcome):\n   - Deployed: `shipped: \u003Cslug> — \u003Ctagline>. live: \u003Curl>`\n   - Built, token missing: `built: \u003Cslug> — \u003Ctagline>. ⚠ VERCEL_TOKEN unset — not deployed. add it and re-run.`\n   - Deploy failed: `built: \u003Cslug> — \u003Ctagline>. ✗ vercel deploy failed (\u003Creason>) — .pending-deploy kept for retry.`\n   - No signal worth shipping: handled in step 10.\n\n10. **Exit modes.** End the run with one of these, logged in `memory\u002Flogs\u002F${today}.md` under `### deploy-prototype`:\n    - `DEPLOY_PROTOTYPE_OK` — prototype built, validated, and deployed live.\n    - `DEPLOY_PROTOTYPE_NO_TOKEN` — built and valid, but `VERCEL_TOKEN` unset; deploy skipped, operator action needed.\n    - `DEPLOY_PROTOTYPE_DEPLOY_FAILED` — built and valid, but the Vercel API call failed; `.pending-deploy\u002F` kept for retry.\n    - `DEPLOY_PROTOTYPE_EMPTY` — no candidate cleared the quality threshold in step 2. Log the top candidate and its score so the next run can reconsider. `.\u002Fnotify \"deploy-prototype: no candidate cleared threshold today — top was \u003Cslug> (\u003Cscore>\u002F15)\"`.\n    - `DEPLOY_PROTOTYPE_VALIDATION_FAILED` — a pre-flight check in step 6 failed and couldn't be fixed automatically. Leave `.pending-deploy\u002F` in place, log the failure reason, notify the operator.\n\n11. **Log.** Append to `memory\u002Flogs\u002F${today}.md`:\n    ```\n    ### deploy-prototype\n    - Exit: DEPLOY_PROTOTYPE_\u003CMODE>\n    - Slug: aeon-prototype-\u003Cslug> (or - if empty)\n    - Live URL: \u003Curl or ->\n    - Signal: \u003Csignal_source>\n    - Notes: \u003Canything the next run should know>\n    ```\n\n## Environment Variables\n\n- `VERCEL_TOKEN` — the live Vercel deploy in step 8. Used **in-run** via `.\u002Fsecretcurl` (the `{VERCEL_TOKEN}` placeholder). Without it, the build succeeds but the deploy is skipped (`DEPLOY_PROTOTYPE_NO_TOKEN`).\n- `GH_GLOBAL` — the optional GitHub source mirror in step 8. Used ambiently by `gh` (it's the run's `GH_TOKEN`); a missing token just skips the mirror.\n\nBoth are declared optional (`?`) so the skill degrades gracefully: no `VERCEL_TOKEN` → build-only; no `GH_GLOBAL` → deploy without the source mirror. Never read the token values directly and never embed them in any deployed file (step 6 greps for them).\n\n## Guidelines\n\n- A prototype is not a PoC. It's a page someone with zero context can load, understand in 10 seconds, and get value from. Hold that bar.\n- Single `index.html` is almost always the right answer. Resist the urge to add tooling.\n- Max ~5 files (enforced at 20 in pre-flight).\n- Descriptive slugs. `aeon-prototype-market-heatmap`, not `aeon-prototype-1`.\n- Never hardcode secrets. If a public-auth endpoint isn't enough for the idea, drop the idea.\n- The Vercel deploy (and the optional GitHub source mirror) happen **in-run** in step 8 via `.\u002Fsecretcurl` \u002F `gh` — an irreversible side-effect run as the skill's final, fail-closed action. Build the files, metadata, and payload correctly in steps 4–6 so that final call goes clean.\n\n## Network note\n\nSteps 1–7 are local — file writes and notify only. Step 8's deploy is the one outbound side-effect and it runs **in-run**: the Vercel deployment via `.\u002Fsecretcurl` with the `{VERCEL_TOKEN}` placeholder (a bare `$VERCEL_TOKEN` on the command line is refused by the Bash permission layer, so never use plain `curl` for it), and the optional GitHub mirror via `gh` (authenticated ambiently as `GH_GLOBAL`). There is no deferred\u002Fpostprocess step — the deploy is the skill's final, fail-closed action: on any non-2xx it exits `DEPLOY_PROTOTYPE_DEPLOY_FAILED` and keeps `.pending-deploy\u002F` for a retry.\n\n**Shell shape.** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`HTTP=$(.\u002Fsecretcurl ...)`), uses `if` \u002F `for` \u002F `while` or `[ ... ]` tests, or joins commands with `;`, `&&` or `||`, and each refusal costs a model turn; `rm` is not an allowed command and a `cd` in a subshell is refused too. So the deploy is one `.\u002Fsecretcurl` call whose `-w` prints `http=\u003Ccode> bytes=\u003Cn>` itself, the `GH_GLOBAL` check reads the run notes' \"Keys set for this run\" line instead of a shell test, and the mirror is one `git -C .pending-deploy\u002Ffiles ...` or `gh` call per step.\n","\u003C!-- autoresearch: variation B — sharper output via prototype quality bar + self-check + signal-anchored record -->\n\n> **${var}** — What to build and deploy.\n> - Empty → auto-select from recent signals (articles, logs, memory topics).\n> - Plain text (e.g. `market heatmap`) → interpret as a build brief.\n> - Typed form `type:slug description` (e.g. `tool:market-heatmap volume heatmap of top-20 tokens`, `viz:tx-graph`, `api:summarize`, `landing:startup-idea`) → use `type` to bias shape and `slug` as the deployment name.\n\nToday is ${today}. Your task is to ship a small, self-contained prototype that someone could actually use in the browser today.\n\n## Steps\n\n1. **Read context.** Read `memory\u002FMEMORY.md` and the most recent entries in `memory\u002Flogs\u002F` for active topics.\n   If running as part of a chain, scan injected upstream outputs for a concrete artifact worth making interactive.\n\n2. **Pick what to build (if `${var}` is empty or vague).**\n\n   Scan these sources, in order, for prototype-worthy signals:\n   - `output\u002Farticles\u002F` — last 7 entries by mtime: any claim, finding, or dataset that would be more useful as an interactive page?\n   - `memory\u002Ftopics\u002F*.md` — running narratives; pick one with a live data source (prices, feeds, markets)\n   - `memory\u002Flogs\u002F${today}.md` and the two prior days — skill outputs flagged as interesting\n   - `memory\u002FMEMORY.md` → \"Next Priorities\" and \"Recent Articles\"\n\n   Score each candidate 1-5 on:\n   - **Leverage** — does an interactive version beat the static write-up?\n   - **Concreteness** — is the spec obvious in one sentence? (if no, reject)\n   - **Novelty** — haven't shipped this in the last 14 days (check `output\u002Farticles\u002Fprototype-*.md` by mtime and any `memory\u002Ftopics\u002Fprototypes.md`)\n\n   Pick the highest-total candidate. If no candidate reaches 9\u002F15, skip building and exit as `DEPLOY_PROTOTYPE_EMPTY` (step 9).\n\n   Record the chosen signal — its source file(s) and one-line rationale — you'll use it in steps 6 and 7.\n\n3. **Commit to a shape before writing code.** Before touching `.pending-deploy\u002F`, write out (in your reasoning, not a file):\n   - **Slug**: `aeon-prototype-\u003Cdescriptor>`, all lowercase, `[a-z0-9-]`, 3–50 chars after prefix (e.g. `aeon-prototype-market-heatmap`). If `${var}` supplied a typed slug, use it; otherwise derive one.\n   - **Tagline** (≤90 chars) — the one-liner that appears in the page title and OG tags.\n   - **Primary action** — what is the one thing a visitor does in the first 10 seconds? (read a number, click a filter, submit an input, compare two things). If you can't name it, go back to step 2.\n   - **Shape**: static HTML+JS \u002F static + `api\u002F` function \u002F Next.js. Default to static single-file HTML unless the idea genuinely needs a serverless function.\n\n4. **Write the files.** Clear stale state from prior runs, then create the dir, each as its own Bash call (see **Shell shape** in the Network note; `rm` is not an allowed command, so the clear goes through `node`):\n   ```bash\n   node -e \"require('fs').rmSync('.pending-deploy',{recursive:true,force:true})\"\n   ```\n   ```bash\n   mkdir -p .pending-deploy\u002Ffiles\n   ```\n   Write all project files into `.pending-deploy\u002Ffiles\u002F`. This directory is the repo root — everything here is pushed to GitHub and deployed to Vercel.\n\n   **Quality bar — every prototype must meet these:**\n   - **Self-contained** — no external build step where avoidable. Prefer one `index.html` with inline `\u003Cstyle>` and `\u003Cscript>`; fall back to a `main.css` \u002F `main.js` only when size justifies it.\n   - **Loads in \u003C1s on a cold visit.** No jQuery, no CDN UI libraries for a single-page tool. Vanilla JS or a ~10KB util max. No `\u003Clink rel=\"stylesheet\">` to a CDN font unless it's one font.\n   - **Mobile-first, works on a phone.** Viewport meta set, tap targets ≥40px, no horizontal scroll at 360px wide.\n   - **Share-friendly.** Include `\u003Ctitle>`, `\u003Cmeta name=\"description\">`, `\u003Cmeta property=\"og:title\">`, `\u003Cmeta property=\"og:description\">`, `\u003Cmeta property=\"og:type\" content=\"website\">`. Skip OG image unless you generate one.\n   - **Real content, not lorem.** If the prototype shows data, fetch it from a public no-auth endpoint at load time (CoinGecko, GitHub public API, public RSS, public JSON feeds) — or hardcode a recent, realistic snapshot with the timestamp visible. Never ship placeholder `[example data]`.\n   - **One visible CTA or primary surface.** Clear hierarchy: what does the visitor look at first?\n   - **Works with JS disabled to at least show the tagline** (progressive enhancement — not required for interactive tools, but the title and description must render server-free).\n   - **Light + dark via `prefers-color-scheme`** — 4 CSS vars is enough.\n   - **No secrets.** No API keys, tokens, or env vars embedded anywhere. If the idea requires auth, redesign around a public endpoint or drop the idea.\n   - **Include a `README.md`** in `.pending-deploy\u002Ffiles\u002F` with: what it is (1 line), how to run locally (1 line), signal source (1 line link to the article\u002Flog\u002Ftopic from step 2).\n\n   For **API endpoints**: place handlers in `api\u002F` (e.g. `api\u002Findex.js` exporting `export default function handler(req, res) { ... }`).\n   For **Next.js**: keep it one page — `package.json` + `pages\u002Findex.js`. Only if the idea genuinely needs SSR.\n\n5. **Write deploy metadata.** Create `.pending-deploy\u002Fmeta.json`:\n   ```json\n   {\n     \"name\": \"aeon-prototype-\u003Cslug-from-step-3>\",\n     \"description\": \"One-sentence description, matches the OG description on the page\",\n     \"framework\": null,\n     \"tagline\": \"≤90 chars — matches \u003Ctitle> on the page\",\n     \"signal_source\": \"path or URL of the article\u002Flog\u002Ftopic that triggered this prototype\",\n     \"primary_action\": \"what the visitor does in the first 10 seconds\"\n   }\n   ```\n   - `framework`: `null` for static; `\"nextjs\"`, `\"svelte\"`, etc. when used.\n   - The extra fields (`tagline`, `signal_source`, `primary_action`) are for the prototype record and downstream dashboards; the deploy step may ignore them.\n\n6. **Build the Vercel deploy payload.** Write `.pending-deploy\u002Fpayload.json`:\n   ```json\n   {\n     \"name\": \"aeon-prototype-\u003Cslug>\",\n     \"files\": [\n       { \"file\": \"index.html\", \"data\": \"\u003C!DOCTYPE html>...\", \"encoding\": \"utf-8\" }\n     ],\n     \"projectSettings\": {\n       \"framework\": null,\n       \"buildCommand\": null,\n       \"outputDirectory\": null\n     },\n     \"target\": \"production\"\n   }\n   ```\n   Use `\"encoding\": \"base64\"` for any binary file.\n\n   **Pre-flight checks** (run before writing the notify):\n   - File count ≤ 20. Reject if above.\n   - Total payload JSON ≤ 4MB. Reject if above (Vercel inline deploy practical limit).\n   - Slug matches `^aeon-prototype-[a-z0-9][a-z0-9-]{2,49}$`.\n   - Grep every file for: `VERCEL_TOKEN`, `GH_GLOBAL`, `ANTHROPIC_API_KEY`, `sk-ant-`, `sk-`, `ghp_`, `xoxb-`, `xai-`. Any hit → abort and rewrite the offending file without the value.\n   - Grep every file for literal `TODO`, `FIXME`, `lorem ipsum`, `placeholder`. Any hit → fix in place before proceeding.\n   - If `VERCEL_TOKEN` is unset, the build still completes but the live deploy in step 8 is skipped (you'll exit `DEPLOY_PROTOTYPE_NO_TOKEN` there) — the pre-flight itself doesn't fail on a missing token.\n\n7. **Save the prototype record.** Write to `output\u002Farticles\u002Fprototype-${today}.md`. If a file with that name already exists (second run in the same day), append `-02`, `-03`, etc.\n   ```markdown\n   # Prototype: \u003CName>\n\n   **Built:** ${today}\n   **Tagline:** \u003Ctagline from meta.json>\n   **Status:** Pending deploy\n   **Live URL:** _(filled in-run in step 8 once the Vercel deploy returns its URL)_\n\n   ## Signal\n   What triggered this: one paragraph. Link the source article\u002Flog\u002Ftopic (`signal_source` from meta.json).\n\n   ## What it does\n   One paragraph, plain language. Include the primary action a visitor takes.\n\n   ## How it works\n   Brief technical notes - stack, data source, anything non-obvious. No code dumps.\n\n   ## Files\n   - `index.html` - brief description\n   - …\n\n   ## Extend\n   Three bullets on what would make this a real product (not placeholder - concrete next steps).\n   ```\n\n   Append a one-line row to `memory\u002Ftopics\u002Fprototypes.md` (create the file with a header row if missing):\n   ```\n   | date | slug | tagline | signal_source | live_url |\n   |------|------|---------|---------------|----------|\n   | 2026-04-20 | aeon-prototype-foo | ... | output\u002Farticles\u002F... | _pending_ |\n   ```\n\n8. **Deploy live (in-run).** The deploy is the skill's irreversible action, so it runs **in-run** as the final step — behind the step-6 pre-flight — not deferred to any post-run script.\n\n   If `VERCEL_TOKEN` is unset → skip the deploy, leave `.pending-deploy\u002F` in place, and exit `DEPLOY_PROTOTYPE_NO_TOKEN` (step 10). The build still succeeded; the operator just needs to add the token and re-run.\n\n   Otherwise POST the inline deployment built in step 6. Write the key as the literal `{VERCEL_TOKEN}` placeholder so `.\u002Fsecretcurl` substitutes it internally — a bare `$VERCEL_TOKEN` on the command line is refused by the Bash permission layer, and plain `curl` must not carry the token:\n   One call; it prints `http=\u003Ccode> bytes=\u003Cn>`:\n   ```bash\n   .\u002Fsecretcurl -sS -o .pending-deploy\u002Fdeploy-resp.json -w 'http=%{http_code} bytes=%{size_download}\\n' \\\n     -X POST \"https:\u002F\u002Fapi.vercel.com\u002Fv13\u002Fdeployments\" \\\n     -H \"Authorization: Bearer {VERCEL_TOKEN}\" \\\n     -H \"Content-Type: application\u002Fjson\" \\\n     --data @.pending-deploy\u002Fpayload.json\n   ```\n   - **`http` 200\u002F201:** read the deployment host from the response (`.url` in `deploy-resp.json`) and form the live URL `https:\u002F\u002F\u003Curl>`. Backfill it into the step-7 record (`**Status:** Live`, `**Live URL:** https:\u002F\u002F…`) and the `memory\u002Ftopics\u002Fprototypes.md` row (replace `_pending_`). Exit `DEPLOY_PROTOTYPE_OK` (step 10).\n   - **Any non-2xx \u002F `--max-time` timeout \u002F 200 with empty body:** print the real reason (`http=\u003Ccode>` \u002F `timeout` \u002F `empty`), keep `.pending-deploy\u002F` for a retry, and exit `DEPLOY_PROTOTYPE_DEPLOY_FAILED` (step 10). Never mark the record Live on a failed deploy.\n\n   **Optional source mirror (best-effort, non-fatal).** If `GH_GLOBAL` is set, also publish the source to GitHub. `gh` already authenticates as `GH_GLOBAL` in-run (it's the ambient `GH_TOKEN`), so no secret goes on the command line. Check whether it is set: read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `GH_GLOBAL` is not on that line, skip the mirror. Otherwise run these in order, each as its own call:\n   ```bash\n   git -C .pending-deploy\u002Ffiles init -q\n   ```\n   ```bash\n   git -C .pending-deploy\u002Ffiles add -A\n   ```\n   ```bash\n   git -C .pending-deploy\u002Ffiles -c user.name=aeon -c user.email=aeon@users.noreply.github.com commit -qm \"prototype: \u003Cslug>\"\n   ```\n   ```bash\n   gh repo create \u003Cslug> --public --source=.pending-deploy\u002Ffiles --push\n   ```\n   If any of them fails, stop the mirror there and run `echo \"::notice::source mirror skipped (non-fatal)\"`. A mirror failure never fails the run - the live Vercel URL is the deliverable.\n\n9. **Notify.** Send via `.\u002Fnotify` (one of these, depending on outcome):\n   - Deployed: `shipped: \u003Cslug> — \u003Ctagline>. live: \u003Curl>`\n   - Built, token missing: `built: \u003Cslug> — \u003Ctagline>. ⚠ VERCEL_TOKEN unset — not deployed. add it and re-run.`\n   - Deploy failed: `built: \u003Cslug> — \u003Ctagline>. ✗ vercel deploy failed (\u003Creason>) — .pending-deploy kept for retry.`\n   - No signal worth shipping: handled in step 10.\n\n10. **Exit modes.** End the run with one of these, logged in `memory\u002Flogs\u002F${today}.md` under `### deploy-prototype`:\n    - `DEPLOY_PROTOTYPE_OK` — prototype built, validated, and deployed live.\n    - `DEPLOY_PROTOTYPE_NO_TOKEN` — built and valid, but `VERCEL_TOKEN` unset; deploy skipped, operator action needed.\n    - `DEPLOY_PROTOTYPE_DEPLOY_FAILED` — built and valid, but the Vercel API call failed; `.pending-deploy\u002F` kept for retry.\n    - `DEPLOY_PROTOTYPE_EMPTY` — no candidate cleared the quality threshold in step 2. Log the top candidate and its score so the next run can reconsider. `.\u002Fnotify \"deploy-prototype: no candidate cleared threshold today — top was \u003Cslug> (\u003Cscore>\u002F15)\"`.\n    - `DEPLOY_PROTOTYPE_VALIDATION_FAILED` — a pre-flight check in step 6 failed and couldn't be fixed automatically. Leave `.pending-deploy\u002F` in place, log the failure reason, notify the operator.\n\n11. **Log.** Append to `memory\u002Flogs\u002F${today}.md`:\n    ```\n    ### deploy-prototype\n    - Exit: DEPLOY_PROTOTYPE_\u003CMODE>\n    - Slug: aeon-prototype-\u003Cslug> (or - if empty)\n    - Live URL: \u003Curl or ->\n    - Signal: \u003Csignal_source>\n    - Notes: \u003Canything the next run should know>\n    ```\n\n## Environment Variables\n\n- `VERCEL_TOKEN` — the live Vercel deploy in step 8. Used **in-run** via `.\u002Fsecretcurl` (the `{VERCEL_TOKEN}` placeholder). Without it, the build succeeds but the deploy is skipped (`DEPLOY_PROTOTYPE_NO_TOKEN`).\n- `GH_GLOBAL` — the optional GitHub source mirror in step 8. Used ambiently by `gh` (it's the run's `GH_TOKEN`); a missing token just skips the mirror.\n\nBoth are declared optional (`?`) so the skill degrades gracefully: no `VERCEL_TOKEN` → build-only; no `GH_GLOBAL` → deploy without the source mirror. Never read the token values directly and never embed them in any deployed file (step 6 greps for them).\n\n## Guidelines\n\n- A prototype is not a PoC. It's a page someone with zero context can load, understand in 10 seconds, and get value from. Hold that bar.\n- Single `index.html` is almost always the right answer. Resist the urge to add tooling.\n- Max ~5 files (enforced at 20 in pre-flight).\n- Descriptive slugs. `aeon-prototype-market-heatmap`, not `aeon-prototype-1`.\n- Never hardcode secrets. If a public-auth endpoint isn't enough for the idea, drop the idea.\n- The Vercel deploy (and the optional GitHub source mirror) happen **in-run** in step 8 via `.\u002Fsecretcurl` \u002F `gh` — an irreversible side-effect run as the skill's final, fail-closed action. Build the files, metadata, and payload correctly in steps 4–6 so that final call goes clean.\n\n## Network note\n\nSteps 1–7 are local — file writes and notify only. Step 8's deploy is the one outbound side-effect and it runs **in-run**: the Vercel deployment via `.\u002Fsecretcurl` with the `{VERCEL_TOKEN}` placeholder (a bare `$VERCEL_TOKEN` on the command line is refused by the Bash permission layer, so never use plain `curl` for it), and the optional GitHub mirror via `gh` (authenticated ambiently as `GH_GLOBAL`). There is no deferred\u002Fpostprocess step — the deploy is the skill's final, fail-closed action: on any non-2xx it exits `DEPLOY_PROTOTYPE_DEPLOY_FAILED` and keeps `.pending-deploy\u002F` for a retry.\n\n**Shell shape.** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`HTTP=$(.\u002Fsecretcurl ...)`), uses `if` \u002F `for` \u002F `while` or `[ ... ]` tests, or joins commands with `;`, `&&` or `||`, and each refusal costs a model turn; `rm` is not an allowed command and a `cd` in a subshell is refused too. So the deploy is one `.\u002Fsecretcurl` call whose `-w` prints `http=\u003Ccode> bytes=\u003Cn>` itself, the `GH_GLOBAL` check reads the run notes' \"Keys set for this run\" line instead of a shell test, and the mirror is one `git -C .pending-deploy\u002Ffiles ...` or `gh` call per step.\n",{"name":5,"metadata":45,"description":7},{"var":46,"tags":47,"title":48,"category":28,"requires":49},"",[28,34],"Deploy Prototype",[50,51],"VERCEL_TOKEN?","GH_GLOBAL?","main","504a21d53c0c9b485f6e90c43db83000825e1d3c","skills\u002Fdeploy-prototype",308,"https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon","https:\u002F\u002Fwww.aeon.fun\u002F","https:\u002F\u002Fgithub.com\u002Faeonfun","The most autonomous agent framework.","2026-11-15 03:40:18",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add aeonfun\u002Faeon --skill deploy-prototype",{"tool":67,"command":68},"bunx","bunx skills add aeonfun\u002Faeon --skill deploy-prototype",{"tool":70,"command":71},"pnpm","pnpm dlx skills add aeonfun\u002Faeon --skill deploy-prototype","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fskills\u002Fdeploy-prototype\u002FSKILL.md",true,[],[76,83,89,95,101,107],{"skillNo":77,"name":78,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":82},"01M7DSM3QWBJ44FKRMDDRAGNET","Warn Mixed Script","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fwarn-mixed-script\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":82},"01M7DSM0496DRYYW5A4NAAHZDX","Warn Hidden CSS","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fwarn-hidden-css\u002FSKILL.md",[],[],{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":82},"01M7DSKWCGDVYZSDJM31YHS2JB","Malicious Injection Uppercase","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fmalicious-injection-uppercase\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":82},"01M7DSKRV2RRA1V0HK13KYWJXD","Malicious Injection Homoglyph","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fmalicious-injection-homoglyph\u002FSKILL.md",[],[],{"skillNo":102,"name":103,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":82},"01M7DSKMXJKY0167YHVCKF7B49","Malicious Injection Disregard Prior","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fmalicious-injection-disregard-prior\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":82},"01M7DSKGFQ5V2VNSA4K97CVFMB","Benign Greek Math","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fbenign-greek-math\u002FSKILL.md",[],[]]