Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

annotations

БесплатноБез исполняемых скриптовНе проверен

Workflow for adding type annotations to Plain packages. Use this when adding or improving type coverage.

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Type Annotation Workflow

We are gradually adding type annotations using Python 3.13+.

Workflow

  1. Check current coverage:

    uv run plain code annotations <directory> --details
    
  2. Add annotations: Focus on function/method signatures (parameters and return types)

  3. Type check:

    ./scripts/type-check <directory>
    
  4. Format: ./scripts/fix

  5. Test: ./scripts/test <package>

  6. Verify improvement:

    uv run plain code annotations <directory>
    
  7. Add to validation: Once a directory reaches 100% coverage, add it to FULLY_TYPED_PATHS in scripts/type-validate

Guidelines

  • Add from __future__ import annotations when necessary
  • Focus on public APIs and user-facing methods first
  • Don't annotate __init__ return types (type checkers infer None)
  • Use explicit return None for functions with -> Type | None return type
  • Some Django-style ORM patterns are inherently difficult to type - that's okay
  • Goal is progress, not perfection

Example

# Check coverage
uv run plain code annotations plain/plain/assets --details

# After adding annotations...
./scripts/type-check plain/plain/assets
./scripts/fix
./scripts/test plain
uv run plain code annotations plain/plain/assets  # Should show 100%

Установить annotations в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

metadata.json

FAQ

Что делает скилл annotations?

Workflow for adding type annotations to Plain packages. Use this when adding or improving type coverage.

Как установить скилл annotations?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл annotations запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить annotations с