shellcheck-configuration
Настройка и применение ShellCheck
Настройка и применение статического анализатора ShellCheck для качества shell-скриптов. Подключается при организации линтинга, исправлении замечаний и обеспечении переносимости скриптов.
Установка
npx skills add https://github.com/wshobson/agents/tree/156b7a5e7a8b93642628a339ee4039c925b34c7f/plugins/shell-scripting/skills/shellcheck-configurationСтавит скилл в текущий проект, CLI спросит, для каких агентов. С флагом -g - для всех проектов. Нужен Node.js.
Установи скилл «shellcheck-configuration» из https://github.com/wshobson/agents/tree/156b7a5e7a8b93642628a339ee4039c925b34c7f/plugins/shell-scripting/skills/shellcheck-configuration: скопируй эту папку целиком в .claude/skills/shellcheck-configuration (для Codex - в .agents/skills/shellcheck-configuration). Потом прочитай SKILL.md и коротко скажи, в каких задачах будешь его применять.
Вставьте в Claude Code или Codex, открытый в папке проекта.
Скачайте папку скилла с GitHub и положите её целиком в .claude/skills/shellcheck-configuration/ - для Codex в .agents/skills/shellcheck-configuration/. Для всех проектов - та же папка в домашнем каталоге.
В приложении VibeeCode: Библиотека - Скиллы - найдите «shellcheck-configuration» - «Установить». О приложении
Описание автора
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
- Run ShellCheck in CI/CD - Catch issues before merging
- Configure for your target shell - Don't analyze bash as sh
- Document exclusions - Explain why violations are suppressed
- Address violations - Don't just disable warnings
- Enable strict mode - Use
--enable=allwith careful exclusions - Update regularly - Keep ShellCheck current for new checks
- Use pre-commit hooks - Catch issues locally before pushing
- Integrate with editors - Get real-time feedback during development