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

@mapache47/skill-it

v0.0.3

Published

Transform web documentation into structured, actionable AI skill files. Pass a URL — get a complete markdown skill.

Readme

skill-it

Si la IA no conoce un tema, es porque ese tema no existe todavía.

Transforma cualquier documentación web en skills reutilizables para agentes de IA. Pasa una URL — obtén un archivo markdown completo listo para usar.


Mentalidad Skill-it

La IA solo puede responder lo que sabe. Si no conoce una tecnología, un patrón o una herramienta, falla. skill-it cierra ese gap: toma documentación cruda de la web y la convierte en conocimiento estructurado que cualquier agente puede consumir.

La filosofía es simple:

  • Si la IA no sabe algo, enséñaselo.
  • Si no existe documentación clara, créala.
  • Si el conocimiento está disperso, condénsalo.

Un skill no es un prompt. Es un módulo de conocimiento reutilizable, modulable y optimizado para razonamiento.


Estructura del Proyecto

skill-it/
├── index.ts                    # CLI entrypoint — punto de entrada del paquete npm
├── scripts/
│   ├── make-skill.ts           # Orquesta el flujo: lee agente → genera skill
│   └── read-agent.ts           # Detecta carpeta de agentes (.agents, .claude)
├── services/
│   └── writeskill.ts           # Clase con métodos async — llama a la API y escribe el archivo
├── types/
│   └── skill-type.ts           # Contrato de tipo para la respuesta de la API
├── utils/
│   └── arg-to-obj.ts           # Parser de argumentos CLI a objeto
│
├── api/                        # Backend (Elysia + Bun, desplegado en Vercel)
│   ├── index.ts                # Servidor HTTP — rutas / y /skill
│   ├── lib/
│   │   └── client.ts           # Cliente Cerebras SDK configurado
│   └── src/
│       ├── services/
│       │   └── skill-service.ts    # Clase SkillServices — handler async con IA
│       ├── models/
│       │   └── skill-model.ts      # Contrato SkillServicesContract
│       ├── utils/
│       │   └── markdown-formatter.ts  # Limpieza y formato del markdown generado
│       └── data/
│           ├── context.ts                    # System prompt y contexto para la IA
│           ├── ai-skill-engineer-knowledge.md # Conocimiento sobre cómo crear skills
│           └── web-research-scraping-knowledge.md  # Conocimiento sobre scraping de docs
│
├── web/                        # Frontend (React + Vite + Tailwind v4)
│   └── src/
│       ├── components/
│       │   ├── App.tsx         # Componente principal — hero, filtros, grid de skills
│       │   └── SkillCard.tsx   # Card individual de skill
│       ├── hooks/
│       │   └── data.ts         # Skills de muestra y categorías
│       ├── index.css           # Tailwind v4 + tema custom
│       └── main.tsx            # Entry point de React
│
├── package.json                # Paquete npm — bin "skill-it"
├── tsconfig.json               # Config TypeScript ESM
├── vercel.json                 # Deploy API en Vercel con runtime Bun
└── netlify.toml                # Deploy frontend en Netlify

Arquitectura

CLI (index.tsscripts/services/)

El CLI es el punto de entrada publicado como paquete npm. El flujo:

index.ts
  └→ makeSkill()
       ├→ readAgents()          // Detecta .agents/ o .claude/
       └→ WriteSKill.createFile()  // Llama a la API, escribe el .md

WriteSKill (services/writeskill.ts) es una clase con un método estático async que:

  1. Parsea los argumentos CLI (url, prompt)
  2. Hace fetch al endpoint /skill de la API
  3. Espera la respuesta JSON (await responseAPI.json())
  4. Escribe el archivo .md en la carpeta del agente
export class WriteSKill {
  static async createFile({ skillFolder }: { skillFolder: string }) {
    const responseAPI = await fetch(`https://skill-it-xsnzc3g8aec4.mapas48a.deno.net/skill?url=...&prompt=...`)
    const data = await responseAPI.json() as Skilltype
    await writeFile(pathSkill, data.messages, 'utf-8')
  }
}

API (api/ — Elysia + Cerebras)

Backend desplegado en Vercel con runtime Bun. Expone un único endpoint:

GET /skill?url={url}&prompt={task}

SkillServices (api/src/services/skill-service.ts) es una clase con un método estático async que:

  1. Valida que exista url en los query params
  2. Construye el prompt con contexto pre-cargado (ai-skill-engineer-knowledge.md + web-research-scraping-knowledge.md)
  3. Llama a Cerebras (await client.chat.completions.create(...))
  4. Formatea el markdown con formatMarkdownResponse()
  5. Retorna { success, name, messages }
export class SkillServices {
  static async handlerGetSkill({ params }: SkillServicesContract) {
    const ia = await client.chat.completions.create({
      model: 'gpt-oss-120b',
      messages: [
        { role: 'system', content: `${preContenxt[0]} ${preContenxt[1]} ${SYSTEM_PROMPT}` },
        { role: 'user', content: `URL: ${params.url}\n\nTASK: ${task}` }
      ]
    })
    return status(200, { success: true, name, messages: raw })
  }
}

Web (web/ — React + Vite + Tailwind v4)

Frontend estático desplegado en Netlify. Muestra los skills generados con:

  • Hero section con gradiente animado
  • Búsqueda en tiempo real por nombre, descripción o tags
  • Filtros por categoría
  • Grid responsive de SkillCards

Modelos de Datos

Skilltype — Respuesta de la API:

interface Skilltype {
  success: boolean
  name: string
  messages: string
  error?: string
}

SkillServicesContract — Contrato del servicio:

interface SkillServicesContract {
  params: {
    url: string
    prompt?: string
  } | Record<string, string>
}

Skill — Estructura de skill en el frontend:

interface Skill {
  id: string
  name: string
  description: string
  category: string
  url: string
  tags: string[]
  date: string
}

Comandos

CLI

# Instalar dependencias
bun install

# Modo desarrollo (watch)
bun run dev

# Build para publicar
bun run build

# Usar directamente
bun run index.ts url https://bun.sh/docs

# Con prompt personalizado
bun run index.ts url https://bun.sh/docs prompt "Enfócate en los comandos CLI"

# Ver ayuda
bun run index.ts help

API

cd api
bun install
bun run dev    # Servidor en http://localhost:3000

Web

cd web
bun install
bun run dev    # Dev server en http://localhost:5173
bun run build  # Build de producción

Deploy

| Servicio | Qué despliega | Config | |----------|--------------|--------| | Vercel | API backend (Bun runtime) | vercel.json | | Netlify | Frontend estático (web/dist) | netlify.toml |


Stack

| Capa | Tecnología | |------|-----------| | CLI | TypeScript, Bun, chalk | | API | Elysia, Cerebras SDK, Bun | | Frontend | React 19, Vite 8, Tailwind v4 | | Lenguaje | TypeScript (ESM) |


Licencia

MIT — @mapas48