[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CZ2KCH1YECJBBQ7836GMA0":3,"skill-same:01M6CZ2KCH1YECJBBQ7836GMA0":57},{"skillNo":4,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":25,"publishedAt":29,"linkOnly":30,"markdownContent":31,"markdownBody":32,"frontMatter":33,"refName":34,"commitSha":35,"skillDirectory":36,"forksCount":37,"repositoryHtmlUrl":38,"repositoryHomepageUrl":39,"ownerHtmlUrl":40,"ownerBlogUrl":39,"ownerDescription":41,"updatedAt":42,"install":43,"resources":56},"01M6CZ2KCH1YECJBBQ7836GMA0","deploy-watcher",null,"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\u002Fdocs\u002Fexamples\u002Fskill-templates\u002Fdeploy-watcher\u002FSKILL.md",[17,22],{"categoryNo":18,"categoryName":19,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000011","运维与部署","SCENARIO","使用场景",{"categoryNo":23,"categoryName":24,"taxonomyType":20,"taxonomyTypeDesc":21},"01JBSEEDCAT000000000000023","Skill与智能体开发",[26,27,28],"deploy","deploy watcher","watcher","2026-11-10 10:12:30",false,"---\nname: [REPLACE: SKILL_NAME]\ndescription: Watch Vercel deploys for [REPLACE: VERCEL_PROJECT] — alert on [REPLACE: ALERT_ON] in the last [REPLACE: LOOKBACK_HOURS] hours\nmetadata:\n  category: dev\n  var: \"\"\n  tags:\n    - dev\n  requires:\n    - VERCEL_TOKEN\n    - VERCEL_TEAM_ID?\n---\n\n> **${var}** — Optional. Override the Vercel project slug. If empty, watches `[REPLACE: VERCEL_PROJECT]`.\n\nToday is ${today}. Watch Vercel deployments for **[REPLACE: VERCEL_PROJECT]** and alert on **[REPLACE: ALERT_ON]** within the last **[REPLACE: LOOKBACK_HOURS]** hours.\n\n## Required secrets\n\n- `VERCEL_TOKEN` — personal access token from https:\u002F\u002Fvercel.com\u002Faccount\u002Ftokens. Read scope is enough.\n- (optional) `VERCEL_TEAM_ID` — if the project lives under a team, set this so the API queries the right scope.\n\nRead the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `VERCEL_TOKEN` is not on it, log `DEPLOY_WATCH_NO_TOKEN` and exit cleanly - never abort the workflow.\n\n## Steps\n\n1. **Resolve scope**: the project is `${var}` if set, else `[REPLACE: VERCEL_PROJECT]`; write it into each URL literally (the `\u003CPROJECT>` below). If `VERCEL_TEAM_ID` is on the \"Keys set for this run\" line, print it with its own call, `node -e 'console.log(process.env.VERCEL_TEAM_ID)'` (a team ID is not a credential, so `.\u002Fsecretcurl` does not fill a `{VERCEL_TEAM_ID}` placeholder), and add `&teamId=\u003CTEAM_ID>` with the printed value to every Vercel URL below.\n\n2. **Fetch recent deploys** — Vercel API v6 lists deployments for a project:\n   Get the window start in milliseconds with its own call, `date -u -d '[REPLACE: LOOKBACK_HOURS] hours ago' +%s000`, and write the printed value in as `\u003CSINCE_MS>`:\n\n   ```bash\n   .\u002Fsecretcurl -s -o \u002Ftmp\u002Fvercel-deploys.json -w 'vercel http=%{http_code}\\n' -H \"Authorization: Bearer {VERCEL_TOKEN}\" \"https:\u002F\u002Fapi.vercel.com\u002Fv6\u002Fdeployments?projectId=\u003CPROJECT>&since=\u003CSINCE_MS>&limit=20\"\n   ```\n\n   On a non-2xx code, log `DEPLOY_WATCH_FETCH_FAIL http=\u003Ccode>` and stop.\n\n   Make every Vercel call in-run with `.\u002Fsecretcurl` (write the key as `{VERCEL_TOKEN}` — a bare `$VERCEL_TOKEN` on the line is refused by the Bash permission layer). Read-only status checks and any **irreversible action** (e.g. triggering a deploy) both run in-run — the irreversible one as the skill's final, fail-closed action. Never defer a read.\n\n3. **Parse and classify** — for each deploy, capture: `uid`, `state` (READY \u002F ERROR \u002F CANCELED \u002F BUILDING \u002F QUEUED), `url`, `target` (production \u002F preview), `creator`, `createdAt`, `meta.githubCommitMessage`.\n\n4. **Apply the alert filter** — `[REPLACE: ALERT_ON]` is one of:\n   - `production-failures` → alert when `target=production` AND `state in {ERROR, CANCELED}`.\n   - `any-failures` → alert on any `state in {ERROR, CANCELED}`.\n   - `slow-builds` → alert when build time > 10× the last-week median for this project.\n   - `all` → alert on every state transition (noisy — only useful while debugging the skill).\n\n5. **Compare against last-success baseline** — if alerting on a failure, also fetch the most recent successful production deploy and include in the notification: \"last green: [commit] · [N hours] ago\".\n\n   ```bash\n   .\u002Fsecretcurl -s -o \u002Ftmp\u002Fvercel-last-green.json -w 'vercel http=%{http_code}\\n' -H \"Authorization: Bearer {VERCEL_TOKEN}\" \"https:\u002F\u002Fapi.vercel.com\u002Fv6\u002Fdeployments?projectId=\u003CPROJECT>&target=production&state=READY&limit=1\"\n   ```\n\n6. **Dedup** — track alerted deploy UIDs in `memory\u002Ftopics\u002F[REPLACE: SKILL_NAME]-alerted.json`. Never re-alert for the same UID.\n\n7. **Notify on every new alert** via `.\u002Fnotify`:\n   ```\n   *Deploy alert — [REPLACE: VERCEL_PROJECT]*\n   ${state}: ${commit_message}\n   ${target} build by ${creator} · ${ago}\n   Last green: ${last_green_commit} · ${last_green_ago}\n   Inspect: https:\u002F\u002Fvercel.com\u002F${owner}\u002F${PROJECT}\u002F${uid}\n   ```\n\n8. **Write a roll-up** to `output\u002Farticles\u002F[REPLACE: SKILL_NAME]-${today}.md`: total deploys, success\u002Ffail counts per target, average build time, list of failed UIDs with commit messages.\n\n9. **Log** to `memory\u002Flogs\u002F${today}.md`:\n   ```\n   ## [REPLACE: SKILL_NAME]\n   - **Deploys (${LOOKBACK_HOURS}h)**: total=N, ready=X, error=Y, canceled=Z, building=W\n   - **Alerts fired**: N (deduped from M raw matches)\n   - **Status**: DEPLOY_OK | DEPLOY_QUIET (no deploys) | DEPLOY_ALERT | DEPLOY_DEGRADED\n   ```\n\n## Network note\n\nThe Vercel API requires `Authorization: Bearer {VERCEL_TOKEN}`. A bare `$SECRET` on a command line is refused by the Bash permission layer, so make **every** Vercel call in-run with `.\u002Fsecretcurl` (write the key as the `{VERCEL_TOKEN}` placeholder — it keeps the secret off the line). Both the read-only status checks and any **irreversible** action (like triggering a deploy) run in-run; the irreversible one goes last, as the skill's final fail-closed action. Never defer a read.\n\n**Shell shape.** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`PROJECT=...`, `SINCE_MS=$(( ... ))`), uses `if` \u002F `for`, tests a key (`[ -n \"$VERCEL_TEAM_ID\" ]`), joins commands with `;`, `&&` or `||`, redirects into a file (`> .vercel-deploys.json`), or puts a shell variable on a `.\u002Fsecretcurl` line (`$URL`), and each refusal costs a model turn. So run `date` as its own call, write the project, team ID and window start into each URL literally, save replies with `-o \u002Ftmp\u002F\u003Cfile>`, and write `alerted.json`, the article and the log with Write\u002FEdit.\n\n## Constraints\n\n- **Dedup is non-negotiable**. Re-running the same alert for the same deploy will train operators to mute the channel — once alerted, never again unless the deploy changes state.\n- **Production beats preview** for alerting. A failed preview deploy is interesting but not urgent. Default to `production-failures` until the operator opts into more.\n- **Compare against baseline**. A failed build means more when paired with \"last green was 3 hours ago\" than alone.\n","> **${var}** — Optional. Override the Vercel project slug. If empty, watches `[REPLACE: VERCEL_PROJECT]`.\n\nToday is ${today}. Watch Vercel deployments for **[REPLACE: VERCEL_PROJECT]** and alert on **[REPLACE: ALERT_ON]** within the last **[REPLACE: LOOKBACK_HOURS]** hours.\n\n## Required secrets\n\n- `VERCEL_TOKEN` — personal access token from https:\u002F\u002Fvercel.com\u002Faccount\u002Ftokens. Read scope is enough.\n- (optional) `VERCEL_TEAM_ID` — if the project lives under a team, set this so the API queries the right scope.\n\nRead the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). If `VERCEL_TOKEN` is not on it, log `DEPLOY_WATCH_NO_TOKEN` and exit cleanly - never abort the workflow.\n\n## Steps\n\n1. **Resolve scope**: the project is `${var}` if set, else `[REPLACE: VERCEL_PROJECT]`; write it into each URL literally (the `\u003CPROJECT>` below). If `VERCEL_TEAM_ID` is on the \"Keys set for this run\" line, print it with its own call, `node -e 'console.log(process.env.VERCEL_TEAM_ID)'` (a team ID is not a credential, so `.\u002Fsecretcurl` does not fill a `{VERCEL_TEAM_ID}` placeholder), and add `&teamId=\u003CTEAM_ID>` with the printed value to every Vercel URL below.\n\n2. **Fetch recent deploys** — Vercel API v6 lists deployments for a project:\n   Get the window start in milliseconds with its own call, `date -u -d '[REPLACE: LOOKBACK_HOURS] hours ago' +%s000`, and write the printed value in as `\u003CSINCE_MS>`:\n\n   ```bash\n   .\u002Fsecretcurl -s -o \u002Ftmp\u002Fvercel-deploys.json -w 'vercel http=%{http_code}\\n' -H \"Authorization: Bearer {VERCEL_TOKEN}\" \"https:\u002F\u002Fapi.vercel.com\u002Fv6\u002Fdeployments?projectId=\u003CPROJECT>&since=\u003CSINCE_MS>&limit=20\"\n   ```\n\n   On a non-2xx code, log `DEPLOY_WATCH_FETCH_FAIL http=\u003Ccode>` and stop.\n\n   Make every Vercel call in-run with `.\u002Fsecretcurl` (write the key as `{VERCEL_TOKEN}` — a bare `$VERCEL_TOKEN` on the line is refused by the Bash permission layer). Read-only status checks and any **irreversible action** (e.g. triggering a deploy) both run in-run — the irreversible one as the skill's final, fail-closed action. Never defer a read.\n\n3. **Parse and classify** — for each deploy, capture: `uid`, `state` (READY \u002F ERROR \u002F CANCELED \u002F BUILDING \u002F QUEUED), `url`, `target` (production \u002F preview), `creator`, `createdAt`, `meta.githubCommitMessage`.\n\n4. **Apply the alert filter** — `[REPLACE: ALERT_ON]` is one of:\n   - `production-failures` → alert when `target=production` AND `state in {ERROR, CANCELED}`.\n   - `any-failures` → alert on any `state in {ERROR, CANCELED}`.\n   - `slow-builds` → alert when build time > 10× the last-week median for this project.\n   - `all` → alert on every state transition (noisy — only useful while debugging the skill).\n\n5. **Compare against last-success baseline** — if alerting on a failure, also fetch the most recent successful production deploy and include in the notification: \"last green: [commit] · [N hours] ago\".\n\n   ```bash\n   .\u002Fsecretcurl -s -o \u002Ftmp\u002Fvercel-last-green.json -w 'vercel http=%{http_code}\\n' -H \"Authorization: Bearer {VERCEL_TOKEN}\" \"https:\u002F\u002Fapi.vercel.com\u002Fv6\u002Fdeployments?projectId=\u003CPROJECT>&target=production&state=READY&limit=1\"\n   ```\n\n6. **Dedup** — track alerted deploy UIDs in `memory\u002Ftopics\u002F[REPLACE: SKILL_NAME]-alerted.json`. Never re-alert for the same UID.\n\n7. **Notify on every new alert** via `.\u002Fnotify`:\n   ```\n   *Deploy alert — [REPLACE: VERCEL_PROJECT]*\n   ${state}: ${commit_message}\n   ${target} build by ${creator} · ${ago}\n   Last green: ${last_green_commit} · ${last_green_ago}\n   Inspect: https:\u002F\u002Fvercel.com\u002F${owner}\u002F${PROJECT}\u002F${uid}\n   ```\n\n8. **Write a roll-up** to `output\u002Farticles\u002F[REPLACE: SKILL_NAME]-${today}.md`: total deploys, success\u002Ffail counts per target, average build time, list of failed UIDs with commit messages.\n\n9. **Log** to `memory\u002Flogs\u002F${today}.md`:\n   ```\n   ## [REPLACE: SKILL_NAME]\n   - **Deploys (${LOOKBACK_HOURS}h)**: total=N, ready=X, error=Y, canceled=Z, building=W\n   - **Alerts fired**: N (deduped from M raw matches)\n   - **Status**: DEPLOY_OK | DEPLOY_QUIET (no deploys) | DEPLOY_ALERT | DEPLOY_DEGRADED\n   ```\n\n## Network note\n\nThe Vercel API requires `Authorization: Bearer {VERCEL_TOKEN}`. A bare `$SECRET` on a command line is refused by the Bash permission layer, so make **every** Vercel call in-run with `.\u002Fsecretcurl` (write the key as the `{VERCEL_TOKEN}` placeholder — it keeps the secret off the line). Both the read-only status checks and any **irreversible** action (like triggering a deploy) run in-run; the irreversible one goes last, as the skill's final fail-closed action. Never defer a read.\n\n**Shell shape.** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`PROJECT=...`, `SINCE_MS=$(( ... ))`), uses `if` \u002F `for`, tests a key (`[ -n \"$VERCEL_TEAM_ID\" ]`), joins commands with `;`, `&&` or `||`, redirects into a file (`> .vercel-deploys.json`), or puts a shell variable on a `.\u002Fsecretcurl` line (`$URL`), and each refusal costs a model turn. So run `date` as its own call, write the project, team ID and window start into each URL literally, save replies with `-o \u002Ftmp\u002F\u003Cfile>`, and write `alerted.json`, the article and the log with Write\u002FEdit.\n\n## Constraints\n\n- **Dedup is non-negotiable**. Re-running the same alert for the same deploy will train operators to mute the channel — once alerted, never again unless the deploy changes state.\n- **Production beats preview** for alerting. A failed preview deploy is interesting but not urgent. Default to `production-failures` until the operator opts into more.\n- **Compare against baseline**. A failed build means more when paired with \"last green was 3 hours ago\" than alone.\n",{},"main","fddec052c66754287c08582d49ae5fe6a3657221","docs\u002Fexamples\u002Fskill-templates\u002Fdeploy-watcher",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":7,"skillName":5,"commands":44,"prompt":54,"zipAvailable":55},[45,48,51],{"tool":46,"command":47},"npx","npx skills add aeonfun\u002Faeon --skill deploy-watcher",{"tool":49,"command":50},"bunx","bunx skills add aeonfun\u002Faeon --skill deploy-watcher",{"tool":52,"command":53},"pnpm","pnpm dlx skills add aeonfun\u002Faeon --skill deploy-watcher","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fdocs\u002Fexamples\u002Fskill-templates\u002Fdeploy-watcher\u002FSKILL.md",true,[],[58,65,71,77,83,89],{"skillNo":59,"name":60,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":64},"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":66,"name":67,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":68,"categories":69,"keywords":70,"publishedAt":64},"01M7DSM0496DRYYW5A4NAAHZDX","Warn Hidden CSS","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fwarn-hidden-css\u002FSKILL.md",[],[],{"skillNo":72,"name":73,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":64},"01M7DSKWCGDVYZSDJM31YHS2JB","Malicious Injection Uppercase","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fmalicious-injection-uppercase\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":82,"publishedAt":64},"01M7DSKRV2RRA1V0HK13KYWJXD","Malicious Injection Homoglyph","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fmalicious-injection-homoglyph\u002FSKILL.md",[],[],{"skillNo":84,"name":85,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":64},"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":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":7,"ownerLogin":8,"ownerAvatarUrl":9,"ownerAccountNo":10,"ownerDisplayName":11,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":64},"01M7DSKGFQ5V2VNSA4K97CVFMB","Benign Greek Math","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon\u002Fblob\u002Fmain\u002Fscripts\u002Ftests\u002Fskill-scan-fixtures\u002Fbenign-greek-math\u002FSKILL.md",[],[]]