본문으로 건너뛰기
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가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/davila7/claude-code-templates/blob/main/cli-tool/components/skills/development/lint-and-validate/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 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

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