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

ac-code-validator

コードの品質や基準をチェックし、プログラムの静的分析やスタイル検証などを行うことで、より信頼性の高いソフトウェア開発を支援するSkill。

📜 元の英語説明(参考)

Validate code quality and standards. Use when running linting, checking types, validating code style, or performing static analysis.

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

一言でいうと

コードの品質や基準をチェックし、プログラムの静的分析やスタイル検証などを行うことで、より信頼性の高いソフトウェア開発を支援するSkill。

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

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

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

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

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

💾 手動でダウンロードしたい(コマンドが難しい人向け)
  1. 1. 下の青いボタンを押して ac-code-validator.zip をダウンロード
  2. 2. ZIPファイルをダブルクリックで解凍 → ac-code-validator フォルダができる
  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 自身は原文を読みます。誤訳がある場合は原文をご確認ください。

AC Code Validator

コードが品質基準とスタイルガイドに準拠しているか検証します。

目的

統合前に、静的解析、lint処理、型チェック、およびスタイル検証を実行して、コードが品質基準を満たしていることを確認します。

クイックスタート

from scripts.code_validator import CodeValidator

validator = CodeValidator(project_dir)
result = await validator.validate()

検証の種類

Lint処理

lint_result = await validator.run_lint()
# ESLint for JS/TS
# Ruff/Flake8 for Python
# golint for Go

型チェック

type_result = await validator.run_type_check()
# TypeScript compiler
# mypy for Python

フォーマット

format_result = await validator.check_formatting()
# Prettier for JS/TS
# Black for Python

セキュリティスキャン

security_result = await validator.run_security_scan()
# Bandit for Python
# npm audit for Node.js

検証結果

{
  "valid": true,
  "checks": {
    "lint": {
      "passed": true,
      "errors": 0,
      "warnings": 3,
      "issues": [
        {"file": "auth.py", "line": 45, "severity": "warning", "message": "Line too long"}
      ]
    },
    "types": {
      "passed": true,
      "errors": 0
    },
    "format": {
      "passed": false,
      "files_needing_format": ["utils.py"]
    },
    "security": {
      "passed": true,
      "vulnerabilities": []
    }
  },
  "summary": {
    "total_issues": 3,
    "blocking": 0,
    "auto_fixable": 3
  }
}

設定

{
  "language": "python",
  "tools": {
    "lint": "ruff",
    "format": "black",
    "types": "mypy",
    "security": "bandit"
  },
  "rules": {
    "max_line_length": 100,
    "max_complexity": 10,
    "require_docstrings": true
  },
  "ignore_patterns": [
    "**/__pycache__/**",
    "**/node_modules/**",
    "**/.venv/**"
  ]
}

自動修正のサポート

# Fix all auto-fixable issues
fix_result = await validator.auto_fix()

# Fix specific types only
await validator.auto_fix(types=["format", "lint"])

対応言語

Language Lint Types Format Security
Python ruff/flake8 mypy black bandit
TypeScript eslint tsc prettier npm audit
JavaScript eslint - prettier npm audit
Go golint go vet gofmt gosec

連携

  • 使用元: 品質チェックのための ac-qa-reviewer
  • 使用元: コミット前の ac-commit-manager
  • レポート先: ac-task-executor

APIリファレンス

完全な実装については、scripts/code_validator.py を参照してください。

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

AC Code Validator

Validate code against quality standards and style guidelines.

Purpose

Performs static analysis, linting, type checking, and style validation to ensure code meets quality standards before integration.

Quick Start

from scripts.code_validator import CodeValidator

validator = CodeValidator(project_dir)
result = await validator.validate()

Validation Types

Linting

lint_result = await validator.run_lint()
# ESLint for JS/TS
# Ruff/Flake8 for Python
# golint for Go

Type Checking

type_result = await validator.run_type_check()
# TypeScript compiler
# mypy for Python

Formatting

format_result = await validator.check_formatting()
# Prettier for JS/TS
# Black for Python

Security Scan

security_result = await validator.run_security_scan()
# Bandit for Python
# npm audit for Node.js

Validation Result

{
  "valid": true,
  "checks": {
    "lint": {
      "passed": true,
      "errors": 0,
      "warnings": 3,
      "issues": [
        {"file": "auth.py", "line": 45, "severity": "warning", "message": "Line too long"}
      ]
    },
    "types": {
      "passed": true,
      "errors": 0
    },
    "format": {
      "passed": false,
      "files_needing_format": ["utils.py"]
    },
    "security": {
      "passed": true,
      "vulnerabilities": []
    }
  },
  "summary": {
    "total_issues": 3,
    "blocking": 0,
    "auto_fixable": 3
  }
}

Configuration

{
  "language": "python",
  "tools": {
    "lint": "ruff",
    "format": "black",
    "types": "mypy",
    "security": "bandit"
  },
  "rules": {
    "max_line_length": 100,
    "max_complexity": 10,
    "require_docstrings": true
  },
  "ignore_patterns": [
    "**/__pycache__/**",
    "**/node_modules/**",
    "**/.venv/**"
  ]
}

Auto-Fix Support

# Fix all auto-fixable issues
fix_result = await validator.auto_fix()

# Fix specific types only
await validator.auto_fix(types=["format", "lint"])

Language Support

Language Lint Types Format Security
Python ruff/flake8 mypy black bandit
TypeScript eslint tsc prettier npm audit
JavaScript eslint - prettier npm audit
Go golint go vet gofmt gosec

Integration

  • Used by: ac-qa-reviewer for quality checks
  • Used by: ac-commit-manager before commits
  • Reports to: ac-task-executor

API Reference

See scripts/code_validator.py for full implementation.