Skills Agentes

Socket Release

Pon en marcha la publicación de SocketDev (npm, crates.io, GitHub releases, tap de Homebrew) en un repo copiando el kit socket-release desde sauce y ejecutando su bootstrap.

Oficial

Reemplaza a: Publicación manual en npm/crates.io/GitHub releases/Homebrew sin pasos de verificación ni gates humanos

Estrellas
3

en todo el repo

Actividad
47

0–100, la ruta de este skill

Actualizado
hace 2 meses

último commit aquí

Commits
1

últimos 90 días

Contexto
1.5k tok

76 tok en reposo

Paquete
1 archivo

6 KB

Instalar

Funciona con cualquier agente que lea SKILL.md

npx -y skills add SocketDev/sauce --skill socket-release --agent claude-code

Se instala solo en este repositorio.

Este skill makes network requests.

Qué hace

  • Clona el kit socket-release desde sauce e instala el bootstrap de publicación en el repo (npm, crates.io, GitHub releases, Homebrew tap)
  • Ejecuta el bootstrap a través de reserva de nombre, entornos de GitHub, npm trusted publisher y endurecimiento del acceso de publicación
  • Detiene la ejecución en cada 🖐 HUMAN GATE (consentimiento de reserva, 2FA web de npm, promoción de placeholder, fallback 403) y espera
  • Verifica una configuración existente re-ejecutando `bootstrap.mts verify`

Úsalo cuando

  • Vas a poner en marcha la publicación en un repo que nunca ha publicado
  • Vas a añadir un nuevo canal (npm, crates.io, GitHub releases o un tap de Homebrew) a un repo que ya publica en otros
  • Vas a cortar un release una vez la publicación está lista, usando el modelo staged-then-approve
  • Quieres recuperar o verificar una configuración existente de publicación

