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

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

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/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에게 요청하는 예시

“제 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.

자주 묻는 질문

‘린트’와 ‘타입 검사’란 무엇인가요?

오타, 서식 문제, 일관성 없는 부분을 자동으로 찾아 코드를 읽고 관리하기 쉽게 해 주는 검사입니다.

도구가 오류를 자동으로 고치나요?

아니요, 오류를 찾기만 합니다. 제안을 검토한 뒤 직접 고쳐야 합니다.

검사가 실행되지 않았다는 것은 무슨 뜻인가요?

도구가 그 검사를 실행하지 못했다는 뜻입니다. 필요한 도구가 설치되지 않았거나 프로젝트에 맞게 설정되지 않았을 수 있습니다.

상세 정보

작성자의 원본 설명

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

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