npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@skill-tools/gen

v0.4.2

Published

Generate Agent Skills (SKILL.md) from OpenAPI specs, MCP servers, REST APIs, and text descriptions

Downloads

325

Readme

@skill-tools/gen

Generate Agent Skills (SKILL.md) from OpenAPI 3.x specifications, MCP servers, or plain text descriptions. Outputs spec-compliant files ready for validation with skill-tools.

Install

npm install -g @skill-tools/gen

Example Output

$ skillgen from-text deploy-vercel "Deploy web apps to Vercel"

Generates deploy-vercel/SKILL.md:

---
name: deploy-vercel
description: >-
  Deploy web apps to Vercel
---

# deploy-vercel

Deploy web apps to Vercel

With --check, the generated file is validated before writing:

$ skillgen from-text deploy-vercel "Deploy web apps to Vercel" --check --min-score 60
  deploy-vercel: 42/100
  Failed: score below minimum threshold (60). Files not written.

CLI Usage

# Generate from an OpenAPI spec (unified mode — one SKILL.md)
skillgen openapi ./petstore.yaml

# Generate per-endpoint skills
skillgen openapi ./petstore.yaml --mode per-endpoint

# Generate from a text description
skillgen from-text deploy-vercel "Deploy to Vercel"

# Generate from an MCP server
skillgen mcp --command node my-server.js

# Custom output directory
skillgen openapi ./api.json -o ./skills/

# Quality gate — only write files if score meets threshold
skillgen openapi ./api.json --check --min-score 70

# Analyze existing skills and suggest improvements
skillgen improve ./my-skill/

Modes

| Mode | Description | |------|-------------| | unified | Single SKILL.md covering all endpoints (default) | | per-endpoint | One SKILL.md per endpoint |

Quality Gate

All generation commands support --check and --min-score:

# Generate and validate — don't write if quality is too low
skillgen from-text my-api "My API skill" --check --min-score 60

The improve command analyzes existing skills and returns prioritized suggestions:

skillgen improve ./skills/ --format json

Programmatic API

import { generateFromOpenApi, generateFromText, checkGeneratedFiles, analyzeSkill } from '@skill-tools/gen';

// From OpenAPI spec file
const result = await generateFromOpenApi('./petstore.yaml', {
  mode: 'unified',
});

// From text description (always succeeds — returns GenerateResult directly)
const textResult = generateFromText(
  'deploy-vercel',
  'Deploy applications to Vercel',
  'Run `vercel deploy` in the project root.',
);
for (const [path, content] of textResult.files) {
  console.log(path, content);
}

// OpenAPI result may fail — check .ok first
if (result.ok) {
  for (const [path, content] of result.files) {
    console.log(path, content);
  }
}

// Quality-check generated files before writing
const check = checkGeneratedFiles(result.files, 70);
if (!check.meetsThreshold) {
  console.log('Quality too low:', check.scores);
}

// Analyze existing skills for improvements
const improvements = await analyzeSkill('./my-skill/');
for (const r of improvements) {
  console.log(r.name, r.currentScore.score, r.suggestions);
}

License

Apache-2.0