No lo uses cuando

    Qué lo activa

    Di cualquiera de estas frases y el agente debería cargar este skill.

    • “Configura la publicación en npm y GitHub releases para este repo”
    • “Añade el canal de crates.io a este repo que ya publica en npm”
    • “Verifica que el trusted publisher y los entornos siguen conformes”
    • “Quiero cortar un release con el modelo staged-then-approve”

    SKILL.md

    En inglés

    Socket Release Setup

    Install the socket-release kit into the current repo and stand publishing up. Everything destructive is dry-run by default; the bootstrap prints the exact next command after every run, and every human moment renders as a 🖐 HUMAN GATE - stop and show it, never improvise around it.

    When to Use

    • Standing up publishing in a repo that has never released - reserving the package name, wiring the npm trusted publisher, restricting GitHub environments, and tightening publishing access to staged-only.
    • Adding a new channel (npm, crates.io, GitHub releases, or a Homebrew tap) to a repo that already publishes on the others.
    • Cutting a release once publishing is stood up: stage the artifact, then clear the human-gated approve before anything becomes public.
    • Any time you want the staged-then-approve safety model - a verified, hashed artifact held behind a human gate - instead of a one-shot publish.
    • Recovering or verifying an existing setup: re-run the bootstrap verify to confirm the trusted publisher, environments, and access are still conforming.

    Each channel has its own subskill; this top-level skill installs the kit, runs the bootstrap, and points you at the right channel subskill for the actual publish.

    Steps

    Clone the kit, install it, pin its deps, then bootstrap through the gates
    1. Get the kit source. Shallow-clone sauce to the canonical clone home:

      git clone --depth=1 --single-branch https://github.com/SocketDev/sauce.git ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce
      

      Done when: ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce/release-kit/install.mts exists.

    2. Install the kit. Plan first, then apply with the channels this repo publishes on (npm, crates, github-release, brew):

      node ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce/release-kit/install.mts --target . --channels npm,github-release
      node ~/.socket/_wheelhouse/repo-clones/SocketDev-sauce/release-kit/install.mts --target . --channels npm,github-release --apply
      

      Done when: the same command with --verify exits 0.

    3. Pin the kit dependencies. The payload imports plain specifiers; add the exact pins:

      pnpm add -D @socketsecurity/lib@6.5.2 @socketsecurity/sdk@4.1.3 playwright-core@1.61.1
      

      Done when: node scripts/socket-release/bootstrap.mts preflight shows the kit-deps-resolvable check passing.

    4. Bootstrap. Run the plan, then follow nextCommand and the gates:

      node scripts/socket-release/bootstrap.mts
      node scripts/socket-release/bootstrap.mts --apply
      

      The run stops at human gates (reserve-name consent, npm web-2FA, staged-placeholder promote, GitHub 403 fallback) - render the gate and wait. Done when: node scripts/socket-release/bootstrap.mts verify exits 0 and reports the stood-up detail (trusted publisher conforming, environments restricted, publishing access staged-only).

    Browser law

    Playwright browser law (verbatim, non-negotiable):

    • Launch ONLY via openNpmBrowserSession (scripts/socket-release/publish-infra/npm/browser-session.mts) on the durable staged-browser profile that module owns under ~/.config.
    • The launch shape is channel + chromiumSandbox: true + headless + the two sanctioned ignoreDefaultArgs entries, and nothing else - never an args array, never a sandbox-disabling flag.
    • Login is NEVER scripted: the operator signs in once in the headed window; no password, OTP, or cookie passes through the process.
    • All npm browser tools share the ONE durable profile so a single sign-in covers every tool.
    • npm auth is decided by the /-/whoami BODY on the website origin, never the HTTP status.
    • A human-verification challenge PAUSES the run for the operator with a visible countdown and is never retried blindly.

    Operating the channels

    Tips

    • Start every destructive run with --dry-run and read the plan before you add --apply; nothing writes to a registry until you drop the dry-run.
    • Respect the human gates: when a 🖐 HUMAN GATE prints (reserve-name consent, npm web-2FA, staged-placeholder promote, GitHub 403 fallback), render it verbatim and wait - never script the sign-in or improvise past the gate.
    • Let the bootstrap run its eight steps in canonical order - preflight, placeholder, npm-access-permissive, github-env, staged-config, trusted-publisher, npm-access-staged-only, verify - and follow the nextCommand it prints rather than jumping ahead; the order brackets the irreversible placeholder publish between permissive and staged-only access.
    • Pin the kit dependencies to exact versions before bootstrapping; the kit-deps-resolvable preflight check fails fast when they drift.
    • Prefer the staged path over --direct: staged gives you a verified, hashed artifact and a server-side rescue before anything goes public, and on crates.io the publish is permanent (yank-only), so the approve gate is the last stop before it is forever.
    • Re-run bootstrap.mts verify after any change to confirm the trusted publisher, environments, and publishing access are still conforming.

    Reproducido de SocketDev/sauce bajo licencia MIT. Leer esta página en markdown.

    Archivos

    1 archivo en el paquete. Solo se lee SKILL.md al activarse — las referencias se cargan si el skill decide que las necesita.

    Antes de instalar

    Requiere clonar el kit desde el repo SocketDev/sauce, fijar pnpm add -D @socketsecurity/lib@6.5.2, @socketsecurity/sdk@4.1.3 y playwright-core@1.61.1, y un operador humano disponible para los gates.

    Detalles

    Creador
    SocketDev
    Licencia
    MIT
    Recursos incluidos
    Solo SKILL.md
    Repositorio
    SocketDev/sauce
    Código fuente
    Ver SKILL.md

    Etiquetas

    Más de SocketDev/sauce

    Este repo incluye 15 skills. Si instalas uno, normalmente ya tienes los demás. Ver el pack sauce entero y su comando de instalación

    Conecta tu agente a Socket iniciando sesión por el navegador, sin copiar ni pegar una API key. Incluye el servidor Socket MCP alojado (OAuth), lista tus organizaciones y enlaza el Socket CLI para escaneos.

    Costo de contexto al activarse
    1.7k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    Oficialseguridad

    Arregla problemas de seguridad en dependencias: escanea y corrige todo (requiere /socket-scan) o repara un paquete concreto, orquestando los subskills de limpieza, reemplazo, parcheo y actualización.

    Costo de contexto al activarse
    4.5k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    Oficialseguridad

    Usa `socket fix` para encontrar y actualizar dependencias vulnerables, y luego corrige los cambios incompatibles en el código. Actualizaciones auditadas en seguridad con migración de código automatizada.

    Costo de contexto al activarse
    4.1k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    Oficialseguridad

    Investiga un paquete antes de depender de él: extrae señales de Socket (scores, alertas, malware, CVEs, riesgo de cadena de suministro), revisa socket.dev, evalúa alternativas y muestra parches disponibles.

    Costo de contexto al activarse
    3.5k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    Oficialseguridad

    Ejecuta un escaneo de dependencias con Socket CLI: pide login o cuenta si no estás autenticado, ofrece un SBOM local si lo rechazas, y añade reachability y auditoría de licencias para enterprise.

    Costo de contexto al activarse
    5.6k tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    Oficialseguridad

    Configura los requisitos previos para escanear con Socket: instala la CLI, inicia sesión con tu propia cuenta y verifica el acceso antes del primer escaneo o ante errores de autenticación.

    Costo de contexto al activarse
    946 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 24 días
    Oficialseguridad

    Skills relacionados

    Gestiona el flujo de la tap de Homebrew de socket-release: fórmula con descarga binaria, bumps ligados a releases y verificación de sha256 contra el checksums.txt del release.

    Costo de contexto al activarse
    796 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    Oficialdevops infraestructura

    Gestiona el flujo de publicación en crates.io: modelo cargo staged (dry-run por defecto), trusted publishing vía OIDC bajo el entorno cargo-publish, espera de propagación de índice y rollback con yank.

    Costo de contexto al activarse
    725 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    Oficialdevops infraestructura

    Corta, verifica y repara releases inmutables de GitHub con el kit socket-release: la ORDER RULE de resolubilidad del registro, el corte en tres pasos draft-upload-undraft, checksums.txt y reparación de gaps de tag.

    Costo de contexto al activarse
    707 tok
    Tamaño del paquete
    1 archivo
    Última actualización
    hace 2 meses
    Oficialdevops infraestructura