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 makifbaysal/tasktrooper --skill model-serving-and-monitoringgit clone --depth 1 https://github.com/makifbaysal/tasktrooperWrote 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/makifbaysal/tasktrooper/model-serving-and-monitoring)<a href="https://agentmods.dev/skills/makifbaysal/tasktrooper/model-serving-and-monitoring"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/model-serving-and-monitoring/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/makifbaysal/tasktrooper/model-serving-and-monitoring"><img src="https://agentmods.dev/badge/skills/makifbaysal/tasktrooper/model-serving-and-monitoring.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.00054 | $0.02102 |
| Opus 5.5 | $0.00022 | $0.00841 |
| Sonnet 5.5 | $0.00011 | $0.00420 |
| Haiku 4.5 | $0.00005 | $0.00210 |
Grade A, and why
model-serving-and-monitoring 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 4d 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 — 168 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Model Serving and Monitoring
Overview
A model in production fails in ways a notebook never shows: the API re-implements preprocessing slightly differently, the artifact loaded is not the one evaluated, inputs drift away from the training data, or an async endpoint blocks on CPU work and the service stalls. Serving code is ordinary backend code with typed inputs, tests and a health check — plus a version on every prediction.
Core principle: serve the exact fitted pipeline you evaluated, identified by an immutable version, and log enough with every prediction to notice when the world stops looking like the training data.
1. Batch or online?
| Need | Choose |
|---|---|
| Scores consumed on a schedule (daily campaign, nightly risk list) | batch scoring as a pipeline stage (data-pipeline-orchestration) |
| A decision inside a user request (fraud check, ranking) | online endpoint with a latency budget |
| Both | one fitted pipeline, two thin callers — never two feature implementations |
Batch is simpler to operate, test and roll back; choose online only when the decision needs it.
2. Online endpoint (FastAPI)
class Features(BaseModel):
model_config = ConfigDict(extra="forbid")
days_since_order: int = Field(ge=0, le=3650)
orders_90d: int = Field(ge=0)
plan: Literal["free", "pro", "team"]
class ScoreRequest(BaseModel):
model_config = ConfigDict(extra="forbid")
rows: list[Features] = Field(min_length=1, max_length=1000)
class ScoreResponse(BaseModel):
model_version: str
scores: list[float]
def create_app(settings: Settings) -> FastAPI:
@asynccontextmanager
async def lifespan(app: FastAPI):
app.state.model = load_model(settings.model_path, settings.trusted_types)
app.state.model_version = settings.model_version
yield
app = FastAPI(lifespan=lifespan)
@app.get("/health")
def health() -> dict[str, str]:
return {"status": "ok"}
@app.get("/ready")
def ready(request: Request) -> dict[str, str]:
if getattr(request.app.state, "model", None) is None:
raise HTTPException(status_code=503, detail="model not loaded")
return {"status": "ready", "model_version": request.app.state.model_version}
@app.post("/score")
def score(body: ScoreRequest, request: Request) -> ScoreResponse:
frame = pd.DataFrame([row.model_dump() for row in body.rows])
proba = request.app.state.model.predict_proba(frame)[:, 1]
return ScoreResponse(model_version=request.app.state.model_version, scores=proba.tolist())
return app
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.
- 4d ago First seen · 168 lines · 54 tokens per session scan A bea7bea9353a
model-serving-and-monitoring is a skill published in the GitHub repository makifbaysal/tasktrooper (113 stars, last pushed yesterday), licensed Apache-2.0. It adds 54 tokens to every session and 2,102 once invoked, about $0.0002 per session on Opus 5.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-10-09.
Other skills, from other repositories
deepstream-sop
Use this skill when building, deploying, evaluating, debugging, or measuring latency for the DeepStream SOP Inference Microservice — a GPU-accelerated FastAPI service that detects whether operators perform assembly-line steps in order via event boundary detection (GEBD) plus VLM classification. Trigger even if the…
agent-crdt-synchronizer
Agent skill for crdt-synchronizer - invoke with $agent-crdt-synchronizer.
agent-quorum-manager
Agent skill for quorum-manager - invoke with $agent-quorum-manager.
flow-nexus-neural
Train and deploy neural networks in distributed E2B sandboxes with Flow Nexus.
agent-dev-backend-api
Agent skill for dev-backend-api - invoke with $agent-dev-backend-api.
agent-v3-memory-specialist
Agent skill for v3-memory-specialist - invoke with $agent-v3-memory-specialist.