temps-add-handler

temps-add-handler is a skill for Claude Code, Codex from gotempsh/temps. It costs 90 tokens per session (2,713 once invoked), scanned A, original, Apache-2.0.

A procedure for adding an HTTP endpoint, the part of a web service that receives requests and sends responses, to a Temps server. It covers access checks, typed request and response data, service calls, errors, audit records, routes, and API documentation.

In plain words
What is it for?
Use it to add or change authenticated endpoints, connect them to a service instead of directly to the database, register routes and OpenAPI documentation, and update generated web and command-line clients.
Why use it?
It keeps request handling separate from business logic and helps ensure that authentication, permissions, project scope, error responses, and write logging are not missed.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 scripts/rule_drift.py.

Good fit Use it to add or change authenticated endpoints, connect them to a service instead of directly to the database, register routes and OpenAPI documentation, and update generated web and command-line clients.

Compare 6 skills from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/gotempsh/temps
agentmods
npx agentmods add skills/gotempsh/temps/temps-add-handler

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for temps-add-handler

README.md
[![agentmods](https://agentmods.dev/badge/skills/gotempsh/temps/temps-add-handler/github.svg)](https://agentmods.dev/skills/gotempsh/temps/temps-add-handler)
Your own site
<a href="https://agentmods.dev/skills/gotempsh/temps/temps-add-handler"><img src="https://agentmods.dev/badge/skills/gotempsh/temps/temps-add-handler/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.

agentmods 80×15 button for temps-add-handler

Your own site · 80×15
<a href="https://agentmods.dev/skills/gotempsh/temps/temps-add-handler"><img src="https://agentmods.dev/badge/skills/gotempsh/temps/temps-add-handler.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 90 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,713 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00090 $0.02713
Opus 5.5 $0.00036 $0.01085
Sonnet 5.5 $0.00018 $0.00543
Haiku 4.5 $0.00009 $0.00271

Measured yesterday against content hash 74322c64ecb4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

temps-add-handler scanned grade A with 1 finding 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 yesterday.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Never `curl ... > apps/temps-cli/openapi.json`: the committed file is sorted and
.agents/skills/temps-add-handler/SKILL.md · 219 lines

How it starts

The opening of the file, as written. The whole thing — 219 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Add an HTTP handler

Handlers are the thin HTTP layer: authenticate, authorise, call one service, audit the write, map the result. Everything else lives in the service.

Reference crate: crates/temps-flags (small, complete, follows every rule):

Piece File
Domain error enum + From<sea_orm::DbErr> crates/temps-flags/src/error.rs
Service (business logic, mock-DB tests) crates/temps-flags/src/services/flag_service.rs
DTOs + handler state crates/temps-flags/src/handlers/types.rs
Handlers, routes, ApiDoc, From<FlagError> for Problem, guard tests crates/temps-flags/src/handlers/handler.rs
Audit event types crates/temps-flags/src/handlers/audit.rs
Plugin wiring crates/temps-flags/src/plugin.rs

Read first: AGENTS.md (Errors, Architecture), REVIEW.md → "Authorization and scope" and "Secrets must not reach logs".

1. Service first

If the behaviour does not exist in a service yet, add it there: a method on the crate's service struct returning Result<T, DomainError> (a thiserror enum whose variants carry the IDs involved). No anyhow in services. The handler never imports sea_orm or touches an entity; scripts/rule_drift.py counts handler_db_access for any use sea_orm / Entity::find in handlers/ or handlers.rs.

2. DTOs

In the crate's handlers/types.rs (or next to the handler):

  • Request and response structs derive Serialize/Deserialize and utoipa::ToSchema; query structs derive utoipa::IntoParams.
  • Never return Json<serde_json::Value>; always a typed struct.
  • Convert models to responses with From/a constructor; do not serialise entities directly.
  • Dates are DateTime<Utc> (ISO 8601 with Z).
  • Secrets: a stored key, token or password is never returned. Return a flag such as has_secret: bool (crates/temps-webhooks/src/handlers.rs) or ***. The only exception is a credential minted by this request (a new API key, a reset password): returned once, with Cache-Control: no-store, never logged or audited; see reset_user_password in crates/temps-auth/src/handlers.rs.
  • Lists are paginated: page (default 1), page_size (default 20, max 100), sorted created_at DESC unless the domain has a better natural order. Clamp in one shared helper, as normalize_pagination in the flags service does, so the handler's total_pages matches what the service served.

Read the full file on GitHub · 219 lines

Changes

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.

  1. yesterday Changed 74322c64ecb4
  2. 4d ago First seen · 219 lines · 90 tokens per session scan A 61f30ab4165d

Subscribe to this mod's changes

temps-add-handler is a skill published in the GitHub repository gotempsh/temps (903 stars, last pushed yesterday), licensed Apache-2.0. It adds 90 tokens to every session and 2,713 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-02.

Related

temps-add-handler compared with skills from other repositories

temps-add-handler next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
temps-add-handlergotempsh/tempsSkill903yesterdayApache-2.0A90Claude Code, Codex
bunjs-productionMadAppGang/claude-codeSkill2877mo agoMITA52Claude Code
reviewing-blogsappwrite/appwriteSkill58kyesterdayBSD-3-ClauseA55Cursor
java-modernpiomin/claude-ai-spring-bootSkill1.4k7d agoApache-2.0A46Claude Code
claude-apiPrismer-AI/PrismerCloudSkill1.4k15d agoMITA193Claude Code, Codex
release-preflightPrismer-AI/PrismerCloudSkill1.4k15d agoMITA76Claude Code
release-db-config-syncPrismer-AI/PrismerCloudSkill1.4k15d agoMITA91Claude Code