소스 정보
- 저장소
- leroyguillaume/claude
- 최근 소스 활동
- 2026년 8월 18일 12:50
- 감지된 SKILL.md 언어
- 영어
- 스타
- 4
- 포크
- 2
설치 방법
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
소스 파일 검토
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
메뉴
기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.
설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.
Codex 또는 Claude로 설치 이 Prompt를 복사해 Codex, Claude 또는 다른 어시스턴트에 붙여 넣으면 Skill 페이지를 검토하고 설치를 진행할 수 있습니다.
직접 명령은 검토 Prompt를 거치지 않습니다. 실행하기 전에 소스를 확인하세요.
npx skills add https://github.com/leroyguillaume/claude --skill pre-commit-conventions명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SKILL.md 표시 중
| name | pre-commit-conventions |
| description | pre-commit conventions — never use Docker-backed hooks, always run |
No hook may use language: docker or language: docker_image. Docker
hooks pull an image, need a running daemon, break on machines/CI runners
without Docker, are slow on macOS, and mangle file paths through bind mounts.
Always run the tool directly. In order of preference:
python, golang, rust,
node, system, …). Many repos publish both variants under different ids —
pick the non-Docker one.repo: local hook with language: system, calling the binary from
PATH.| Tool | ❌ Docker id | ✅ Use instead |
|---|---|---|
hadolint (hadolint/hadolint) | hadolint-docker | hadolint (language: system) |
shellcheck (koalaman/shellcheck-precommit) | shellcheck — Docker only, whole repo unusable | local system hook, or shellcheck-py/shellcheck-py |
koalaman/shellcheck-precommit exposes only a docker_image hook, so drop
the repo entirely and declare a local one:
- repo: local
hooks:
- id: shellcheck
name: shellcheck
entry: shellcheck
language: system
types:
- shell
shellcheck then comes from the system package manager (brew install shellcheck, pacman -S shellcheck, apt install shellcheck). Document that
prerequisite in the repo README.md and install it in CI before running
pre-commit.
If a runner genuinely cannot have the binary preinstalled, use
shellcheck-py/shellcheck-py (pinned, e.g. rev: v0.11.0.1) — it is a pip
wheel bundling the binary, still no Docker.
Every repo containing YAML gets a yamllint hook, alongside a
.yamllint.yaml at the root. check-yaml only proves a file parses; it says
nothing about how it is written, which leaves yaml-conventions resting on
whoever happens to be reviewing.
- repo: https://github.com/adrienverge/yamllint
rev: v1.38.0
hooks:
- id: yamllint
# Warning-level rules (document-start among them) are printed and then
# ignored without this — the hook passes anyway.
args:
- --strict
# A Helm template is Go templating, not YAML, until it is rendered.
exclude: ^charts/[^/]+/templates/
The hook is language: python upstream, so no Docker and nothing to
preinstall. Start from extends: default and state only the deviations — most
repos already satisfy the default ruleset, and dropping it to enable two rules
throws away indentation, key-duplicates and document-start for nothing:
extends: default
rules:
# yaml-conventions: no `---` opening a file. Add a per-rule `ignore:` for any
# genuinely multi-document file — the separators between documents are
# required syntax and the rule cannot tell them from a stylistic opener.
document-start:
present: false
# yaml-conventions: block style only. `non-empty` still allows `{}` / `[]`.
braces:
forbid: non-empty
brackets:
forbid: non-empty
# Disable rather than tune: a digest-pinned image reference alone is ~150
# characters, and a helm-docs annotation is one line per key by construction.
line-length: disable
Two traps worth knowing:
--strict, yamllint exits 0 on warnings. document-start is a
warning by default, so the finding is printed and the hook goes green.document-start
on a multi-document manifest) needs a per-rule ignore:, not a global one —
a top-level ignore: drops the file from every rule.No hook runs a test suite. Not cargo test, not pytest, not vitest,
not go test, not npm test — whatever the language, whatever the id it is
given. pre-commit is a lint gate: fast, deterministic, file-scoped checks
that a developer can afford on every single commit.
A test suite is none of those things:
--no-verify — and a gate that gets
bypassed protects nothing, including the linters that were fine.pass_filenames: false,
so a one-word README fix pays for the whole suite.So: the test suite belongs in CI, in the quality workflow next to
pre-commit run --all-files (see github-actions-conventions), as its own
job. Not in .pre-commit-config.yaml.
If a repo already has a test hook, remove it and add the CI job in the same change — dropping the hook without wiring the suite into CI is how a suite stops being run at all. Leave a comment in the config saying where the tests went, so the next person does not "helpfully" add the hook back.
Type checking is not a test: tsc --noEmit, mypy and clippy are static
analysis, they stay in pre-commit.
rev to a tag; never master/main.language: system plus either types:/files:
or pass_filenames: false — an unfiltered local hook runs on every file in
the repo..pre-commit-config.yaml: write types: /
args: as a list of - items, never [shell] / [--fix]. See
yaml-conventions.repo: local hooks under a single - repo: local entry.