PY

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.zip

Installs 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.
122 charsno explicit “when” trigger
Advanced

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

You give it
Python source file path
You get back
Annotated file with updated pyrefly.toml configuration

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

pyreflylintrunnerProject-specific test runner

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.

SkillInstallsUpdatedSafetyDifficulty
pyrefly-type-coverage (this skill)66moReviewAdvanced
python-design-patterns196moNo flagsIntermediate
python-patterns65moReviewBeginner
modular-code410moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry