---
title: "ShellCheck を設定する（エージェント用スキル） | Orchestor"
description: "シェルスクリプトの品質を高めるため、ShellCheck による静的解析を設定・実行します。リント環境の整備、コードの問題の修正、スクリプトの移植性の確保に使います。wshobson/agents が公開している「ShellCheck を設定する」の使い方を確認できます。"
canonical_url: "https://www.orchestor.io/ja/skills/wshobson/agents/shellcheck-configuration"
markdown_url: "https://www.orchestor.io/ja/skills/wshobson/agents/shellcheck-configuration.md"
---

[c96b5f6](https://github.com/wshobson/agents/commit/c96b5f6552dba32e4492307493ee613581430715)[原文を開く](https://github.com/wshobson/agents/blob/c96b5f6552dba32e4492307493ee613581430715/plugins/shell-scripting/skills/shellcheck-configuration/SKILL.md)

wshobson2026/11/24

原文 (選択中)

未翻訳

プレビュー (選択中)

34 行（空行を除く 26 行） · 1.57 KB原文

```yaml
name: shellcheck-configuration
description: Master ShellCheck static analysis configuration and usage for shell script quality. Use when setting up linting infrastructure, fixing code issues, or ensuring script portability.
```

# 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 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

## Structured data

```json
[
  [
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Orchestor",
      "url": "https://www.orchestor.io",
      "sameAs": [
        "https://orchestor.io",
        "https://www.orchestor.io",
        "https://docs.orchestor.io"
      ],
      "@id": "https://www.orchestor.io/#organization",
      "alternateName": [
        "オーケスター"
      ],
      "logo": "https://www.orchestor.io/images/common/ogp/orchestor-ogp.png",
      "parentOrganization": {
        "@type": "Organization",
        "name": "ドットメディア株式会社",
        "url": "https://www.dotmedia.co.jp"
      }
    },
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "url": "https://www.orchestor.io",
      "name": "Orchestor",
      "description": "Orchestor で画像・動画・音声を作り、参照素材を Remix できます。",
      "@id": "https://www.orchestor.io/#website",
      "alternateName": [
        "オーケスター"
      ],
      "inLanguage": "ja",
      "publisher": {
        "@id": "https://www.orchestor.io/#organization"
      }
    }
  ],
  {
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://www.orchestor.io/skills/wshobson/agents/shellcheck-configuration#breadcrumb",
    "itemListElement": [
      {
        "@type": "ListItem",
        "position": 1,
        "name": "Orchestor",
        "item": "https://www.orchestor.io/"
      },
      {
        "@type": "ListItem",
        "position": 2,
        "name": "スキル",
        "item": "https://www.orchestor.io/skills"
      },
      {
        "@type": "ListItem",
        "position": 3,
        "name": "ShellCheck を設定する",
        "item": "https://www.orchestor.io/skills/wshobson/agents/shellcheck-configuration"
      }
    ]
  }
]
```

---

[Documentation index](https://www.orchestor.io/llms.txt)
