Community코딩 & 개발github.com

pytorch/pyrefly-type-coverage

파일을 마이그레이션하여 모든 함수, 클래스 및 속성에 주석이 필요한 더 엄격한 Pyrefly 타입 검사를 사용하도록 합니다.

pyrefly-type-coverage란 무엇인가요?

이 스킬은 Pyrefly 타입 검사기와 함께 사용되며, 파일을 엄격한 타입 검사 모드로 전환하여 모든 함수, 클래스 및 속성에 타입 주석을 강제합니다. 이는 코드베이스의 타입 안정성을 높이고 런타임 오류를 줄이는 데 유용합니다. Pyrefly는 Python용 고성능 타입 검사 도구로, 기존 mypy보다 빠르며 더 세분화된 설정을 지원합니다. 이 스킬을 사용하면 개발자는 레거시 코드베이스에 점진적으로 엄격한 타입 검사를 도입할 수 있으며, 특정 파일에 대해 타입 커버리지를 최대화할 수 있습니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/pytorch/pytorch/tree/main/skills/pyrefly-type-coverage

Installed? Explore more 코딩 & 개발 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

pyrefly-type-coverage은(는) 무엇을 하나요?

파일을 마이그레이션하여 모든 함수, 클래스 및 속성에 주석이 필요한 더 엄격한 Pyrefly 타입 검사를 사용하도록 합니다.

사용 방법

이 스킬은 Pyrefly 설정 파일(pyrefly.toml 또는 pyproject.toml)에서 strict 모드나 특정 규칙을 활성화하여 사용할 수 있습니다.

  1. 원하는 파일에서 Pyrefly의 엄격한 검사 규칙을 활성화합니다.
  2. 누락된 타입 주석을 추가합니다.
  3. 발생하는 타입 오류를 수정합니다.

주요 기능

  • 모든 함수 매개변수와 반환 값에 타입 주석 필요
  • 모든 클래스 속성에 타입 주석 필요
  • 모든 모듈 수준 변수에 타입 주석 필요
  • 암시적 Any 타입 사용 금지

Individual skills in this repo

This repo contains 8 individual skills — each has its own dedicated page.

pytorch/add-uint-support

Add unsigned integer (uint) type support to PyTorch operators by updating AT_DISPATCH macros. Use when adding support for uint16, uint32, uint64 types to operators, kernels, or when user mentions enabling unsigned types, barebones unsigned types, or uint support.

pytorch/aoti-debug

Debug AOTInductor (AOTI) errors and crashes. Use when encountering AOTI segfaults, device mismatch errors, constant loading failures, or runtime errors from aot_compile, aot_load, aoti_compile_and_package, or aoti_load_package.

pytorch/at-dispatch-v2

Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.

pytorch/docstring

Write docstrings for PyTorch functions and methods following PyTorch conventions. Use when writing or updating docstrings in PyTorch code.

pytorch/metal-kernel

Write Metal/MPS kernels for PyTorch operators. Use when adding MPS device support to operators, implementing Metal shaders, or porting CUDA kernels to Apple Silicon. Covers native_functions.yaml dispatch, host-side operators, and Metal kernel implementation.

pytorch/pr-review

Review PyTorch pull requests for code quality, test coverage, security, and backward compatibility. Use when reviewing PRs, when asked to review code changes, or when the user mentions "review PR", "code review", or "check this PR".

pytorch/skill-writer

Guide users through creating Agent Skills for Claude Code. Use when the user wants to create, write, author, or design a new Skill, or needs help with SKILL.md files, frontmatter, or skill structure.

pytorch/triaging-issues

Triages GitHub issues by routing to oncall teams, applying labels, and closing questions. Use when processing new PyTorch issues or when asked to triage an issue.

관련 스킬