Sandbox
@motiful/skill-forge

Skill audit and publishing tool for agent skill roots

Skill Forge is a post-authoring pipeline for agent skills. It validates skill structure, scans for secrets and registration conflicts, checks README accuracy, and publishes to GitHub and supported skill directories.

45 stars3 forksShellUpdated 2mo ago
Who it's for

Builders who want to review, clean up, and publish skills for Claude Code, Codex, Cursor, Windsurf, or Copilot.

What it delivers

You can turn a local skill into a publishable repo without missing structure, security, or install issues.

What it does

Audit whole projects

Finds skills, rules, and agent instructions in a directory, then validates and fixes them one by one.

Extract skills from messy folders

Separates a skill from mixed prototype files, fixtures, and scripts without touching the rest of the lab.

Scan for security issues

Flags leaked API keys, private keys, credential files, and missing `.gitignore` entries before publishing.

Check registration conflicts

Detects broken links, shadowed symlinks, and copies that should be symlinks across agent skill roots.

Verify README and metadata

Checks trigger phrases, install commands, and claims against the actual skill behavior.

Publish to GitHub and agent roots

Pushes the repo and links one source of truth into Claude Code, Codex, Cursor, Windsurf, and Copilot skill directories.

How to get it

  1. 1Run
    npx skills add motiful/skill-forge -g
  2. 2Then tell your AI coding assistant
    "Review this skill"              — validate, scan, fix → local ready
    "Create a skill for X"           — build from scratch → local ready
    "Extract a skill from this folder" — triage messy prototype, extract skill cleanly
    "Audit this project"             — discover all skills + rules in a directory, classify, fix each
    "Publish this skill"             — any of the above + push to GitHub
  3. 3Run
    npx skills add motiful/skill-forge -g

README

Skill ForgeSkill Forge

From local experiment to installable, trustworthy skill — in one command.

Skills are code. Engineer them like it.

License: MIT Version Agent Skills


The Problem

The Agent Skills ecosystem has grown to 88K+ published skills (SkillsMP, skills.sh). Community audits estimate ~26% have security vulnerabilities. Most have descriptions that don't cover their actual trigger scenarios. There is no standard for what a "well-engineered skill" looks like.

If you haven't published yet — your skill is trapped in one project, can't be shared, and doesn't meet any platform's install standard. No README, no LICENSE, no proper structure, no discoverability.

If you already published — your repo might have issues you haven't noticed: leaked API keys in config files, missing .gitignore entries, structure that doesn't match the Agent Skills standard, or claims in the README that don't match what the skill actually does.

If you've been prototyping in a folder — your skill is mixed with test scripts, fixtures, and downloaded materials. You're not sure what's "the skill" vs scratch work, and you don't want to lose your lab while extracting.

The gap is not in authoring — AI agents can already help write skill content. The gap is in engineering: validating structure, scanning for security issues, checking description coverage, catching README claims that don't match actual capabilities, and publishing correctly.

What Skill Forge Does

  • Audits entire projects — point forge at any directory and it finds every skill, rule, and agent instruction, then fixes them one by one — turning loose tools into standalone, publishable repos
  • Extracts skills from prototype folders — point forge at a chaotic engineering area where you were testing a skill (mixed scripts, fixtures, deps), and it isolates the skill into a clean repo without touching your lab content
  • Detects registration conflicts — catches symlinks that shadow each other across platforms, broken links, and copies that should be symlinks — before they cause silent failures
  • Publishes to five platforms at once — pushes to GitHub, then detects Claude Code, Codex, Cursor, Windsurf, and GitHub Copilot skill directories and symlinks to one source of truth
  • Scans for security issues — finds leaked API keys, private keys, credential files, and missing .gitignore entries before they reach GitHub. Critical issues block push
  • Makes workflow skills actually get followed — detects multi-step skills that agents tend to skim, and adds step-by-step structure so agents execute your procedure instead of absorbing it as background knowledge
  • Validates structure and discoverability — checks that your skill's description, trigger phrases, and metadata are complete enough for agents to find and correctly activate it
  • Keeps your README honest — flags claims that exceed what your skill actually does, catches hardcoded paths, and verifies install commands
  • Converts rules into publishable skills — finds team rules buried in config files and packages them as portable, installable skills
  • Guides first-use setup — when a skill needs user decisions before it can operate (org name, default license), runs an interactive onboarding flow instead of silently using defaults

Token cost: Review ~10-25K | Create ~15-30K | Push ~1-2K. Excludes dependent skill invocations (readme-craft, self-review). No Python, no surprise costs.

Quick Start

npx skills add motiful/skill-forge -g

Then tell your AI coding assistant:

