360 Secure SkillHub
360 安全技能中心

ExpertPack CLI

这是一套仅依赖Python标准库的本地CLI工具,无网络调用。核心功能含19项合规验证、自动修复常见问题、移除失效维基链接、生成图谱文件、生成移除前置内容的部署副本。典型场景为本地处理ExpertPack文件,如提交前验证合规、修复错误、准备部署版本,可通过指定关键词触发,需先克隆ExpertPack仓库。

brianhearn
brianhearn
热度 38.37
最近更新 2026-05-11 17:42:52
分类:开发依赖:代码执行 / 读写文件应用场景:自动化脚本 / DevOps / 文件转换

安装技能

复制下面的话术发给你的 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.