Turn any local project into a clean, publishable ClawHub skill.
Complementary to skill-creator (build from scratch) — skill-distill extracts from existing code.
ToolWhat it doesCommandscanDetect hardcoded paths, secrets, local config referencesbash skills/skill-distill/scripts/scan.sh <project-dir>``scaffoldGenerate standard skill directory structure from a projectbash skills/skill-distill/scripts/scaffold.sh <project-dir> <skill-name>``validatePre-publish check: structure, frontmatter, no local tracesbash skills/skill-distill/scripts/validate.sh <skill-dir>
text
scan → fix issues → scaffold → validate → clawhub publish
clawhub CLI for the final publish stepbash
bash skills/skill-distill/scripts/scan.sh <project-dir>
扫描硬编码路径、敏感信息、本地配置引用。输出问题列表。
根据 scan 输出,逐项修复:
bash
bash skills/skill-distill/scripts/scaffold.sh <project-dir> <skill-name>
从项目目录生成标准 skill 目录结构。
bash
bash skills/skill-distill/scripts/validate.sh <skill-dir>
检查目录结构、frontmatter、无残留本地痕迹。还会检测 frontmatter 的 name/description 是否包含中文字符(ClawHub 要求全英文)。PASS 才可发布。
bash
clawhub publish <skill-dir>
详见 references/checklist.md。