[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7DC9JHH7D4R38SX5WYKB7HE":3,"skill-same:01M7DC9JHH7D4R38SX5WYKB7HE":58},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":13,"repositoryHtmlUrl":41,"repositoryHomepageUrl":6,"ownerHtmlUrl":42,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":43,"install":44,"resources":57},"01M7DC9JHH7D4R38SX5WYKB7HE","pack-submit",null,"Package one of this agent's own skills as a standalone community pack and submit it to the aeon registry as a PR","Ditto190\u002FAeon-automaton-codeyourself-mm","Ditto190","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F110319982?v=4","01M7DBZRW755H8JSCQH6WFBM2P","01M7DBZRXAPWXAR6K6M6C53MCQ",0,"MIT","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fpack-submit\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: pack-submit\ndescription: Package one of this agent's own skills as a standalone community pack and submit it to the aeon registry as a PR\nmetadata:\n  title: Pack Submit\n  category: evolution\n  var: \"\"\n  tags:\n    - dev\n    - meta\n    - packs\n  mode: write\n  requires:\n    - GH_GLOBAL?\n  capabilities:\n    - external_api\n    - writes_external_host\n    - sends_notifications\n---\n\n> **${var}** — The local skill to publish as a community pack: a skill **slug** (a directory name under `skills\u002F`), optionally followed by flags. **Required.**\n> Examples:\n> - `token-movers` — package `skills\u002Ftoken-movers\u002F` into a fresh public repo and submit it to the aeon registry\n> - `token-movers --repo myorg\u002Faeon-token-movers` — override the pack repo name (default `aeon-skill-pack-\u003Cslug>`)\n> - `token-movers --no-register` — create and push the pack repo, but skip the registry PR against `aeonfun\u002Faeon`\n> - `token-movers --dry-run` — build and validate the pack locally, write nothing to GitHub\n\nIf `${var}` is empty, exit `PACK_SUBMIT_NO_VAR`:\n```bash\n.\u002Fnotify \"pack-submit aborted: var empty — pass a skill slug e.g. \\\"token-movers\\\"\"\n```\nThen stop.\n\nToday is ${today}. Your task is to take the **existing** skill named in `${var}`, wrap it in a standalone community-pack repo (its own GitHub repo with a `skills-pack.json` manifest), and **submit it to the aeon community registry** - a PR against `aeonfun\u002Faeon` that adds both surfaces the registry demands in one diff: a row in the **Listed packs** table in `docs\u002Fcommunity-skill-packs.md` AND a matching entry in `catalog\u002Fskill-packs.json`. This is the inverse of `install-skill`: instead of pulling a community pack in, it pushes one of your own skills out for every other Aeon agent to install with `bin\u002Finstall-skill-pack`.\n\n## What a community pack is (so you build the right thing)\n\nA community pack is a **public GitHub repo** that holds one or more skills plus a `skills-pack.json` manifest that names and versions them. `bin\u002Finstall-skill-pack owner\u002Frepo` reads that manifest and installs the skills. To be **discoverable** (listed by `bin\u002Finstall-skill-pack --list` and the dashboard's Community Packs panel), the pack must also be registered in `aeonfun\u002Faeon`'s `catalog\u002Fskill-packs.json` + the Listed packs table in `docs\u002Fcommunity-skill-packs.md`. So publishing is two moves: **(a)** stand up the pack repo, **(b)** open the registry PR. This skill does both. Full protocol: `docs\u002Fcommunity-skill-packs.md`.\n\n## Steps\n\n1. **Parse and validate `${var}`.** The first whitespace-separated token is the skill slug; the rest are flags (`--repo owner\u002Fname`, `--no-register`, `--dry-run`). The slug must match `^[a-z0-9][a-z0-9-]*$` and resolve to a real directory:\n   ```bash\n   SLUG=$(echo \"${var}\" | awk '{print $1}')\n   FLAGS=$(echo \"${var}\" | cut -s -d' ' -f2-)\n   if ! echo \"$SLUG\" | grep -qE '^[a-z0-9][a-z0-9-]*$'; then\n     .\u002Fnotify \"pack-submit aborted: \\\"$SLUG\\\" is not a valid skill slug (lowercase kebab-case)\"; exit 0\n   fi\n   if [ ! -f \"skills\u002F$SLUG\u002FSKILL.md\" ]; then\n     .\u002Fnotify \"pack-submit aborted: skills\u002F$SLUG\u002FSKILL.md not found — run with a slug from \\`ls skills\u002F\\`\"; exit 0\n   fi\n   ```\n   If validation fails, exit `PACK_SUBMIT_BAD_VAR` with the notify above and stop. Extract the boolean flags from `$FLAGS` and the optional `--repo` value.\n\n2. **Read the source skill's metadata.** Everything the manifest and registry entry need is already declared in `skills\u002F$SLUG\u002FSKILL.md`'s frontmatter — read it, don't invent it:\n   - **Display name** — `metadata.title`; fall back to the top-level `name:`.\n   - **Description** — the top-level `description:` (one line).\n   - **Category** — `metadata.category`. Registry categories are an open vocabulary, but first-party-only values (`core`, `evolution`, `basics`) don't describe a third-party pack — if you see one of those, pick the closest community category (`dev`, `crypto`, `productivity`, `research`, `social`) from what the skill actually does. Otherwise pass the category through.\n   - **Secrets** — `metadata.requires`. An entry ending in `?` is **optional** → `secrets_optional`; an entry without `?` is **required** → `secrets_required`. Strip the `?`. Registry `secrets_required` must be UPPER_SNAKE env names.\n   - **Capabilities** — `metadata.capabilities`, copied verbatim (already the locked taxonomy; see `docs\u002FCAPABILITIES.md`). Omit if absent.\n\n   ```bash\n   fm(){ sed -n '\u002F^---$\u002F,\u002F^---$\u002Fp' \"skills\u002F$SLUG\u002FSKILL.md\"; }\n   TITLE=$(fm | sed -n 's\u002F^[[:space:]]*title:[[:space:]]*\u002F\u002Fp' | head -1)\n   [ -z \"$TITLE\" ] && TITLE=$(fm | sed -n 's\u002F^name:[[:space:]]*\u002F\u002Fp' | head -1)\n   DESC=$(fm | sed -n 's\u002F^description:[[:space:]]*\u002F\u002Fp' | head -1)\n   CATEGORY=$(fm | sed -n 's\u002F^[[:space:]]*category:[[:space:]]*\u002F\u002Fp' | head -1)\n   ```\n   Collect `requires:`\u002F`capabilities:` list items (lines under those keys beginning with `    - `) into shell arrays; split `requires` into required (no `?`) and optional (trailing `?`, stripped).\n\n3. **Build the pack repo locally.** Stage a clean working tree — the manifest at root, the full skill directory copied verbatim (including any helper scripts\u002Fconfig, not just `SKILL.md`), a README, and an MIT `LICENSE`:\n   ```bash\n   PACK_DIR=$(mktemp -d)\u002Fpack\n   mkdir -p \"$PACK_DIR\u002Fskills\u002F$SLUG\"\n   cp -R \"skills\u002F$SLUG\u002F.\" \"$PACK_DIR\u002Fskills\u002F$SLUG\u002F\"\n   ```\n   Write `$PACK_DIR\u002Fskills-pack.json` (build it with `python3`\u002F`jq`, never string concatenation, so quoting is safe). Include only fields you actually have:\n   ```json\n   {\n     \"name\": \"\u003CTITLE>\",\n     \"version\": \"0.1.0\",\n     \"description\": \"\u003CDESC>\",\n     \"author\": \"\u003Coperator github handle>\",\n     \"license\": \"MIT\",\n     \"homepage\": \"https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Cpack-repo>\",\n     \"skills\": [\n       {\n         \"slug\": \"\u003CSLUG>\",\n         \"path\": \"skills\u002F\u003CSLUG>\",\n         \"description\": \"\u003CDESC>\",\n         \"category\": \"\u003CCATEGORY>\",\n         \"schedule\": \"0 12 * * *\",\n         \"default_enabled\": false,\n         \"secrets_required\": [ ... ],\n         \"secrets_optional\": [ ... ],\n         \"capabilities\": [ ... ]\n       }\n     ]\n   }\n   ```\n   Write a `README.md` that names the skill, states its schedule assumption, lists required\u002Foptional secrets, and shows the one-line install (`bin\u002Finstall-skill-pack \u003Cowner>\u002F\u003Cpack-repo>`). Write a standard MIT `LICENSE` (year `${today}`'s year, copyright the operator handle). Resolve the operator handle once: `OWNER=$(gh api user --jq .login)`.\n\n4. **Pre-flight the pack.** Run the repo's own validator against the staged directory — it enforces exactly what `bin\u002Finstall-skill-pack` requires (valid JSON manifest, clean slug, no `..` in paths, the `SKILL.md` present, locked-taxonomy capabilities):\n   ```bash\n   .\u002Fscripts\u002Fvalidate-pack.sh \"$PACK_DIR\" 2>&1 | tee \u002Ftmp\u002Fpack-validate.txt\n   ```\n   Exit non-zero (an `ERROR:` line) → exit `PACK_SUBMIT_INVALID_PACK`, notify with the failing line, and stop. **Do not** push an invalid pack. Warnings are fine to proceed on; surface them in the notify.\n\n   If `--dry-run` was passed, stop here: notify the operator that the pack built and validated cleanly at `$PACK_DIR`, list the manifest fields, and exit `PACK_SUBMIT_DRY_RUN` without touching GitHub.\n\n5. **Create and push the pack repo.** Default repo name `aeon-skill-pack-$SLUG` (or the `--repo` override). The pack must be **public** — the installer fetches its tarball, and a private pack can't be installed by anyone else:\n   ```bash\n   PACK_REPO=\"${REPO_OVERRIDE:-aeon-skill-pack-$SLUG}\"     # owner defaults to $OWNER\n   gh repo view \"$PACK_REPO\" >\u002Fdev\u002Fnull 2>&1 \\\n     && { .\u002Fnotify \"pack-submit aborted: repo $PACK_REPO already exists — pass --repo to pick another name\"; exit 0; }\n   ( cd \"$PACK_DIR\" && git init -q && git add -A \\\n       && git commit -q -m \"Aeon community pack: $SLUG\" \\\n       && gh repo create \"$PACK_REPO\" --public --source=. --push )\n   ```\n   Capture the resulting `owner\u002Frepo` (`FULL_REPO=$(gh repo view \"$PACK_REPO\" --json nameWithOwner --jq .nameWithOwner)`). If repo creation fails (permission\u002Fname), exit `PACK_SUBMIT_REPO_FAILED`, notify with the `gh` error's shortest decisive line, and stop.\n\n6. **Submit the registry PR against `aeonfun\u002Faeon`** (skip this whole step if `--no-register` was passed - then jump to step 7 reporting only the pack repo). The registry lives in the canonical repo, so work against a fork, not this instance's checkout - this instance's `catalog\u002Fskill-packs.json` and `docs\u002Fcommunity-skill-packs.md` can be stale:\n   ```bash\n   WORK=$(mktemp -d)\n   gh repo fork aeonfun\u002Faeon --clone=true --default-branch-only 2>\u002Fdev\u002Fnull || true\n   git clone -q \"https:\u002F\u002Fgithub.com\u002F$OWNER\u002Faeon.git\" \"$WORK\u002Faeon\" || git clone -q https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon.git \"$WORK\u002Faeon\"\n   cd \"$WORK\u002Faeon\" && git checkout -b \"pack-submit\u002F$SLUG\"\n   ```\n   Make the two edits the validator (`scripts\u002Fvalidate-skill-packs.mjs`) checks for parity:\n\n   **(a) `catalog\u002Fskill-packs.json`** — append one object to `.packs`. Build it with `jq` from the values you resolved (mirror the pack's own manifest: `skills` is `[\"$SLUG\"]`, `trust_level` is `\"community\"`, aggregate `secrets_required`\u002F`capabilities` from the skill):\n   ```bash\n   jq --arg repo \"$FULL_REPO\" --arg name \"$TITLE\" --arg desc \"$DESC\" \\\n      --arg author \"$OWNER\" --arg homepage \"https:\u002F\u002Fgithub.com\u002F$FULL_REPO\" \\\n      --arg cat \"$CATEGORY\" --arg slug \"$SLUG\" \\\n      '.packs += [ { repo:$repo, name:$name, description:$desc, author:$author,\n        license:\"MIT\", homepage:$homepage, category:$cat, trust_level:\"community\",\n        skills:[$slug] } ]' catalog\u002Fskill-packs.json > \u002Ftmp\u002Freg.json \\\n     && mv \u002Ftmp\u002Freg.json catalog\u002Fskill-packs.json\n   ```\n   Add `secrets_required` \u002F `capabilities` keys to that object only when the skill declares them (keep it in sync with the pack manifest). Do **not** use `trust_level: trusted` — that requires the repo to be in `skills\u002Fsecurity\u002Ftrusted-sources.txt`, and the validator rejects an unearned `trusted`.\n\n   **(b) `docs\u002Fcommunity-skill-packs.md`** - add a table row under the `| Pack | Skills | Description |` header in the **Listed packs** section (the last section of the file). The table moved there from `.github\u002FREADME.md` in #845; do not edit the README. The row format, matching the existing rows exactly:\n   ```\n   | [\u003Cpack-repo-name>](https:\u002F\u002Fgithub.com\u002F\u003CFULL_REPO>) | 1 | \u003Cone-line description, ≤110 chars>. |\n   ```\n   Use `python3` for a surgical insert. **The row must land inside the table's contiguous block** - insert it immediately *after the last existing `| [` row*, never after a blank line or other text. The parity validator parses rows only until the first non-`|` line, so a row placed past the table is invisible to it and the PR fails CI with \"in the registry but has no row in the Community Packs table\". Verify with a re-read that the row sits among the other rows:\n   ```python\n   import re\n   lines = open(\"docs\u002Fcommunity-skill-packs.md\").read().split(\"\\n\")\n   sec = next(i for i,l in enumerate(lines) if re.match(r'^#+\\s+Listed packs\\s*$', l))\n   hdr = next(i for i in range(sec,len(lines)) if re.match(r'^\\|\\s*Pack\\s*\\|\\s*Skills\\s*\\|\\s*Description\\s*\\|', lines[i]))\n   i = hdr + 2; last = i\n   while i \u003C len(lines) and lines[i].startswith(\"|\"): last = i; i += 1   # last data row\n   lines.insert(last + 1, f\"| [{PACK_NAME}](https:\u002F\u002Fgithub.com\u002F{FULL_REPO}) | 1 | {DESC} |\")\n   open(\"docs\u002Fcommunity-skill-packs.md\",\"w\").write(\"\\n\".join(lines))\n   ```\n\n   **Validate parity before committing** — this is the exact CI gate the PR will hit:\n   ```bash\n   node scripts\u002Fvalidate-skill-packs.mjs\n   ```\n   A non-zero exit → fix the reported mismatch (skill count, a missing row, or a `--path` flag) and re-run until it prints `validate-skill-packs: OK`. Never open the PR on a red validator.\n\n   Then commit both files together, push the branch to your fork, and open the PR against the canonical repo:\n   ```bash\n   git add catalog\u002Fskill-packs.json docs\u002Fcommunity-skill-packs.md\n   git commit -m \"feat: list $TITLE community pack ($FULL_REPO)\"\n   git push -u origin \"pack-submit\u002F$SLUG\"\n   PR_URL=$(gh pr create --repo aeonfun\u002Faeon --title \"feat: list $TITLE community pack\" --body \"$(cat \u003C\u003CBODY\n   ## New community pack\n\n   **Pack:** [$FULL_REPO](https:\u002F\u002Fgithub.com\u002F$FULL_REPO)\n   **Skill:** \\`$SLUG\\` — $DESC\n   **Author:** @$OWNER · **License:** MIT · **Category:** $CATEGORY\n\n   Adds a row to the Listed packs table in \\`docs\u002Fcommunity-skill-packs.md\\` and a matching \\`catalog\u002Fskill-packs.json\\` entry (both in this diff, per the publishing checklist). \\`node scripts\u002Fvalidate-skill-packs.mjs\\` passes locally.\n\n   Install once merged:\n   \\`\\`\\`\n   bin\u002Finstall-skill-pack $FULL_REPO\n   \\`\\`\\`\n   BODY\n   )\")\n   ```\n   Capture `PR_URL`. If `gh pr create` fails because a PR already exists for the branch, capture the existing URL instead of erroring. This PR is **not** self-merging — it lands in someone else's repo and is reviewed by the aeon maintainers.\n\n7. **Log.** Append to `memory\u002Flogs\u002F${today}.md`:\n   ```\n   ### pack-submit\n   - Skill: {SLUG} ({TITLE})\n   - Pack repo: https:\u002F\u002Fgithub.com\u002F{FULL_REPO}\n   - Registry PR: {PR_URL or \"skipped (--no-register)\"}\n   - Secrets: {required list or \"none\"} · Capabilities: {list or \"none\"}\n   - Exit: PACK_SUBMIT_OK (or the code that applied)\n   ```\n\n8. **Notify.** Send one concise line via `.\u002Fnotify` (≤4000 chars, clickable URLs):\n   ```\n   *pack-submit — {TITLE}*\n   Pack repo: https:\u002F\u002Fgithub.com\u002F{FULL_REPO}\n   Registry PR: {PR_URL}\n   Install: `bin\u002Finstall-skill-pack {FULL_REPO}`\n   {\"Requires: X, Y\" if any required secrets, else omit}\n   ```\n   On `--no-register`, say the pack repo is live and give the exact PR checklist link (`docs\u002Fcommunity-skill-packs.md#pack-maintainers-publishing-checklist`) so the operator can list it manually.\n\n## Exit taxonomy\n\n| Code | When | Action |\n|------|------|--------|\n| `PACK_SUBMIT_OK` | Pack repo pushed and registry PR opened (or `--no-register` completed) | Notify with pack repo + PR link |\n| `PACK_SUBMIT_NO_VAR` | `${var}` empty | Notify abort reason; stop |\n| `PACK_SUBMIT_BAD_VAR` | Slug malformed or `skills\u002F\u003Cslug>\u002FSKILL.md` missing | Notify with the slug; stop |\n| `PACK_SUBMIT_INVALID_PACK` | `validate-pack.sh` reported an ERROR | Notify with the failing line; stop (nothing pushed) |\n| `PACK_SUBMIT_DRY_RUN` | `--dry-run` — built + validated, wrote nothing to GitHub | Notify with the staged path + manifest summary |\n| `PACK_SUBMIT_REPO_FAILED` | `gh repo create` failed (name taken, permission) | Notify with the gh error; stop |\n| `PACK_SUBMIT_REGISTRY_FAILED` | Fork\u002Fclone\u002Fvalidate\u002FPR step failed after the pack repo was pushed | Notify: pack repo is live, registry PR did not open, with the failing step |\n\n## Network note\n\nThere is no network sandbox — `git` and `gh` reach GitHub directly. `gh` is authenticated in Actions (via `GH_GLOBAL` when set; the ambient `GITHUB_TOKEN` otherwise, which **cannot** create repos or cross-repo PRs — surface that as `PACK_SUBMIT_REPO_FAILED` rather than looping). Every irreversible outward write — creating the public pack repo (step 5) and opening the registry PR (step 6) — happens **in-run** and is fail-closed: a failed pre-flight (`validate-pack.sh`) or a failed parity check (`validate-skill-packs.mjs`) stops before any push. Confirm reachability with `gh api repos\u002Faeonfun\u002Faeon --jq .full_name` before deciding a fork\u002Fclone failure is real vs transient.\n\n## Constraints\n\n- **Publish only skills that already exist in `skills\u002F`.** This skill packages and distributes; it does not author. To create a new skill, use `create-skill`.\n- **The pack repo must be public** — the installer fetches its tarball; a private pack is uninstallable by others.\n- **Never** register with `trust_level: trusted` — that is earned via `skills\u002Fsecurity\u002Ftrusted-sources.txt`, and the validator rejects a self-declared `trusted`. Community packs use `trust_level: community`.\n- **Never** open the registry PR on a red `validate-skill-packs.mjs` — a broken registry entry takes down `bin\u002Finstall-skill-pack --list` and the dashboard panel for everyone.\n- **Keep the two registry surfaces in lockstep** - the Listed packs row in `docs\u002Fcommunity-skill-packs.md` and the `skill-packs.json` entry ship in one diff, with matching skill counts. That is what the CI gate enforces.\n- **Don't leak secret values.** The manifest lists secret **names** only (from the skill's `requires:`), never values.\n","> **${var}** — The local skill to publish as a community pack: a skill **slug** (a directory name under `skills\u002F`), optionally followed by flags. **Required.**\n> Examples:\n> - `token-movers` — package `skills\u002Ftoken-movers\u002F` into a fresh public repo and submit it to the aeon registry\n> - `token-movers --repo myorg\u002Faeon-token-movers` — override the pack repo name (default `aeon-skill-pack-\u003Cslug>`)\n> - `token-movers --no-register` — create and push the pack repo, but skip the registry PR against `aeonfun\u002Faeon`\n> - `token-movers --dry-run` — build and validate the pack locally, write nothing to GitHub\n\nIf `${var}` is empty, exit `PACK_SUBMIT_NO_VAR`:\n```bash\n.\u002Fnotify \"pack-submit aborted: var empty — pass a skill slug e.g. \\\"token-movers\\\"\"\n```\nThen stop.\n\nToday is ${today}. Your task is to take the **existing** skill named in `${var}`, wrap it in a standalone community-pack repo (its own GitHub repo with a `skills-pack.json` manifest), and **submit it to the aeon community registry** - a PR against `aeonfun\u002Faeon` that adds both surfaces the registry demands in one diff: a row in the **Listed packs** table in `docs\u002Fcommunity-skill-packs.md` AND a matching entry in `catalog\u002Fskill-packs.json`. This is the inverse of `install-skill`: instead of pulling a community pack in, it pushes one of your own skills out for every other Aeon agent to install with `bin\u002Finstall-skill-pack`.\n\n## What a community pack is (so you build the right thing)\n\nA community pack is a **public GitHub repo** that holds one or more skills plus a `skills-pack.json` manifest that names and versions them. `bin\u002Finstall-skill-pack owner\u002Frepo` reads that manifest and installs the skills. To be **discoverable** (listed by `bin\u002Finstall-skill-pack --list` and the dashboard's Community Packs panel), the pack must also be registered in `aeonfun\u002Faeon`'s `catalog\u002Fskill-packs.json` + the Listed packs table in `docs\u002Fcommunity-skill-packs.md`. So publishing is two moves: **(a)** stand up the pack repo, **(b)** open the registry PR. This skill does both. Full protocol: `docs\u002Fcommunity-skill-packs.md`.\n\n## Steps\n\n1. **Parse and validate `${var}`.** The first whitespace-separated token is the skill slug; the rest are flags (`--repo owner\u002Fname`, `--no-register`, `--dry-run`). The slug must match `^[a-z0-9][a-z0-9-]*$` and resolve to a real directory:\n   ```bash\n   SLUG=$(echo \"${var}\" | awk '{print $1}')\n   FLAGS=$(echo \"${var}\" | cut -s -d' ' -f2-)\n   if ! echo \"$SLUG\" | grep -qE '^[a-z0-9][a-z0-9-]*$'; then\n     .\u002Fnotify \"pack-submit aborted: \\\"$SLUG\\\" is not a valid skill slug (lowercase kebab-case)\"; exit 0\n   fi\n   if [ ! -f \"skills\u002F$SLUG\u002FSKILL.md\" ]; then\n     .\u002Fnotify \"pack-submit aborted: skills\u002F$SLUG\u002FSKILL.md not found — run with a slug from \\`ls skills\u002F\\`\"; exit 0\n   fi\n   ```\n   If validation fails, exit `PACK_SUBMIT_BAD_VAR` with the notify above and stop. Extract the boolean flags from `$FLAGS` and the optional `--repo` value.\n\n2. **Read the source skill's metadata.** Everything the manifest and registry entry need is already declared in `skills\u002F$SLUG\u002FSKILL.md`'s frontmatter — read it, don't invent it:\n   - **Display name** — `metadata.title`; fall back to the top-level `name:`.\n   - **Description** — the top-level `description:` (one line).\n   - **Category** — `metadata.category`. Registry categories are an open vocabulary, but first-party-only values (`core`, `evolution`, `basics`) don't describe a third-party pack — if you see one of those, pick the closest community category (`dev`, `crypto`, `productivity`, `research`, `social`) from what the skill actually does. Otherwise pass the category through.\n   - **Secrets** — `metadata.requires`. An entry ending in `?` is **optional** → `secrets_optional`; an entry without `?` is **required** → `secrets_required`. Strip the `?`. Registry `secrets_required` must be UPPER_SNAKE env names.\n   - **Capabilities** — `metadata.capabilities`, copied verbatim (already the locked taxonomy; see `docs\u002FCAPABILITIES.md`). Omit if absent.\n\n   ```bash\n   fm(){ sed -n '\u002F^---$\u002F,\u002F^---$\u002Fp' \"skills\u002F$SLUG\u002FSKILL.md\"; }\n   TITLE=$(fm | sed -n 's\u002F^[[:space:]]*title:[[:space:]]*\u002F\u002Fp' | head -1)\n   [ -z \"$TITLE\" ] && TITLE=$(fm | sed -n 's\u002F^name:[[:space:]]*\u002F\u002Fp' | head -1)\n   DESC=$(fm | sed -n 's\u002F^description:[[:space:]]*\u002F\u002Fp' | head -1)\n   CATEGORY=$(fm | sed -n 's\u002F^[[:space:]]*category:[[:space:]]*\u002F\u002Fp' | head -1)\n   ```\n   Collect `requires:`\u002F`capabilities:` list items (lines under those keys beginning with `    - `) into shell arrays; split `requires` into required (no `?`) and optional (trailing `?`, stripped).\n\n3. **Build the pack repo locally.** Stage a clean working tree — the manifest at root, the full skill directory copied verbatim (including any helper scripts\u002Fconfig, not just `SKILL.md`), a README, and an MIT `LICENSE`:\n   ```bash\n   PACK_DIR=$(mktemp -d)\u002Fpack\n   mkdir -p \"$PACK_DIR\u002Fskills\u002F$SLUG\"\n   cp -R \"skills\u002F$SLUG\u002F.\" \"$PACK_DIR\u002Fskills\u002F$SLUG\u002F\"\n   ```\n   Write `$PACK_DIR\u002Fskills-pack.json` (build it with `python3`\u002F`jq`, never string concatenation, so quoting is safe). Include only fields you actually have:\n   ```json\n   {\n     \"name\": \"\u003CTITLE>\",\n     \"version\": \"0.1.0\",\n     \"description\": \"\u003CDESC>\",\n     \"author\": \"\u003Coperator github handle>\",\n     \"license\": \"MIT\",\n     \"homepage\": \"https:\u002F\u002Fgithub.com\u002F\u003Cowner>\u002F\u003Cpack-repo>\",\n     \"skills\": [\n       {\n         \"slug\": \"\u003CSLUG>\",\n         \"path\": \"skills\u002F\u003CSLUG>\",\n         \"description\": \"\u003CDESC>\",\n         \"category\": \"\u003CCATEGORY>\",\n         \"schedule\": \"0 12 * * *\",\n         \"default_enabled\": false,\n         \"secrets_required\": [ ... ],\n         \"secrets_optional\": [ ... ],\n         \"capabilities\": [ ... ]\n       }\n     ]\n   }\n   ```\n   Write a `README.md` that names the skill, states its schedule assumption, lists required\u002Foptional secrets, and shows the one-line install (`bin\u002Finstall-skill-pack \u003Cowner>\u002F\u003Cpack-repo>`). Write a standard MIT `LICENSE` (year `${today}`'s year, copyright the operator handle). Resolve the operator handle once: `OWNER=$(gh api user --jq .login)`.\n\n4. **Pre-flight the pack.** Run the repo's own validator against the staged directory — it enforces exactly what `bin\u002Finstall-skill-pack` requires (valid JSON manifest, clean slug, no `..` in paths, the `SKILL.md` present, locked-taxonomy capabilities):\n   ```bash\n   .\u002Fscripts\u002Fvalidate-pack.sh \"$PACK_DIR\" 2>&1 | tee \u002Ftmp\u002Fpack-validate.txt\n   ```\n   Exit non-zero (an `ERROR:` line) → exit `PACK_SUBMIT_INVALID_PACK`, notify with the failing line, and stop. **Do not** push an invalid pack. Warnings are fine to proceed on; surface them in the notify.\n\n   If `--dry-run` was passed, stop here: notify the operator that the pack built and validated cleanly at `$PACK_DIR`, list the manifest fields, and exit `PACK_SUBMIT_DRY_RUN` without touching GitHub.\n\n5. **Create and push the pack repo.** Default repo name `aeon-skill-pack-$SLUG` (or the `--repo` override). The pack must be **public** — the installer fetches its tarball, and a private pack can't be installed by anyone else:\n   ```bash\n   PACK_REPO=\"${REPO_OVERRIDE:-aeon-skill-pack-$SLUG}\"     # owner defaults to $OWNER\n   gh repo view \"$PACK_REPO\" >\u002Fdev\u002Fnull 2>&1 \\\n     && { .\u002Fnotify \"pack-submit aborted: repo $PACK_REPO already exists — pass --repo to pick another name\"; exit 0; }\n   ( cd \"$PACK_DIR\" && git init -q && git add -A \\\n       && git commit -q -m \"Aeon community pack: $SLUG\" \\\n       && gh repo create \"$PACK_REPO\" --public --source=. --push )\n   ```\n   Capture the resulting `owner\u002Frepo` (`FULL_REPO=$(gh repo view \"$PACK_REPO\" --json nameWithOwner --jq .nameWithOwner)`). If repo creation fails (permission\u002Fname), exit `PACK_SUBMIT_REPO_FAILED`, notify with the `gh` error's shortest decisive line, and stop.\n\n6. **Submit the registry PR against `aeonfun\u002Faeon`** (skip this whole step if `--no-register` was passed - then jump to step 7 reporting only the pack repo). The registry lives in the canonical repo, so work against a fork, not this instance's checkout - this instance's `catalog\u002Fskill-packs.json` and `docs\u002Fcommunity-skill-packs.md` can be stale:\n   ```bash\n   WORK=$(mktemp -d)\n   gh repo fork aeonfun\u002Faeon --clone=true --default-branch-only 2>\u002Fdev\u002Fnull || true\n   git clone -q \"https:\u002F\u002Fgithub.com\u002F$OWNER\u002Faeon.git\" \"$WORK\u002Faeon\" || git clone -q https:\u002F\u002Fgithub.com\u002Faeonfun\u002Faeon.git \"$WORK\u002Faeon\"\n   cd \"$WORK\u002Faeon\" && git checkout -b \"pack-submit\u002F$SLUG\"\n   ```\n   Make the two edits the validator (`scripts\u002Fvalidate-skill-packs.mjs`) checks for parity:\n\n   **(a) `catalog\u002Fskill-packs.json`** — append one object to `.packs`. Build it with `jq` from the values you resolved (mirror the pack's own manifest: `skills` is `[\"$SLUG\"]`, `trust_level` is `\"community\"`, aggregate `secrets_required`\u002F`capabilities` from the skill):\n   ```bash\n   jq --arg repo \"$FULL_REPO\" --arg name \"$TITLE\" --arg desc \"$DESC\" \\\n      --arg author \"$OWNER\" --arg homepage \"https:\u002F\u002Fgithub.com\u002F$FULL_REPO\" \\\n      --arg cat \"$CATEGORY\" --arg slug \"$SLUG\" \\\n      '.packs += [ { repo:$repo, name:$name, description:$desc, author:$author,\n        license:\"MIT\", homepage:$homepage, category:$cat, trust_level:\"community\",\n        skills:[$slug] } ]' catalog\u002Fskill-packs.json > \u002Ftmp\u002Freg.json \\\n     && mv \u002Ftmp\u002Freg.json catalog\u002Fskill-packs.json\n   ```\n   Add `secrets_required` \u002F `capabilities` keys to that object only when the skill declares them (keep it in sync with the pack manifest). Do **not** use `trust_level: trusted` — that requires the repo to be in `skills\u002Fsecurity\u002Ftrusted-sources.txt`, and the validator rejects an unearned `trusted`.\n\n   **(b) `docs\u002Fcommunity-skill-packs.md`** - add a table row under the `| Pack | Skills | Description |` header in the **Listed packs** section (the last section of the file). The table moved there from `.github\u002FREADME.md` in #845; do not edit the README. The row format, matching the existing rows exactly:\n   ```\n   | [\u003Cpack-repo-name>](https:\u002F\u002Fgithub.com\u002F\u003CFULL_REPO>) | 1 | \u003Cone-line description, ≤110 chars>. |\n   ```\n   Use `python3` for a surgical insert. **The row must land inside the table's contiguous block** - insert it immediately *after the last existing `| [` row*, never after a blank line or other text. The parity validator parses rows only until the first non-`|` line, so a row placed past the table is invisible to it and the PR fails CI with \"in the registry but has no row in the Community Packs table\". Verify with a re-read that the row sits among the other rows:\n   ```python\n   import re\n   lines = open(\"docs\u002Fcommunity-skill-packs.md\").read().split(\"\\n\")\n   sec = next(i for i,l in enumerate(lines) if re.match(r'^#+\\s+Listed packs\\s*$', l))\n   hdr = next(i for i in range(sec,len(lines)) if re.match(r'^\\|\\s*Pack\\s*\\|\\s*Skills\\s*\\|\\s*Description\\s*\\|', lines[i]))\n   i = hdr + 2; last = i\n   while i \u003C len(lines) and lines[i].startswith(\"|\"): last = i; i += 1   # last data row\n   lines.insert(last + 1, f\"| [{PACK_NAME}](https:\u002F\u002Fgithub.com\u002F{FULL_REPO}) | 1 | {DESC} |\")\n   open(\"docs\u002Fcommunity-skill-packs.md\",\"w\").write(\"\\n\".join(lines))\n   ```\n\n   **Validate parity before committing** — this is the exact CI gate the PR will hit:\n   ```bash\n   node scripts\u002Fvalidate-skill-packs.mjs\n   ```\n   A non-zero exit → fix the reported mismatch (skill count, a missing row, or a `--path` flag) and re-run until it prints `validate-skill-packs: OK`. Never open the PR on a red validator.\n\n   Then commit both files together, push the branch to your fork, and open the PR against the canonical repo:\n   ```bash\n   git add catalog\u002Fskill-packs.json docs\u002Fcommunity-skill-packs.md\n   git commit -m \"feat: list $TITLE community pack ($FULL_REPO)\"\n   git push -u origin \"pack-submit\u002F$SLUG\"\n   PR_URL=$(gh pr create --repo aeonfun\u002Faeon --title \"feat: list $TITLE community pack\" --body \"$(cat \u003C\u003CBODY\n   ## New community pack\n\n   **Pack:** [$FULL_REPO](https:\u002F\u002Fgithub.com\u002F$FULL_REPO)\n   **Skill:** \\`$SLUG\\` — $DESC\n   **Author:** @$OWNER · **License:** MIT · **Category:** $CATEGORY\n\n   Adds a row to the Listed packs table in \\`docs\u002Fcommunity-skill-packs.md\\` and a matching \\`catalog\u002Fskill-packs.json\\` entry (both in this diff, per the publishing checklist). \\`node scripts\u002Fvalidate-skill-packs.mjs\\` passes locally.\n\n   Install once merged:\n   \\`\\`\\`\n   bin\u002Finstall-skill-pack $FULL_REPO\n   \\`\\`\\`\n   BODY\n   )\")\n   ```\n   Capture `PR_URL`. If `gh pr create` fails because a PR already exists for the branch, capture the existing URL instead of erroring. This PR is **not** self-merging — it lands in someone else's repo and is reviewed by the aeon maintainers.\n\n7. **Log.** Append to `memory\u002Flogs\u002F${today}.md`:\n   ```\n   ### pack-submit\n   - Skill: {SLUG} ({TITLE})\n   - Pack repo: https:\u002F\u002Fgithub.com\u002F{FULL_REPO}\n   - Registry PR: {PR_URL or \"skipped (--no-register)\"}\n   - Secrets: {required list or \"none\"} · Capabilities: {list or \"none\"}\n   - Exit: PACK_SUBMIT_OK (or the code that applied)\n   ```\n\n8. **Notify.** Send one concise line via `.\u002Fnotify` (≤4000 chars, clickable URLs):\n   ```\n   *pack-submit — {TITLE}*\n   Pack repo: https:\u002F\u002Fgithub.com\u002F{FULL_REPO}\n   Registry PR: {PR_URL}\n   Install: `bin\u002Finstall-skill-pack {FULL_REPO}`\n   {\"Requires: X, Y\" if any required secrets, else omit}\n   ```\n   On `--no-register`, say the pack repo is live and give the exact PR checklist link (`docs\u002Fcommunity-skill-packs.md#pack-maintainers-publishing-checklist`) so the operator can list it manually.\n\n## Exit taxonomy\n\n| Code | When | Action |\n|------|------|--------|\n| `PACK_SUBMIT_OK` | Pack repo pushed and registry PR opened (or `--no-register` completed) | Notify with pack repo + PR link |\n| `PACK_SUBMIT_NO_VAR` | `${var}` empty | Notify abort reason; stop |\n| `PACK_SUBMIT_BAD_VAR` | Slug malformed or `skills\u002F\u003Cslug>\u002FSKILL.md` missing | Notify with the slug; stop |\n| `PACK_SUBMIT_INVALID_PACK` | `validate-pack.sh` reported an ERROR | Notify with the failing line; stop (nothing pushed) |\n| `PACK_SUBMIT_DRY_RUN` | `--dry-run` — built + validated, wrote nothing to GitHub | Notify with the staged path + manifest summary |\n| `PACK_SUBMIT_REPO_FAILED` | `gh repo create` failed (name taken, permission) | Notify with the gh error; stop |\n| `PACK_SUBMIT_REGISTRY_FAILED` | Fork\u002Fclone\u002Fvalidate\u002FPR step failed after the pack repo was pushed | Notify: pack repo is live, registry PR did not open, with the failing step |\n\n## Network note\n\nThere is no network sandbox — `git` and `gh` reach GitHub directly. `gh` is authenticated in Actions (via `GH_GLOBAL` when set; the ambient `GITHUB_TOKEN` otherwise, which **cannot** create repos or cross-repo PRs — surface that as `PACK_SUBMIT_REPO_FAILED` rather than looping). Every irreversible outward write — creating the public pack repo (step 5) and opening the registry PR (step 6) — happens **in-run** and is fail-closed: a failed pre-flight (`validate-pack.sh`) or a failed parity check (`validate-skill-packs.mjs`) stops before any push. Confirm reachability with `gh api repos\u002Faeonfun\u002Faeon --jq .full_name` before deciding a fork\u002Fclone failure is real vs transient.\n\n## Constraints\n\n- **Publish only skills that already exist in `skills\u002F`.** This skill packages and distributes; it does not author. To create a new skill, use `create-skill`.\n- **The pack repo must be public** — the installer fetches its tarball; a private pack is uninstallable by others.\n- **Never** register with `trust_level: trusted` — that is earned via `skills\u002Fsecurity\u002Ftrusted-sources.txt`, and the validator rejects a self-declared `trusted`. Community packs use `trust_level: community`.\n- **Never** open the registry PR on a red `validate-skill-packs.mjs` — a broken registry entry takes down `bin\u002Finstall-skill-pack --list` and the dashboard panel for everyone.\n- **Keep the two registry surfaces in lockstep** - the Listed packs row in `docs\u002Fcommunity-skill-packs.md` and the `skill-packs.json` entry ship in one diff, with matching skill counts. That is what the CI gate enforces.\n- **Don't leak secret values.** The manifest lists secret **names** only (from the skill's `requires:`), never values.\n",{"name":5,"metadata":23,"description":7},{"var":24,"mode":25,"tags":26,"title":30,"category":31,"requires":32,"capabilities":34},"","write",[27,28,29],"dev","meta","packs","Pack Submit","evolution",[33],"GH_GLOBAL?",[35,36,37],"external_api","writes_external_host","sends_notifications","main","d272e2d5dc4795e777d85c731669e1978c0d7595","skills\u002Fpack-submit","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm","https:\u002F\u002Fgithub.com\u002FDitto190","2026-11-13 06:13:51",{"source":8,"skillName":5,"commands":45,"prompt":55,"zipAvailable":56},[46,49,52],{"tool":47,"command":48},"npx","npx skills add Ditto190\u002FAeon-automaton-codeyourself-mm --skill pack-submit",{"tool":50,"command":51},"bunx","bunx skills add Ditto190\u002FAeon-automaton-codeyourself-mm --skill pack-submit",{"tool":53,"command":54},"pnpm","pnpm dlx skills add Ditto190\u002FAeon-automaton-codeyourself-mm --skill pack-submit","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fpack-submit\u002FSKILL.md",true,[],[59,66,73,80,87,94],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":18},"01M7DCG5X4KFH7AB8485P75B8F","you-web-search","Web search using You.com Search API with high-quality, cited results and optional real-time web crawling","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fyou-web-search\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":18},"01M7DCFZSBXYJ5YD2RW2EYYBTR","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\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fwrite-tweet\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":18},"01M7DCFWHQ8A71VR7QR9HGWXFP","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\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fweekly-aeoncard\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":18},"01M7DCFHZQJMV0VBJY9HPPG74R","vuln-tracker","One lifecycle poll over everything vuln-scanner produces - PR and advisory status, PVR triage transitions, and pending-disclosure aging, with a stars-secured impact headline and one action queue.","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-tracker\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":18},"01M7DCF5RBH2H7S5H6Y7PSJRRD","vuln-scanner","Audit trending repos for real security vulnerabilities and disclose responsibly - scan and route findings (PVR \u002F dependency PR), re-submit queued advisories, and send armed email disclosures","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fvuln-scanner\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":18},"01M7DCF140AXQARZJ5WNSB8BCA","video-script","Turn a repo, product page, or update into a recording-ready video script in a receipts-first format - verifies every claim against live sources, then writes timestamped VO + on-screen direction with a plain-language glossary, assets checklist, anti-tells, and a verify-before-recording list","https:\u002F\u002Fgithub.com\u002FDitto190\u002FAeon-automaton-codeyourself-mm\u002Fblob\u002Fmain\u002Fskills\u002Fvideo-script\u002FSKILL.md",[],[]]