Interactively fix any type checking issues in Python code. An agent skill from saaspegasus/django-boilerplate.

MITAuto-check passedDevelopment

Install Fix Types

skills CLI
$ npx skills add saaspegasus/django-boilerplate --skill fix-types -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install saaspegasus/django-boilerplate fix-types --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/saaspegasus/django-boilerplate.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/fix-types .claude/skills/fix-types && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
fix-types
GitHub stars
177
Token cost
~806 tokens
SKILL.md length
308 words
Files
1
Skills in repo
6
Repo updated
First seen
Licence
MIT

At a glance

Interactively fix any type checking issues in Python code. An agent skill from saaspegasus/django-boilerplate.

  • Works in 5 steps: First run the type checker to see what… → Group the errors you find in to logical… → For each bucket of errors, go through… → …
  • Tasks that involve Type safety
  • Calls python
  • Tasks that involve Backend development

What it does

Fix Types is an agent skill from saaspegasus/django-boilerplate. Interactively fix any type checking issues in Python code

Its SKILL.md is about 810 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Type safety and Backend development. It works with Python and Django. The repository describes itself as: The original SaaS Boilerplate for Django, trusted by thousands. The licence is MIT.

When your agent uses it

  • Tasks that involve Type safety
  • Tasks that involve Backend development

Example prompts

  • “/fix-types”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Bash(uv run mypy *)

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. First run the type checker to see what the issues are
  2. Group the errors you find in to logical buckets.
  3. For each bucket of errors, go through the errors one at a time, tell me the fix you want to apply, and then ask if
  4. Only once I approve, apply the fix and move onto the next error in the bucket.
  5. Once you've completed a bucket, ask me if I'd like to move on to the next bucket.

What it can do on your machine

Read from SKILL.md and the folder at commit 0174a41. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(uv run mypy *)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Fix Types loads about 806 tokens when it runs. Until then it costs about 17 tokens; SKILL.md has 308 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~17
When it runs · the whole SKILL.md, loaded when a task matches
~806

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from saaspegasus/django-boilerplate at commit 0174a41, republished under its MIT licence (© saaspegasus). 308 words, ~806 tokens.

