fix-type-errors

Resolve static type-check errors in Python and TypeScript with minimal fixes.

5|1|Updated Oct 4, 2025
One-click install
npx skills add https://github.com/faroukBakari/trader-pro --skill fix-type-errors
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: fix-type-errors
Source: https://github.com/faroukBakari/trader-pro/tree/main/.github/skills/fix-type-errors
Command: npx skills add https://github.com/faroukBakari/trader-pro --skill fix-type-errors

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Systematic workflow to resolve static type checker errors while preserving runtime behavior.

Core Features & Use Cases

  • Structured error-resolution workflow: categorize, triage, and apply minimal, non-runtime-changing fixes.
  • Supports Python and TypeScript projects, integrating with mypy/pyright and vue-tsc.
  • Guided best practices: avoid type: ignore, use TYPE_CHECKING and type-only imports, and escalate unsolved issues.

Quick Start

Run a targeted type-check pass and apply the recommended fixes to a failing file.

Frequently Asked Questions about fix-type-errors

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I resolve static type checking errors in Python and TypeScript without changing runtime behavior?▼

To resolve static type checking errors safely, apply a structured workflow that categorizes and triages errors, using minimal fixes that preserve runtime behavior. This avoids suppressive comments and promotes type-only imports.

What is the best way to fix mypy or pyright errors blocking my CI pipeline?▼

The best way to fix mypy or pyright errors in CI is to apply targeted, non-suppressive changes. Run a focused type-check pass and apply minimal fixes to failing files to unblock progress without ignoring errors.

Does this approach work with vue-tsc for TypeScript type errors?▼

Yes, this approach works with vue-tsc for TypeScript type errors. It supports resolving static type-check errors across Python and TypeScript projects, including vue-tsc, by enforcing best practices.

Why should I avoid using type: ignore when fixing type errors?▼

You should avoid using type: ignore because it suppresses the checker without resolving the underlying issue. Non-suppressive fixes promote TYPE_CHECKING imports and type-only imports to maintain strict type safety.

When should I escalate unsolved type issues during local debugging?▼

You should escalate unsolved type issues during local debugging when recommended minimal, non-runtime-changing fixes fail to resolve static analysis errors. This ensures persistent type issues are triaged for deeper review.