360 Secure SkillHub
360 安全技能中心

Skill Compiler

skill-compiler 是一个编译优先的技能构建工具:调用脚本把 SKILL.md 编译成 SKILL.struct.json(运行时结构)和 SKILL.toon(精简投影)两个同级产物,支持批量编译目录下的所有技能文档,提供依赖环境检查,并整理出可发布的技能文件夹形态,同时约定 exe/execute 触发词与产物优先的解析顺序。

shaoyanji
shaoyanji
热度 65.85
最近更新 2026-05-11 17:29:37
分类:开发依赖:代码执行 / 读写文件应用场景:DevOps / 工作流 / 文件转换

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add skill-compiler
Metadata
name
skill-compiler
description
Compile SKILL.md files into runtime artifacts (SKILL.struct.json and SKILL.toon), verify freshness/health, and prepare portable publish-ready skill folders for ClawHub-style registries.
contract_version
v0
quick_cmd
skills/public/skill-compiler/scripts/compile-skill --skill skills/todoist/SKILL.md
risk_level
safe
capabilities
{"bins":["bash","mdquery","jq","toon"],"network":false,"secrets":[]}
dry_run_cmd
skills/public/skill-compiler/scripts/check-env
compat
{"os":["linux","macos"],"arch":["x64","arm64"],"shell":["bash"]}
owner
matt
last_tested
"2026-03-08T00:00:00.000Z"
rollback
remove skills/public/skill-compiler and revert commit
category
ops
inputs_min
[]
cost_hint
low

skill-compiler

Compile-first workflow for skill runtime performance.

Commands

# Check local dependencies
skills/public/skill-compiler/scripts/check-env

# Compile one skill doc
skills/public/skill-compiler/scripts/compile-skill --skill skills/todoist/SKILL.md

# Compile all SKILL.md under a root (default: ./skills)
skills/public/skill-compiler/scripts/compile-all --root skills

Outputs

For each input SKILL.md, compiler generates sibling artifacts:

  • SKILL.struct.json (canonical runtime structure)
  • SKILL.toon (token-lean projection)

Entrypoint trigger setup (exe / execute)

Preferred runtime trigger words:

  • exe <skill>
  • execute <skill>

Resolution order:

  1. SKILL.struct.json / SKILL.toon (artifact-first)
  2. quick_cmd from frontmatter
  3. SKILL.md fallback

Use bundled helper:

skills/public/skill-compiler/scripts/exe skill-compiler

Publish-ready shape

This folder is ClawHub-ready once versioned:

  • SKILL.md
  • skill.yaml
  • scripts/*

Optional publish command:

clawhub publish ./skills/public/skill-compiler \
  --slug skill-compiler \
  --name "Skill Compiler" \
  --version 0.2.0 \
  --changelog "Add exe/execute trigger docs and artifact-first entrypoint"