No slash command · from trove-dev
Enforces Python/FastAPI coding conventions: async patterns, type hints, SQLAlchemy async, Pydantic models, logging, and error handling. Auto-activates on Python files.
Ships in trove-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
This skill ships Trove conventions. Prefer existing project patterns over generic best practices when they conflict.
from __future__ import annotations when needed for forward refsfrom typing import for complex types (Optional, Union, etc.)X | None over Optional[X] (Python 3.10+)Never call blocking I/O in async functions:
# BAD — blocks the event loop
async def get_user(user_id: str):
response = requests.get(f"/users/{user_id}") # BLOCKING!
time.sleep(1) # BLOCKING!
# GOOD — non-blocking
async def get_user(user_id: str):
async with httpx.AsyncClient() as client:
response = await client.get(f"/users/{user_id}")
await asyncio.sleep(1)
httpx.AsyncClient for HTTP (not requests)asyncio.sleep for delays (not time.sleep)async with for context managers (DB sessions, HTTP clients)# INFO/DEBUG — f-strings are fine (fast path, no Sentry indexing needed)
logger.info(f"Processing user {user_id}")
# WARNING/ERROR — static message + extra dict (enables Sentry grouping)
logger.warning("Payment failed", extra={"user_id": user_id, "amount": amount})
# EXCEPTION — use in except blocks (auto-captures stack trace)
try:
await process()
except Exception:
logger.exception("Processing failed", extra={"user_id": user_id})
Never use sentry_sdk.capture_exception() — use logger.exception() instead.
# Always use async session context manager
async with get_async_session() as session:
result = await session.execute(select(User).where(User.id == user_id))
user = result.scalar_one_or_none()
# Eager loading to avoid N+1
stmt = select(User).options(selectinload(User.posts)).where(User.id == user_id)
except:HTTPException with appropriate status codesclass UserResponse(BaseModel):
model_config = ConfigDict(from_attributes=True)
id: str
name: str
email: str | None = None
created_at: datetime
httpx.AsyncClient in async codedatetime.now(tz=UTC) not datetime.utcnow() (deprecated)model_config = ConfigDict(...) not class Config:select() not session.query()What SKILL.md sets; muted values are Claude Code's defaults
python conventions; fastapi patterns; async python; pydantic models
Three short reads, in order
npx claudepluginhub bravew/trove --plugin trove-dev17 skills in this plugin
/trove-architectDesign the shape before the code: sketch types, signatures, and module structure with not-implemented bodies, agree, then fill in. Scrap the sketch when implementation proves it wrong. Use for non-trivial work where jumping straight to code would lock in the wrong shape./trove-commitGit commit workflow and message conventions. Use when creating, drafting, or reviewing atomic commits with conventional messages./trove-docs-sync-auditRead-only documentation drift audit comparing what the docs claim against what the code does. Covers READMEs, setup guides, API and env docs, changelogs, examples, and generated docs. Use when asked whether docs are stale, missing, or inconsistent after a code change. This is not a code review./trove-explainExplain code, architecture, or data flow at the appropriate level for the audience. Use when someone needs to understand unfamiliar code, a module, or system design./trove-lambdaAWS Lambda handler patterns with CDK infrastructure conventions. Auto-activates when working with Lambda handler or CDK files. Covers handler structure, SQS/SNS parsing, IPC patterns, Powertools logging, and CDK best practices./trove-perfDiagnose and fix a measured performance problem against a baseline: measure first, fix, re-measure, and cite the delta with an artifact path. Use for slow endpoints, slow queries, or any "make this faster" backed by a measurement.Other plugins' skills for the same job