Saltar al contenido
Skillpedia
Programación general12 mil · #11519

install-anti-slop

Qué hace

Guía a la IA para copiar el plugin de lint incluido en un repositorio y conectarlo a la configuración de Oxlint del proyecto. Está pensada para desarrolladores que quieren un lint de calidad de código más estricto.

Cuándo usarla

  • ✓Cuando quieres añadir las reglas de lint anti-slop a un proyecto de TypeScript o JavaScript.
  • ✓Cuando quieres trasladar una configuración anti-slop existente a un nuevo repositorio.
  • ✓Cuando quieres configurar Oxlint con estas reglas sin perder tus ajustes actuales.

Link de la skill

https://github.com/trycompai/crm/blob/release/.agents/skills/install-anti-slop/SKILL.md

Cópialo y pégalo en tu IA (Claude, ChatGPT o Cursor) pidiéndole que siga las instrucciones.

Cómo usar

La forma más fácil: copia el mensaje y pégalo en tu IA. Ella lee la skill y sigue las instrucciones.

Mensaje listo para pegar

Usa esta skill para ayudarme: https://github.com/trycompai/crm/blob/release/.agents/skills/install-anti-slop/SKILL.md Lee el archivo SKILL.md de ese link y sigue sus instrucciones en mi tarea.
¿Quieres que tu IA encuentre skills como esta por sí sola?Instala el MCP gratis de Skillpedia: una línea, y busca entre 15.000+ skills antes de cada tarea.Instalar en 1 minuto →

Ejemplo de qué pedirle a la IA

“Por favor, instala las reglas de lint anti-slop en mi proyecto de TypeScript y conserva mis ajustes de lint actuales.”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

La IA revisa el gestor de paquetes y la configuración de lint existente del proyecto, copia el plugin, instala los paquetes compatibles y conecta las reglas.

Contenido técnico (SKILL.md original)

Texto original del autor, en inglés, directo de GitHub.

Install anti-slop

Install the bundled Oxlint plugin into the current repository and integrate it with the repository's existing lint setup. Preserve unrelated work and adapt to the project's package manager and configuration style.

Procedure

  1. Inspect the repository before changing it:

    • Read its agent instructions.
    • Check git status and preserve unrelated changes.
    • Identify the package manager from packageManager and lockfiles.
    • Find Oxlint configuration (oxlint.config.*, .oxlintrc*, or a Vite+ config).
    • Check whether anti-slop files or rules already exist. Do not overwrite them without reviewing the diff.
  2. Copy the bundled plugin from this skill. Run from the target repository:

    node <skill-directory>/scripts/install.mjs
    

    This creates tools/oxlint/anti-slop/. Pass another relative destination as the first argument when the repository has an established tooling layout. The script refuses to replace an existing destination; only use --force after backing up and reviewing existing files.

  3. Install current compatible dependencies rather than trusting versions remembered by the agent:

    • Query npm view oxlint version and npm view @oxlint/plugins version.
    • Install the same current version of both packages with the repository's package manager.
    • oxlint is a development dependency. The copied source imports @oxlint/plugins, so install it as a development dependency for a local-only plugin.
    • Do not replace the package manager or rewrite unrelated dependency ranges.
  4. Register the plugin and enable all rules. For oxlint.config.ts or .oxlintrc.json, add:

    jsPlugins: [
      { name: "anti-slop", specifier: "./tools/oxlint/anti-slop/index.ts" },
    ],
    

    For Vite+, add that same entry to lint.jsPlugins. Merge it with existing entries instead of replacing them.

    Enable these rules at "error":

    {
      "anti-slop/no-chained-type-assertions": "error",
      "anti-slop/no-conditional-empty-object-spread": "error",
      "anti-slop/no-known-value-widening": "error",
      "anti-slop/no-object-parameters": "error",
      "anti-slop/no-runtime-typeof": "error",
      "anti-slop/no-shape-in-symbol-names": "error",
      "anti-slop/no-unknown-parameters": "error",
      "anti-slop/no-unknown-type-aliases": "error",
      "anti-slop/no-unsafe-dictionary-type": "error",
      "anti-slop/no-widen-then-assert": "error"
    }
    
  5. Run the repository's lint command and typecheck. If findings appear, report them and fix them only when the user asked for migration/cleanup. Do not suppress rules, weaken rule severity, add unsafe casts, or mechanically launder types to make lint pass.

  6. Review the final diff and clearly report:

    • copied path,
    • dependency versions installed,
    • configuration changed,
    • checks run and any remaining findings.

Migration guidance

When replacing an older local copy, compare its rules and diagnostics before overwriting. Keep project-specific rules in their own plugin; anti-slop is intentionally generic. Prefer inference, as const, satisfies, named owner contracts, and boundary parsing when resolving findings.

Preguntas frecuentes

¿Sobrescribirá mis archivos existentes?

No reemplaza un destino que ya existe. Solo sobrescribe después de hacer una copia de seguridad y una revisión.

¿Qué linter usa?

Usa Oxlint e instala versiones actuales compatibles de él y de su paquete de plugin.

¿Necesita un gestor de paquetes concreto?

No. Se adapta al gestor de paquetes del proyecto, que detecta a partir de sus ajustes y archivos de bloqueo.

Detalles

Descripción original del autor

Install and configure the anti-slop Oxlint plugin in a local TypeScript or JavaScript repository. Use whenever a user asks to add anti-slop lint rules, copy the anti-slop plugin, configure opinionated Oxlint rules, or migrate an existing local anti-slop setup.

repo: trycompai/crm

Popularidad

Estrellas en GitHub
12 mil
Posición en el ranking
#11519
Licencia
MIT
Actualizada
1/11/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas