Prepare and publish a local skill to ClawHub and GitHub using a workflow that keeps the local publish directory clean. Use this skill when the user wants to...
Integrations
Publish Skill
Try itPrepare, safety-review, version, commit, and publish local Codex skills through a GitHub-backed release flow and ClawHub CLI. Use when the user asks to host,...
What it does
Prepare, safety-review, version, commit, and publish local Codex skills through a GitHub-backed release flow and ClawHub CLI. Use when the user asks to host,...
The skill document
Publish Skill
Overview
Use this skill to move a local Codex skill from a working folder to a published, versioned artifact. Keep GitHub as the source of truth, run a local safety review before publication, and use ClawHub only after authentication and command details are clear.
Local Defaults
- Default GitHub account:
jichengkai. - Default GitHub profile:
https://github.com/jichengkai. - Prefer creating and pushing skill repositories under
jichengkaiunless the user explicitly names a different owner or organization. - Treat this as a local identity preference only. It does not prove authentication and does not replace
gh auth login, Git credentials,clawhub login, orCLAWHUB_TOKEN.
Boundaries
- Never ask for or expose GitHub passwords, ClawHub tokens, API keys, SSH private keys, or recovery codes in chat.
- If authentication is missing, ask the user to complete
gh auth login,clawhub login, or secret setup locally; do not invent credentials. - Treat publishing commands as state-changing. Explain what will be published before running them, and stop if the target path is ambiguous.
- Verify current official ClawHub documentation before relying on exact CLI flags when network access is available or the user asks for a real publish.
- Do not publish a skill that reads sensitive directories, handles credentials, runs obfuscated code, or makes undisclosed network calls unless the user explicitly accepts the risk after review.
Workflow
-
Locate the target skill.
- Prefer an explicit path from the user.
- Otherwise check the current workspace, then
${CODEX_HOME:-$HOME/.codex}/skills/. - Read the target
SKILL.md,agents/openai.yamlif present, and a concise file listing before making decisions.
-
Validate the skill structure.
- Use the local skill validator when available:
/Users/jichengkai/.codex/skills/.system/skill-creator/scripts/quick_validate.py. - Confirm the skill has only needed files:
SKILL.md, optionalagents/, and purposefulscripts/,references/, orassets/. - Do not add
README.md,CHANGELOG.md, or other auxiliary docs inside the skill unless the publishing platform explicitly requires them.
- Use the local skill validator when available:
-
Run a pre-publish safety review.
- Run
python3 /scripts/review_skill.py. - Read
references/security-review.mdwhen the scanner reports findings, the skill contains executable code, or the user asks for a security pass. - Inspect scripts manually for destructive commands, credential access, hidden network behavior, and obfuscation.
- Run
-
Prepare the GitHub source repo.
- Read
references/publishing.mdfor the detailed GitHub and ClawHub flow. - Use
jichengkaias the default GitHub owner for local publishing unless the user overrides it. - Check repository status before editing or committing, and preserve unrelated user changes.
- Keep the repository history as the durable version record. If version metadata exists, bump it intentionally; otherwise use clear commit messages and release notes.
- Read
-
Publish or update.
- Use
clawhub skill publish --slug --name ""for a direct publish after auth is present; add--ownerfor an org owner. - For repeatable automation, add a GitHub Actions workflow only when the user asks, and use a GitHub secret named
CLAWHUB_TOKEN. - After publish, report the repository, commit, command run, result, and any manual auth step the user still needs.
- Use
Resource Guide
references/publishing.md: detailed commands, versioning choices, and GitHub Actions pattern.references/security-review.md: manual safety checklist and blocker definitions.scripts/review_skill.py: local scanner for secrets, sensitive paths, network behavior, obfuscation hints, and unexpected binaries.
Final Response Checklist
- Target skill path and repo path.
- Validation and safety-review result.
- Git commit or branch created, if any.
- Publish command run or exact manual command still needed.
- Remaining auth or secret setup, without exposing any secret values.
Related skills
将当前项目中的 Skill 发布到 GitHub 并同步到 ClawHub。新项目自动走完流程,已有仓库的项目会总结变更、确认提交信息和建议版本号。
Quickly open-source a local skill to GitHub (primary) and optionally clawhub.com. Workflow: slug pre-check, fork to opensourceskills, strip internal info, normalize SKILL.md, generate LICENSE/README, init git, push to GitHub with configurable token source, and optionally publish to clawhub. Use when the user says "open-source this skill", "把这个 skill 开源", "发到 github", "publish skill publicly", or "把本地 skill 发开源". Hard rules: never modify the original skill in place, never auto-add force/yes flags, never write tokens to git/remote/memory, and ask the user at decision points.
Publish-ready review for ClawHub skills and plugins. 在正式发布前揪出文件缺失、版本不一致、环境声明、安全风险和同质化问题。
技能发布 — 将已有 Skill 三平台同步推送到 GitHub + ClawHub + SkillHub。当用户说 技能发布到三平台/发布技能更新/迭代技能发布 时触发。⚠️ 本技能的行为范围(用户须知):① 推送代码到外部平台(GitHub/ClawHub/SkillHub),操作对外可见且可能不可逆 ② 同步到本地 TRAE 安装目录(会覆盖已有版本) ③ 在本地 docs/knowledge/ 追加发布日志。执行前会向用户确认。含安全审查、隐私清洗、版本号查重、仓库结构生成、ClawHub 自动文件排除、SkillHub dry-run 预检。Do NOT use for creating skill content, general coding, or non-skill projects.
Orchestrate a TaskFlow-managed ingestion job that validates, packages, and publishes an OpenClaw skill folder to the ClawHub registry, then verifies the published artifact. Use when a piece of digital content (an agent skill) must move through a durable multi-step flow and land in the ClawHub resource center in a reproducible way.