Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add VersoXBT/claude-initial-setup --skill type-hints-guidegit clone --depth 1 https://github.com/VersoXBT/claude-initial-setupWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/versoxbt/claude-initial-setup/type-hints-guide)<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/type-hints-guide"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/type-hints-guide/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/versoxbt/claude-initial-setup/type-hints-guide"><img src="https://agentmods.dev/badge/skills/versoxbt/claude-initial-setup/type-hints-guide.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.01840 |
| Opus 5.5 | $0.00032 | $0.00736 |
| Sonnet 5.5 | $0.00016 | $0.00368 |
| Haiku 4.5 | $0.00008 | $0.00184 |
Grade A, and why
type-hints-guide scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 242 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Type Hints Guide
Write precise, expressive type annotations that catch bugs at static analysis time. Modern Python typing (3.10+) is powerful enough to express complex relationships without runtime overhead.
When to Use
- User writes or refactors Python functions without type hints
- User asks about typing, generics, or protocols
- User encounters mypy or pyright errors
- User builds libraries or APIs that need clear contracts
- User works with complex data structures or callbacks
Core Patterns
Modern Built-in Types (Python 3.10+)
Prefer built-in generics and union syntax over typing imports.
# Python 3.10+ -- use built-in types and | union
def process_items(
items: list[str],
config: dict[str, int | float],
callback: Callable[[str], None] | None = None,
) -> tuple[int, list[str]]:
...
# For older Python, import from typing
from typing import List, Dict, Optional, Union, Tuple
TypeVar and Generic Classes
Use TypeVar for functions/classes that work with any type while preserving type relationships.
from typing import TypeVar, Generic
T = TypeVar("T")
K = TypeVar("K")
V = TypeVar("V")
class Result(Generic[T]):
"""A container that holds either a value or an error."""
def __init__(self, value: T | None = None, error: str | None = None):
self._value = value
self._error = error
def unwrap(self) -> T:
if self._error is not None:
raise ValueError(self._error)
assert self._value is not None
return self._value
def map(self, func: Callable[[T], V]) -> "Result[V]":
if self._error:
return Result(error=self._error)
return Result(value=func(self.unwrap()))
# Bounded TypeVar -- restrict to specific types
Numeric = TypeVar("Numeric", int, float)
def add(a: Numeric, b: Numeric) -> Numeric:
return a + b
# Upper bound -- must be subclass of
from datetime import datetime
DateLike = TypeVar("DateLike", bound=datetime)
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 242 lines · 79 tokens per session scan A 6ed8a0c9665a
type-hints-guide is a skill published in the GitHub repository VersoXBT/claude-initial-setup (4 stars, last pushed 6mo ago), licensed MIT. It adds 79 tokens to every session and 1,840 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
type-hints-guide compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| type-hints-guideVersoXBT/claude-initial-setup | Skill | 4 | 6mo ago | MIT | A | 79 | Claude Code |
| fastapi-templateswshobson/agents | Skill | 43k | 6d ago | MIT | A | 37 | Claude Code |
| temporal-python-testingwshobson/agents | Skill | 43k | 6d ago | MIT | A | 45 | Claude Code |
| py-debugberekvolgyipeter/dotclaude | Skill | 2 | yesterday | MIT | A | 54 | Claude Code, Codex |
| python-conventionstmj-90/gaffer | Skill | 1 | yesterday | Apache-2.0 | A | 120 | Claude Code, Codex |
| sota-pythonmartinholovsky/SOTA-skills | Skill | 31 | yesterday | CC-BY-4.0 | A | 141 | Claude Code |
| python-expertApexIQ/skillsmith | Skill | 5 | 8mo ago | MIT | A | 47 | Claude Code, Codex |