A local-first toolkit for turning repeatable AI-agent workflows into validated, publishable skills.
Agent Skill Foundry is for developers who use Codex, Claude Code, Cursor, Copilot, or other coding agents and want reusable workflow skills that feel engineered, not improvised.
Agent skills are becoming a practical way to package repeatable workflows, but many skills ship as vague prompt files: broad triggers, unclear inputs, missing validation, no examples, and unsafe edge cases. That makes agents harder to route, harder to trust, and harder to reuse.
initcommand for scaffolding a professionalSKILL.mdfolder.validatecommand for scoring trigger clarity, structure, examples, validation, and safety boundaries.- Markdown and JSON reports for human review or CI.
- Good and bad example skills for quick comparison.
- Codex-focused operating instructions in
AGENTS.md. - No network calls, no API key, no runtime dependencies.
npm install
npm test
node src/cli.mjs validate examples/good-skill --out validation/good-skill-report.mdCreate a new skill:
node src/cli.mjs init examples/generated/release-notes --name release-notes
node src/cli.mjs validate examples/generated/release-notes- Draft or scaffold a skill with
node src/cli.mjs init. - Fill in the workflow, inputs, outputs, validation, and safety boundaries.
- Add examples and references when they reduce ambiguity.
- Run
node src/cli.mjs validate <skill-dir> --out validation/report.md. - Ask Codex to fix the highest-severity findings and rerun the validator.
Tell Codex:
Read AGENTS.md and docs/USAGE.md first. Validate examples/good-skill, then improve a new skill scaffold until the score is publishable. Do not broaden the trigger or add destructive commands.
Codex should read first:
AGENTS.mddocs/USAGE.mdsrc/core.mjsexamples/good-skill/SKILL.md
Commands Codex should run:
npm test
node src/cli.mjs validate examples/good-skill --out validation/good-skill-report.mdExpected outputs:
- A quality score.
- A Markdown report.
- Targeted fixes to
SKILL.md, examples, or references.
Codex should not:
- Add network services or dependencies without a clear reason.
- Claim a skill is publishable without running validation.
- Add destructive git, secret handling, or platform-submission behavior.
Use Agent Skill Foundry to audit this SKILL.md and make it publishable without changing the workflow's scope.
Create a new skill for repo onboarding, include examples and validation, then run the quality gate.
Review this skill for trigger specificity, output quality, and safety boundaries. Produce a report and a patch.
agent-skill-foundry/
src/ CLI and validation engine
tests/ Node test suite
docs/ Setup, usage, architecture, roadmap
examples/ Good, bad, and generated skills
validation/ Generated reports
screenshots/ Mock report screenshot
The MVP is convention-driven and does not require a config file. The validator reads a skill directory containing SKILL.md and optional references/, examples/, and scripts/ folders.
Future versions may support skill-foundry.config.json for custom section requirements, scoring weights, and organization policies.
publishable: 91/100 (2 findings)
Markdown reports include:
- Score and grade.
- Findings with severity, evidence, and recommendation.
- Codex remediation guidance.
- Configurable scoring rules.
- Compatibility export checks for Codex, Claude Code, Cursor, and Copilot.
- CI-friendly GitHub Action example.
- Skill marketplace readiness checklist.
- Optional JSON schema validation for richer frontmatter.
MIT. See LICENSE.