Pack Submit 标志

Pack Submit

组织
aeonfun
pack-submit

Package one of this agent's own skills as a standalone community pack and submit it to the aeon registry as a PR

概览

发布者aeonfun
代码仓库aeon
技能名称pack-submit
星标数
771
复刻数
280
附带文件
仅含指令
许可协议MIT
链接
  • Markdown 格式的指令

    模型按需加载 SKILL.md 文件,因此只有在请求确实与该技能匹配时才会消耗 Token。

  • 兼容任何大语言模型

    AI 技能采用纯 Markdown,而非特定提供商的代码,因此可搭配 GPT、Claude、Gemini、Grok 或本地模型使用。

  • 指令自成一体

    模型所需的一切都包含在指令中,无需同步额外文件。

  • 开源

    由 aeonfun 发布于 GitHub。请在安装前查看技能的源文件。

安装

在 TypingMind 中安装 Pack Submit AI 技能,即可搭配任意大语言模型使用;也可以将其放入其他支持读取 SKILL.md 的智能体中。

1

安装到 TypingMind

TypingMind 可直接从 GitHub 文件夹安装技能:读取 SKILL.md,打包资源文件,并将结果保存在本地。

  1. 打开应用,前往“插件 → 技能”。
  2. 选择“从 GitHub 安装”。
  3. 粘贴下方的技能文件夹 URL 并确认。
    https://github.com/aeonfun/aeon/tree/main/skills/pack-submit
  4. 请在每个需要使用该技能的聊天中启用它。
依次选择“插件 → 技能 → 添加技能 → 从 GitHub URL 导入”,然后粘贴文件夹 URL 并点击“继续”。
2

安装到其他智能体

任何支持 Agent Skills 格式的智能体都可以使用此技能,只需将文件夹复制到该智能体的技能目录中。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aeonfun/aeon.git /tmp/aeon
mkdir -p .claude/skills
cp -r /tmp/aeon/skills/pack-submit .claude/skills/pack-submit
复制后,请重启 Claude Code,以加载新技能。

在 TypingMind 中使用此技能

在任意 TypingMind 聊天中启用 Pack Submit,后续即可交由模型处理。技能的名称和描述会放在系统提示词中,一旦请求匹配,模型就会自动加载完整指令,无需您手动调用,且在实际使用前不会消耗 Token。

一旦请求与技能匹配,模型就会自动加载 Pack Submit。

兼容任何 AI 模型

AI 技能是纯 Markdown 指令,而非特定提供商的代码,因此 Pack Submit 不局限于最初适配的模型。只需在 TypingMind 中安装一次,即可搭配 GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 或您自行运行的本地模型使用,全程使用您自己的 API 密钥。

  • 仅在需要时加载

    系统提示词中仅包含技能名称和描述。首次遇到匹配的请求时才会加载完整指令,因此技能未使用时,这些指令不会消耗 Token。

  • 在聊天中切换模型

    技能是指令而非代码,因此切换模型不会导致技能失效,新模型会读取同一个 SKILL.md。

技能指令

这是模型会加载的 SKILL.md 内容。请在安装前阅读,因为技能就是模型将遵循的指令。

${var} — The local skill to publish as a community pack: a skill slug (a directory name under skills/), optionally followed by flags. Required. Examples:

  • token-movers — package skills/token-movers/ into a fresh public repo and submit it to the aeon registry
  • token-movers --repo myorg/aeon-token-movers — override the pack repo name (default aeon-skill-pack-<slug>)
  • token-movers --no-register — create and push the pack repo, but skip the registry PR against aeonfun/aeon
  • token-movers --dry-run — build and validate the pack locally, write nothing to GitHub

If ${var} is empty, exit PACK_SUBMIT_NO_VAR:

bash
./notify "pack-submit aborted: var empty — pass a skill slug e.g. \"token-movers\""

Then stop.

Today 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/aeon that adds both surfaces the registry demands in one diff: a row in the Listed packs table in docs/community-skill-packs.md AND a matching entry in catalog/skill-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/install-skill-pack.

What a community pack is (so you build the right thing)

