Saltar al contenido
Skillpedia
Pruebas41 mil · #6785

shellcheck-configuration

Qué hace

Esta guía te enseña a usar ShellCheck para encontrar errores y mejorar la calidad del código de tus scripts. Te ayuda a asegurarte de que tus scripts funcionan bien en distintos entornos.

Cuándo usarla

  • ✓Cuando configuras herramientas para revisar automáticamente tus scripts.
  • ✓Cuando quieres corregir problemas en un script existente.
  • ✓Para entender los avisos y errores que muestra ShellCheck.

Link de la skill

https://github.com/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/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/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/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

“¿Cómo configuro ShellCheck para revisar mis scripts antes de hacer commit?”

5 skills nuevas por semana. 1 minuto de lectura.

Cómo funciona

ShellCheck analiza el código de tu script sin ejecutarlo, buscando patrones que suelen causar problemas. Te avisa de estos fallos para que puedas corregirlos.

Contenido técnico (SKILL.md original)

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

ShellCheck Configuration and Static Analysis

Comprehensive guidance for configuring and using ShellCheck to improve shell script quality, catch common pitfalls, and enforce best practices through static code analysis.

When to Use This Skill

  • Setting up linting for shell scripts in CI/CD pipelines
  • Analyzing existing shell scripts for issues
  • Understanding ShellCheck error codes and warnings
  • Configuring ShellCheck for specific project requirements
  • Integrating ShellCheck into development workflows
  • Suppressing false positives and configuring rule sets
  • Enforcing consistent code quality standards
  • Migrating scripts to meet quality gates

Detailed patterns and worked examples

Detailed pattern documentation lives in references/details.md. Read that file when the navigation tier above is insufficient.

Best Practices

  1. Run ShellCheck in CI/CD - Catch issues before merging
  2. Configure for your target shell - Don't analyze bash as sh
  3. Document exclusions - Explain why violations are suppressed
  4. Address violations - Don't just disable warnings
  5. Enable strict mode - Use --enable=all with careful exclusions
  6. Update regularly - Keep ShellCheck current for new checks
  7. Use pre-commit hooks - Catch issues locally before pushing
  8. Integrate with editors - Get real-time feedback during development
Preguntas frecuentes

¿Qué es el 'linting'?

Es el proceso de analizar tu código para encontrar errores de estilo, posibles fallos y otros problemas antes de ejecutar el programa.

¿Por qué es importante configurar ShellCheck para mi shell concreto?

Los distintos shells (como bash o sh) tienen reglas ligeramente diferentes. Configurarlo bien asegura que ShellCheck revise tu script según las reglas del shell que vas a usar.

¿Qué significa 'suprimir falsos positivos'?

A veces ShellCheck avisa de algo que en tu caso concreto no es un problema. 'Suprimir' significa indicarle que ignore ese aviso en particular, aunque conviene explicar por qué lo haces.

Detalles

Descripción original del autor

Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.

repo: wshobson/agents

Popularidad

Estrellas en GitHub
41 mil
Posición en el ranking
#6785
Licencia
MIT
Actualizada
15/10/2026

¿Te sirve esta skill?

0

Entra para votar.

Comentarios

  • …

Más skills de este repositorio

Skills parecidas