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

@cpandares/leadguard

v1.2.1

Published

Agente PM Técnico y Supervisor de Arquitectura CLI

Readme

🛡️ LeadGuard CLI

Agente PM Técnico y Supervisor de Arquitectura Multi-Proveedor

LeadGuard es un CLI impulsado por IA diseñado para actuar como un Project Manager Técnico y Lead Architect. Escanea automáticamente el contexto de tu repositorio de código (lenguajes, ORMs, esquemas de BD, archivos Docker, manifiestos y variables de entorno) y realiza un proceso de Discovery interactivo con perfiles técnicos especializados para prevenir suposiciones, aclarar ambiguëdades y generar especificaciones técnicas (SPECs) atómicas e implacables.


📋 Tabla de Contenidos


✨ Características Principales

  • 🔌 Arquitectura Multi-Proveedor (Strategy Pattern): Soporta OpenCode Go, OpenAI, Anthropic (Claude), Google (Gemini) y servidores compatibles con OpenAI (Ollama, vLLM, LocalAI).
  • 🎯 Perfiles Técnicos Especializados: Selección interactiva de rol técnico con directivas de auditoría inyectadas al System Prompt.
  • 💾 Persistencia de Configuración Local: Guarda el rol seleccionado del proyecto en .leadguard/config.json.
  • 🔍 Escaneo Automático de Repositorio: Detecta manifiestos (package.json, composer.json, go.mod, Cargo.toml, etc.), artefatos de BD (Prisma, SQL, migraciones) e infraestructura (Docker, Kubernetes, Terraform).
  • ❓ Discovery Interactivo (Sin Suposiciones): Se bloquea (BLOCKED) si detecta falta de contexto explícito y solicita aclaratorias antes de generar el SPEC.

🎭 Perfiles Técnicos Especializados

Al ejecutar LeadGuard por primera vez en un proyecto, seleccionarás uno de los siguientes perfiles técnicos:

| Rol Key | Perfil Técnico | Enfoque de Auditoría | | :--- | :--- | :--- | | SAP_B1_SPECIALIST | SAP Business One & Enterprise Data | Tablas OITM/OCRD/OOCR, consistencia ERP, inventarios, transacciones ACID y Service Layer / DI API | | SQL_DB_ARCHITECT | SQL & Database Performance Architect | Normalización 3NF, índices compuestos, prevención de deadlocks/N+1, planes de ejecución y migraciones | | FRONTEND_REACT | Frontend & React Ecosystem | Modularidad de componentes, Custom Hooks, optimización de renderizado, accesibilidad y estado | | BACKEND_DISTRIBUTED | Backend & Distributed Systems | Contratos de API REST/GraphQL, idempotencia, resiliencia, colas de mensajería (RabbitMQ/Kafka) | | GENERAL_TECH_LEAD | Full-Stack General Tech Lead | Principios SOLID, Clean Architecture, gobierno técnico y trazabilidad integral del alcance |


🚀 Inicio Rápido

Ejecución directa con npx (Sin instalación)

npx @cpandares/leadguard task "Crear módulo de autenticación OAuth2"

Instalación Global

npm install -g @cpandares/leadguard

# Ejecutar en cualquier proyecto
leadguard task "Crear endpoint de conciliación contable"

⚙️ Configuración Multi-Proveedor (.env)

Configura tus credenciales en el archivo .env en la raíz de tu proyecto:

Tabla de Variables de Entorno

| Variable | Requerida | Valores Soportados | Descripción | | :--- | :---: | :--- | :--- | | AI_PROVIDER | No | opencode (default), openai, anthropic, google, custom | Selecciona el adaptador de IA a utilizar | | AI_MANAGER_KEY | | Cadena de API Key | API Key del proveedor configurado | | AI_MODEL | No | Nombre del modelo (ej: deepseek-v4-pro, gpt-4o, claude-3-7-sonnet-20250219, gemini-1.5-pro) | Modelo de lenguaje | | AI_BASE_URL | Según proveedor | URL Endpoint (Obligatorio en custom, ej: http://localhost:11434/v1) | Endpoint base de la API | | AI_TEMPERATURE | No | Número flotante (default: 0.1) | Temperatura de generación |

Nota de Compatibilidad: LeadGuard también reconoce automáticamente las variables legadas OPENCODE_API_KEY, OPENAI_API_KEY, ANTHROPIC_API_KEY y GEMINI_API_KEY si AI_MANAGER_KEY no está definida.


📁 Estructura del Directorio Local .leadguard/

LeadGuard administra sus artefactos locales dentro de la carpeta .leadguard/ en la raíz de tu repositorio:

.leadguard/
├── config.json               # Configuración local del proyecto (rol técnico activo e inicio)
└── tasks/
    ├── TASK-20260830120000.md # Spec técnico atómico guardado tras el Discovery
    └── TASK-20260830153000.md

Ejemplo de .leadguard/config.json:

{
  "selectedRole": "SQL_DB_ARCHITECT",
  "initializedAt": "2026-08-30T12:40:00.000Z"
}

🛠️ Comandos de Desarrollo

Si estás modificando el paquete localmente:

# Modo desarrollo con tsx
npm run dev -- task "Prueba de tarea"

# Compilar TypeScript (dist/)
npm run build

# Validar previa a publicación
npm run prepublishOnly

📜 Licencia

Distribuido bajo la Licencia MIT. Consulta el archivo LICENSE para más información.