Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Sahib-Sawhney-WH/sahibs-claude-plugin-marketplacenpx agentmods add skills/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/code-generatorWrote 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/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/code-generator)<a href="https://agentmods.dev/skills/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/code-generator"><img src="https://agentmods.dev/badge/skills/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/code-generator/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/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/code-generator"><img src="https://agentmods.dev/badge/skills/sahib-sawhney-wh/sahibs-claude-plugin-marketplace/code-generator.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.00056 | $0.02793 |
| Opus 5 | $0.00028 | $0.01396 |
| Sonnet 5 | $0.00011 | $0.00559 |
| Haiku 4.5 | $0.00006 | $0.00279 |
Grade A, and why
dapr-code-generator 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 12d 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 — 452 lines — stays where its author put it; the contents beside it link to each section on GitHub.
DAPR Code Generator
This skill generates production-ready Python code for DAPR applications following best practices.
When to Use
Claude automatically uses this skill when:
- User creates a new DAPR service
- Adding DAPR features to existing code
- Scaffolding microservice projects
- Creating workflows or actors
Code Templates
FastAPI Microservice
"""
{service_name} - DAPR-enabled FastAPI microservice
"""
import json
import logging
from contextlib import asynccontextmanager
from typing import Any
from fastapi import FastAPI, HTTPException, Request
from fastapi.responses import JSONResponse
from pydantic import BaseModel
from dapr.clients import DaprClient
from dapr.ext.fastapi import DaprApp
# Configure logging
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
logger = logging.getLogger(__name__)
# Constants
DAPR_STORE_NAME = "statestore"
DAPR_PUBSUB_NAME = "pubsub"
@asynccontextmanager
async def lifespan(app: FastAPI):
"""Application lifespan handler."""
logger.info("Starting {service_name}")
yield
logger.info("Shutting down {service_name}")
app = FastAPI(
title="{service_name}",
lifespan=lifespan
)
dapr_app = DaprApp(app)
# Health endpoints
@app.get("/health")
async def health():
"""Health check endpoint."""
return {"status": "healthy"}
@app.get("/ready")
async def ready():
"""Readiness check endpoint."""
return {"status": "ready"}
# DAPR State Management
async def save_state(key: str, value: Any) -> None:
"""Save state to DAPR state store."""
async with DaprClient() as client:
await client.save_state(
store_name=DAPR_STORE_NAME,
key=key,
value=json.dumps(value)
)
logger.info(f"State saved: {key}")
async def get_state(key: str) -> Any:
"""Get state from DAPR state store."""
async with DaprClient() as client:
state = await client.get_state(
store_name=DAPR_STORE_NAME,
key=key
)
if state.data:
return json.loads(state.data)
return None
# DAPR Pub/Sub
async def publish_event(topic: str, data: Any) -> None:
"""Publish event to DAPR pub/sub."""
async with DaprClient() as client:
await client.publish_event(
pubsub_name=DAPR_PUBSUB_NAME,
topic_name=topic,
data=json.dumps(data),
data_content_type="application/json"
)
logger.info(f"Event published to {topic}")
# DAPR Service Invocation
async def invoke_service(app_id: str, method: str, data: Any = None) -> Any:
"""Invoke another DAPR service."""
async with DaprClient() as client:
response = await client.invoke_method(
app_id=app_id,
method_name=method,
data=json.dumps(data) if data else None,
content_type="application/json"
)
return response.json() if response.data else None
# Example API endpoints - customize as needed
class ItemModel(BaseModel):
id: str
name: str
data: dict = {}
@app.post("/items")
async def create_item(item: ItemModel):
"""Create a new item."""
await save_state(f"item-{item.id}", item.model_dump())
await publish_event("items", {"action": "created", "item": item.model_dump()})
return {"status": "created", "id": item.id}
@app.get("/items/{item_id}")
async def get_item(item_id: str):
"""Get an item by ID."""
item = await get_state(f"item-{item_id}")
if not item:
raise HTTPException(status_code=404, detail="Item not found")
return item
# DAPR Pub/Sub subscription
@dapr_app.subscribe(pubsub=DAPR_PUBSUB_NAME, topic="items")
async def handle_item_event(event: dict):
"""Handle item events from pub/sub."""
logger.info(f"Received event: {event}")
return {"status": "SUCCESS"}
if __name__ == "__main__":
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=8000)
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.
- 12d ago First seen · 452 lines · 56 tokens per session scan A 594efb7dda37
dapr-code-generator is a skill published in the GitHub repository Sahib-Sawhney-WH/sahibs-claude-plugin-marketplace (4 stars, last pushed 8mo ago), licensed MIT. It adds 56 tokens to every session and 2,793 once invoked, about $0.0003 per session on Opus 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-08-31.
Other skills, from other repositories
stripe-projects
Use after E2B sandbox/API access has been provisioned through Stripe Projects and the user needs to use the resulting E2B API key with the E2B CLI, JavaScript SDK, Python SDK, or Code Interpreter SDK.
azure-mgmt-botservice-py
Azure Bot Service Management SDK for Python. Use for creating, managing, and configuring Azure Bot Service resources. Triggers: "azure-mgmt-botservice", "AzureBotService", "bot management", "conversational AI", "bot channels".
azure-messaging-webpubsubservice-py
Azure Web PubSub Service SDK for Python. Use for real-time messaging, WebSocket connections, and pub/sub patterns. Triggers: "azure-messaging-webpubsubservice", "WebPubSubServiceClient", "real-time", "WebSocket", "pub/sub".
backend
Python server code, APIs, async, strict typing.
fastapi-app
Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs. Use when the user wants to start, scaffold, or set up a new FastAPI service, a Python REST API, an async backend, or asks to "create a new fastapi app" or "new python backend". Handles JWT auth, layered…
azure-appconfiguration-py
Centralized configuration management with feature flags and dynamic settings.