Python Pro
davila7/claude-code-templates
Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices.
A skill your agent uses when writing or debugging non-trivial Python — async pitfalls, type system patterns, dataclass vs Pydantic decisions, decorator design, generator efficiency, or…
$ npx skills add kid-sid/claude-spellbook --skill python -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install kid-sid/claude-spellbook python --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/python .claude/skills/python && rm -rf skills-srcUse ~/.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/
Install the "python" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/python into .claude/skills/python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/kid-sid/claude-spellbook/tree/main/skills/pythonType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add kid-sid/claude-spellbook --skill python -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install kid-sid/claude-spellbook python --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .agents/skills && cp -r skills-src/skills/python .agents/skills/python && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "python" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/python into .agents/skills/python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kid-sid/claude-spellbook --skill python -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install kid-sid/claude-spellbook python --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/skills/python .cursor/skills/python && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "python" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/python into .cursor/skills/python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/kid-sid/claude-spellbook.git --path skills/python--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add kid-sid/claude-spellbook --skill python -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install kid-sid/claude-spellbook python --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/skills/python .gemini/skills/python && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "python" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/python into .gemini/skills/python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install kid-sid/claude-spellbook pythonInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add kid-sid/claude-spellbook --skill python -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .github/skills && cp -r skills-src/skills/python .github/skills/python && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "python" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/python into .github/skills/python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add kid-sid/claude-spellbook --skill python -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install kid-sid/claude-spellbook python --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/kid-sid/claude-spellbook.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/skills/python .opencode/skills/python && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "python" agent skill from https://github.com/kid-sid/claude-spellbook/tree/main/skills/python into .opencode/skills/python/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "python", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pythonA skill your agent uses when writing or debugging non-trivial Python — async pitfalls, type system patterns, dataclass vs Pydantic decisions, decorator design, generator efficiency, or…
Python is an agent skill from kid-sid/claude-spellbook. Use when writing or debugging non-trivial Python — async pitfalls, type system patterns, dataclass vs Pydantic decisions, decorator design, generator efficiency, or language-specific idioms like structural pattern matching and slots.
Its SKILL.md is about 3.6k 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 Async programming. It works with Python and Pydantic. The repository describes itself as: A curated collection of skills, prompts, and workflows that extend Claude's capabilities — your personal grimoire for AI-powered development. The licence is MIT.
Read from SKILL.md and the folder at commit a7c2ac9. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Python loads about 3.6k tokens when it runs. Until then it costs about 60 tokens; SKILL.md has 485 words of instructions outside code blocks.
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.
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.
The full file from kid-sid/claude-spellbook at commit a7c2ac9, republished under its MIT licence (© kid-sid). 485 words, ~3,615 tokens.
.claude/skills/python/SKILL.md (or your agent's skills folder).Language-level patterns for writing correct, readable, performant Python.
TypeVarasync/await, event loops, asyncio)itertools, functools, or comprehensions effectivelymatch/case)__slots__, lru_cache, generators vs lists)# Use built-in types directly — no need to import from typing
def process(items: list[str]) -> dict[str, int]: ...
def fetch(ids: set[int]) -> tuple[str, ...]: ...
def map_fn(data: dict[str, list[int]]) -> None: ...
# Union with | (3.10+)
def parse(value: str | int | None) -> str: ...
# TypeAlias
type UserId = str # Python 3.12+
UserId = NewType("UserId", str) # Python 3.10+from typing import TypeVar, Generic
T = TypeVar("T")
K = TypeVar("K")
V = TypeVar("V")
def first(items: list[T]) -> T | None:
return items[0] if items else None
class Repository(Generic[T]):
async def get(self, id: str) -> T | None: ...
async def save(self, entity: T) -> T: ...
class UserRepository(Repository[User]): ... # T = Userfrom typing import Protocol, runtime_checkable
@runtime_checkable
class Closeable(Protocol):
def close(self) -> None: ...
@runtime_checkable
class Serializable(Protocol):
def to_dict(self) -> dict: ...
@classmethod
def from_dict(cls, data: dict) -> "Serializable": ...
# Any class with these methods satisfies the protocol — no inheritance needed
def cleanup(resource: Closeable) -> None:
resource.close()from typing import Annotated
from pydantic import Field
# Reusable constrained types
PositiveInt = Annotated[int, Field(gt=0)]
EmailStr = Annotated[str, Field(pattern=r".+@.+")]
UserId = Annotated[str, Field(min_length=36, max_length=36)]
class User(BaseModel):
id: UserId
age: PositiveInt
email: EmailStrfrom typing import Literal, TypeGuard
Status = Literal["active", "inactive", "banned"]
def is_active(status: Status) -> TypeGuard[Literal["active"]]:
return status == "active"
# TypedDict for dict shapes
from typing import TypedDict
class UserDict(TypedDict):
id: str
name: str
email: str
class PartialUserDict(TypedDict, total=False):
name: str
email: str| Dataclass | Pydantic | TypedDict | NamedTuple | |
|---|---|---|---|---|
| Runtime validation | ❌ | ✅ | ❌ | ❌ |
| Immutable option | frozen=True | frozen=True | ❌ | ✅ (always) |
| JSON serialization | manual | .model_dump() | manual | manual |
| Inheritance | ✅ | ✅ | limited | ❌ |
| Performance | fastest | moderate | dict | fast |
| Use when | internal data transfer | API schemas, config | typed dict hints | simple immutable tuples |
from dataclasses import dataclass, field
@dataclass
class Point:
x: float
y: float
tags: list[str] = field(default_factory=list) # mutable default must use field()
@dataclass(frozen=True) # immutable, hashable
class Color:
r: int; g: int; b: int
@dataclass(slots=True) # __slots__ automatically (Python 3.10+)
class FastModel:
name: str
value: int# BAD: sync sleep blocks the entire event loop
async def handler():
time.sleep(1) # freezes all other coroutines
# GOOD: async sleep yields control
async def handler():
await asyncio.sleep(1) # other coroutines run while waiting
# BAD: sync I/O in async code (blocks event loop)
async def read_file():
return open("file.txt").read() # blocking
# GOOD: use aiofiles or run in executor
import aiofiles
async def read_file():
async with aiofiles.open("file.txt") as f:
return await f.read()
# Run blocking code in thread pool (for libraries you can't change)
import asyncio
result = await asyncio.get_event_loop().run_in_executor(None, blocking_function, arg)import asyncio
# Run independent coroutines concurrently
results = await asyncio.gather(
fetch_user(id),
fetch_orders(id),
fetch_profile(id),
)
user, orders, profile = results
# gather with error handling
results = await asyncio.gather(fetch_a(), fetch_b(), return_exceptions=True)
for r in results:
if isinstance(r, Exception):
handle_error(r)
# TaskGroup (Python 3.11+) — cancels all tasks if one fails
async with asyncio.TaskGroup() as tg:
task_a = tg.create_task(fetch_a())
task_b = tg.create_task(fetch_b())
# both results available after the block
# Timeout
try:
result = await asyncio.wait_for(slow_operation(), timeout=5.0)
except asyncio.TimeoutError:
handle_timeout()
# Semaphore — limit concurrency (e.g. max 10 concurrent HTTP requests)
sem = asyncio.Semaphore(10)
async def rate_limited_fetch(url):
async with sem:
return await httpx.get(url)# Async generator
async def paginate(url: str):
page = 1
while True:
data = await fetch(f"{url}?page={page}")
if not data:
break
yield data
page += 1
async for batch in paginate("/api/items"):
process(batch)
# Async context manager
class AsyncDB:
async def __aenter__(self):
self.conn = await connect()
return self.conn
async def __aexit__(self, *args):
await self.conn.close()
async with AsyncDB() as conn:
await conn.execute("SELECT 1")from contextlib import contextmanager, asynccontextmanager, suppress
# Synchronous
@contextmanager
def timer(label: str):
start = time.perf_counter()
try:
yield
finally:
print(f"{label}: {time.perf_counter() - start:.3f}s")
with timer("query"):
result = db.execute(query)
# Async
@asynccontextmanager
async def db_transaction(session):
async with session.begin():
try:
yield session
except Exception:
await session.rollback()
raise
# Suppress specific exceptions
with suppress(FileNotFoundError):
os.remove("tmp.txt")
# ExitStack — combine multiple context managers dynamically
from contextlib import ExitStack
with ExitStack() as stack:
files = [stack.enter_context(open(f)) for f in file_list]
process(files)from functools import wraps
import time
# Basic decorator with functools.wraps (preserves __name__, __doc__)
def retry(max_attempts: int = 3, delay: float = 1.0):
def decorator(fn):
@wraps(fn)
async def wrapper(*args, **kwargs):
for attempt in range(max_attempts):
try:
return await fn(*args, **kwargs)
except Exception as e:
if attempt == max_attempts - 1:
raise
await asyncio.sleep(delay * (attempt + 1))
return wrapper
return decorator
@retry(max_attempts=3, delay=0.5)
async def fetch_data(url: str) -> dict: ...
# Class-based decorator (useful when the decorator needs state)
class RateLimit:
def __init__(self, calls: int, period: float):
self.calls = calls
self.period = period
self.timestamps: list[float] = []
def __call__(self, fn):
@wraps(fn)
async def wrapper(*args, **kwargs):
now = time.time()
self.timestamps = [t for t in self.timestamps if now - t < self.period]
if len(self.timestamps) >= self.calls:
raise Exception("Rate limit exceeded")
self.timestamps.append(now)
return await fn(*args, **kwargs)
return wrapperimport itertools
# Generator — lazy, memory-efficient
def read_chunks(path: str, size: int = 4096):
with open(path, "rb") as f:
while chunk := f.read(size):
yield chunk
# Generator expression
total = sum(x ** 2 for x in range(1_000_000)) # no list in memory
# itertools
list(itertools.islice(range(100), 10)) # first 10
list(itertools.chain([1,2], [3,4], [5,6])) # flatten iterables
list(itertools.batched([1..9], 3)) # [[1,2,3],[4,5,6],[7,8,9]] (3.12+)
list(itertools.groupby(sorted_items, key=lambda x: x.category))
list(itertools.takewhile(lambda x: x < 5, items))
list(itertools.dropwhile(lambda x: x < 5, items))
list(itertools.pairwise([1,2,3,4])) # [(1,2),(2,3),(3,4)] (3.10+)
# functools
from functools import lru_cache, cached_property, reduce, partial
@lru_cache(maxsize=128)
def fibonacci(n: int) -> int:
return n if n < 2 else fibonacci(n-1) + fibonacci(n-2)
class Config:
@cached_property # computed once, cached on instance
def parsed_rules(self) -> list[Rule]:
return parse_rules(self.raw)
double = partial(operator.mul, 2) # partial applicationdef handle_event(event: dict):
match event:
case {"type": "user_created", "data": {"id": user_id, "email": email}}:
create_user(user_id, email)
case {"type": "order_placed", "data": {"total": total}} if total > 1000:
flag_high_value_order(event)
case {"type": str(t)} if t.startswith("payment_"):
handle_payment(event)
case _:
log_unknown(event)
# Match on types
def process(value):
match value:
case int(n) if n > 0: return f"positive int: {n}"
case str(s): return f"string: {s}"
case [*items]: return f"list of {len(items)}"
case {"key": v}: return f"dict with key: {v}"
case None: return "nothing"__slots__Reduces memory per instance by ~40-60% for classes with many instances. Prevents arbitrary attribute assignment.
class Point:
__slots__ = ("x", "y") # no __dict__, no __weakref__ by default
def __init__(self, x: float, y: float):
self.x = x
self.y = y
# With inheritance: each class only declares its own new slots
class Point3D(Point):
__slots__ = ("z",) # inherits x, y slots from PointUse slots=True on dataclasses: @dataclass(slots=True).
# Mutable default argument — shared across all calls
def bad(items=[]): items.append(1) # BAD — list is shared
def good(items=None): items = items or [] # GOOD
# Late binding in closures
fns = [lambda x, i=i: x + i for i in range(3)] # i=i captures current value
# is vs ==
a = 256; b = 256; a is b # True — small ints are cached
a = 257; b = 257; a is b # False — large ints are not
# Always use == for value equality; is only for None/True/False/singletons
# Walrus operator := (Python 3.8+)
while chunk := file.read(8192):
process(chunk)
if m := re.search(pattern, text):
print(m.group(0))
# Exception chaining
try:
result = parse(data)
except ValueError as e:
raise ServiceError("Parse failed") from e # preserves original traceback
# f-string debugging (Python 3.8+)
x = 42
print(f"{x=}") # prints: x=42| Technique | When to use |
|---|---|
__slots__ | Many instances of the same class in memory |
@lru_cache | Pure functions called repeatedly with same args |
| Generator over list | Large sequences you iterate once |
collections.deque | Frequent append/pop from both ends |
set lookup | x in large_collection — O(1) vs O(n) for list |
str.join | Building strings in a loop — never += in a loop |
local variable | Hoist self.attr to local in tight loops |
asyncio.gather | Independent async calls — run concurrently |
def f(items=[])) — the default list is created once at definition time and shared across all calls; use None as the default and initialize inside the function bodyexcept: or except Exception: — catching all exceptions hides bugs and swallows KeyboardInterrupt; catch the narrowest specific exception type you actually expect and handleasyncio.run() inside an already-running event loop — calling asyncio.run() from within an async context (FastAPI, Jupyter) raises RuntimeError; use await directly or loop.run_until_complete()multiprocessing or ProcessPoolExecutor for CPU-bound parallelismfrom module import * in __init__.py — star imports pollute the namespace and make name origins untraceable; always import explicitly@dataclass fields with mutable defaults — field: list = [] shares the same list object across all instances; use field(default_factory=list) for mutable defaultsis to compare values — x is 1 or x is "hello" relies on CPython interning that is not guaranteed across Python versions; use == for value comparison and is only for None, True, FalseProtocol used instead of ABC when only structural compatibility mattersfield(default_factory=...) in dataclassesasyncio.sleep, aiofiles, or run_in_executor — never time.sleepasyncio.gather or TaskGroup@functools.wraps to preserve function metadata@lru_cache on pure, frequently-called functions__slots__ on dataclasses or classes with many instancessuppress / ExitStack from contextlib instead of try/finally boilerplate© kid-sid, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in skills/python of kid-sid/claude-spellbook.
Open the folder on GitHubat commit a7c2ac9
Python 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Python this skillkid-sid/claude-spellbook | 189 | — | ~3.6k | Automated safety check: Pass | MIT | |
| Python Prodavila7/claude-code-templates | 32k | 7 repos | ~1.8k | Automated safety check: Pass | MIT | |
| Python Project SetupFerroxLabs/wayland | 608 | — | ~3.7k | Automated safety check: Pass | Apache-2.0 | |
| Gorm ExpertLeoYeAI/openclaw-master-skills | 2.2k | — | ~3.4k | Automated safety check: Pass | MIT | |
| Mirage VFS Adapter Authoringstrukto-ai/mirage | 3.7k | — | ~2.4k | Automated safety check: Pass | Apache-2.0 | |
| A2ui Generate Pydantic Modelsa2ui-project/a2ui | 17k | — | ~2.3k | Automated safety check: Pass | Apache-2.0 |
davila7/claude-code-templates
Master Python 3.12+ with modern features, async programming, performance optimization, and production-ready practices.
FerroxLabs/wayland
Guides expert-level Python project initialization with modern tooling: pyproject.toml configuration, uv for dependency management, src layout decisions, mypy strict mode, and ruff for…
LeoYeAI/openclaw-master-skills
GORM v2 最佳实践与性能优化。适用于:代码审查、慢查询优化、N+1、连接池、 事务管理、分库分表、Prometheus/OTel监控、Session安全、Clause/Upsert、 缓存集成、BaseModel脚手架、SQL→struct生成、多租户隔离。
strukto-ai/mirage
Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.
a2ui-project/a2ui
Automated generator for strongly typed Pydantic v2 data models and basic catalogs across any A2UI protocol version (v0.8, v0.9, v0.9.1, v1.0, etc.).
zmievsa/cadwyn
Prepare and publish Cadwyn releases. An agent skill from zmievsa/cadwyn.
kid-sid/claude-spellbook
A skill your agent uses when building or reviewing UI components for keyboard and screen reader compatibility, adding ARIA to custom widgets, auditing a page for WCAG AA conformance, or preparing…
kid-sid/claude-spellbook
A skill your agent uses when building, wiring, or debugging an Agentex agent — choosing agent type, configuring acp.py and manifest.yaml, using adk.messages or adk.state, or resolving…
kid-sid/claude-spellbook
A skill your agent uses when building production LLM applications — designing RAG pipelines, choosing vector databases, implementing agent orchestration, optimizing cost, or adding AI safety…
kid-sid/claude-spellbook
A skill your agent uses when building or refactoring Angular applications — choosing between signals, RxJS, and NgRx for state, configuring routing with guards and lazy loading, optimizing change…
kid-sid/claude-spellbook
A skill your agent uses when designing new REST endpoints, reviewing an existing API contract, adding pagination or filtering, planning a versioning strategy, or building a public or partner-facing…
kid-sid/claude-spellbook
A skill your agent uses when implementing login flows, issuing or validating JWTs, setting up OAuth2/OIDC with a provider, designing role-based or attribute-based access control, securing API…
Categories
A skill your agent uses when writing or debugging non-trivial Python — async pitfalls, type system patterns, dataclass vs Pydantic decisions, decorator design, generator efficiency, or…. Python is an agent skill from kid-sid/claude-spellbook. Use when writing or debugging non-trivial Python — async pitfalls, type system patterns, dataclass vs Pydantic decisions, decorator design, generator efficiency, or language-specific idioms like structural pattern matching and slots.
Python fits situations like: debugging non-trivial Python — async pitfalls; type system patterns; dataclass vs Pydantic decisions; decorator design.
Run `npx skills add kid-sid/claude-spellbook --skill python -a claude-code`. Or copy the skill folder (skills/python in kid-sid/claude-spellbook) into .claude/skills/python in your project. Claude Code loads it when a task matches its description.
Run `npx skills add kid-sid/claude-spellbook --skill python -a codex`. Or copy the skill folder (skills/python in kid-sid/claude-spellbook) into .agents/skills/python in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add kid-sid/claude-spellbook --skill python -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/python, .gemini/skills/python, .github/skills/python and .opencode/skills/python in your project.
SKILL.md names no scripts, command-line tools or credentials: Python is instructions for the agent only. Our summary lists: Python 3.
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.
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.
Python is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 3.6k tokens (SKILL.md is roughly 14k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Python: Python Pro (davila7/claude-code-templates, 32k stars), Python Project Setup (FerroxLabs/wayland, 608 stars), Gorm Expert (LeoYeAI/openclaw-master-skills, 2.2k stars) and Mirage VFS Adapter Authoring (strukto-ai/mirage, 3.7k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
kid-sid (a GitHub user) maintains it in kid-sid/claude-spellbook, which has 189 GitHub stars. The repository holds 54 skills in this directory. The repository was last updated on August 5, 2026.
Source: kid-sid/claude-spellbook on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.