annotations
FreeNo executable scriptsNot checkedWorkflow for adding type annotations to Plain packages. Use this when adding or improving type coverage.
by diegosouzapw★ 68 GitHub starsAbout this skill
Type Annotation Workflow
We are gradually adding type annotations using Python 3.13+.
Workflow
Check current coverage:
uv run plain code annotations <directory> --detailsAdd annotations: Focus on function/method signatures (parameters and return types)
Type check:
./scripts/type-check <directory>Format:
./scripts/fixTest:
./scripts/test <package>Verify improvement:
uv run plain code annotations <directory>Add to validation: Once a directory reaches 100% coverage, add it to
FULLY_TYPED_PATHSinscripts/type-validate
Guidelines
- Add
from __future__ import annotationswhen necessary - Focus on public APIs and user-facing methods first
- Don't annotate
__init__return types (type checkers inferNone) - Use explicit
return Nonefor functions with-> Type | Nonereturn 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%
Install annotations in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the annotations skill do?
Workflow for adding type annotations to Plain packages. Use this when adding or improving type coverage.
How do I install the annotations skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the annotations skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
by Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
by Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
by Anthropic