push-skill-to-github
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChinesePush Skills to GitHub
将技能推送到GitHub
For committing any skill change to the user's private skills repo: , git root (this is also the canonical skill folder; other agent skill folders symlink to ). Pushes here auto-publish a sanitized public mirror — never push directly to that public repo.
<private-skills-repo><skills-repo-root><skills-repo-root>/skillsUse this after creating or editing a skill. If the skill is distributed to all agents, do that first (), then run this to push the canonical copy.
distribute-skill-to-all-agents用于将任意技能变更提交到用户的私有技能仓库:,Git根目录为****(这也是标准技能文件夹;其他Agent技能文件夹均链接到)。推送到此仓库会自动发布经过清理的公开镜像——切勿直接推送到该公开仓库。
<private-skills-repo><skills-repo-root><skills-repo-root>/skills在创建或编辑技能后使用此操作。如果技能需要分发到所有Agent,请先执行该操作(),再运行此操作推送标准副本。
distribute-skill-to-all-agentsSteps
步骤
Run git directly in the current shell. A push is a quick synchronous command — no persistent terminal, pane, or cmux needed.
- Check what's pending in :
<skills-repo-root>If there are unrelated uncommitted changes, stage only the skill folder(s) you changed — don't bundle unrelated work under one commit message.bashcd <skills-repo-root> && git status --short - Stage, commit, push:
bash
cd <skills-repo-root> && git add skills/<skill-name> && git commit -m "<concise message>" && git push - Verify the push landed: the push output must show . If it doesn't, report the error — don't claim success.
main -> main
直接在当前shell中运行Git命令。推送是一个快速的同步命令——无需持久化终端、面板或cmux。
- 检查中的待处理内容:
<skills-repo-root>如果存在无关的未提交变更,仅暂存你修改的技能文件夹——不要将无关工作合并到同一条提交信息中。bashcd <skills-repo-root> && git status --short - 暂存、提交、推送:
bash
cd <skills-repo-root> && git add skills/<skill-name> && git commit -m "<concise message>" && git push - 验证推送结果:推送输出必须显示。如果未显示,请报告错误——不要声称操作成功。
main -> main
Notes
注意事项
- Always run git from (the repo root), not
<skills-repo-root>.<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.
- 始终从(仓库根目录)运行Git命令,而非
<skills-repo-root>。<skills-repo-root>/skills - 撰写简洁明确的提交信息,描述技能变更内容。
- 仅在用户要求时推送到GitHub。请勿擅自推送。