push-skill-to-github

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Push Skills to GitHub

将技能推送到GitHub

For committing any skill change to the user's private skills repo:
<private-skills-repo>
, git root
<skills-repo-root>
(this is also the canonical skill folder; other agent skill folders symlink to
<skills-repo-root>/skills
). Pushes here auto-publish a sanitized public mirror — never push directly to that public repo.
Use this after creating or editing a skill. If the skill is distributed to all agents, do that first (
distribute-skill-to-all-agents
), then run this to push the canonical copy.
用于将任意技能变更提交到用户的私有技能仓库:
<private-skills-repo>
,Git根目录为**
<skills-repo-root>
**(这也是标准技能文件夹;其他Agent技能文件夹均链接到
<skills-repo-root>/skills
)。推送到此仓库会自动发布经过清理的公开镜像——切勿直接推送到该公开仓库。
在创建或编辑技能后使用此操作。如果技能需要分发到所有Agent,请先执行该操作(
distribute-skill-to-all-agents
),再运行此操作推送标准副本。

Steps

步骤

Run git directly in the current shell. A push is a quick synchronous command — no persistent terminal, pane, or cmux needed.
  1. Check what's pending in
    <skills-repo-root>
    :
    bash
    cd <skills-repo-root> && git status --short
    If there are unrelated uncommitted changes, stage only the skill folder(s) you changed — don't bundle unrelated work under one commit message.
  2. Stage, commit, push:
    bash
    cd <skills-repo-root> && git add skills/<skill-name> && git commit -m "<concise message>" && git push
  3. Verify the push landed: the push output must show
    main -> main
    . If it doesn't, report the error — don't claim success.
直接在当前shell中运行Git命令。推送是一个快速的同步命令——无需持久化终端、面板或cmux。
  1. 检查
    <skills-repo-root>
    中的待处理内容
    bash
    cd <skills-repo-root> && git status --short
    如果存在无关的未提交变更,仅暂存你修改的技能文件夹——不要将无关工作合并到同一条提交信息中。
  2. 暂存、提交、推送
    bash
    cd <skills-repo-root> && git add skills/<skill-name> && git commit -m "<concise message>" && git push
  3. 验证推送结果:推送输出必须显示
    main -> main
    。如果未显示,请报告错误——不要声称操作成功。

Notes

注意事项

  • Always run git from
    <skills-repo-root>
    (the repo root), not
    <skills-repo-root>/skills
    .
  • Write a concise, specific commit message describing the skill change.
  • Only push to GitHub when the user asks. Don't push speculatively.
  • 始终从
    <skills-repo-root>
    (仓库根目录)运行Git命令,而非
    <skills-repo-root>/skills
  • 撰写简洁明确的提交信息,描述技能变更内容。
  • 仅在用户要求时推送到GitHub。请勿擅自推送。