Skip to content

About

Permission tiers and gates for vertical AI skill packs — every skill declares read/draft/send, and send-tier skills must pass a declared gate.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

skill-pack-gate

Open-source your vertical's skills — with a gate on every skill that can act.

中国一家法律 AI 把 70 个技能全开源了——我们给每个技能都装上门禁,再开源。 (A legal AI company in China open-sourced all 70 of its skills. We put a gate on every skill, then open-sourced.)

A skill pack is only as safe as its most powerful skill. skill-pack-gate is a specification plus a validator for vertical skill packs: every skill in the pack manifest declares a permission tier — read, draft, or send — and a skill that can send, submit, or publish must declare a gate (who approves, what exactly is approved, what is logged first). No gate, no ship: the validator refuses the pack.

Demo (real output)

$ python -m skillpack_gate check packs/dealdesk-screening
== pack: packs/dealdesk-screening ==
[PASS] G1 pack: name/version/vertical/skills present
[PASS] G2 skill screen-deal: id/name/entry/tier/version present
[PASS] G3 skill screen-deal: tier='read'
[PASS] G4 skill screen-deal: entry skills/screen-deal/SKILL.md found
[PASS] G5 skill screen-deal: 1 evidence source(s) cited
[PASS] G8 skill screen-deal: no send capability
...
[PASS] G6 skill send-screening-memo: gate declared (human-approval)
-- PASS: 26 passed, 0 failed

$ python -m skillpack_gate check examples/bad-pack
== pack: examples/bad-pack ==
...
[FAIL] G6 skill send-anything: send-tier skill declares no gate — it must not ship
-- FAIL: 5 passed, 1 failed

Human review

git clone https://github.com/HUIIIM/skill-pack-gate && cd skill-pack-gate
python -m skillpack_gate check packs/dealdesk-screening examples/bad-pack
python -m pytest tests/ -q   # 9 passed

What's inside

  • SPEC.md — the pack manifest specification: tiers, the gate rule (G6), evidence discipline (G5), and versioning as the audit trail.
  • skillpack_gate/ — a dependency-free validator (Python 3.10+, stdlib only) enforcing rules G1–G8, with a CLI built for CI.
  • packs/dealdesk-screening/ — a working reference pack for real-estate deal screening: four read/draft skills and one send-tier skill behind a human-approval gate.
  • examples/bad-pack/ — a deliberately broken pack the validator must refuse.
  • tests/ — the validator's test suite, including one mutation test per rule.

Why tiers, why gates

Open skill collections answer "can an agent use this?" They rarely answer "what is this skill allowed to do — and who said so?" In a vertical pack the skills touch sensitive material and real counterparties, so the permission question is the product: read freely, draft visibly, send only through a gate a human can audit.

Context

In November 2026, Shanghai-based Zhihe AI open-sourced 70 legal AI skills alongside a local edition of its agent, at CIIE 2026 (GlobeNewswire, 2026-11-10). The company states it has almost a million users — a company-reported figure, not independently verified. The mechanism is worth copying; the permission layer is what this repository adds.

License

MIT — see LICENSE. Author: Jiahui Miao.

About

Permission tiers and gates for vertical AI skill packs — every skill declares read/draft/send, and send-tier skills must pass a declared gate.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages