shellcheck-configuration
하는 일
이 안내서는 ShellCheck을 사용해 스크립트 코드의 오류를 찾고 품질을 높이는 방법을 가르칩니다. 스크립트가 여러 환경에서 잘 작동하도록 돕습니다.
사용하는 경우
- ✓스크립트를 자동으로 점검하는 도구를 설정할 때.
- ✓기존 스크립트의 문제를 고치고 싶을 때.
- ✓ShellCheck이 보여 주는 경고와 오류를 이해하고 싶을 때.
스킬 링크
https://github.com/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“커밋하기 전에 스크립트를 점검하도록 ShellCheck을 어떻게 설정하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
ShellCheck은 스크립트를 실행하지 않고 코드를 분석해, 흔히 문제를 일으키는 패턴을 찾습니다. 이런 문제를 알려 주어 고칠 수 있게 합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 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
- 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
자주 묻는 질문
'린팅'이란 무엇인가요?
프로그램을 실행하기 전에 코드를 분석해 스타일 오류, 잠재적인 버그, 기타 문제를 찾는 과정입니다.
ShellCheck을 특정 셸에 맞춰 설정하는 것이 왜 중요한가요?
bash나 sh 같은 셸마다 규칙이 조금씩 다릅니다. 올바르게 설정해야 ShellCheck이 여러분이 쓰려는 셸의 규칙에 맞춰 스크립트를 검사합니다.
'거짓 양성 억제'는 무슨 뜻인가요?
ShellCheck이 실제로는 문제가 아닌 것을 경고할 때가 있습니다. '억제'는 그 특정 경고를 무시하도록 ShellCheck에 알리는 것이며, 이유를 설명해 두는 것이 좋습니다.
상세 정보
작성자의 원본 설명
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
인기도
- GitHub 스타
- 41k
- 순위
- #6785
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
screen-reader-testing
41k에이전트가 스크린 리더로 웹사이트를 테스트해 접근성을 확인하도록 돕습니다.
wcag-audit-patterns
41k에이전트가 WCAG 지침에 따라 웹사이트의 접근성을 감사하고 문제를 고치도록 돕습니다.
multi-reviewer-patterns
41k에이전트가 병렬 코드 리뷰를 조율하고, 중복된 발견 사항을 정리하며, 보고서를 통합하도록 돕습니다.
parallel-debugging
41k에이전트가 병렬 조사와 근본 원인 분석으로 복잡한 문제를 디버그하도록 돕습니다.
비슷한 스킬
test-driven-development
311k에이전트가 기능이나 수정을 만들기 전에 실패하는 테스트를 먼저 쓰고, 그것을 통과시키는 가장 작은 코드를 작성하도록 가르칩니다.
verification-before-completion
311k에이전트가 작업, 수정, 빌드가 완료되었거나 통과했다고 말하기 전에 실제 점검을 실행하고 결과를 읽도록 가르칩니다.
migrate-to-shoehorn
310k테스트 파일의 위험한 타입 캐스팅을 shoehorn 라이브러리로 바꿔, 테스트가 일부 데이터만 써도 타입 검사를 통과하도록 돕습니다.