本文へスキップ
Skillpedia
テスト48k · #5068

lint-and-validate

できること

このツールは、プロジェクトで定められたルールに従って、コードが きれいに正しく書かれているかを確認します。問題を引き起こす前に、エラーを見つける助けになります。

使う場面

  • ✓コードを変更した後。
  • ✓作業を終えたり、成果物を納品したりする前。
  • ✓プロジェクトに整形ルールや型チェックのルールがあるとき。

スキルのリンク

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/lint-and-validate/SKILL.md

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

使い方

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

貼り付け用メッセージ

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

AIへの頼み方の例

“私のPythonコードがきれいで、型のエラーがないか確認してください。”

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

仕組み

このツールは、コードの品質と型の正しさを確認する、プロジェクト固有のコマンドを実行します。チェックが合格したか不合格だったか、また実行できなかったチェックがどれかを報告します。

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

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

Lint and Validate

When to Use

Use after behavior or configuration changes when a repository has relevant lint or type checks. Read the repository's instructions and package scripts first. Run focused checks during development and the required checks before completion.

Procedure

  1. Identify the changed languages, configured commands, and installed tools. Inspect package scripts before executing them: a script named lint can modify files or run arbitrary project code.
  2. Run the project's read-only lint/type-check commands. For Node projects, prefer declared scripts such as npm run lint and npm run typecheck. Do not use npx to silently fetch an absent checker.
  3. For Python, use configured, already installed tools such as ruff check . or mypy .. Do not assume every pyproject.toml configures both. Never add --fix without inspecting the proposed changes and the task's authorization.
  4. Fix relevant failures without deleting user work, weakening rules, or raising timeouts just to pass. If a required tool is unavailable, report the exact check that did not run.
  5. Report commands, exit results, scope and remaining limitations. Passing lint does not prove the absence of runtime or security defects.

Example

After correcting a TypeScript behavior, inspect package.json, run the configured focused regression test, then npm run lint and npm run typecheck if those scripts exist. If TypeScript is declared but not installed, report the missing local checker; do not substitute a downloaded package or call the result a pass.

Bundled helpers

  • python scripts/lint_runner.py /absolute/project: runs a conservative set of candidate checks. Node fallback checkers must exist in local node_modules/.bin; Python candidates must be installed. Inspect the project scripts first. A missing command or failing check exits 1; no configured checks or invalid project metadata exits 2. Exit 0 means the invoked checks passed, not that every needed check was discovered. Python detection is heuristic and may suggest unconfigured Ruff/MyPy commands.
  • python scripts/type_coverage.py /absolute/project: read-only annotation inventory, despite its retained compatibility filename. Samples at most 30 files per language, skips links and build/dependency directories, and bounds file reads. Python uses AST nodes to avoid double-counting functions. TypeScript reports lexical : any occurrences, including possible comments and strings. No quality percentage or pass/fail threshold is inferred. Exit 2 means no applicable files; parse/read errors exit 1.

Limitations

The runner executes trusted project commands, which may mutate files or access the network. It does not install dependencies, detect every monorepo configuration, or replace the project's CI contract. The inventory is a bounded source sample, not semantic type coverage; inferred types, generics, decorator behavior and correctness require the actual type checker. Do not label unrun checks as successful.

よくある質問

「lint」や「型チェック」とは何ですか?

タイプミス、書式の問題、コードの不整合を見つけるための自動チェックです。コードを読みやすく、保守しやすくするのに役立ちます。

ツールがエラーを自動で修正しますか?

いいえ、エラーを特定するだけです。提案を確認したうえで、自分で修正する必要があります。

チェックが実行されなかったとはどういう意味ですか?

そのチェックをツールが実行できなかったことを意味します。たとえば、必要なツールがインストールされていないか、プロジェクト用に正しく設定されていない可能性があります。

詳細

作者による元の説明

Run configured lint and type checks, distinguish failures from checks that did not run, and report concrete validation results.

repo: sickn33/agentic-awesome-skills

人気

GitHubのスター
48k
ランキング
#5068
ライセンス
MIT
更新日
2026/10/15

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

0

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

コメント

  • …

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

似ているスキル