Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add ruslan-korneev/claude-plugins/plugin install pythonWrote 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/ruslan-korneev/claude-plugins/typing-patterns)<a href="https://agentmods.dev/skills/ruslan-korneev/claude-plugins/typing-patterns"><img src="https://agentmods.dev/badge/skills/ruslan-korneev/claude-plugins/typing-patterns/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/ruslan-korneev/claude-plugins/typing-patterns"><img src="https://agentmods.dev/badge/skills/ruslan-korneev/claude-plugins/typing-patterns.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.00000 | $0.01384 |
| Opus 5.5 | $0.00000 | $0.00554 |
| Sonnet 5.5 | $0.00000 | $0.00277 |
| Haiku 4.5 | $0.00000 | $0.00138 |
Grade A, and why
typing-patterns 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 3mo 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 — 277 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Typing Patterns
Python type annotation patterns without type: ignore. Always the correct solution.
Triggers
Use this skill when the user:
- Gets mypy/pyright errors
- Asks about Python type annotations
- Wants to add type hints
- Works with generics, protocols, TypeVar
Main Principle: NEVER type: ignore
Every type error has a correct solution. type: ignore is:
- Masking potential bugs
- Disabling type checking
- Technical debt
More details: ${CLAUDE_PLUGIN_ROOT}/skills/typing-patterns/references/why-no-type-ignore.md
Dictionary Typing — TypedDict Instead of dict
More details: ${CLAUDE_PLUGIN_ROOT}/skills/typing-patterns/references/dict-typing.md
# Bad: Weak level
def process(data: dict): ...
# Warning: Medium level
def process(data: dict[str, Any]): ...
# Good: Strong level
class UserData(TypedDict):
id: int
email: str
name: str
def process(data: UserData): ...
Why TypedDict is better:
- Key checking at compile time (
data["emial"]→ error) - Value type checking
- IDE autocomplete
- Data structure documentation
When dict[K, V] is acceptable:
- Homogeneous collections:
dict[str, User],dict[int, float] - Caches, counters, ID → object mappings
Basic Types (Python 3.10+)
# Primitives
x: int = 1
y: str = "hello"
z: bool = True
f: float = 1.5
# Collections (built-in)
items: list[str] = ["a", "b"]
mapping: dict[str, int] = {"a": 1}
unique: set[int] = {1, 2, 3}
pair: tuple[int, str] = (1, "a")
# Union (Python 3.10+)
value: int | str = 1
optional: str | None = None
# Callable
from collections.abc import Callable
handler: Callable[[int, str], bool] = lambda x, s: True
Generics
More details: ${CLAUDE_PLUGIN_ROOT}/skills/typing-patterns/references/generics.md
from typing import TypeVar, Generic
T = TypeVar("T")
K = TypeVar("K")
V = TypeVar("V")
class Repository(Generic[T]):
def get(self, id: int) -> T | None: ...
def save(self, item: T) -> T: ...
# Usage
class UserRepository(Repository[User]):
pass
# Python 3.12+ syntax
class Repository[T]:
def get(self, id: int) -> T | None: ...
What ships with it
3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- 3mo ago First seen · 277 lines · 0 tokens per session scan A be8e07f92b65
typing-patterns is a skill published in the GitHub repository ruslan-korneev/claude-plugins (5 stars, last pushed 9mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,384 tokens. 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-08-31.
typing-patterns compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| typing-patternsruslan-korneev/claude-plugins | Skill | 5 | 9mo ago | MIT | A | 0 | Claude Code |
| writing-pythonAleksandarBisevac/claude-plugins | Skill | 5 | today | MIT | A | 161 | Claude Code |
| no-silent-passAleksandarBisevac/claude-plugins | Skill | 5 | today | MIT | A | 143 | Claude Code |
| night-market-build-and-envathola/claude-night-market | Skill | 358 | today | MIT | A | 42 | Claude Code |
| makefile-generationathola/claude-night-market | Skill | 358 | today | MIT | A | 31 | Claude Code |
| shiny-py-optimizeposit-dev/skills | Skill | 576 | 18d ago | MIT | A | 105 | Claude Code |
| cloudflare-workers-multi-langsecondsky/claude-skills | Skill | 257 | yesterday | MIT | A | 45 | Claude Code |