A 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/install-skill-pack owner/repo reads that manifest and installs the skills. To be discoverable (listed by bin/install-skill-pack --list and the dashboard's Community Packs panel), the pack must also be registered in aeonfun/aeon's catalog/skill-packs.json + the Listed packs table in docs/community-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/community-skill-packs.md.

Steps

  1. Parse and validate ${var}. The first whitespace-separated token is the skill slug; the rest are flags (--repo owner/name, --no-register, --dry-run). The slug must match ^[a-z0-9][a-z0-9-]*$ and resolve to a real directory:

    bash
    SLUG=$(echo "${var}" | awk '{print $1}')
    FLAGS=$(echo "${var}" | cut -s -d' ' -f2-)
    if ! echo "$SLUG" | grep -qE '^[a-z0-9][a-z0-9-]*$'; then
      ./notify "pack-submit aborted: \"$SLUG\" is not a valid skill slug (lowercase kebab-case)"; exit 0
    fi
    if [ ! -f "skills/$SLUG/SKILL.md" ]; then
      ./notify "pack-submit aborted: skills/$SLUG/SKILL.md not found — run with a slug from \`ls skills/\`"; exit 0
    fi

    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.

  2. Read the source skill's metadata. Everything the manifest and registry entry need is already declared in skills/$SLUG/SKILL.md's frontmatter — read it, don't invent it:

    • Display name — metadata.title; fall back to the top-level name:.
    • Description — the top-level description: (one line).
    • 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.
    • 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.
    • Capabilities — metadata.capabilities, copied verbatim (already the locked taxonomy; see docs/CAPABILITIES.md). Omit if absent.
    bash
    fm(){ sed -n '/^---$/,/^---$/p' "skills/$SLUG/SKILL.md"; }
    TITLE=$(fm | sed -n 's/^[[:space:]]*title:[[:space:]]*//p' | head -1)
    [ -z "$TITLE" ] && TITLE=$(fm | sed -n 's/^name:[[:space:]]*//p' | head -1)
    DESC=$(fm | sed -n 's/^description:[[:space:]]*//p' | head -1)
    CATEGORY=$(fm | sed -n 's/^[[:space:]]*category:[[:space:]]*//p' | head -1)

    Collect requires:/capabilities: list items (lines under those keys beginning with -) into shell arrays; split requires into required (no ?) and optional (trailing ?, stripped).

  3. Build the pack repo locally. Stage a clean working tree — the manifest at root, the full skill directory copied verbatim (including any helper scripts/config, not just SKILL.md), a README, and an MIT LICENSE:

    bash
    PACK_DIR=$(mktemp -d)/pack
    mkdir -p "$PACK_DIR/skills/$SLUG"
    cp -R "skills/$SLUG/." "$PACK_DIR/skills/$SLUG/"

    Write $PACK_DIR/skills-pack.json (build it with python3/jq, never string concatenation, so quoting is safe). Include only fields you actually have:

    json
    {
      "name": "<TITLE>",
      "version": "0.1.0",
      "description": "<DESC>",
      "author": "<operator github handle>",
      "license": "MIT",
      "homepage": "https://github.com/<owner>/<pack-repo>",
      "skills": [
        {
          "slug": "<SLUG>",
          "path": "skills/<SLUG>",
          "description": "<DESC>",
          "category": "<CATEGORY>",
          "schedule": "0 12 * * *",
          "default_enabled": false,
          "secrets_required": [ ... ],
          "secrets_optional": [ ... ],
          "capabilities": [ ... ]
        }
      ]
    }

    Write a README.md that names the skill, states its schedule assumption, lists required/optional secrets, and shows the one-line install (bin/install-skill-pack <owner>/<pack-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).

  4. Pre-flight the pack. Run the repo's own validator against the staged directory — it enforces exactly what bin/install-skill-pack requires (valid JSON manifest, clean slug, no .. in paths, the SKILL.md present, locked-taxonomy capabilities):

    bash
    ./scripts/validate-pack.sh "$PACK_DIR" 2>&1 | tee /tmp/pack-validate.txt

    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.

    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.

  5. 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:

    bash
    PACK_REPO="${REPO_OVERRIDE:-aeon-skill-pack-$SLUG}"     # owner defaults to $OWNER
    gh repo view "$PACK_REPO" >/dev/null 2>&1 \
      && { ./notify "pack-submit aborted: repo $PACK_REPO already exists — pass --repo to pick another name"; exit 0; }
    ( cd "$PACK_DIR" && git init -q && git add -A \
        && git commit -q -m "Aeon community pack: $SLUG" \
        && gh repo create "$PACK_REPO" --public --source=. --push )

    Capture the resulting owner/repo (FULL_REPO=$(gh repo view "$PACK_REPO" --json nameWithOwner --jq .nameWithOwner)). If repo creation fails (permission/name), exit PACK_SUBMIT_REPO_FAILED, notify with the gh error's shortest decisive line, and stop.

  6. Submit the registry PR against aeonfun/aeon (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/skill-packs.json and docs/community-skill-packs.md can be stale:

    bash
    WORK=$(mktemp -d)
    gh repo fork aeonfun/aeon --clone=true --default-branch-only 2>/dev/null || true
    git clone -q "https://github.com/$OWNER/aeon.git" "$WORK/aeon" || git clone -q https://github.com/aeonfun/aeon.git "$WORK/aeon"
    cd "$WORK/aeon" && git checkout -b "pack-submit/$SLUG"

    Make the two edits the validator (scripts/validate-skill-packs.mjs) checks for parity:

    (a) catalog/skill-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/capabilities from the skill):

    bash
    jq --arg repo "$FULL_REPO" --arg name "$TITLE" --arg desc "$DESC" \
       --arg author "$OWNER" --arg homepage "https://github.com/$FULL_REPO" \
       --arg cat "$CATEGORY" --arg slug "$SLUG" \
       '.packs += [ { repo:$repo, name:$name, description:$desc, author:$author,
         license:"MIT", homepage:$homepage, category:$cat, trust_level:"community",
         skills:[$slug] } ]' catalog/skill-packs.json > /tmp/reg.json \
      && mv /tmp/reg.json catalog/skill-packs.json

    Add secrets_required / 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/security/trusted-sources.txt, and the validator rejects an unearned trusted.

    (b) docs/community-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/README.md in #845; do not edit the README. The row format, matching the existing rows exactly:

    | [<pack-repo-name>](https://github.com/<FULL_REPO>) | 1 | <one-line description, ≤110 chars>. |

    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:

    python
    import re
    lines = open("docs/community-skill-packs.md").read().split("\n")
    sec = next(i for i,l in enumerate(lines) if re.match(r'^#+\s+Listed packs\s*$', l))
    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]))
    i = hdr + 2; last = i
    while i < len(lines) and lines[i].startswith("|"): last = i; i += 1   # last data row
    lines.insert(last + 1, f"| [{PACK_NAME}](https://github.com/{FULL_REPO}) | 1 | {DESC} |")
    open("docs/community-skill-packs.md","w").write("\n".join(lines))

    Validate parity before committing — this is the exact CI gate the PR will hit:

    bash
    node scripts/validate-skill-packs.mjs

    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.

    Then commit both files together, push the branch to your fork, and open the PR against the canonical repo:

    bash
    git add catalog/skill-packs.json docs/community-skill-packs.md
    git commit -m "feat: list $TITLE community pack ($FULL_REPO)"
    git push -u origin "pack-submit/$SLUG"
    PR_URL=$(gh pr create --repo aeonfun/aeon --title "feat: list $TITLE community pack" --body "$(cat <<BODY
    ## New community pack
    
    **Pack:** [$FULL_REPO](https://github.com/$FULL_REPO)
    **Skill:** \`$SLUG\` — $DESC
    **Author:** @$OWNER · **License:** MIT · **Category:** $CATEGORY
    
    Adds a row to the Listed packs table in \`docs/community-skill-packs.md\` and a matching \`catalog/skill-packs.json\` entry (both in this diff, per the publishing checklist). \`node scripts/validate-skill-packs.mjs\` passes locally.
    
    Install once merged:
    \`\`\`
    bin/install-skill-pack $FULL_REPO
    \`\`\`
    BODY
    )")

    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.

  7. Log. Append to memory/logs/${today}.md:

    ### pack-submit
    - Skill: {SLUG} ({TITLE})
    - Pack repo: https://github.com/{FULL_REPO}
    - Registry PR: {PR_URL or "skipped (--no-register)"}
    - Secrets: {required list or "none"} · Capabilities: {list or "none"}
    - Exit: PACK_SUBMIT_OK (or the code that applied)
  8. Notify. Send one concise line via ./notify (≤4000 chars, clickable URLs):

    *pack-submit — {TITLE}*
    Pack repo: https://github.com/{FULL_REPO}
    Registry PR: {PR_URL}
    Install: `bin/install-skill-pack {FULL_REPO}`
    {"Requires: X, Y" if any required secrets, else omit}

    On --no-register, say the pack repo is live and give the exact PR checklist link (docs/community-skill-packs.md#pack-maintainers-publishing-checklist) so the operator can list it manually.

Exit taxonomy

CodeWhenAction
PACK_SUBMIT_OKPack repo pushed and registry PR opened (or --no-register completed)Notify with pack repo + PR link
PACK_SUBMIT_NO_VAR${var} emptyNotify abort reason; stop
PACK_SUBMIT_BAD_VARSlug malformed or skills/<slug>/SKILL.md missingNotify with the slug; stop
PACK_SUBMIT_INVALID_PACKvalidate-pack.sh reported an ERRORNotify with the failing line; stop (nothing pushed)
PACK_SUBMIT_DRY_RUN--dry-run — built + validated, wrote nothing to GitHubNotify with the staged path + manifest summary
PACK_SUBMIT_REPO_FAILEDgh repo create failed (name taken, permission)Notify with the gh error; stop
PACK_SUBMIT_REGISTRY_FAILEDFork/clone/validate/PR step failed after the pack repo was pushedNotify: pack repo is live, registry PR did not open, with the failing step

Network note

There 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/aeonfun/aeon --jq .full_name before deciding a fork/clone failure is real vs transient.

Constraints

  • Publish only skills that already exist in skills/. This skill packages and distributes; it does not author. To create a new skill, use create-skill.
  • The pack repo must be public — the installer fetches its tarball; a private pack is uninstallable by others.
  • Never register with trust_level: trusted — that is earned via skills/security/trusted-sources.txt, and the validator rejects a self-declared trusted. Community packs use trust_level: community.
  • Never open the registry PR on a red validate-skill-packs.mjs — a broken registry entry takes down bin/install-skill-pack --list and the dashboard panel for everyone.
  • Keep the two registry surfaces in lockstep - the Listed packs row in docs/community-skill-packs.md and the skill-packs.json entry ship in one diff, with matching skill counts. That is what the CI gate enforces.
  • Don't leak secret values. The manifest lists secret names only (from the skill's requires:), never values.

常见问题

Pack Submit AI 技能有什么作用?

Package one of this agent's own skills as a standalone community pack and submit it to the aeon registry as a PR

为什么在 TypingMind 中使用 Pack Submit?

因为您只需安装一次,就能搭配任何模型使用。Pack Submit 采用纯 Markdown 格式,而非特定提供商专用的代码,因此同一技能可用于 GPT-5、Claude、Gemini、Grok 或本地模型。您甚至可以在聊天中途切换模型,而不会影响技能的正常使用。TypingMind 使用您自己的 API 密钥,因此您直接向提供商付费,而不是按席位订阅;您的技能和聊天记录也都保留在您自己的存储空间中。

如何在 TypingMind 中安装 Pack Submit?

在 TypingMind 中打开“插件 → 技能 → 从 GitHub 安装”,然后粘贴 https://github.com/aeonfun/aeon/tree/main/skills/pack-submit。TypingMind 会读取其中的 SKILL.md,并将其安装为技能,供您在各个聊天中按需启用。

哪些 AI 模型可以使用 Pack Submit?

您在 TypingMind 中连接的任何模型都可以。AI 技能采用纯 Markdown 指令,而非特定提供商专用的代码,因此 GPT、Claude、Gemini、Grok 和本地模型都能在请求匹配时加载此技能。

Pack Submit 可以搭配多少个 AI 模型使用?

数量不限。只要模型支持技能,您就可以将它与 Pack Submit 搭配使用。GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llama 等模型都可以通过您自己的 API 密钥接入 TypingMind。

Pack Submit AI 技能免费吗?

是的。aeonfun 已在 GitHub 上根据 MIT 许可证发布了该技能。您只需向自己的 AI 提供商支付所用 Token 的费用。

什么是 AI 技能?

AI 技能是一组可复用的指令,用于教会 AI 模型完成某项特定任务。它遵循开放的 Agent Skills 格式:包含名称和描述的 SKILL.md 文件,以及模型可能需要的脚本、模板或参考文件。模型仅在您的请求与技能匹配时才会读取这些指令,因此已安装的技能在使用前不会产生任何费用。

AI 技能与插件或 MCP 服务器有何不同?

插件或 MCP 服务器为模型提供可调用的新工具,也就是在某处运行并返回结果的代码。AI 技能则为模型提供知识和流程:如何处理任务、遵循哪些步骤,以及怎样的输出才算优质。技能采用纯 Markdown 格式,因此不需要服务器、API 密钥或运行时环境,并且适用于任何模型。

查看全部

立即创建您自己的 AI 工作区

订阅我们的电子简报,获取新功能和后续赠奖活动的通知 👇