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 resonatehq/resonate-skills --skill resonate-http-service-design-pythongit clone --depth 1 https://github.com/resonatehq/resonate-skillsWrote 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/resonatehq/resonate-skills/resonate-http-service-design-python)<a href="https://agentmods.dev/skills/resonatehq/resonate-skills/resonate-http-service-design-python"><img src="https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-http-service-design-python/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/resonatehq/resonate-skills/resonate-http-service-design-python"><img src="https://agentmods.dev/badge/skills/resonatehq/resonate-skills/resonate-http-service-design-python.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.00059 | $0.02358 |
| Opus 5 | $0.00030 | $0.01179 |
| Sonnet 5 | $0.00012 | $0.00472 |
| Haiku 4.5 | $0.00006 | $0.00236 |
Grade A, and why
resonate-http-service-design-python 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 10d 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 — 255 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Resonate HTTP Service Design — Python
Overview
Route handlers in a Python web framework (FastAPI, Flask, Django) are the entrypoint for durable workflows; they start or await invocations via the Resonate client. Actual business logic runs in worker processes that register durable functions. Downstream services (a DB worker, a search worker) expose their own durable functions and are invoked via RPC.
This skill covers the shape of that split: what runs where, how routes interact with workers, and how webhooks resolve durable promises.
Architecture model
client → HTTP routes (FastAPI/Flask)
→ Resonate client (r.run / r.rpc / r.promises.resolve)
→ worker group A (business logic)
→ ctx.rpc → worker group B (specialized, e.g. DB)
- HTTP server: FastAPI/Flask/Django app handling routes; maps HTTP requests to Resonate invocations
- Worker service: a process (same or different host) with
r.register(...)-ed functions; connects to the Resonate server - Resonate server: durable promise store + coordination hub (Rust v0.9.x, single port 8001)
Rules
- Route handlers are ephemeral. Use Client APIs (
r.run,r.rpc,r.promises.*). Never use Context APIs in a route handler. - Durable functions run in workers.
async defwithawait ctx.run/rpc+r.register(fn). - All external effects (DB, HTTP, filesystem) run inside
ctx.runenvelopes — never at the top of a durable function, never at module import time. - Stable invocation IDs. Derive from request inputs (
f"order:{order_id}") — notuuid.uuid4()at route-handler time unless you persist the ID in the response so the client can poll.
Route design patterns
1. Submit-and-poll (async HTTP)
Client submits a job, gets an ID, polls for status:
from __future__ import annotations
import os, time
from fastapi import FastAPI, HTTPException
from pydantic import BaseModel
from resonate.resonate import Resonate
app = FastAPI()
r = Resonate(url=os.environ.get("RESONATE_URL", "http://localhost:8001"))
class JobSubmission(BaseModel):
order_id: str
items: list[str]
@app.post("/jobs")
async def submit_job(body: JobSubmission) -> dict:
job_id = f"order:{body.order_id}"
# Fire and forget — workflow runs durably in the background
r.options(target="order-workers").rpc(job_id, "process_order", body.order_id, body.items)
return {"job_id": job_id, "status": "started"}
@app.get("/jobs/{job_id}")
async def get_job(job_id: str) -> dict:
try:
record = await r.promises.get(job_id)
state = record.state if hasattr(record, "state") else "pending"
if state == "resolved":
return {"job_id": job_id, "status": "done", "result": record.value}
elif state == "rejected":
return {"job_id": job_id, "status": "failed", "reason": record.value}
else:
return {"job_id": job_id, "status": "running"}
except Exception:
raise HTTPException(status_code=404, detail="job not found")
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.
- 10d ago First seen · 255 lines · 59 tokens per session scan A 064c5cec5215
resonate-http-service-design-python is a skill published in the GitHub repository resonatehq/resonate-skills (6 stars, last pushed 19d ago), licensed Apache-2.0. It adds 59 tokens to every session and 2,358 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
create-workflow-python
This skill creates a Dapr workflow application in Python. Use this skill when the user asks to "create a workflow in Python", "write a Python workflow application" or "build a workflow app in Python".
fastapi-pro
Production FastAPI patterns — async endpoints, SQLAlchemy 2.0 async, Pydantic V2, dependency injection, JWT auth, testing. Use for Python 3.11+ FastAPI backends. NOT for Django (→ django-patterns) or Node.js (→ backend-patterns).
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-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".
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".
backend
Python server code, APIs, async, strict typing.