The release pipeline for AI agent skills: scaffold → preflight → version → changelog → release notes.
The agent-skills ecosystem exploded from a handful of repositories to thousands of skills in months, and quality went everywhere at once. NVIDIA's 2026 analysis of 31,000 public skills found 26.1% contained vulnerabilities and 5.2% showed likely malicious intent - mostly prompt-injection prose, hardcoded secrets and unsafe scripts that nobody gated before publishing.
Skill Foundry attacks the problem at the source: it is a release pipeline that makes quality and safety gates unavoidable while a skill is being built, then handles versioning, the changelog and the GitHub release - offline, in pure Python, with zero dependencies.
# 1. scaffold a new skill (five archetypes)
python scripts/foundry.py init commit-message-polisher --archetype tool
# 2. author it, then gate it
python scripts/foundry.py preflight commit-message-polisher --report preflight-report.md
# 3. iterate until the verdict is PASS, then cut the release
python scripts/foundry.py bump commit-message-polisher --patch
python scripts/foundry.py changelog commit-message-polisher
python scripts/foundry.py release-notes commit-message-polisher
A fresh scaffold is intentionally red: preflight stays at FAIL until
the marked placeholder lines are replaced and a first release is recorded.
A finished example ships in examples/word-stats
with its passing preflight report - 24/24
gates green.
| ID | Gate | Severity |
|---|---|---|
| PF-01 | SKILL.md present | BLOCKER |
| PF-02 | Frontmatter has name and description | BLOCKER |
| PF-03 | Name is kebab-case and matches the folder | BLOCKER |
| PF-04 | Description length 50-1024 chars | MINOR |
| PF-05 | SKILL.md under 500 lines | MAJOR |
| PF-06 | No scaffold placeholders | MAJOR |
| PF-07 | File sizes are sane | MAJOR |
| PF-08 | Internal markdown links resolve | MAJOR |
| PF-09 | Referenced scripts exist | MAJOR |
| PF-10 | No prompt-injection markers | BLOCKER |
| PF-11 | No invisible or bidi characters | BLOCKER |
| PF-12 | No obfuscation blobs | MAJOR |
| PF-13 | No destructive shell patterns | BLOCKER |
| PF-14 | No unsafe execution primitives | MAJOR |
| PF-15 | No hardcoded secrets | BLOCKER |
| PF-16 | Network use is declared | MINOR |
| PF-17 | No reach outside the project | MAJOR |
| PF-18 | No install-time execution | MINOR |
| PF-19 | License present | BLOCKER |
| PF-20 | README with a Usage section | MAJOR |
| PF-21 | Changelog records a release | MAJOR |
| PF-22 | Version is valid semver | MAJOR |
| PF-23 | No credential files | BLOCKER |
| PF-24 | Python scripts parse cleanly | BLOCKER |
Every gate, its patterns and its fix are documented in
references/quality-gates.md. Findings are
file-and-line precise. Line-level foundry:ignore suppressions exist for
quoting examples, are always listed in the report, and invisible-character
findings cannot be suppressed at all.
$ python scripts/foundry.py preflight examples/word-stats
Skill Foundry preflight v1.0.0
Skill: word-stats 0.1.0
Path: /home/dev/skill-foundry/examples/word-stats
[ok ] PF-01 STRUCTURE SKILL.md present
[ok ] PF-02 STRUCTURE frontmatter: name and description
...
24 checks: 24 passed, 0 failed (0 blockers, 0 major, 0 minor)
Verdict: PASS - READY TO SHIP
Exit codes are CI-friendly: 0 ready or notes only, 1 major findings,
2 blocking findings; --strict promotes minors. JSON reports
(--json report.json) carry the full machine-readable result, gates and
findings included.
- Offline - no network calls, no network libraries, ever. The repo proves it on itself: PF-16 runs green over this very source.
- Static - preflight reads code as text and never executes it; the only
external command is
git, invoked with a fixed argument vector. - Non-destructive -
initrefuses to overwrite existing directories; reports are written only where you ask. - Fail closed - if a checker itself crashes, that check is reported as a blocker instead of silently passing.
python scripts/selftest.py builds throwaway fixtures - including
deliberately dangerous ones - and asserts that every gate fires when it
should and stays silent when it should not: 37 tests across structure,
content, security, release readiness, the scaffold, the full
bump → changelog → release-notes pipeline (over a real temp git
repository) and the CLI. CI runs the suite on Python 3.9-3.13 and then
requires the repository to pass its own gates.
- skill-foundry (this repo) - author and release: scaffold, gate, version, changelog, publish.
- skill-sentinel - audit installed skill libraries; Lighthouse-style scoring and repair guidance.
- agent-sparring - red-team the agent itself: 85 adversarial probes across OWASP LLM-mapped attack classes, with a hardening playbook.
Copy this folder into your agent's skills directory. Requires Python 3.9+ and nothing else - no third-party packages at any point.
See the workflow in SKILL.md, the archetype decision table in references/archetypes.md, and the release checklist (tags, GitHub releases, topics, marketplace listing) in references/release-playbook.md.