Publish To ClawHub
Use this skill when a local skill should be updated, published, and backed up with a clean repeatable workflow.
Typical requests:
- - "Publish this skill to ClawHub."
- "Help me put this skill on GitHub and ClawHub."
- "Improve this skill, publish it, then sync GitHub."
- "Keep the local skill folder clean but still show a README on GitHub."
Safety First
This workflow can involve:
- - structural edits to the skill itself
- GitHub authentication
- git push to a public remote
- ClawHub CLI publishing
Rules:
- - never ask the user to paste a long-lived token into chat unless there is no safer option
- prefer browser login, credential manager, or SSH when available
- never store credentials in files
- never force-push without explicit user confirmation
- prefer a temporary GitHub README over leaving
README.md in the local publish directory
Prerequisites
Confirm these before publishing:
- - the skill exists locally
- INLINECODE1 is present
- GitHub repo target is known if backup/showcase sync is needed
- ClawHub CLI is installed and logged in if ClawHub publishing is required
Detailed checks are in references/publish-checklist.md.
Workflow
1. Inspect And Improve The Skill First
Review the skill folder for:
- - non-English content that should be internationalized
- private or proprietary references
- user-specific file paths
- tokens, emails, or placeholders that should not be published
- unclear skill structure or stale instructions
Check SKILL.md, scripts, references, notebooks, and optional metadata.
If the skill itself needs cleanup, improve it before publishing. For substantial skill revisions, validate the structure first, then publish the revised skill rather than publishing a known rough draft.
2. Normalize The Publishable Skill Content
Before publishing:
- - convert the skill description and instructions to clear English if the release is meant for a broader audience
- replace proprietary names with generic placeholders when needed
- remove secrets, personal addresses, and private identifiers
- make examples understandable to an outside user
- keep the local publish directory minimal and skill-focused
Keep SKILL.md focused on how the AI should use the skill, not on project history.
3. Publish To ClawHub First
When the user's priority is the actual skill update, publish the local skill to ClawHub before creating or restoring a GitHub README.
Before publishing:
- - verify INLINECODE4
- choose the next semantic version
- write a short changelog that reflects the real skill update
- publish from the local skill folder
After publishing:
- - confirm the returned version or package identifier
- verify the updated listing if needed
4. Add A Temporary GitHub README
If GitHub backup or showcase is desired:
- - create a concise
README.md that explains what the skill does for human readers - keep
SKILL.md as the AI-facing file and README.md as the GitHub-facing file - treat the README as temporary in the local publish directory if the user wants a pure local skill folder
5. Sync To GitHub
Use SSH or a local credential helper when possible.
Recommended flow:
- - clone or update a clean GitHub working copy
- copy in the latest skill files plus the temporary README
- review what will be committed
- commit with a clear message
- push to the intended repository
This keeps the local publish folder and the GitHub sync folder serving different purposes.
6. Remove The Local README If The User Wants A Pure Skill Folder
After the GitHub push succeeds:
- - delete the local
README.md from the publish directory if the user's preferred workflow is "clean local skill, richer GitHub repo" - keep the GitHub version with README intact
7. Report What Happened
Summarize clearly:
- - what files were cleaned or changed
- whether ClawHub publish succeeded
- whether GitHub push succeeded
- whether the local README was removed afterward
- any follow-up steps still needed from the user
Decision Rules
- - If the skill is still private or contains sensitive material, stop before publishing.
- If the user only wants GitHub backup, skip ClawHub publishing.
- If the user wants the clean-local-folder workflow, publish to ClawHub before adding README.
- If ClawHub CLI is missing, explain the blocker and continue with GitHub prep only if that still helps.
- If the remote repo already contains conflicting starter files, resolve carefully rather than overwriting blindly.
- If renaming the repo, slug, or published skill would break existing links, pause and confirm before changing names.
Common Failure Modes
Use references/publish-checklist.md for:
- - pre-publish checklist
- common errors
- safe credential guidance
- suggested commands
- the clean local / GitHub showcase workflow
发布到 ClawHub
当需要以干净可重复的工作流程更新、发布和备份本地技能时,使用此技能。
典型请求:
- - 将此技能发布到 ClawHub。
- 帮我把这个技能放到 GitHub 和 ClawHub 上。
- 改进此技能,发布它,然后同步 GitHub。
- 保持本地技能文件夹干净,但仍在 GitHub 上显示 README。
安全第一
此工作流程可能涉及:
- - 对技能本身进行结构性编辑
- GitHub 身份验证
- git 推送到公共远程仓库
- ClawHub CLI 发布
规则:
- - 除非没有更安全的选择,否则永远不要要求用户将长期有效的令牌粘贴到聊天中
- 尽可能优先使用浏览器登录、凭据管理器或 SSH
- 切勿将凭据存储在文件中
- 未经用户明确确认,切勿强制推送
- 优先使用临时 GitHub README,而不是将 README.md 留在本地发布目录中
前提条件
在发布前确认以下内容:
- - 技能存在于本地
- SKILL.md 存在
- 如果需要备份/展示同步,需知道 GitHub 仓库目标
- 如果需要 ClawHub 发布,需安装并登录 ClawHub CLI
详细检查见 references/publish-checklist.md。
工作流程
1. 首先检查和改进技能
检查技能文件夹中是否存在:
- - 需要国际化的非英文内容
- 私有或专有引用
- 用户特定的文件路径
- 不应发布的令牌、电子邮件或占位符
- 不清晰的技能结构或过时的说明
检查 SKILL.md、脚本、参考资料、笔记本和可选元数据。
如果技能本身需要清理,请在发布前进行改进。对于重大的技能修订,先验证结构,然后发布修订后的技能,而不是发布已知的草稿。
2. 规范化可发布的技能内容
在发布前:
- - 如果发布面向更广泛的受众,将技能描述和说明转换为清晰的英文
- 必要时用通用占位符替换专有名称
- 移除机密信息、个人地址和私人标识符
- 使示例对外部用户易于理解
- 保持本地发布目录最小化且以技能为中心
保持 SKILL.md 专注于 AI 应如何使用该技能,而不是项目历史。
3. 首先发布到 ClawHub
当用户的优先事项是实际技能更新时,在创建或恢复 GitHub README 之前,先将本地技能发布到 ClawHub。
在发布前:
- - 验证 clawhub whoami
- 选择下一个语义版本号
- 编写反映实际技能更新的简短变更日志
- 从本地技能文件夹发布
发布后:
- - 确认返回的版本或包标识符
- 如有需要,验证更新后的列表
4. 添加临时 GitHub README
如果需要 GitHub 备份或展示:
- - 创建一个简洁的 README.md,向人类读者解释该技能的功能
- 保持 SKILL.md 作为面向 AI 的文件,README.md 作为面向 GitHub 的文件
- 如果用户想要纯粹的本地技能文件夹,将 README 视为本地发布目录中的临时文件
5. 同步到 GitHub
尽可能使用 SSH 或本地凭据助手。
推荐流程:
- - 克隆或更新一个干净的 GitHub 工作副本
- 复制最新的技能文件以及临时 README
- 审查将要提交的内容
- 使用清晰的信息提交
- 推送到目标仓库
这样可以使本地发布文件夹和 GitHub 同步文件夹各司其职。
6. 如果用户想要纯粹的技能文件夹,移除本地 README
在 GitHub 推送成功后:
- - 如果用户偏好的工作流程是干净的本地技能,更丰富的 GitHub 仓库,则从发布目录中删除本地的 README.md
- 保持 GitHub 版本中的 README 完好无损
7. 报告执行情况
清晰总结:
- - 哪些文件被清理或更改
- ClawHub 发布是否成功
- GitHub 推送是否成功
- 本地 README 是否随后被移除
- 用户仍需完成的任何后续步骤
决策规则
- - 如果技能仍为私有或包含敏感材料,在发布前停止。
- 如果用户只需要 GitHub 备份,跳过 ClawHub 发布。
- 如果用户想要干净本地文件夹的工作流程,在添加 README 之前先发布到 ClawHub。
- 如果缺少 ClawHub CLI,解释障碍,并仅在仍有帮助的情况下继续 GitHub 准备工作。
- 如果远程仓库已包含冲突的起始文件,仔细解决,而不是盲目覆盖。
- 如果重命名仓库、slug 或已发布的技能会破坏现有链接,在更改名称前暂停并确认。
常见失败模式
使用 references/publish-checklist.md 了解:
- - 发布前检查清单
- 常见错误
- 安全的凭据指导
- 建议的命令
- 干净的本地/GitHub 展示工作流程