"Review this skill"              — validate, scan, fix → local ready
"Create a skill for X"           — build from scratch → local ready
"Extract a skill from this folder" — triage messy prototype, extract skill cleanly
"Audit this project"             — discover all skills + rules in a directory, classify, fix each
"Publish this skill"             — any of the above + push to GitHub

Usage

Say any of:

  • "Review this skill repo" — discover, validate, fix → local ready
  • "Audit my skill" — same as review
  • "Create a skill for X" — build from scratch → local ready
  • "Forge a skill from my notes" — same as create
  • "Extract a skill from this folder" — triage messy prototype → extract skill cleanly
  • "Turn my prototype into a skill" — same as extract
  • "Publish this skill" — forge + publish to GitHub
  • "Push this skill to GitHub" — same as publish

When to Load

You're doing...Need skill-forge?
Writing a skill's contentNo — focus on the domain, not formatting
Ready to validate or publishYes — "publish this skill" or "forge a skill"
Reviewing an existing repoYes — "review this skill repo"
Cleaning up a project with mixed skills, rules, and agent instructionsYes — "audit this project" or point forge at the directory

skill-forge is a post-authoring tool. Load it when you're done writing, not while writing.

Example: Forge + Publish self-review

This is a sample flow, not a transcript from one specific machine.

$ "Publish self-review to GitHub"

Step 0: Config
  ✓ ~/.config/skill-forge/config.md found
  ✓ skill_workspace: ~/skills/, github_org: motiful

Step 3: Validate (review path — skill already exists)
  ✓ name: self-review (kebab-case, 11 chars)
  ✓ description: single-line, 133 chars
  ✓ body: 226 lines (< 500)
  ✓ references/dimensions.md exists and is linked
  ✓ README audited by readme-craft — passed
  ✓ no junk files, no leaked secrets

Fix → Local Ready
  ✓ git init + initial commit
  ✓ linked ~/.claude/skills/self-review → ~/skills/self-review/
  ✓ all local ready criteria met

Push
  ✓ confirmed: motiful/self-review, public
  ✓ gh repo create motiful/self-review --public --source=. --push
  ✓ Published — install with: npx skills add motiful/self-review

Install

npx skills add motiful/skill-forge -g

Works with Claude Code, Codex, Cursor, Windsurf, GitHub Copilot, and other Agent Skills adopters.

Manual registration (clone + symlink):

git clone https://github.com/motiful/skill-forge ~/skills/skill-forge

# Register only in roots you actually use.
ln -sfn ~/skills/skill-forge ~/.claude/skills/skill-forge      # Claude Code
ln -sfn ~/skills/skill-forge ~/.agents/skills/skill-forge      # Codex
ln -sfn ~/skills/skill-forge ~/.copilot/skills/skill-forge     # VS Code / GitHub Copilot
ln -sfn ~/skills/skill-forge ~/.cursor/skills/skill-forge      # Cursor
ln -sfn ~/skills/skill-forge ~/.codeium/windsurf/skills/skill-forge  # Windsurf

Prerequisites

  • Git (required)
  • Node.js (required for npx skills add)
  • GitHub CLI (gh) — required for publishing. Forge works without it for local validation

Dependencies

Installed automatically by scripts/setup.sh on first run:

DependencyPurpose
motiful/readme-craft3-tier layout, badge selection, dark/light logo for README generation
motiful/rules-as-skillsRule-skill methodology: three-layer model, format, in-repo patterns
motiful/self-review4-pillar, 6-dimension alignment audit for skill quality validation

Skill Forge validates and publishes — it does not write skill content or test domain effectiveness. Those judgments depend on the author, the domain, and real usage.

Skill Philosophy

Skills are the next unit of reusable intelligence — loadable capability extensions that give AI agents structured expertise a base model doesn't have. skill-forge defines six quality dimensions (discoverable, reliable, efficient, trustworthy, bounded, valuable) and validates against them using prompts instead of scripts — keeping skills platform-agnostic and installable without runtimes.

Vision, quality dimensions, and technical routeWhy each check exists — pain points and rationaleAttention, control, and feedback — lessons from validation at scale

Contributing

Bug reports, validation rule ideas, and reference doc improvements are welcome. Open an issue or pull request on GitHub.

License

MIT


Forged with Skill Forge · Crafted with Readme Craft

Files in the repo

Repository payload10 top-level entries
  • .agents
  • .claude
  • .github
  • docs
  • references
  • scripts
  • .gitignore
  • LICENSE
  • README.md
  • SKILL.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

JuliusBrussee/
caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

105k
1 add
MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
stablyai/
orca

Orca is the ADE for working with a fleet of parallel agents. Run any coding agent with your own subscription. Available on desktop, mobile and remote runtime.

66k

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

132k

Never stop coding. Free MIT AI gateway: one endpoint, 352 providers (150+ free), 1200+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 550+ contributors

64k
headroomlabs-ai/
headroom

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

71k