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 agentmods add skills/axiosleo/node-koapp/koapp-typescriptnpx skills add AxiosLeo/node-koapp --skill koapp-typescriptgit clone --depth 1 https://github.com/AxiosLeo/node-koappWhat 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 | $0.00110 | $0.02706 |
| Opus 5 | $0.00055 | $0.01353 |
| Sonnet 5 | $0.00022 | $0.00541 |
| Haiku 4.5 | $0.00011 | $0.00271 |
Grade A, and why
koapp-typescript 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 2d 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 — 276 lines — stays where its author put it; the contents beside it link to each section on GitHub.
@axiosleo/koapp in TypeScript
Source of truth: index.d.ts at the package root.
The framework ships a full generic type system. This skill covers what is importable, how to type contexts and handlers, and the recipes for cases the generics do not cover directly (file uploads, extending the context).
Setup
npm install -D typescript @types/koa @types/node
# for file uploads:
npm install @koa/multer && npm install -D @types/koa__multer
@types/koa must be a direct devDependency: index.d.ts and
@types/koa__multer both resolve koa types, and they must land on the
same installed copy for context.koa typing and the multer module
augmentation to line up.
Importable symbols
All of these come straight from import { ... } from '@axiosleo/koapp':
| Category | Symbols |
|---|---|
| Classes | KoaApplication, SocketApplication, WebSocketApplication, Application, Router, Controller, Model, HttpResponse, HttpError, SocketClient |
| Context types | KoaContext, AppContext, ContextFromSpec, RequiredContext, SocketContext, WebSocketContext, ContextDataSpec, ContextHandler |
| Router types | RouterOptions, RouterInfo, RouterValidator, ValidatorConfig, HttpMethod |
| Config types | AppConfiguration, TypedAppConfiguration, KoaApplicationConfig, TypedKoaApplicationConfig, SocketAppConfiguration, TypedSocketAppConfiguration, WebSocketAppConfiguration, TypedWebSocketAppConfiguration, PingConfig, HttpResponseConfig |
| Response / SSE | StatusCode, IKoaSSE, IKoaSSEvent, SSEOptions |
| Functions | success, failed, result, response, error, initContext, middlewares.KoaSSEMiddleware |
On @axiosleo/koapp 1.3.2 and earlier the context/router/config types
above (everything except ContextFromSpec, RequiredContext,
SocketContext, WebSocketContext and the *ApplicationConfig family)
were not exported; recover the context type there with
type KoaCtx = Router extends Router<infer C> ? C : never;.
What ships with it
1 file 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.
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.
- 2d ago First seen · 276 lines · 110 tokens per session scan A 5cfb0d62b632
koapp-typescript is a skill published in the GitHub repository AxiosLeo/node-koapp (145 stars, last pushed 19d ago), licensed MIT. It adds 110 tokens to every session and 2,706 once invoked, about $0.0006 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-30.
Other skills, from other repositories
new-exchange
Scaffold a new CCXT exchange integration in TypeScript, following the certified-exchange template. Walks through describe(), required unified methods, parsers, capability flags, sandbox setup, and static fixtures. Use when adding support for an exchange that does not exist yet under ts/src/.
adapter-express
Mount tRPC as Express middleware with createExpressMiddleware() from @trpc/server/adapters/express. Access Express req/res in createContext via CreateExpressContextOptions. Mount at a path prefix like app.use('/trpc', ...). Avoid global express.json() conflicting with tRPC body parsing for FormData.
trpc-router
Entry point for all tRPC skills. Decision tree routing by task: initTRPC.create(), t.router(), t.procedure, createTRPCClient, adapters, subscriptions, React Query, Next.js, links, middleware, validators, error handling, caching, FormData.
compiler-port
Port a compiler pass from TypeScript to Rust. Gathers context, plans the port, implements in a subagent with test-fix loop, then reviews.
effect
Work with Effect v4 / effect-smol TypeScript code in this repo.
typescript
Write strongly-typed TypeScript code in Recharts.