oak-backend

oak-backend is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 62 tokens per session (3,722 once invoked), scanned A, original, MIT.

A guide for building web backends with Oak, a TypeScript framework that runs on Deno. It covers routes, middleware, request context, permissions, errors, and testing.

In plain words
What is it for?
Use it to structure Oak servers, compose middleware, define typed routes, manage request state and cookies, configure environment access, and test handlers.
Why use it?
It helps keep Oak applications organized and type-safe while avoiding patterns meant for other backend frameworks or runtimes.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Codex.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { OrderController } from '../controllers/order.controller.ts'.

Good fit Use it to structure Oak servers, compose middleware, define typed routes, manage request state and cookies, configure environment access, and test handlers.

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/j4flmao/agent-skills
agentmods
npx agentmods add skills/j4flmao/agent-skills/oak

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 oak-backend

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/oak"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/oak.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 62 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,722 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00062 $0.03722
Opus 5.5 $0.00025 $0.01489
Sonnet 5.5 $0.00012 $0.00744
Haiku 4.5 $0.00006 $0.00372

Measured 13d ago against content hash 06f95a4e1aad, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

oak-backend 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 13d 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.

skills/backend/deno/oak/SKILL.md · 449 lines

How it starts

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

Oak Backend

Purpose

Define Oak backend application architecture: Deno-native HTTP server, middleware composition, router pattern, and context management with typed state, composable middleware pipeline, and type-safe routing.

Agent Protocol

Trigger

User request includes: oak, oak backend, deno oak, oak middleware, oak router, deno http, oak context, oak typescript.

Input Context

  • Deno version (2.x assumed)
  • Oak version (17.x on JSR: jsr:@oak/oak; v13+ changed the body API)
  • Language (TypeScript)
  • Database (Deno KV, PostgreSQL via npm:pg or jsr:@db/postgres, MongoDB via npm:mongodb)
  • Templating (eta, deno mustache)
  • Deployment (Deno Deploy, self-hosted)

Output Artifact

A markdown document containing:

  • Project structure
  • Router setup (Router class)
  • Middleware composition (use, compose)
  • Context (c.state, c.cookies, c.send)
  • Error handling middleware
  • State management (context state)
  • Environment configuration (Deno.env)
  • Testing (Deno.test with app.handle(), or superoak)

Response Format

Produce the artifact directly. No preamble, no postamble, no explanations. No filler, no hedging. Compress output.

Completion Criteria

  • Router separates route definitions from app setup
  • Middleware pipeline composed with app.use()
  • Error middleware catches all exceptions
  • State typed via OakMiddleware type parameter
  • Tests call app.handle(new Request(...)) or use superoak
  • Lockfile generated and committed

Max Response Length

4096 tokens

Architecture Decision Trees

Oak vs Hono vs std/http

Criterion Oak Hono std/http
Middleware ecosystem Rich (cors, auth, rate-limit, static) Growing (cors, etag, jwt) Manual
TypeScript context typing Generic State param c.req.valid() Manual
Router pattern Router({ prefix }) Chained .get().post() Switch/match
File upload await ctx.request.body.formData() c.req.parseBody() req.formData()
WebSocket ctx.upgrade() upgradeWebSocket from hono/deno Deno.upgradeWebSocket
Multi-runtime Deno first (also Node/Bun) Deno, Node, Bun, Workers Deno only

Read the full file on GitHub · 449 lines

Files

What ships with it

6 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 13d ago Changed · +1 lines · -46 tokens per session 06f95a4e1aad
  2. 1mo ago Changed · -66 lines · +40 tokens per session a36b5a86f01e
  3. 3mo ago First seen · 514 lines · 68 tokens per session scan A 49f1fc00f950

Subscribe to this mod's changes

oak-backend is a skill published in the GitHub repository j4flmao/agent-skills (46 stars, last pushed 14d ago), licensed MIT. It adds 62 tokens to every session and 3,722 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-08-30.

Related

oak-backend compared with skills from other repositories

oak-backend next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
oak-backendj4flmao/agent-skillsSkill4614d agoMITA62Claude Code, Codex
nifranifrajs/nifraSkill7todayMITA83Claude Code
stripe-projectse2b-dev/E2BSkill15ktodayApache-2.0A51Claude Code, Codex
nestjs-expertJeffallan/claude-skillsSkill13ktodayMITA107Claude Code
nestjsericrisco/rsc-harnessSkill6915d agoMITA81Claude Code, Codex
azure-web-pubsub-tsbenjaminasterA/antigravity-awesome-skillsSkill522todayMITA51Claude Code, Codex
better-authsecondsky/claude-skillsSkill257todayMITA53Claude Code