본문으로 건너뛰기
Skillpedia
테스트41k · #6785

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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/wshobson/agents/blob/main/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

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

  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
자주 묻는 질문

'린팅'이란 무엇인가요?

프로그램을 실행하기 전에 코드를 분석해 스타일 오류, 잠재적인 버그, 기타 문제를 찾는 과정입니다.

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.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