本文へスキップ
Skillpedia
テスト33k · #8775

lint-and-validate

できること

このスキルにより、AIは適切なツールで自分のコード変更を確認できます。エラー、スタイルの問題、セキュリティ上の問題がないかを確認したい開発者向けです。

使う場面

  • ✓エージェントがコードを変更し、作業の完了と報告する前に確認してほしいとき。
  • ✓プロジェクトでリントや型チェックを実行したいとき。
  • ✓プロジェクトにリントの設定がなく、設定を提案してほしいとき。

スキルのリンク

https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/lint-and-validate/SKILL.md

コピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。

使い方

いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。

貼り付け用メッセージ

このスキルを使って手伝ってください:https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/lint-and-validate/SKILL.md このリンクのSKILL.mdファイルを読んで、私の作業でその指示に従ってください。
こういうスキルを、AIが自分で見つけてくれたら?無料のSkillpedia MCPをインストール。1行で、作業の前に15,000+のスキルから探してくれます。1分でインストール →

AIへの頼み方の例

“変更を加えたら、リンターと型チェックを実行して、報告された問題をすべて直してください。”

毎週5つの新しいスキル。1分で読めます。

仕組み

エージェントは、使っている言語に応じてリンター、型チェッカー、セキュリティ監査を実行します。TypeScriptの場合はESLintやtsc、Pythonの場合はRuffやMyPyなどを使います。報告された問題を直し、チェックが通るまで繰り返します。

技術的な内容(元のSKILL.md)

作者による元のテキスト(英語)をGitHubからそのまま表示しています。

Lint and Validate Skill

MANDATORY: Run appropriate validation tools after EVERY code change. Do not finish a task until the code is error-free.

Procedures by Ecosystem

Node.js / TypeScript

  1. Lint/Fix: npm run lint or npx eslint "path" --fix
  2. Types: npx tsc --noEmit
  3. Security: npm audit --audit-level=high

Python

  1. Linter (Ruff): ruff check "path" --fix (Fast & Modern)
  2. Security (Bandit): bandit -r "path" -ll
  3. Types (MyPy): mypy "path"

The Quality Loop

  1. Write/Edit Code
  2. Run Audit: npm run lint && npx tsc --noEmit
  3. Analyze Report: Check the "FINAL AUDIT REPORT" section.
  4. Fix & Repeat: Submitting code with "FINAL AUDIT" failures is NOT allowed.

Error Handling

  • If lint fails: Fix the style or syntax issues immediately.
  • If tsc fails: Correct type mismatches before proceeding.
  • If no tool is configured: Check the project root for .eslintrc, tsconfig.json, pyproject.toml and suggest creating one.

Strict Rule: No code should be committed or reported as "done" without passing these checks.


Scripts

Script Purpose Command
scripts/lint_runner.py Unified lint check python scripts/lint_runner.py <project_path>
scripts/type_coverage.py Type coverage analysis python scripts/type_coverage.py <project_path>
よくある質問

どの言語が対象ですか?

Node.jsとTypeScriptのプロジェクト、およびRuff、Bandit、MyPyを使うPythonのプロジェクトが対象です。

リントのツールが設定されていない場合はどうしますか?

エージェントは設定ファイルを探し、なければ作成を提案します。

セキュリティも確認しますか?

はい。npm auditやBanditなどのセキュリティ監査ツールを実行します。

詳細

作者による元の説明

Automatic quality control, linting, and static analysis procedures. Use after every code modification to ensure syntax correctness and project standards. Triggers onKeywords: lint, format, check, validate, types, static analysis.

repo: davila7/claude-code-templates

人気

GitHubのスター
33k
ランキング
#8775
ライセンス
MIT
更新日
2026/11/2

このスキルは役に立ちますか?

0

ログイン して投票しましょう。

コメント

  • …

このリポジトリの他のスキル

似ているスキル