jpskill.com
🛠️ 開発・MCP コミュニティ

lint

シェルスクリプトやGitHub Actionsワークフローに対して、push前や修正時に、コードの品質チェックツールであるshellcheckとactionlintを実行し、潜在的な問題点を洗い出して改善をサポートするSkill。

📜 元の英語説明(参考)

Run shellcheck and actionlint on shell scripts and GitHub Actions workflows. Use before pushing or when fixing lint issues.

🇯🇵 日本人クリエイター向け解説

一言でいうと

シェルスクリプトやGitHub Actionsワークフローに対して、push前や修正時に、コードの品質チェックツールであるshellcheckとactionlintを実行し、潜在的な問題点を洗い出して改善をサポートするSkill。

※ jpskill.com 編集部が日本のビジネス現場向けに補足した解説です。Skill本体の挙動とは独立した参考情報です。

⚡ おすすめ: コマンド1行でインストール(60秒)

下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。

🍎 Mac / 🐧 Linux
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o lint.zip https://jpskill.com/download/8587.zip && unzip -o lint.zip && rm lint.zip
🪟 Windows (PowerShell)
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/8587.zip -OutFile "$d\lint.zip"; Expand-Archive "$d\lint.zip" -DestinationPath $d -Force; ri "$d\lint.zip"

完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して lint.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → lint フォルダができる
  3. 3. そのフォルダを C:\Users\あなたの名前\.claude\skills\(Win)または ~/.claude/skills/(Mac)へ移動
  4. 4. Claude Code を再起動

⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。

🎯 このSkillでできること

下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。

📦 インストール方法 (3ステップ)

  1. 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
  2. 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
  3. 3. 展開してできたフォルダを、ホームフォルダの .claude/skills/ に置く
    • · macOS / Linux: ~/.claude/skills/
    • · Windows: %USERPROFILE%\.claude\skills\

Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。

詳しい使い方ガイドを見る →
最終更新
2026-05-18
取得日時
2026-05-18
同梱ファイル
1

📖 Skill本文(日本語訳)

※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

[Skill 名] lint

このプロジェクト内のシェルスクリプトとGitHub Actionsワークフローに対して、lintツールを実行します。

あなたのタスク

変更されたファイル(mainブランチとの比較)に対して、以下のチェックを実行してください。

1. シェルスクリプト (shellcheck)

# 変更されたシェルスクリプトを検索
changed_scripts=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.sh$')

# それぞれに対してshellcheckを実行
for script in $changed_scripts; do
    if [[ -f "$script" ]]; then
        shellcheck -f gcc "$script"
    fi
done

2. GitHub Actions ワークフロー (actionlint)

# 変更されたワークフローファイルを検索
changed_workflows=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.github/workflows/.*\.ya?ml$')

# それぞれに対してactionlintを実行
for workflow in $changed_workflows; do
    if [[ -f "$workflow" ]]; then
        actionlint "$workflow"
    fi
done

問題への対処

lintの問題が見つかった場合:

  1. 問題を修正する - 警告/エラーを解決するためにコードを修正します。
  2. disableディレクティブは最後の手段としてのみ使用する - 警告が誤検出であるか、本当に避けられない場合は、説明付きでdisableコメントを追加します。
    # shellcheck disable=SC2034  # Variable used by sourcing script
  3. 修正内容を報告する - 行われた変更を要約します。

オプションのガイダンス

$ARGUMENTS

📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開

Run linting tools on shell scripts and GitHub Actions workflows in this project.

Your Task

Run the following checks on changed files (relative to main branch):

1. Shell Scripts (shellcheck)

# Find changed shell scripts
changed_scripts=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.sh$')

# Run shellcheck on each
for script in $changed_scripts; do
    if [[ -f "$script" ]]; then
        shellcheck -f gcc "$script"
    fi
done

2. GitHub Actions Workflows (actionlint)

# Find changed workflow files
changed_workflows=$(git diff --name-only main...HEAD 2>/dev/null | grep -E '\.github/workflows/.*\.ya?ml$')

# Run actionlint on each
for workflow in $changed_workflows; do
    if [[ -f "$workflow" ]]; then
        actionlint "$workflow"
    fi
done

Handling Issues

When lint issues are found:

  1. Fix the issues - Correct the code to resolve warnings/errors
  2. Only use disable directives as a last resort - If a warning is a false positive or truly unavoidable, add a disable comment with explanation:
    # shellcheck disable=SC2034  # Variable used by sourcing script
  3. Report what was fixed - Summarize the changes made

Optional Guidance

$ARGUMENTS