setup-project

Configura proyectos nuevos con scripts estandarizados y detecta CLIs disponibles.


Triggers

Frases que activan el skill
“configurar proyecto”
“setup”
“inicializar proyecto”
“agregar npm run check”
“qué CLIs tengo”

¿Qué hace?

  1. Detecta tipo de proyecto (Node.js, Python, Go)
  2. Agrega script check basado en scripts existentes
  3. Detecta CLIs instalados (gh, supabase, vercel, etc.)
  4. Verifica workflows de GitHub Actions
  5. Actualiza/crea CLAUDE.md con CLIs disponibles

Detección de proyecto

Archivo Tipo de proyecto
package.json Node.js / Bun
pyproject.toml Python (moderno)
requirements.txt Python (legacy)

Script check (Node.js)

El skill analiza los scripts existentes y compone un npm run check:

Script existente Se incluye en check
lint npm run lint
typecheck npm run typecheck
test npm run test
build npm run build

Ejemplo generado:

{
  "scripts": {
    "check": "npm run lint && npm run typecheck && npm run test && npm run build"
  }
}

Detección de CLIs

Ver references/cli-detection.md para tabla completa de CLIs y comandos.

El skill detecta CLIs comunes:

CLI Descripción
gh GitHub CLI
supabase Supabase CLI
vercel Vercel CLI
wrangler Cloudflare Workers CLI
turso Turso database CLI
bun Bun runtime
pnpm Fast package manager
docker Container runtime

Output de detección:

CLI Detection Results
=====================

| Status | CLI | Description |
|--------|-----|-------------|
| ✓ | gh | GitHub CLI |
| ✓ | bun | Bun runtime |
| ✗ | supabase | Supabase CLI |

Instalación de CLIs faltantes

Si hay CLIs faltantes, el skill ofrece comandos de instalación:

CLI Comando
gh brew install gh
supabase brew install supabase/tap/supabase
vercel npm i -g vercel
wrangler npm i -g wrangler
turso brew install tursodatabase/tap/turso
bun curl -fsSL https://bun.sh/install \| bash
pnpm npm i -g pnpm
docker brew install --cask docker

GitHub Actions

El skill verifica si existen workflows:

ls .github/workflows/*.yml

Si no hay workflows:

  • Sugiere ejecutar /github-actions skill
  • Ofrece crear CI básico

Si hay workflows:

  • Reporta los detectados

Output final

Setup Complete
==============

Project Type: Node.js
Check Script: Added to package.json
  - Includes: lint, typecheck, test, build

Available CLIs: 5/8
  - Installed: gh, bun, pnpm, docker, vercel
  - Missing: supabase, wrangler, turso

GitHub Actions: ✓ ci.yml detected

CLAUDE.md: Updated with available CLIs

Herramientas disponibles

  • Bash - Ejecutar comandos
  • Read - Leer package.json
  • Write - Crear archivos
  • Edit - Modificar package.json
  • Glob - Buscar archivos