소스 정보
- 저장소
- leroyguillaume/claude
- 최근 소스 활동
- 2026년 6월 7일 12:29
- 감지된 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 sql-conventions명령은 한 줄로 유지됩니다. 복사하기 전에 가로로 스크롤해 전체 내용을 확인하세요.
로컬 사본을 원하시나요? SkillsMP에서 현재 제공할 수 있는 파일을 다운로드하세요.
SOC 직업 분류 기준
SKILL.md 표시 중
| name | sql-conventions |
| description | SQL linting/formatting conventions (always sqlfluff). |
Always lint SQL with sqlfluff. Any repo that
contains .sql files must have the sqlfluff pre-commit hook. Add it to
.pre-commit-config.yaml, pinned to an explicit rev:
- repo: https://github.com/sqlfluff/sqlfluff
rev: 4.2.2
hooks:
- id: sqlfluff-lint
Lint every .sql file, not just some — query files and migrations
(and seeds, fixtures, …). The hook matches \.sql$, so this is automatic.
Add a .sqlfluff at the repo root with at least the dialect and a raw
templater (plain SQL, no Jinja/dbt):
[sqlfluff]
dialect = postgres
templater = raw
max_line_length = 100
Set dialect to the project's actual database.
Follow sqlfluff's style, don't fight it. Reformat the SQL to satisfy the
rules rather than disabling them. In practice that means: single spaces (no
column alignment in CREATE TABLE — sqlfluff removed the alignment rule on
purpose), one SELECT target per line when there is more than one, and
consistent keyword casing.
Only exclude_rules for deliberate, justified cases, with a comment
saying why. The common one: using reserved-ish words as identifiers — e.g. a
user table or a role column — trips RF04 (keywords as identifiers) and
RF06 (unnecessary quoting, a false positive when the quotes are required).
Exclude those, never silence spacing/layout rules to avoid reformatting:
# We deliberately use the reserved words `user`/`role` as identifiers,
# quoting `"user"` where Postgres requires it.
exclude_rules = RF04, RF06
Prefer sqlfluff fix to reformat in bulk when adopting it on an existing
codebase, then commit the result; keep sqlfluff-lint as the gate.
Keep non-trivial SQL in .sql files rather than inline string literals, so the
linter sees it and the code stays readable. In Rust with sqlx, load them with
include_str!("../queries/<entity>/<op>.sql") — it stays a &'static str (so
sqlx 0.9's anti-injection guard is satisfied) and the compiler tracks each file
for rebuilds. See rust-conventions for the sqlx specifics.