plugin-forge

GitHub

用于创建、脚手架生成或校验 Claude Code 插件的 Skill。支持生成符合规范的插件骨架,以及验证插件或整个市场是否符合内部规范(如标准库限制、钩子协议等)。

plugins/plugin-forge/skills/plugin-forge/SKILL.md s0912758806p/agentic-sop-to-work

触发场景

需要新建或 scaffold 一个 Claude Code plugin 需要 lint 既有 plugin 或整个 marketplace 以检查是否符合 house invariants

安装

npx skills add s0912758806p/agentic-sop-to-work --skill plugin-forge -g -y
更多选项

非标准路径

npx skills add https://github.com/s0912758806p/agentic-sop-to-work/tree/main/plugins/plugin-forge/skills/plugin-forge -g -y

不安装直接使用

npx skills use s0912758806p/agentic-sop-to-work@plugin-forge

指定 Agent (Claude Code)

npx skills add s0912758806p/agentic-sop-to-work --skill plugin-forge -a claude-code -g -y

安装 repo 全部 skill

npx skills add s0912758806p/agentic-sop-to-work --all -g -y

预览 repo 内 skill

npx skills add s0912758806p/agentic-sop-to-work --list

SKILL.md

Frontmatter
{
    "name": "plugin-forge",
    "description": "Use when creating, scaffolding, or linting a Claude Code plugin — generate a grammar-conformant plugin skeleton, or validate a plugin \/ whole marketplace against house invariants (manifest, frontmatter, stdlib-only, hook protocol, test harness). | 要新建 \/ scaffold 一個 Claude Code plugin,或 lint 既有 plugin \/ 整個 marketplace 是否符合房規時使用。",
    "argument-hint": "lint <plugin-dir> | lint --all --strict | new <name>"
}

plugin-forge — lint + scaffold Claude Code plugins

Invoked as /plugin-forge:plugin-forge [args] — arguments: $ARGUMENTS. Let ROOT="${CLAUDE_PLUGIN_ROOT}" (the sections below show the repo-relative paths used inside this marketplace's checkout; the installed plugin's are under $ROOT):

  • lint <plugin-dir> → python3 "$ROOT/pluginforge/lint.py" <plugin-dir> [--strict]
  • lint --all → python3 "$ROOT/pluginforge/lint.py" --all --strict (from the marketplace root)
  • new <name> → python3 "$ROOT/pluginforge/scaffold.py" <name>

Present the lint findings (HARD then SOFT) verbatim; for scaffold, report the new dir + next steps.

Lint

  • One plugin: python3 plugins/plugin-forge/pluginforge/lint.py <plugin-dir>
  • Whole marketplace: python3 plugins/plugin-forge/pluginforge/lint.py --all --strict
  • --strict adds house invariants (stdlib-only, verify.py, test_no_third_party). Exits 1 on any HARD.
  • Always on: vendored-core-drift (HARD) — a vendored _core/ or other GENERATED file was hand-edited, or is out of date with shared/sopcore/. Fix: edit the source, run python3 tools/sync_core.py.

Scaffold

  • python3 plugins/plugin-forge/pluginforge/scaffold.py <name> → a skeleton that passes lint --strict, shipping the shared core as <pkg>/_core/.
  • Then add it to marketplace.json + CI and flesh out the TODOs.

The lint report is a DRAFT; a human decides. HARD = fails CI; SOFT = advisory.

版本历史

  • 11ac66b 当前 2026-11-02 14:27

    版本从0.2.0升级至0.3.0:新增 vendored-core-drift 硬规则、agents frontmatter 和 userConfig 形状校验;scaffold 改为仅 skills-only 并支持 exec-form 钩子;新增 strict SOFT commands-dir 检查。

  • 248a01f 2026-07-05 14:55

同 Skill 集合

plugins/agentic-sop-kit/kit/skills/accept/SKILL.md
plugins/agentic-sop-kit/kit/skills/ai_claims/SKILL.md
plugins/agentic-sop-kit/kit/skills/be_api/SKILL.md
plugins/agentic-sop-kit/kit/skills/compute/SKILL.md
plugins/agentic-sop-kit/kit/skills/db_rows/SKILL.md
plugins/agentic-sop-kit/kit/skills/draft/SKILL.md
plugins/agentic-sop-kit/kit/skills/report/SKILL.md
plugins/agentic-sop-kit/kit/skills/verdict/SKILL.md
plugins/agentic-sop-kit/skills/agentic-sop/SKILL.md
plugins/agentic-sop-kit/skills/agentic-workflow-audit/SKILL.md
plugins/agentic-sop-kit/skills/six-rung-ladder/SKILL.md
plugins/agentic-sop-kit/skills/sop-flow/SKILL.md
plugins/alcoa-guard/skills/alcoa-guard/SKILL.md
plugins/second-opinion-honesty/skills/second-opinion/SKILL.md

元信息

文件数
0
版本
11ac66b
Hash
6a293685
收录时间
2026-07-05 14:55

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 15:40
浙ICP备14020137号-1