360 Secure SkillHub
360 安全技能中心

ExpertPack CLI

该 Skill 说明如何在本地克隆的 ExpertPack 仓库中使用 tools/validator/ 下的 Python 标准库脚本:校验包合规性、自动修复链接与 frontmatter、去除失效 wikilink、导出 _graph.yaml,并生成去除 frontmatter 的部署副本。全部操作仅针对本地文件,无网络调用与第三方依赖。

brianhearn
brianhearn
热度 38.44
最近更新 2026-05-11 17:42:52
分类:效率依赖:代码执行 / 读写文件应用场景:工作流 / 文件转换

安装技能

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

执行命令安装此 skill: npx secure-skills-cli add expertpack-cli
Metadata
name
expertpack-cli
description
Run ExpertPack CLI tools for validating, fixing, graphing, and deploying packs. Use when: running ep-validate, ep-doctor, ep-graph-export, ep-strip-frontmatter, or ep-fix-broken-wikilinks on a local pack. Triggers on: 'validate pack', 'ep-validate', 'ep-doctor', 'fix pack errors', 'graph export', 'ep-graph-export', 'strip frontmatter', 'deploy pack', 'ep-strip-frontmatter'. Requires the ExpertPack repo cloned locally (github.com/brianhearn/ExpertPack) — tools live in tools/validator/.

ExpertPack CLI

Local Python tools for validating, fixing, and deploying ExpertPacks. All tools operate on local files only — no network calls, no external dependencies beyond Python stdlib.

Tool location: ExpertPack/tools/validator/ in the cloned repo (github.com/brianhearn/ExpertPack).

Tools

  • ep-validate.py — 19-check compliance validator. Must pass 0 errors before committing.
  • ep-doctor.py — auto-fixes common issues (links, frontmatter, prefixes). Always dry-run first.
  • ep-fix-broken-wikilinks.py — removes broken wikilinks. Safe for composites.
  • ep-graph-export.py — generates _graph.yaml from wikilinks + related: frontmatter.
  • ep-strip-frontmatter.py — produces a deploy copy with frontmatter stripped (source files untouched).

Recommended Workflow

ep-doctor dry-run → ep-doctor --apply → ep-validate → ep-strip-frontmatter (deploy copy) → commit

For full command syntax and flags: read {skill_dir}/references/cli-commands.md.