Skip to content

About

Scaffold, gate, version and release AI agent skills: 24 preflight checks catch prompt injection, invisible characters, unsafe code and secrets before anything ships. Offline, zero-dependency, CI-ready.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

4 Commits

Folders and files

Repository files navigation

Skill Foundry

The release pipeline for AI agent skills: scaffold → preflight → version → changelog → release notes.

CI Python 3.9+ Zero dependencies License: MIT

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.

Quickstart

# 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.

The 24 preflight gates

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.

Example output

$ 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.

Guarantees

  • 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 - init refuses 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.

Proven by its own tests

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.

Part of a skills lifecycle suite

  • 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.

Install

Copy this folder into your agent's skills directory. Requires Python 3.9+ and nothing else - no third-party packages at any point.

Usage

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.

License

MIT

About

Scaffold, gate, version and release AI agent skills: 24 preflight checks catch prompt injection, invisible characters, unsafe code and secrets before anything ships. Offline, zero-dependency, CI-ready.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages