pyrefly-type-coverage
Pyrefly-type-coverage adds Python type annotations to code and configures local files to standardize error reporting.
Install
mkdir -p .claude/skills/pyrefly-type-coverage && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/2224" && unzip -o skill.zip -d .claude/skills/pyrefly-type-coverage && rm skill.zipInstalls to .claude/skills/pyrefly-type-coverage
Activation
This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.
Migrate a file to use stricter Pyrefly type checking with annotations required for all functions, classes, and attributes.Key capabilities
- →Add type annotations to functions
- →Automate linting config updates
- →Enable strict type checking
- →Resolve unannotated-return errors
How it works
It systematically updates file-level configuration and adds function signatures to satisfy strict static analysis requirements.
Inputs & outputs
When to use pyrefly-type-coverage
- →Enable strict type checking for a module
- →Add missing type annotations to functions
- →Migrate legacy code to Pyrefly standards
- →Resolve type-related linting errors
About pyrefly-type-coverage
Updates Python files to meet strict typing requirements by adding annotations to all functions, classes, and attributes. It configures local sub-configs for consistent error reporting.
Migrate a file to use stricter Pyrefly type checking with annotations required for all functions, classes, and attributes.
When not to use it
- →Rapid prototyping where types are unknown
- →Legacy codebase migrations without testing
Prerequisites
Limitations
- →Can trigger secondary errors elsewhere in code
- →Cannot auto-infer complex custom types
How it compares
It prioritizes strict type compliance over loose type hinting, specifically for Pyrefly environments.
Compared to similar skills
pyrefly-type-coverage side by side with the closest alternatives in the catalog.
| Skill | Installs | Updated | Safety | Difficulty |
|---|---|---|---|---|
| pyrefly-type-coverage (this skill) | 6 | 6mo | Review | Advanced |
| python-design-patterns | 19 | 6mo | No flags | Intermediate |
| python-patterns | 6 | 5mo | Review | Beginner |
| modular-code | 4 | 10mo | No flags | Intermediate |
Try saying
Example prompts that trigger this skill in your AI assistant.
More by pytorch
View all by pytorch →You might also like
python-design-patterns
wshobson
Python design patterns including KISS, Separation of Concerns, Single Responsibility, and composition over inheritance. Use when making architecture decisions, refactoring code structure, or evaluating when abstractions are appropriate.
python-patterns
affaan-m
Pythonic 惯用法、PEP 8 标准、类型提示以及构建健壮、高效、可维护的 Python 应用程序的最佳实践。
modular-code
parcadei
Modular Code Organization
ast-grep-find
parcadei
AST-based code search and refactoring via ast-grep MCP
naming-analyzer
davila7
Suggest better variable, function, and class names based on context and conventions.
dead-code
parcadei
Find unused functions and dead code in the codebase