[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6J47SP0FFH2SFNQSH7AD6R1":3,"skill-same:01M6J47SP0FFH2SFNQSH7AD6R1":82},{"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":44,"linkOnly":45,"markdownContent":46,"markdownBody":47,"frontMatter":48,"refName":58,"commitSha":59,"skillDirectory":60,"forksCount":61,"repositoryHtmlUrl":62,"repositoryHomepageUrl":63,"ownerHtmlUrl":64,"ownerBlogUrl":65,"ownerDescription":66,"updatedAt":67,"install":68,"resources":81},"01M6J47SP0FFH2SFNQSH7AD6R1","shiplog",null,"Recap of everything shipped since the last run - cross-repo PRs, security fixes, star deltas, and X traction, synthesized into a digest article and a ready-to-post shiplog in your voice.","aeonfun\u002Faeon-agent","aeonfun","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F287715280?v=4","01M6CZ23C6MXGMF4N0V1DZ1247","aeon","01M6J3TN6FHJPWGPAR9ZVJY6FP",12,"MIT","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fshiplog\u002FSKILL.md",[18],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000036","内容创作者","PROFESSION","适用职业",[5,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43],"security","prs","voice","post","last","gh","twitter","repo","STAR","fixes","core","digest","run","xai","article","api","recap","social","deltas","ready","2026-11-10 10:12:30",false,"---\nname: shiplog\ndescription: Recap of everything shipped since the last run - cross-repo PRs, security fixes, star deltas, and X traction, synthesized into a digest article and a ready-to-post shiplog in your voice.\nmetadata:\n  title: Shiplog\n  category: core\n  var: \"\"\n  requires:\n    - TWITTER_API_KEY\n    - XAI_API_KEY?\n    - GH_GLOBAL?\n  tags:\n    - content\n    - social\n---\n> **${var}** — Optional, space-separated flags:\n> - `since:YYYY-MM-DD` — override the window start (default: when this skill last ran).\n> - `days:N` — window = last N days.\n> - `dry-run` — render to stdout; write no article, no state, no notify.\n> - `owner\u002Frepo` — narrow GitHub coverage to that one repo.\n> - any other word — focus\u002Ftheme filter (a product name or keyword).\n>\n> Empty = everything shipped since the last run, across all configured repos.\n\nProduce two artifacts:\n1. **Digest** — a themed, human-readable recap of everything that shipped + traction (the article).\n2. **Shiplog post** — a tight, bulleted, ready-to-post version in the operator's voice, every project @-tagged (the notification).\n\nThis is **cadence-agnostic**: the window is always \"since the last run\" (`memory\u002Fstate\u002Fshiplog-last.json`), so the `aeon.yml` schedule alone decides whether this is a daily, weekly, or on-demand recap. One skill, any frequency.\n\nRead `STRATEGY.md`, `memory\u002FMEMORY.md`, and the last 7 days of `memory\u002Flogs\u002F` for context. Read `soul\u002FSOUL.md` + `soul\u002FSTYLE.md` before writing any output — the shiplog post must sound like the operator, not a changelog bot. **If `soul\u002F` is empty, use a clear, direct, neutral voice** (drop the signature flourishes below).\n\n## Config — all derived, nothing hardcoded\n\n```\noperator        = gh api user --jq .login            # the authenticated operator (PR-author search)\nproduct_handles = memory\u002Fproducts.md `handles:` lines (@x)        # product X accounts to read\nflagship_repos  = memory\u002Fproducts.md `repos:` tagged (public)     # the star \u002F north-star story\nwatched_repos   = memory\u002Fwatched-repos.md, else products.md repos: # everything shipped across\necosystem_scouts= memory\u002Fproducts.md `scouts:` line (optional)    # recap accounts to scan for features\nstar_state      = memory\u002Fstate\u002Fshiplog-stars.json    # snapshot for week-over-week star deltas\n```\n\nIf neither `watched-repos.md` nor `products.md` yields a repo, exit `SHIPLOG_NO_REPOS` (notify + log, no article). Sections whose config is absent (X handles, scouts) are **skipped gracefully**, not failed.\n\n## Steps\n\n### 1. Compute the window — \"since last run\"\n\nEach `date` \u002F `jq` below is its own Bash call (see **Shell shape** under Fetching & sources):\n\n```bash\ndate -u +%Y-%m-%dT%H:%M:%SZ\n```\n```bash\ndate -u +%Y-%m-%d\n```\nThe first prints NOW, the second TODAY.\n\nCheck for the state file `memory\u002Fstate\u002Fshiplog-last.json` with Glob. If it exists, read the last run time:\n```bash\njq -r '.last_run_at \u002F\u002F empty' memory\u002Fstate\u002Fshiplog-last.json\n```\nIt prints LAST. `SINCE` = LAST. If the file is missing or LAST is empty, use the first-run default instead:\n```bash\ndate -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ\n```\nIt prints SINCE. `SINCE_DATE` = the part of SINCE before the `T`. Every later command has these values (and OPERATOR, handles, repos) written in literally where it shows `\u003CSINCE>`, `\u003CSINCE_DATE>`, `\u003CTODAY>`, `\u003CNOW>`.\n\n- `since:YYYY-MM-DD` in `${var}` → `SINCE` = that date at `T00:00:00Z`; `days:N` → N days ago (`date -u -d '\u003CN> days ago' +%Y-%m-%dT%H:%M:%SZ` as its own call). These override the state file.\n- Use `SINCE` for ALL time filtering - never substitute \"since Monday\" or other drift-prone shortcuts. The window is `[SINCE, NOW)`; state the span (`SINCE_DATE → TODAY`) in the output.\n- **Idempotency is the state file** (step 8 advances it each run, so windows never overlap). No once-per-day lock — a back-to-back re-run just yields an empty window → `SHIPLOG_NOTHING_NEW`. Write the digest to `output\u002Farticles\u002Fshiplog-${TODAY}.md`; if that name exists and there's genuinely new activity since the last run, use `output\u002Farticles\u002Fshiplog-${TODAY}-2.md` rather than clobbering.\n\n### 2. GitHub activity (the bytes)\n\nCross-repo PR\u002Fcommit visibility needs the global token. When `GH_GLOBAL` is set the workflow already exports it as `gh`'s `GH_TOKEN`, so plain `gh` calls reach every repo it can see; don't put the token on the command line (a `$SECRET` expansion is refused):\n\ngh reads GH_TOKEN from the environment (GH_GLOBAL when set, else the repo-scoped token):\n```bash\ngh api user --jq .login\n```\nIt prints OPERATOR.\n\nTrack success\u002Ffailure per source in a `sources` map; on a single endpoint failure log `fail` and continue — never abort the whole skill.\n\n**a) Operator PRs across all repos in the window** (grouped by repo + totals):\n```bash\ngh search prs --author \"\u003COPERATOR>\" --created \">=\u003CSINCE_DATE>\" \\\n  --json number,title,repository,state,createdAt,url --limit 100 \\\n  --jq 'group_by(.repository.nameWithOwner)[] | {repo: .[0].repository.nameWithOwner, count: length,\n         prs: [.[] | {date: .createdAt[0:10], state, number, title}]}'\n```\nIf 100 rows come back, note the result may be truncated.\n\n**b) Flagship headline numbers** - for each `flagship_repos` entry, count commits + merged PRs in the window (the numbers the audience cares about). Two calls per repo, with the repo and SINCE written in literally:\n```bash\ngh api \"repos\u002F\u003CREPO>\u002Fcommits\" -X GET -f since=\"\u003CSINCE>\" \\\n  --jq '\"\u003CREPO> commits: \" + ([.[] | .sha] | length | tostring)'\n```\n```bash\ngh api \"repos\u002F\u003CREPO>\u002Fpulls\" -X GET -f state=closed -f sort=updated -f direction=desc \\\n  --jq '\"\u003CREPO> merged PRs: \" + ([.[] | select(.merged_at != null and .merged_at > \"\u003CSINCE>\")] | length | tostring)'\n```\nIf a call fails, log `fail` for that repo and move on.\n\n**c) The security flex** — PRs the operator landed in repos they do NOT own (the \"a project merged a fix from us\" candidates). Filter the Step-2a result to external repos whose title matches a security keyword (`security|ssrf|cve|credential|sandbox|escape|injection|vuln|redos|xss|toctou|path traversal|prototype pollution|deserial`). Merged ones are the marquee story — if it's a named org (not a random fork), that's a headline bullet.\n\n**d) Star delta** (north-star metric — flagships only, they're public):\n```bash\nmkdir -p memory\u002Fstate\n```\nThen one call per flagship repo, written in literally (prints the current total):\n```bash\ngh api \"repos\u002F\u003CREPO>\" --jq '.stargazers_count'\n```\nRead the prior snapshot `memory\u002Fstate\u002Fshiplog-stars.json` (if present): `delta = current_total − last_total` per repo. After computing, overwrite the snapshot with Write: `{ \"\u003Crepo>\": {\"count\": N, \"date\": \"${TODAY}\"}, ... }`. If no prior snapshot exists, report totals only and note \"no baseline yet - deltas start next run.\" Do NOT fabricate a delta.\n\n### 3. X activity (twitterapi.io - primary)\n\n`TWITTER_API_KEY` is **injected into this skill's environment** (declared in `requires:`) and is the primary way to read X. twitterapi.io returns **structured tweet objects** - exact engagement counts, real permalinks, parsed fields - so you read ground-truth data instead of free text and **fabrication risk is gone**. It is also fast (~700ms). Grok `x_search` (`XAI_API_KEY`) stays wired as a demoted fallback.\n\n**Check the key first:** read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). `TWITTER_API_KEY` on that line = `KEY_PRESENT`, not on it = `KEY_UNSET`.\n\nThere are two X sources here - the **operator** handle (`OPERATOR_HANDLE`, the operator's own X account from `memory\u002Fproducts.md`) and the **product\u002Fproject** accounts (`PRODUCT_HANDLES`). Fetch each independently into its own tmp file so one failing source can't clobber or sink another.\n\n**Path A - twitterapi.io (primary).** Base `https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter`, auth header `X-API-Key: {TWITTER_API_KEY}` via `.\u002Fsecretcurl` (keep the key off the command line). The `-w` label prints the status and size in the same call, before parsing.\n\n*Operator posts* (`SRC=operator`) - the operator's own timeline. `\u002Fuser\u002Flast_tweets` has **no server-side date filter**, so keep only posts inside `[SINCE_DATE, TODAY]` client-side on `.createdAt`. One call, the handle written in literally:\n```bash\n.\u002Fsecretcurl -s -o \u002Ftmp\u002Ftw-operator.json -w 'twitterapi http=%{http_code} bytes=%{size_download}\\n' -G \"https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter\u002Fuser\u002Flast_tweets\" \\\n  --data-urlencode \"userName=\u003COPERATOR_HANDLE>\" -H \"X-API-Key: {TWITTER_API_KEY}\"\n```\nOn `HTTP=200`, parse `.data.tweets[]` (`createdAt` is Twitter's native `Day Mon DD HH:MM:SS +0000 YYYY` string; the `strptime` normalizes it to a date for the window compare); paginate with `&cursor=\u003Cnext_cursor>` when `.has_next_page` is true and older in-window posts remain:\n```bash\njq -r '\n  .data.tweets[]\n  | .day = (try (.createdAt | strptime(\"%a %b %d %H:%M:%S %z %Y\") | strftime(\"%Y-%m-%d\")) catch (.createdAt[0:10]))\n  | select(.day >= \"\u003CSINCE_DATE>\")\n  | [.id, .day, .isReply, .likeCount, .retweetCount, .replyCount, .url, .text] | @tsv' \u002Ftmp\u002Ftw-operator.json\n```\nSeparate **original posts** from **replies\u002FRTs** (`.isReply`, or text starting `RT @`) - RTs are amplification, not ships.\n\n*Product\u002Fproject accounts* (`SRC=projects`) - one `advanced_search` across every product handle, with the date window inside the query string. Build `FROMQ` yourself (no shell text tools): split `PRODUCT_HANDLES` on commas\u002Fspaces, drop each leading `@` and any blanks, prefix each with `from:`, join with ` OR ` (e.g. `from:aeonframework OR from:miroshark_`). Then one call with the query written in literally:\n```bash\n.\u002Fsecretcurl -s -o \u002Ftmp\u002Ftw-projects.json -w 'twitterapi http=%{http_code} bytes=%{size_download}\\n' -G \"https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter\u002Ftweet\u002Fadvanced_search\" \\\n  --data-urlencode \"query=(\u003CFROMQ>) since:\u003CSINCE_DATE> until:\u003CTODAY>\" --data-urlencode \"queryType=Latest\" -H \"X-API-Key: {TWITTER_API_KEY}\"\n```\nOn `HTTP=200`, parse `.tweets[]` (author under `.author.userName`); note the bangers by `.likeCount` \u002F `.viewCount` - one or two feed the digest narrative. Skip retweets of others:\n```bash\njq -r '.tweets[] | [.author.userName, .createdAt, .likeCount, .retweetCount, .replyCount, .url, .text] | @tsv' \u002Ftmp\u002Ftw-projects.json\n```\nSupported query operators: `from: to: url: lang: #tag @mention since: until:`, `OR`\u002F`AND`, quoted phrases. There is **no `list:` operator**.\n\nFor each source, mark `x_source=twitterapi` on a `200` with parsed rows. **On a real failure, skip that source with the true reason - never fabricate posts** (with structured objects there is no fabrication risk, but the skip-on-real-failure rule still holds). Reason codes: `key-unset` (only if the key check gave `KEY_UNSET`), `http-\u003Ccode>` (non-2xx), `empty` (200 but no tweets parsed), `timeout` (exceeded `--max-time`).\n\n**Path B - xAI Grok `x_search` (fallback).** Only if a source's Path A returned non-2xx, empty, or timed out. `XAI_API_KEY` is also injected (`requires:`). `x_search` runs a live X search and typically takes 30-120s - when you invoke the Bash tool for these curls, **set the tool's `timeout` to at least 180000 (180s)**; each curl carries `--max-time 150` so it fails cleanly instead of hanging. **A slow curl is not a missing key - never treat a timeout as key-unavailable.**\n\nEach source is one call: build the body with `jq -n` (values written into the filter literally: a jq `$name` variable and a `>` redirect into a file are both refused; a `\"` inside a value becomes `\\\"`, and reword any `'`) and pipe it straight into the send. Keep `-w '%{http_code}'` exactly on the xAI send (secretcurl's retry reads it); secretcurl itself prints an `http=... bytes=...` line on stderr.\n\n*Operator posts* (`SRC=operator`):\n```bash\njq -n '{model:\"grok-4.6\", input:[{role:\"user\", content:\"Search X for posts by @\u003COPERATOR_HANDLE> between \u003CSINCE_DATE> and \u003CTODAY>. Return each post with full text, date, type (original|reply|RT - an RT text starts with \\\"RT @\\\"), exact engagement counts (likes, retweets, replies; 0 if unknown), and the direct link https:\u002F\u002Fx.com\u002F\u003COPERATOR_HANDLE>\u002Fstatus\u002FID. Return chronological.\"}], tools:[{type:\"x_search\"}]}' \\\n  | .\u002Fsecretcurl -s -o \u002Ftmp\u002Fxai-shiplog-operator.json -w '%{http_code}' --max-time 150 -X POST \"https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses\" \\\n  -H \"Content-Type: application\u002Fjson\" -H \"Authorization: Bearer {XAI_API_KEY}\" --data-binary @-\n```\n\n*Product\u002Fproject accounts* (`SRC=projects`):\n```bash\njq -n '{model:\"grok-4.6\", input:[{role:\"user\", content:\"Search X for posts between \u003CSINCE_DATE> and \u003CTODAY> from these accounts: \u003CPRODUCT_HANDLES>. Focus on launches, announcements, and any brag about a security fix merged into another project. For each: @handle, full text, date, exact engagement counts (likes, retweets, replies; 0 if unknown), and the direct link https:\u002F\u002Fx.com\u002Fhandle\u002Fstatus\u002FID. Skip retweets of others.\"}], tools:[{type:\"x_search\"}]}' \\\n  | .\u002Fsecretcurl -s -o \u002Ftmp\u002Fxai-shiplog-projects.json -w '%{http_code}' --max-time 150 -X POST \"https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses\" \\\n  -H \"Content-Type: application\u002Fjson\" -H \"Authorization: Bearer {XAI_API_KEY}\" --data-binary @-\n```\n\nFor each source, on `HTTP=200` with a non-empty body, parse that source's file with the standard extractor and mark `x_source=xai`:\n```bash\njq -r '.output[] | select(.type == \"message\") | .content[] | select(.type == \"output_text\") | .text' \u002Ftmp\u002Fxai-shiplog-\u003CSRC>.json\n```\nFrom the **operator** text, separate **original posts** from **RTs** (RT text starts with `RT @`) — RTs are amplification, not ships. From the **projects** text, note the bangers (sort by likes\u002Fviews) — one or two feed the digest's narrative section.\n\n**On a real failure, skip that source — never fabricate posts.** If a source's curl returns non-200, an empty\u002Funparseable body, or times out, record the **true reason** for that source and continue with whatever other sources succeeded. Reason codes: `key-unset` (only if the key check above gave `KEY_UNSET`), `http-\u003Ccode>` (non-2xx), `empty` (200 but no posts parsed), `timeout` (exceeded `--max-time`). Never write \"XAI_API_KEY unavailable\" when the key was set.\n\n**Path C - WebFetch (last resort, per source).** Only if a source failed BOTH Path A and Path B for one of the real reasons above: WebFetch that source's public `https:\u002F\u002Fx.com\u002F\u003Chandle>` profile(s), no auth, and mark that source `x_source=webfetch` (lower quality; prefer posts inside the window). If every X source fails all paths, set `x_source=none` and write the GitHub-only shiplog (note the gap) - **never abort**.\n\n### 4. Ecosystem + traction sweep (best-effort — skip gracefully)\n\n- **Ecosystem mentions** - only if `ecosystem_scouts` (`scouts:`) is configured. **Path A (primary): twitterapi.io `advanced_search`** across the scout handles, scoped to product terms and the window (`SRC=ecosystem`):\n  Build `SCOUTQ` yourself the same way as `FROMQ` (scout handles, `@` dropped, each prefixed `from:`, joined with ` OR `) and `TERMS` from `PRODUCT_HANDLES` (`@` dropped, no prefix, joined with ` OR `). Then one call with the query written in literally:\n  ```bash\n  .\u002Fsecretcurl -s -o \u002Ftmp\u002Ftw-ecosystem.json -w 'twitterapi http=%{http_code} bytes=%{size_download}\\n' -G \"https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter\u002Ftweet\u002Fadvanced_search\" \\\n    --data-urlencode \"query=(\u003CSCOUTQ>) (\u003CTERMS>) since:\u003CSINCE_DATE> until:\u003CTODAY>\" --data-urlencode \"queryType=Latest\" -H \"X-API-Key: {TWITTER_API_KEY}\"\n  ```\n  On HTTP 200, parse it as its own call:\n  ```bash\n  jq -r '.tweets[] | [.author.userName, (.author.followers \u002F\u002F \"?\"), .createdAt, .url, .text] | @tsv' \u002Ftmp\u002Ftw-ecosystem.json\n  ```\n  On `HTTP=200` with parsed rows, mark `x_source=twitterapi` and capture `.author.followers` when present for the flex (\"featured by @X (Nk)\"; follower counts are best-effort on search results). **Path B (fallback): xAI Grok `x_search`** - only on a real Path A failure (`http-\u003Ccode>` \u002F `empty` \u002F `timeout` \u002F `key-unset`), the same curl shape as Step 3 Path B, into its own tmp file:\n  ```bash\n  jq -n '{model:\"grok-4.6\", input:[{role:\"user\", content:\"Search X between \u003CSINCE_DATE> and \u003CTODAY> for posts from these recap\u002Fscout accounts: \u003CECOSYSTEM_SCOUTS> that mention any of these products: \u003CPRODUCT_HANDLES>. Return each mention with @handle, follower_count, full text, date, and the direct link https:\u002F\u002Fx.com\u002Fhandle\u002Fstatus\u002FID - recaps, rankings, partner shares.\"}], tools:[{type:\"x_search\"}]}' \\\n    | .\u002Fsecretcurl -s -o \u002Ftmp\u002Fxai-shiplog-ecosystem.json -w '%{http_code}' --max-time 150 -X POST \"https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses\" \\\n    -H \"Content-Type: application\u002Fjson\" -H \"Authorization: Bearer {XAI_API_KEY}\" --data-binary @-\n  ```\n  On `HTTP=200` + non-empty, parse `\u002Ftmp\u002Fxai-shiplog-ecosystem.json` with the standard extractor and mark `x_source=xai`. If both paths fail for a real reason (`http-\u003Ccode>` \u002F `empty` \u002F `timeout`, or `key-unset`), skip this source with the true reason - **never fabricate a mention**. Confirm any handle is real before @-mentioning (a wrong tag in a public post is worse than none). Skip entirely if no `scouts:` configured.\n- **Product traction** (OpenRouter \u002F x402 \u002F analytics) — only if a source is configured for the product. If you have an app\u002Fserver id, WebFetch its page; otherwise say \"no product-traction sources wired yet\" and move on. Keep any number exactly as measured — don't round 79 → ~80.\n\n### 5. Classify the window\n\n| Condition | Status | Action |\n|-----------|--------|--------|\n| 0 PRs AND 0 flagship commits AND no notable X | `SHIPLOG_NOTHING_NEW` | Notify-optional — no article. Skip to Step 8, **still advance state.** |\n| \u003C 3 substantive ships total | `SHIPLOG_LIGHT` | Short post (3-bullet form). |\n| Otherwise | `SHIPLOG_OK` | Full digest + post. |\n\nIf `${var}` narrows to one repo\u002Fproject and nothing matched, status `SHIPLOG_NO_MATCH` — notify and exit (still advance state).\n\n### 6. Synthesize + write the article\n\n**Output handling — no PR.** This is a content skill: write the article straight to `output\u002Farticles\u002F` and let the workflow's commit step push it to `main` (same as the `article` skill). Do **not** create a branch or open a pull request — `CLAUDE.md`'s \"branch + PR, never push to main\" rule is for source-code changes, not generated articles.\n\nWrite the **digest** to `output\u002Farticles\u002Fshiplog-${TODAY}.md`: themed \"what shipped\" sections, a **By-the-numbers** line (PRs · commits · star deltas), traction\u002Fecosystem, and the gaps you hit. Then append the **ready-to-post shiplog** using this template — load `soul\u002FSTYLE.md` first so the register matches (if `soul\u002F` is empty, write a plain, direct post and drop the `⭐` sign-off):\n\n```\n\u003Cproduct(s)> shiplog ⭐ \u003Cspan: month day → day>\n\nshipped ~\u003CN> PRs + \u003CM> commits this window. the bytes:\n\n- \u003Cpunchy ship 1>: \u003Cone-line what+why>. \u003C@handles of projects involved>\n- \u003Cpunchy ship 2>: ...\n- \u003Cpunchy ship 3>: ...\n- security: fixes into other people's repos (\u003Ctypes>) - even got one merged into \u003C@MarqueeOrg>'s \u003Crepo>\n\ntraction:\n- \u003Cproduct> \u003Ctotal> ⭐ (+\u003Cdelta> this window)\n- featured by \u003C@scout> (\u003Cfollowers>) \"\u003Cquote>\" + ranked #\u003Crank> \u003Clist>\n\n⭐\n```\n\n- **Tag every project** with a handle you verified. If you couldn't confidently resolve one, leave it untagged and say which is missing.\n- Keep numbers exactly as measured. If a flex (a security merge, a milestone) landed just outside the window, keep it but flag the date.\n- Also draft two variants below the post: a tight thread (hook + one tweet per ship) and a 3-bullet short version.\n\n### 7. (folded into 6)\n\n### 8. Advance the state file\n\nUnless `dry-run`, record this run so the next one starts where this ended:\n```bash\nmkdir -p memory\u002Fstate\n```\n```bash\ngit rev-parse HEAD\n```\nIt prints HEAD_SHA (if it fails, HEAD_SHA is empty). Write `memory\u002Fstate\u002Fshiplog-last.json` with Write, values written in literally:\n```json\n{\"last_run_at\":\"\u003CNOW>\",\"last_commit_sha\":\"\u003CHEAD_SHA>\",\"window_start\":\"\u003CSINCE>\"}\n```\nAdvance on **every** completed run — including `SHIPLOG_NOTHING_NEW` \u002F `SHIPLOG_LIGHT` \u002F `SHIPLOG_NO_MATCH` — so the window always moves forward. The workflow auto-commits it (no `git` here). On `dry-run`, do NOT write it.\n\n### 9. Notify\n\n```bash\ngh repo view --json url -q .url\n```\nIt prints REPO_URL. `ARTICLE_URL` = `\u003CREPO_URL>\u002Fblob\u002Fmain\u002Foutput\u002Farticles\u002Fshiplog-\u003CTODAY>.md`.\n\nWrite the ready-to-post shiplog to a temp file with Write - `\u002Ftmp\u002Fshiplog-notify.md` - and send it with `.\u002Fnotify -f \u002Ftmp\u002Fshiplog-notify.md` (use `-f` rather than `.\u002Fnotify \"$(cat …)\"` so a long multi-line post is passed as a file instead of a giant argv). Append `${ARTICLE_URL}` as the last line. For `SHIPLOG_NOTHING_NEW` \u002F `SHIPLOG_NO_MATCH`, send a one-line status instead of the post (or stay silent on sub-daily cadences).\n\n### 10. Log\n\nAppend to `memory\u002Flogs\u002F${TODAY}.md`:\n```\n### shiplog\n- Status: SHIPLOG_OK | SHIPLOG_LIGHT | SHIPLOG_NOTHING_NEW | SHIPLOG_NO_MATCH | SHIPLOG_NO_REPOS\n- Window: ${SINCE_DATE} → ${TODAY}  (var: ${var:-none})\n- PRs \u002F flagship commits: N \u002F M   ·   external-security PRs: K\n- Stars: \u003Crepo> \u003Ctotal> (+d) … [or: no baseline yet]\n- X source: twitterapi | xai | webfetch | none (+ per-source skip reasons if any: operator=http-\u003Ccode> | projects=timeout | ecosystem=empty …)\n- Article: output\u002Farticles\u002Fshiplog-${TODAY}.md (if written)\n- State advanced to: ${NOW} (unless dry-run)\n- Sources: prs=ok|fail · commits=ok|fail · stars=ok|fail · x=ok|fail · ecosystem=ok|fail\n```\n\n## Fetching & sources\n\n- **GitHub**: every call uses `gh` (auth handled internally) — never curl the GitHub API. For cross-repo reach set `GH_GLOBAL` (the workflow exports it as `GH_TOKEN`; never pass it inline); with only the built-in token you'll see this repo plus public repos, which still covers public flagships.\n- **X**: the primary path for every X source is **twitterapi.io** (`https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter`, header `X-API-Key: {TWITTER_API_KEY}` via `.\u002Fsecretcurl`) - fast (~700ms) structured tweet objects with exact engagement counts, real permalinks, and parsed dates, so no fabrication risk. Use `\u002Fuser\u002Flast_tweets?userName=\u003Ch>` for a single timeline (filter the window client-side on `.createdAt`) and `\u002Ftweet\u002Fadvanced_search?queryType=Latest` with `since:`\u002F`until:` inside the query for multi-account or scout sweeps (Step 3). On a real failure (`key-unset` \u002F `http-\u003Ccode>` \u002F `empty` \u002F `timeout`) fall back to Grok `x_search` (`XAI_API_KEY`, `curl https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses`, `--max-time 150`, Bash tool `timeout` >=180000), then WebFetch of the public `x.com\u002F\u003Chandle>` profile as a last resort.\n- **Never abort on a single source failure** — note the gap in the digest and still write + notify.\n- **Shell shape.** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`X=$(...)`), uses `if` \u002F `for` \u002F `[ ... ] &&` tests, or joins commands with `;`, `&&` or `||`, and each refusal costs a model turn. So each `date`, `jq`, `gh` and `.\u002Fsecretcurl` is its own call: read the value it prints and write it in literally where a later command shows `\u003CNAME>`; loop over repos as one call per repo; build the `from:` queries yourself instead of with `printf | tr | sed | paste`; check the key on the run notes' \"Keys set for this run\" line, never with a shell test; build each X body with a `jq -n` filter that has every value written in (no `--arg` or `$name`: refused) and pipe it straight into `.\u002Fsecretcurl ... --data-binary @-`; and write state files with Write, not a shell redirect (a `>` into \u002Ftmp is refused too).\n\n## Constraints\n\n- The window is **always** \"since last run\" (state file) unless `${var}` overrides it — never hardcode 7 days except as the first-run default. Always advance `memory\u002Fstate\u002Fshiplog-last.json` on a real run, even a quiet one.\n- Content, not code: write the article to `output\u002Farticles\u002F` and let the workflow commit it to `main`. Never open a per-run PR for the shiplog.\n- Every concrete claim traces to real data — a PR `(#N)`, a commit, a measured number, or a fetched tweet (with its permalink). No invented activity, no fabricated star deltas.\n- RTs are amplification, not ships — narrative\u002Fecosystem only, never \"the bytes\".\n- Verify a handle before @-mentioning it; an unverified tag stays untagged.\n- Voice from `soul\u002F`; neutral and direct if `soul\u002F` is empty. No hype adjectives, no hashtags.\n- The notify URL is the GitHub web URL via `gh repo view --json url`, not the SSH remote.\n","> **${var}** — Optional, space-separated flags:\n> - `since:YYYY-MM-DD` — override the window start (default: when this skill last ran).\n> - `days:N` — window = last N days.\n> - `dry-run` — render to stdout; write no article, no state, no notify.\n> - `owner\u002Frepo` — narrow GitHub coverage to that one repo.\n> - any other word — focus\u002Ftheme filter (a product name or keyword).\n>\n> Empty = everything shipped since the last run, across all configured repos.\n\nProduce two artifacts:\n1. **Digest** — a themed, human-readable recap of everything that shipped + traction (the article).\n2. **Shiplog post** — a tight, bulleted, ready-to-post version in the operator's voice, every project @-tagged (the notification).\n\nThis is **cadence-agnostic**: the window is always \"since the last run\" (`memory\u002Fstate\u002Fshiplog-last.json`), so the `aeon.yml` schedule alone decides whether this is a daily, weekly, or on-demand recap. One skill, any frequency.\n\nRead `STRATEGY.md`, `memory\u002FMEMORY.md`, and the last 7 days of `memory\u002Flogs\u002F` for context. Read `soul\u002FSOUL.md` + `soul\u002FSTYLE.md` before writing any output — the shiplog post must sound like the operator, not a changelog bot. **If `soul\u002F` is empty, use a clear, direct, neutral voice** (drop the signature flourishes below).\n\n## Config — all derived, nothing hardcoded\n\n```\noperator        = gh api user --jq .login            # the authenticated operator (PR-author search)\nproduct_handles = memory\u002Fproducts.md `handles:` lines (@x)        # product X accounts to read\nflagship_repos  = memory\u002Fproducts.md `repos:` tagged (public)     # the star \u002F north-star story\nwatched_repos   = memory\u002Fwatched-repos.md, else products.md repos: # everything shipped across\necosystem_scouts= memory\u002Fproducts.md `scouts:` line (optional)    # recap accounts to scan for features\nstar_state      = memory\u002Fstate\u002Fshiplog-stars.json    # snapshot for week-over-week star deltas\n```\n\nIf neither `watched-repos.md` nor `products.md` yields a repo, exit `SHIPLOG_NO_REPOS` (notify + log, no article). Sections whose config is absent (X handles, scouts) are **skipped gracefully**, not failed.\n\n## Steps\n\n### 1. Compute the window — \"since last run\"\n\nEach `date` \u002F `jq` below is its own Bash call (see **Shell shape** under Fetching & sources):\n\n```bash\ndate -u +%Y-%m-%dT%H:%M:%SZ\n```\n```bash\ndate -u +%Y-%m-%d\n```\nThe first prints NOW, the second TODAY.\n\nCheck for the state file `memory\u002Fstate\u002Fshiplog-last.json` with Glob. If it exists, read the last run time:\n```bash\njq -r '.last_run_at \u002F\u002F empty' memory\u002Fstate\u002Fshiplog-last.json\n```\nIt prints LAST. `SINCE` = LAST. If the file is missing or LAST is empty, use the first-run default instead:\n```bash\ndate -u -d '7 days ago' +%Y-%m-%dT%H:%M:%SZ\n```\nIt prints SINCE. `SINCE_DATE` = the part of SINCE before the `T`. Every later command has these values (and OPERATOR, handles, repos) written in literally where it shows `\u003CSINCE>`, `\u003CSINCE_DATE>`, `\u003CTODAY>`, `\u003CNOW>`.\n\n- `since:YYYY-MM-DD` in `${var}` → `SINCE` = that date at `T00:00:00Z`; `days:N` → N days ago (`date -u -d '\u003CN> days ago' +%Y-%m-%dT%H:%M:%SZ` as its own call). These override the state file.\n- Use `SINCE` for ALL time filtering - never substitute \"since Monday\" or other drift-prone shortcuts. The window is `[SINCE, NOW)`; state the span (`SINCE_DATE → TODAY`) in the output.\n- **Idempotency is the state file** (step 8 advances it each run, so windows never overlap). No once-per-day lock — a back-to-back re-run just yields an empty window → `SHIPLOG_NOTHING_NEW`. Write the digest to `output\u002Farticles\u002Fshiplog-${TODAY}.md`; if that name exists and there's genuinely new activity since the last run, use `output\u002Farticles\u002Fshiplog-${TODAY}-2.md` rather than clobbering.\n\n### 2. GitHub activity (the bytes)\n\nCross-repo PR\u002Fcommit visibility needs the global token. When `GH_GLOBAL` is set the workflow already exports it as `gh`'s `GH_TOKEN`, so plain `gh` calls reach every repo it can see; don't put the token on the command line (a `$SECRET` expansion is refused):\n\ngh reads GH_TOKEN from the environment (GH_GLOBAL when set, else the repo-scoped token):\n```bash\ngh api user --jq .login\n```\nIt prints OPERATOR.\n\nTrack success\u002Ffailure per source in a `sources` map; on a single endpoint failure log `fail` and continue — never abort the whole skill.\n\n**a) Operator PRs across all repos in the window** (grouped by repo + totals):\n```bash\ngh search prs --author \"\u003COPERATOR>\" --created \">=\u003CSINCE_DATE>\" \\\n  --json number,title,repository,state,createdAt,url --limit 100 \\\n  --jq 'group_by(.repository.nameWithOwner)[] | {repo: .[0].repository.nameWithOwner, count: length,\n         prs: [.[] | {date: .createdAt[0:10], state, number, title}]}'\n```\nIf 100 rows come back, note the result may be truncated.\n\n**b) Flagship headline numbers** - for each `flagship_repos` entry, count commits + merged PRs in the window (the numbers the audience cares about). Two calls per repo, with the repo and SINCE written in literally:\n```bash\ngh api \"repos\u002F\u003CREPO>\u002Fcommits\" -X GET -f since=\"\u003CSINCE>\" \\\n  --jq '\"\u003CREPO> commits: \" + ([.[] | .sha] | length | tostring)'\n```\n```bash\ngh api \"repos\u002F\u003CREPO>\u002Fpulls\" -X GET -f state=closed -f sort=updated -f direction=desc \\\n  --jq '\"\u003CREPO> merged PRs: \" + ([.[] | select(.merged_at != null and .merged_at > \"\u003CSINCE>\")] | length | tostring)'\n```\nIf a call fails, log `fail` for that repo and move on.\n\n**c) The security flex** — PRs the operator landed in repos they do NOT own (the \"a project merged a fix from us\" candidates). Filter the Step-2a result to external repos whose title matches a security keyword (`security|ssrf|cve|credential|sandbox|escape|injection|vuln|redos|xss|toctou|path traversal|prototype pollution|deserial`). Merged ones are the marquee story — if it's a named org (not a random fork), that's a headline bullet.\n\n**d) Star delta** (north-star metric — flagships only, they're public):\n```bash\nmkdir -p memory\u002Fstate\n```\nThen one call per flagship repo, written in literally (prints the current total):\n```bash\ngh api \"repos\u002F\u003CREPO>\" --jq '.stargazers_count'\n```\nRead the prior snapshot `memory\u002Fstate\u002Fshiplog-stars.json` (if present): `delta = current_total − last_total` per repo. After computing, overwrite the snapshot with Write: `{ \"\u003Crepo>\": {\"count\": N, \"date\": \"${TODAY}\"}, ... }`. If no prior snapshot exists, report totals only and note \"no baseline yet - deltas start next run.\" Do NOT fabricate a delta.\n\n### 3. X activity (twitterapi.io - primary)\n\n`TWITTER_API_KEY` is **injected into this skill's environment** (declared in `requires:`) and is the primary way to read X. twitterapi.io returns **structured tweet objects** - exact engagement counts, real permalinks, parsed fields - so you read ground-truth data instead of free text and **fabrication risk is gone**. It is also fast (~700ms). Grok `x_search` (`XAI_API_KEY`) stays wired as a demoted fallback.\n\n**Check the key first:** read the \"Keys set for this run\" line in your run notes, never a shell test (those are refused and cost a turn). `TWITTER_API_KEY` on that line = `KEY_PRESENT`, not on it = `KEY_UNSET`.\n\nThere are two X sources here - the **operator** handle (`OPERATOR_HANDLE`, the operator's own X account from `memory\u002Fproducts.md`) and the **product\u002Fproject** accounts (`PRODUCT_HANDLES`). Fetch each independently into its own tmp file so one failing source can't clobber or sink another.\n\n**Path A - twitterapi.io (primary).** Base `https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter`, auth header `X-API-Key: {TWITTER_API_KEY}` via `.\u002Fsecretcurl` (keep the key off the command line). The `-w` label prints the status and size in the same call, before parsing.\n\n*Operator posts* (`SRC=operator`) - the operator's own timeline. `\u002Fuser\u002Flast_tweets` has **no server-side date filter**, so keep only posts inside `[SINCE_DATE, TODAY]` client-side on `.createdAt`. One call, the handle written in literally:\n```bash\n.\u002Fsecretcurl -s -o \u002Ftmp\u002Ftw-operator.json -w 'twitterapi http=%{http_code} bytes=%{size_download}\\n' -G \"https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter\u002Fuser\u002Flast_tweets\" \\\n  --data-urlencode \"userName=\u003COPERATOR_HANDLE>\" -H \"X-API-Key: {TWITTER_API_KEY}\"\n```\nOn `HTTP=200`, parse `.data.tweets[]` (`createdAt` is Twitter's native `Day Mon DD HH:MM:SS +0000 YYYY` string; the `strptime` normalizes it to a date for the window compare); paginate with `&cursor=\u003Cnext_cursor>` when `.has_next_page` is true and older in-window posts remain:\n```bash\njq -r '\n  .data.tweets[]\n  | .day = (try (.createdAt | strptime(\"%a %b %d %H:%M:%S %z %Y\") | strftime(\"%Y-%m-%d\")) catch (.createdAt[0:10]))\n  | select(.day >= \"\u003CSINCE_DATE>\")\n  | [.id, .day, .isReply, .likeCount, .retweetCount, .replyCount, .url, .text] | @tsv' \u002Ftmp\u002Ftw-operator.json\n```\nSeparate **original posts** from **replies\u002FRTs** (`.isReply`, or text starting `RT @`) - RTs are amplification, not ships.\n\n*Product\u002Fproject accounts* (`SRC=projects`) - one `advanced_search` across every product handle, with the date window inside the query string. Build `FROMQ` yourself (no shell text tools): split `PRODUCT_HANDLES` on commas\u002Fspaces, drop each leading `@` and any blanks, prefix each with `from:`, join with ` OR ` (e.g. `from:aeonframework OR from:miroshark_`). Then one call with the query written in literally:\n```bash\n.\u002Fsecretcurl -s -o \u002Ftmp\u002Ftw-projects.json -w 'twitterapi http=%{http_code} bytes=%{size_download}\\n' -G \"https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter\u002Ftweet\u002Fadvanced_search\" \\\n  --data-urlencode \"query=(\u003CFROMQ>) since:\u003CSINCE_DATE> until:\u003CTODAY>\" --data-urlencode \"queryType=Latest\" -H \"X-API-Key: {TWITTER_API_KEY}\"\n```\nOn `HTTP=200`, parse `.tweets[]` (author under `.author.userName`); note the bangers by `.likeCount` \u002F `.viewCount` - one or two feed the digest narrative. Skip retweets of others:\n```bash\njq -r '.tweets[] | [.author.userName, .createdAt, .likeCount, .retweetCount, .replyCount, .url, .text] | @tsv' \u002Ftmp\u002Ftw-projects.json\n```\nSupported query operators: `from: to: url: lang: #tag @mention since: until:`, `OR`\u002F`AND`, quoted phrases. There is **no `list:` operator**.\n\nFor each source, mark `x_source=twitterapi` on a `200` with parsed rows. **On a real failure, skip that source with the true reason - never fabricate posts** (with structured objects there is no fabrication risk, but the skip-on-real-failure rule still holds). Reason codes: `key-unset` (only if the key check gave `KEY_UNSET`), `http-\u003Ccode>` (non-2xx), `empty` (200 but no tweets parsed), `timeout` (exceeded `--max-time`).\n\n**Path B - xAI Grok `x_search` (fallback).** Only if a source's Path A returned non-2xx, empty, or timed out. `XAI_API_KEY` is also injected (`requires:`). `x_search` runs a live X search and typically takes 30-120s - when you invoke the Bash tool for these curls, **set the tool's `timeout` to at least 180000 (180s)**; each curl carries `--max-time 150` so it fails cleanly instead of hanging. **A slow curl is not a missing key - never treat a timeout as key-unavailable.**\n\nEach source is one call: build the body with `jq -n` (values written into the filter literally: a jq `$name` variable and a `>` redirect into a file are both refused; a `\"` inside a value becomes `\\\"`, and reword any `'`) and pipe it straight into the send. Keep `-w '%{http_code}'` exactly on the xAI send (secretcurl's retry reads it); secretcurl itself prints an `http=... bytes=...` line on stderr.\n\n*Operator posts* (`SRC=operator`):\n```bash\njq -n '{model:\"grok-4.6\", input:[{role:\"user\", content:\"Search X for posts by @\u003COPERATOR_HANDLE> between \u003CSINCE_DATE> and \u003CTODAY>. Return each post with full text, date, type (original|reply|RT - an RT text starts with \\\"RT @\\\"), exact engagement counts (likes, retweets, replies; 0 if unknown), and the direct link https:\u002F\u002Fx.com\u002F\u003COPERATOR_HANDLE>\u002Fstatus\u002FID. Return chronological.\"}], tools:[{type:\"x_search\"}]}' \\\n  | .\u002Fsecretcurl -s -o \u002Ftmp\u002Fxai-shiplog-operator.json -w '%{http_code}' --max-time 150 -X POST \"https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses\" \\\n  -H \"Content-Type: application\u002Fjson\" -H \"Authorization: Bearer {XAI_API_KEY}\" --data-binary @-\n```\n\n*Product\u002Fproject accounts* (`SRC=projects`):\n```bash\njq -n '{model:\"grok-4.6\", input:[{role:\"user\", content:\"Search X for posts between \u003CSINCE_DATE> and \u003CTODAY> from these accounts: \u003CPRODUCT_HANDLES>. Focus on launches, announcements, and any brag about a security fix merged into another project. For each: @handle, full text, date, exact engagement counts (likes, retweets, replies; 0 if unknown), and the direct link https:\u002F\u002Fx.com\u002Fhandle\u002Fstatus\u002FID. Skip retweets of others.\"}], tools:[{type:\"x_search\"}]}' \\\n  | .\u002Fsecretcurl -s -o \u002Ftmp\u002Fxai-shiplog-projects.json -w '%{http_code}' --max-time 150 -X POST \"https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses\" \\\n  -H \"Content-Type: application\u002Fjson\" -H \"Authorization: Bearer {XAI_API_KEY}\" --data-binary @-\n```\n\nFor each source, on `HTTP=200` with a non-empty body, parse that source's file with the standard extractor and mark `x_source=xai`:\n```bash\njq -r '.output[] | select(.type == \"message\") | .content[] | select(.type == \"output_text\") | .text' \u002Ftmp\u002Fxai-shiplog-\u003CSRC>.json\n```\nFrom the **operator** text, separate **original posts** from **RTs** (RT text starts with `RT @`) — RTs are amplification, not ships. From the **projects** text, note the bangers (sort by likes\u002Fviews) — one or two feed the digest's narrative section.\n\n**On a real failure, skip that source — never fabricate posts.** If a source's curl returns non-200, an empty\u002Funparseable body, or times out, record the **true reason** for that source and continue with whatever other sources succeeded. Reason codes: `key-unset` (only if the key check above gave `KEY_UNSET`), `http-\u003Ccode>` (non-2xx), `empty` (200 but no posts parsed), `timeout` (exceeded `--max-time`). Never write \"XAI_API_KEY unavailable\" when the key was set.\n\n**Path C - WebFetch (last resort, per source).** Only if a source failed BOTH Path A and Path B for one of the real reasons above: WebFetch that source's public `https:\u002F\u002Fx.com\u002F\u003Chandle>` profile(s), no auth, and mark that source `x_source=webfetch` (lower quality; prefer posts inside the window). If every X source fails all paths, set `x_source=none` and write the GitHub-only shiplog (note the gap) - **never abort**.\n\n### 4. Ecosystem + traction sweep (best-effort — skip gracefully)\n\n- **Ecosystem mentions** - only if `ecosystem_scouts` (`scouts:`) is configured. **Path A (primary): twitterapi.io `advanced_search`** across the scout handles, scoped to product terms and the window (`SRC=ecosystem`):\n  Build `SCOUTQ` yourself the same way as `FROMQ` (scout handles, `@` dropped, each prefixed `from:`, joined with ` OR `) and `TERMS` from `PRODUCT_HANDLES` (`@` dropped, no prefix, joined with ` OR `). Then one call with the query written in literally:\n  ```bash\n  .\u002Fsecretcurl -s -o \u002Ftmp\u002Ftw-ecosystem.json -w 'twitterapi http=%{http_code} bytes=%{size_download}\\n' -G \"https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter\u002Ftweet\u002Fadvanced_search\" \\\n    --data-urlencode \"query=(\u003CSCOUTQ>) (\u003CTERMS>) since:\u003CSINCE_DATE> until:\u003CTODAY>\" --data-urlencode \"queryType=Latest\" -H \"X-API-Key: {TWITTER_API_KEY}\"\n  ```\n  On HTTP 200, parse it as its own call:\n  ```bash\n  jq -r '.tweets[] | [.author.userName, (.author.followers \u002F\u002F \"?\"), .createdAt, .url, .text] | @tsv' \u002Ftmp\u002Ftw-ecosystem.json\n  ```\n  On `HTTP=200` with parsed rows, mark `x_source=twitterapi` and capture `.author.followers` when present for the flex (\"featured by @X (Nk)\"; follower counts are best-effort on search results). **Path B (fallback): xAI Grok `x_search`** - only on a real Path A failure (`http-\u003Ccode>` \u002F `empty` \u002F `timeout` \u002F `key-unset`), the same curl shape as Step 3 Path B, into its own tmp file:\n  ```bash\n  jq -n '{model:\"grok-4.6\", input:[{role:\"user\", content:\"Search X between \u003CSINCE_DATE> and \u003CTODAY> for posts from these recap\u002Fscout accounts: \u003CECOSYSTEM_SCOUTS> that mention any of these products: \u003CPRODUCT_HANDLES>. Return each mention with @handle, follower_count, full text, date, and the direct link https:\u002F\u002Fx.com\u002Fhandle\u002Fstatus\u002FID - recaps, rankings, partner shares.\"}], tools:[{type:\"x_search\"}]}' \\\n    | .\u002Fsecretcurl -s -o \u002Ftmp\u002Fxai-shiplog-ecosystem.json -w '%{http_code}' --max-time 150 -X POST \"https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses\" \\\n    -H \"Content-Type: application\u002Fjson\" -H \"Authorization: Bearer {XAI_API_KEY}\" --data-binary @-\n  ```\n  On `HTTP=200` + non-empty, parse `\u002Ftmp\u002Fxai-shiplog-ecosystem.json` with the standard extractor and mark `x_source=xai`. If both paths fail for a real reason (`http-\u003Ccode>` \u002F `empty` \u002F `timeout`, or `key-unset`), skip this source with the true reason - **never fabricate a mention**. Confirm any handle is real before @-mentioning (a wrong tag in a public post is worse than none). Skip entirely if no `scouts:` configured.\n- **Product traction** (OpenRouter \u002F x402 \u002F analytics) — only if a source is configured for the product. If you have an app\u002Fserver id, WebFetch its page; otherwise say \"no product-traction sources wired yet\" and move on. Keep any number exactly as measured — don't round 79 → ~80.\n\n### 5. Classify the window\n\n| Condition | Status | Action |\n|-----------|--------|--------|\n| 0 PRs AND 0 flagship commits AND no notable X | `SHIPLOG_NOTHING_NEW` | Notify-optional — no article. Skip to Step 8, **still advance state.** |\n| \u003C 3 substantive ships total | `SHIPLOG_LIGHT` | Short post (3-bullet form). |\n| Otherwise | `SHIPLOG_OK` | Full digest + post. |\n\nIf `${var}` narrows to one repo\u002Fproject and nothing matched, status `SHIPLOG_NO_MATCH` — notify and exit (still advance state).\n\n### 6. Synthesize + write the article\n\n**Output handling — no PR.** This is a content skill: write the article straight to `output\u002Farticles\u002F` and let the workflow's commit step push it to `main` (same as the `article` skill). Do **not** create a branch or open a pull request — `CLAUDE.md`'s \"branch + PR, never push to main\" rule is for source-code changes, not generated articles.\n\nWrite the **digest** to `output\u002Farticles\u002Fshiplog-${TODAY}.md`: themed \"what shipped\" sections, a **By-the-numbers** line (PRs · commits · star deltas), traction\u002Fecosystem, and the gaps you hit. Then append the **ready-to-post shiplog** using this template — load `soul\u002FSTYLE.md` first so the register matches (if `soul\u002F` is empty, write a plain, direct post and drop the `⭐` sign-off):\n\n```\n\u003Cproduct(s)> shiplog ⭐ \u003Cspan: month day → day>\n\nshipped ~\u003CN> PRs + \u003CM> commits this window. the bytes:\n\n- \u003Cpunchy ship 1>: \u003Cone-line what+why>. \u003C@handles of projects involved>\n- \u003Cpunchy ship 2>: ...\n- \u003Cpunchy ship 3>: ...\n- security: fixes into other people's repos (\u003Ctypes>) - even got one merged into \u003C@MarqueeOrg>'s \u003Crepo>\n\ntraction:\n- \u003Cproduct> \u003Ctotal> ⭐ (+\u003Cdelta> this window)\n- featured by \u003C@scout> (\u003Cfollowers>) \"\u003Cquote>\" + ranked #\u003Crank> \u003Clist>\n\n⭐\n```\n\n- **Tag every project** with a handle you verified. If you couldn't confidently resolve one, leave it untagged and say which is missing.\n- Keep numbers exactly as measured. If a flex (a security merge, a milestone) landed just outside the window, keep it but flag the date.\n- Also draft two variants below the post: a tight thread (hook + one tweet per ship) and a 3-bullet short version.\n\n### 7. (folded into 6)\n\n### 8. Advance the state file\n\nUnless `dry-run`, record this run so the next one starts where this ended:\n```bash\nmkdir -p memory\u002Fstate\n```\n```bash\ngit rev-parse HEAD\n```\nIt prints HEAD_SHA (if it fails, HEAD_SHA is empty). Write `memory\u002Fstate\u002Fshiplog-last.json` with Write, values written in literally:\n```json\n{\"last_run_at\":\"\u003CNOW>\",\"last_commit_sha\":\"\u003CHEAD_SHA>\",\"window_start\":\"\u003CSINCE>\"}\n```\nAdvance on **every** completed run — including `SHIPLOG_NOTHING_NEW` \u002F `SHIPLOG_LIGHT` \u002F `SHIPLOG_NO_MATCH` — so the window always moves forward. The workflow auto-commits it (no `git` here). On `dry-run`, do NOT write it.\n\n### 9. Notify\n\n```bash\ngh repo view --json url -q .url\n```\nIt prints REPO_URL. `ARTICLE_URL` = `\u003CREPO_URL>\u002Fblob\u002Fmain\u002Foutput\u002Farticles\u002Fshiplog-\u003CTODAY>.md`.\n\nWrite the ready-to-post shiplog to a temp file with Write - `\u002Ftmp\u002Fshiplog-notify.md` - and send it with `.\u002Fnotify -f \u002Ftmp\u002Fshiplog-notify.md` (use `-f` rather than `.\u002Fnotify \"$(cat …)\"` so a long multi-line post is passed as a file instead of a giant argv). Append `${ARTICLE_URL}` as the last line. For `SHIPLOG_NOTHING_NEW` \u002F `SHIPLOG_NO_MATCH`, send a one-line status instead of the post (or stay silent on sub-daily cadences).\n\n### 10. Log\n\nAppend to `memory\u002Flogs\u002F${TODAY}.md`:\n```\n### shiplog\n- Status: SHIPLOG_OK | SHIPLOG_LIGHT | SHIPLOG_NOTHING_NEW | SHIPLOG_NO_MATCH | SHIPLOG_NO_REPOS\n- Window: ${SINCE_DATE} → ${TODAY}  (var: ${var:-none})\n- PRs \u002F flagship commits: N \u002F M   ·   external-security PRs: K\n- Stars: \u003Crepo> \u003Ctotal> (+d) … [or: no baseline yet]\n- X source: twitterapi | xai | webfetch | none (+ per-source skip reasons if any: operator=http-\u003Ccode> | projects=timeout | ecosystem=empty …)\n- Article: output\u002Farticles\u002Fshiplog-${TODAY}.md (if written)\n- State advanced to: ${NOW} (unless dry-run)\n- Sources: prs=ok|fail · commits=ok|fail · stars=ok|fail · x=ok|fail · ecosystem=ok|fail\n```\n\n## Fetching & sources\n\n- **GitHub**: every call uses `gh` (auth handled internally) — never curl the GitHub API. For cross-repo reach set `GH_GLOBAL` (the workflow exports it as `GH_TOKEN`; never pass it inline); with only the built-in token you'll see this repo plus public repos, which still covers public flagships.\n- **X**: the primary path for every X source is **twitterapi.io** (`https:\u002F\u002Fapi.twitterapi.io\u002Ftwitter`, header `X-API-Key: {TWITTER_API_KEY}` via `.\u002Fsecretcurl`) - fast (~700ms) structured tweet objects with exact engagement counts, real permalinks, and parsed dates, so no fabrication risk. Use `\u002Fuser\u002Flast_tweets?userName=\u003Ch>` for a single timeline (filter the window client-side on `.createdAt`) and `\u002Ftweet\u002Fadvanced_search?queryType=Latest` with `since:`\u002F`until:` inside the query for multi-account or scout sweeps (Step 3). On a real failure (`key-unset` \u002F `http-\u003Ccode>` \u002F `empty` \u002F `timeout`) fall back to Grok `x_search` (`XAI_API_KEY`, `curl https:\u002F\u002Fapi.x.ai\u002Fv1\u002Fresponses`, `--max-time 150`, Bash tool `timeout` >=180000), then WebFetch of the public `x.com\u002F\u003Chandle>` profile as a last resort.\n- **Never abort on a single source failure** — note the gap in the digest and still write + notify.\n- **Shell shape.** Each Bash call is one allowed command (pipes are fine). The run refuses a call that sets a variable (`X=$(...)`), uses `if` \u002F `for` \u002F `[ ... ] &&` tests, or joins commands with `;`, `&&` or `||`, and each refusal costs a model turn. So each `date`, `jq`, `gh` and `.\u002Fsecretcurl` is its own call: read the value it prints and write it in literally where a later command shows `\u003CNAME>`; loop over repos as one call per repo; build the `from:` queries yourself instead of with `printf | tr | sed | paste`; check the key on the run notes' \"Keys set for this run\" line, never with a shell test; build each X body with a `jq -n` filter that has every value written in (no `--arg` or `$name`: refused) and pipe it straight into `.\u002Fsecretcurl ... --data-binary @-`; and write state files with Write, not a shell redirect (a `>` into \u002Ftmp is refused too).\n\n## Constraints\n\n- The window is **always** \"since last run\" (state file) unless `${var}` overrides it — never hardcode 7 days except as the first-run default. Always advance `memory\u002Fstate\u002Fshiplog-last.json` on a real run, even a quiet one.\n- Content, not code: write the article to `output\u002Farticles\u002F` and let the workflow commit it to `main`. Never open a per-run PR for the shiplog.\n- Every concrete claim traces to real data — a PR `(#N)`, a commit, a measured number, or a fetched tweet (with its permalink). No invented activity, no fabricated star deltas.\n- RTs are amplification, not ships — narrative\u002Fecosystem only, never \"the bytes\".\n- Verify a handle before @-mentioning it; an unverified tag stays untagged.\n- Voice from `soul\u002F`; neutral and direct if `soul\u002F` is empty. No hype adjectives, no hashtags.\n- The notify URL is the GitHub web URL via `gh repo view --json url`, not the SSH remote.\n",{"name":5,"metadata":49,"description":7},{"var":50,"tags":51,"title":53,"category":34,"requires":54},"",[52,41],"content","Shiplog",[55,56,57],"TWITTER_API_KEY","XAI_API_KEY?","GH_GLOBAL?","main","ba8ac7e88c8ff955526557369fadc27eca9c1037","skills\u002Fshiplog",4,"https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent","https:\u002F\u002Ft.me\u002Faeon_agent","https:\u002F\u002Fgithub.com\u002Faeonfun","https:\u002F\u002Fwww.aeon.fun\u002F","The most autonomous agent framework.","2026-11-14 00:38:03",{"source":8,"skillName":5,"commands":69,"prompt":79,"zipAvailable":80},[70,73,76],{"tool":71,"command":72},"npx","npx skills add aeonfun\u002Faeon-agent --skill shiplog",{"tool":74,"command":75},"bunx","bunx skills add aeonfun\u002Faeon-agent --skill shiplog",{"tool":77,"command":78},"pnpm","pnpm dlx skills add aeonfun\u002Faeon-agent --skill shiplog","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fshiplog\u002FSKILL.md",true,[],[83,91,98,105,140,159],{"skillNo":84,"name":85,"nameZh":6,"description":86,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M7467046NWTJ9PY4YX47X3RW","sns-digest","Digest Internet Computer governance - new and open NNS proposals and SNS DAO proposals - so the operator sees what is up for a vote without watching the dashboard. Fully public, no secret; fires only when there is something new to report.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fsns-digest\u002FSKILL.md",[],[],"2026-11-11 15:11:14",{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":90},"01M7463X1TY72K86R54BTV6Y2A","icp-deploy-check","Pre-deploy safety checklist for an Internet Computer Rust canister - read a local\u002Fcloned canister repo and verify the deploy-time footguns from the canister-security checklist (controller backup, anonymous-principal rejection, no mainnet fetch_root_key, upgrade safety) before it ships. Static, read-only, no network and no mainnet action.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Ficp-deploy-check\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":90},"01M746256ZDPR56E3S5W8G7M75","canister-status","Monitor Internet Computer canisters for control-plane changes - a new controller, a module-hash change (upgrade), or a canister going missing from the public index - and alert the moment one happens. Uses only the public IC dashboard API.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fcanister-status\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":119,"publishedAt":44},"01M6J4ASEHAQYBZ5TZT4RVAM1Z","you-web-search","Web search using You.com Search API with high-quality, cited results — runs keyless out of the box; YDC_API_KEY unlocks higher limits and real-time web crawling","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fyou-web-search\u002FSKILL.md",[111,116],{"categoryNo":112,"categoryName":113,"taxonomyType":114,"taxonomyTypeDesc":115},"01JBSEEDCAT000000000000010","后端与接口","SCENARIO","使用场景",{"categoryNo":117,"categoryName":118,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000030","开发工程师",[120,121,122,123,124,125,126,127,39,128,129,130,131,132,133,134,135,136,137,138,139],"web","you web search","you","web search","search","time","limits","only","web crawling","read","read-only","real-time","basics","keyless","with","research","results","high","quality","box",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":44},"01M6J4AK1ZAR1HS398K0CWWBFX","write-tweet","Multi-format tweet studio - standalone drafts (10 across 5 size tiers), a 5-10 tweet thread, or 10 remixes of past tweets, selected via ${var}","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tweet\u002FSKILL.md",[],[147,148,149,52,150,151,152,153,30,154,41,155,39,156,37,157,158,132],"write","write tweet","thread","format","via","size","multi","standalone","studio","across","past","drafts",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":168,"publishedAt":44},"01M6J4AFYF6ZHHNQV6H7N92S8K","weekly-aeoncard","Build a weekly token-consumption recap image from memory\u002Ftoken-usage.csv - this week + all-time totals, top skills, rendered as a shareable SVG card.","https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon-agent\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-aeoncard\u002FSKILL.md",[165],{"categoryNo":166,"categoryName":167,"taxonomyType":114,"taxonomyTypeDesc":115},"01JBSEEDCAT000000000000016","图像与多媒体",[169,170,171,172,173,174,175,176,125,177,178,40,179,180,181,182,183,147,184,12],"weekly aeoncard","weekly","top","as","usage","SVG","memory","card","Meta","image","csv","monitoring","notifications","productivity","build","token"]