Download SKILL.mdSave it as .claude/skills/fix-types/SKILL.md (or your agent's skills folder).
name
fix-types
description
Interactively fix any type checking issues in Python code
allowed-tools
Bash(uv run mypy *)

Your task

To fix types, do the following.

  1. First run the type checker to see what the issues are:
    uv run mypy .
  2. Group the errors you find in to logical buckets.
  3. For each bucket of errors, go through the errors one at a time, tell me the fix you want to apply, and then ask if I have any questions or suggestions before proceeding.
  4. Only once I approve, apply the fix and move onto the next error in the bucket.
  5. Once you've completed a bucket, ask me if I'd like to move on to the next bucket.
Prefer cast() over type: ignore

When mypy can't infer the correct type, prefer using cast() over # type: ignore:

python
# Preferred - documents the expected type
choices = cast(list[tuple[str, str]], field.choices)

# Avoid when cast is possible - just silences the error
choices = list(field.choices)  # type: ignore[arg-type]

Why: cast() explicitly documents what type you expect, making the code more readable and maintainable. It also doesn't silence other potential errors on the same line.

Prefer proper errors over assertions for null checks

When adding null checks to satisfy mypy, prefer raising proper exceptions over using assert:

python
# Preferred - proper error handling
if obj.related_field is None:
    raise ValueError("Object must have a related field")
result = obj.related_field.some_method()

# Avoid - assertions can be disabled with -O flag
assert obj.related_field is not None
result = obj.related_field.some_method()

Why: Assertions can be disabled in production with python -O, making them unreliable for runtime validation. Proper exceptions ensure the check always runs and provides better error handling.

When using type: ignore, add a comment

If type: ignore is necessary (e.g., mypy limitation with valid code), always add a short explanation:

python
# Good - explains why the ignore is needed
self.tier = tier  # type: ignore[misc]  # mypy can't handle Enum tuple values with custom __init__

# Bad - no explanation
self.tier = tier  # type: ignore[misc]
Type Hints for Django Lazy Translation Strings

When using type hints with Django's lazy translation strings (gettext_lazy), use the following pattern to avoid mypy errors while keeping the code working in production (where django-stubs-ext is not installed):

python
from __future__ import annotations  # Must be the first import

from typing import TYPE_CHECKING

if TYPE_CHECKING:
    from django_stubs_ext import StrOrPromise


# Then use StrOrPromise in type hints
def my_function(name: StrOrPromise) -> StrOrPromise: ...


class MyData:
    title: StrOrPromise
    description: StrOrPromise

Why this pattern:

  • from __future__ import annotations makes type annotations strings at runtime (not evaluated)
  • if TYPE_CHECKING: ensures the import only happens during type checking, not at runtime
  • django-stubs-ext is a dev dependency and won't be available in production
  • This pattern allows both regular strings and lazy translation strings to be accepted

© saaspegasus, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .claude/skills/fix-types of saaspegasus/django-boilerplate.

Open the folder on GitHubat commit 0174a41

Compare with similar skills

Fix Types next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Fix Types compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Fix Types this skillsaaspegasus/django-boilerplate177—~806Automated safety check: PassMIT
Update Dependenciesalorence/django-modern-rpc111—~1.3kAutomated safety check: PassMIT
Python Development Python Scaffoldaiskillstore/marketplace4307 repos~1.9kAutomated safety check: PassNone
Python PatternsxenitV1/Antigravity-Workflows1307 repos~2.2kAutomated safety check: PassMIT
Python Developmentsickn33/agentic-awesome-skills47k1 repos~477Automated safety check: PassMIT
Python Rulessoftspark/ai-toolkit179—~2.9kAutomated safety check: PassApache-2.0

Similar skills

  • Update Dependencies

    alorence/django-modern-rpc

    Routine update of all project dependencies — uv itself, uv.lock (all groups), tool versions pinned in GitHub workflows and .pre-commit-config.yaml (uv, ruff, mypy...), and SHA-pinned GitHub Actions.

    111 GitHub stars~1.3k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Python Development Python Scaffold

    aiskillstore/marketplace

    You are a Python project architecture expert specializing in scaffolding production-ready Python applications.

    430 GitHub starsUsed in 7 repos~1.9k tokens
    Backend & APIsAuto-check passed
  • Python Patterns

    xenitV1/Antigravity-Workflows

    Python development principles and decision-making. An agent skill from xenitV1/Antigravity-Workflows.

    130 GitHub starsUsed in 7 repos~2.2k tokens
    Backend & APIsAuto-check passed
  • Python Development

    sickn33/agentic-awesome-skills

    You are a Python project architecture expert specializing in scaffolding production-ready Python applications.

    47k GitHub starsUsed in 1 repo~477 tokens
    Backend & APIsAuto-check passed
  • Python Rules

    softspark/ai-toolkit

    Python coding rules: style, patterns, security, testing. An agent skill from softspark/ai-toolkit.

    179 GitHub stars~2.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Mastering Python Skill

    SpillwaveSolutions/agent-brain

    Modern Python coaching covering language foundations through advanced production patterns.

    119 GitHub stars~1.4k tokensUpdated 18 days ago
    DevelopmentAuto-check: notes

More from saaspegasus/django-boilerplate

  • Pegasus Projects

    saaspegasus/django-boilerplate

    A skill your agent uses when the user asks to create, view, or modify a SaaS Pegasus project via the pegasus CLI — e.g.

    177 GitHub stars~5.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Resolve Pegasus Conflicts

    saaspegasus/django-boilerplate

    Resolve merge conflicts when upgrading SaaS Pegasus. An agent skill from saaspegasus/django-boilerplate.

    177 GitHub stars~3.2k tokensUpdated 1 mo ago
    Auto-check passed
  • Upgrade Pegasus

    saaspegasus/django-boilerplate

    Upgrade to the latest version of SaaS Pegasus. An agent skill from saaspegasus/django-boilerplate.

    177 GitHub stars~621 tokensUpdated 1 mo ago
    Auto-check passed
  • Upgrade Python Deps

    saaspegasus/django-boilerplate

    Upgrade Python dependencies using uv, then run post-upgrade checks to ensure nothing is broken.

    177 GitHub stars~570 tokensUpdated 1 mo ago
    Auto-check passed
  • Upgrade JS Deps

    saaspegasus/django-boilerplate

    Upgrade JavaScript dependencies using npm-check-updates, then run post-upgrade checks to ensure nothing is broken.

    177 GitHub stars~402 tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Fix Types

What does Fix Types do?

Interactively fix any type checking issues in Python code. An agent skill from saaspegasus/django-boilerplate. Fix Types is an agent skill from saaspegasus/django-boilerplate.

When should I use Fix Types?

Fix Types fits situations like: tasks that involve Type safety; tasks that involve Backend development.

How do I install Fix Types in Claude Code?

Run `npx skills add saaspegasus/django-boilerplate --skill fix-types -a claude-code`. Or copy the skill folder (.claude/skills/fix-types in saaspegasus/django-boilerplate) into .claude/skills/fix-types in your project. Claude Code loads it when a task matches its description.

How do I install Fix Types in Codex?

Run `npx skills add saaspegasus/django-boilerplate --skill fix-types -a codex`. Or copy the skill folder (.claude/skills/fix-types in saaspegasus/django-boilerplate) into .agents/skills/fix-types in your project. Codex loads it when a task matches its description.

Can I use Fix Types in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add saaspegasus/django-boilerplate --skill fix-types -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fix-types, .gemini/skills/fix-types, .github/skills/fix-types and .opencode/skills/fix-types in your project.

What does Fix Types need to run?

Going by SKILL.md and its folder, Fix Types needs the command-line tools its instructions call (python). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash(uv run mypy *).

Does Fix Types access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Fix Types safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Fix Types use?

Fix Types is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Fix Types use?

About 806 tokens (SKILL.md is roughly 3.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Fix Types?

Skills that share tags, products or a category with Fix Types: Update Dependencies (alorence/django-modern-rpc, 111 stars), Python Development Python Scaffold (aiskillstore/marketplace, 430 stars), Python Patterns (xenitV1/Antigravity-Workflows, 130 stars) and Python Development (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Fix Types?

saaspegasus (a GitHub organization) maintains it in saaspegasus/django-boilerplate, which has 177 GitHub stars. The repository holds 6 skills in this directory. The repository was last updated on September 7, 2026.

Source: saaspegasus/django-boilerplate on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.