ワンクリックで
lint-python
Run Python lint tools, then check custom coding rules. Severity labels in Japanese.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Run Python lint tools, then check custom coding rules. Severity labels in Japanese.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Run JavaScript/React lint tools, then check custom coding rules. Severity labels in Japanese.
Run shell lint tools, then check custom coding rules. Severity labels in Japanese.
Run TypeScript/React lint tools, then check custom coding rules. Severity labels in Japanese.
Generates commit messages and checks code quality for staged changes. Prefer gcmA alias for fast use.
| name | lint-python |
| description | Run Python lint tools, then check custom coding rules. Severity labels in Japanese. |
| allowed-tools | bash, write, edit |
Detect available tools (make, poetry, isort, autopep8, pyright, flake8, pycodestyle) and choose ONE branch:
Branch A — Makefile has lint: target:
[ -f .env ] && . ./.env; make lint 2>&1
Branch B — Poetry project ([tool.poetry] in pyproject.toml):
poetry run isort . 2>&1 || true
poetry run autopep8 --in-place --recursive . 2>&1 || true
poetry run pyright 2>&1 || true
poetry run flake8 --exclude=.venv,*/.venv/* . 2>&1 || true
Branch C — system tools only:
command -v autopep8 >/dev/null 2>&1 \
&& autopep8 --in-place --recursive . 2>&1 || true
command -v pycodestyle >/dev/null 2>&1 \
&& pycodestyle --max-line-length=79 \
$(find . -maxdepth 5 -name '*.py' \
! -path '*/.venv/*' ! -path '*/__pycache__/*') 2>&1 || true
Then review source files and scan custom rules (fix iteratively):
[高] Must fix:
typing.Dict/List/Tuple/Union (use dict[]/list[]/tuple[]/Optional[X])typing.Any — allowed when no other type exists; never omit annotations to avoid it{} for empty dict (use dict()), [] for empty list (use list())X | None syntax (use Optional[X])# ----------------------------------------------------------------------------- (79 chars)[中] Should fix:
( alone at end of line) at column 0 before -> ReturnType:from pathlib import Path (use import os.path as osp)Print summary:
==================================================
Lint complete (Python)
==================================================
Files checked : <N>
[高] Critical : <N>
[中] Important : <N>
[低] Minor : <N>
==================================================