ktor

A reference guide for Ktor 3.5.x, a Kotlin framework for building web servers, HTTP clients, and multiplatform applications. It covers common web features such as routes, data formats, login checks, WebSockets, and server-sent events.

In plain words
What is it for?
Use it when building, changing, debugging, or reviewing Ktor server and client applications, including REST APIs, real-time connections, tests, and deployment.
Why use it?
It helps developers use the correct Ktor APIs and patterns instead of guessing how the framework handles requests, responses, authentication, or testing.

Skill for Claude CodeCodex

Install

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.

agentmods
npx agentmods add skills/heapy/kortex/ktor
Any agent
npx skills add Heapy/kortex --skill ktor
Clone the repo
git clone --depth 1 https://github.com/Heapy/kortex

Made for: Claude Code, Codex.

Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,795 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. Scan, not verified.
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 $0.00057 $0.01795
Opus 5 $0.00028 $0.00898
Sonnet 5 $0.00011 $0.00359
Haiku 4.5 $0.00006 $0.00179

Measured 2d ago against content hash 41db5080232f, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

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

Makes network callslowCapability

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

`ktor-client-jetty-jakarta`, `ktor-client-android`, `ktor-client-darwin`, `ktor-client-curl`, `ktor-client-winhttp`,
plugins/kortex/skills/ktor/SKILL.md · 182 lines

How it starts

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

Ktor

Use this skill for Ktor framework work: Kotlin HTTP servers, HTTP clients, multiplatform clients, REST APIs, WebSockets, SSE, serialization, authentication, plugins, testing, and deployment.

Do not confuse Ktor with generic Kotlin, Spring Boot, ktorfit, Retrofit, OkHttp-only usage, or Kotlin Toolchain build configuration. If the task is about module.yaml or the ./kotlin build CLI, load kotlin-toolchain too. If the task is a standalone .main.kts script using Ktor, load main-kts too.

Source Snapshot

This skill is generated from the official Ktor documentation:

  • Repository: https://github.com/ktorio/ktor-documentation
  • Ref: main at the Ktor 3.5.x documentation line
  • SHA: d118418a65e03d73ad7c2d33bb68e979cebcb4e5
  • Ktor version variable: 3.5.1
  • Kotlin version variable: 2.3.21
  • Coroutines version variable: 1.11.0
  • Server guide: references/server.md
  • Client guide: references/client.md
  • Regeneration log: generation/generation-steps.md

Version this skill by the Ktor minor line, like kotlin-toolchain: this default SKILL.md targets Ktor 3.5.x and should keep immediate operational guidance here instead of becoming only a version index. If maintaining future docs, create or update a minor-line snapshot such as Ktor 3.6.x; do not silently mix breaking or behavior-changing guidance from a different minor line.

Ktor APIs move between minor releases. When exact syntax matters, inspect the project dependencies/build files first and prefer the docs for the project's installed Ktor version.

First Moves

When working in a repository:

  1. Inspect build files first: build.gradle.kts, settings.gradle.kts, gradle/libs.versions.toml, pom.xml, module.yaml, or .main.kts annotations.
  2. Determine Ktor version and whether it is server, client, or both.
  3. For server work, load references/server.md.
  4. For client or multiplatform client work, load references/client.md.
  5. Preserve the project's build system and existing style. Do not introduce Gradle if the project uses Kotlin Toolchain; do not introduce Kotlin Toolchain if the project uses Gradle or Maven.
  6. Add only the artifacts required for the plugins/features being installed.
  7. After changes, run the project's real tests or at least a compile/build task.

Read the full file on GitHub · 182 lines

Files

What ships with it

4 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. 2d ago First seen · 182 lines · 57 tokens per session scan A 41db5080232f

Subscribe to this mod's changes

ktor is a skill published in the GitHub repository Heapy/kortex (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 57 tokens to every session and 1,795 once invoked, about $0.0003 per session on Opus 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-08-31.

Related

Other skills, from other repositories

skills-manager-cli

Drive the Skills Manager CLI (skm) to initialize the hub, adopt unmanaged skills, list/enable/disable skills per AI tool, and doctor/fix symlink sync. Use whenever the user or an agent needs to manage skills from a terminal, SSH session, CI job, or headless machine; when a skill is missing in Claude Code, Codex…

jiweiyeah/Skills-Manager · 151 tokens

ppt-design-skill

Design, generate, review, and revise editable PowerPoint presentations through a rigorous brief-to-PNG workflow using the public pptx-designer Python library.

sunchaokun/PPT-Design-Skill · 35 tokens

cesiumjs-primitives

CesiumJS primitives and geometry - Primitive, GeometryInstance, Appearance, BufferPrimitive collections, GeoJsonPrimitive, Billboard/Label/PointPrimitive collections, built-in geometry shapes, ground primitives, classification. Use when rendering performance-critical static or vector geometry, loading GeoJSON without…

CesiumGS/cesiumjs-skills · 76 tokens

cesiumjs-3d-tiles

CesiumJS 3D Tiles - Cesium3DTileset, compressed and CAD-style glTF content, MVTDataProvider, styling, metadata, feature picking, voxels, point clouds, I3S, Gaussian splats, clipping. Use when loading 3D Tiles or Mapbox Vector Tiles, rendering KHR meshopt/CAD content, styling or querying features, working with voxels…

CesiumGS/cesiumjs-skills · 100 tokens

cesiumjs-camera

CesiumJS camera control - Camera, flyTo, lookAt, setView, ScreenSpaceCameraController, CameraEventAggregator, flight animation. Use when positioning the camera, creating flyTo animations, constraining user navigation, tracking entities, or converting between screen and world coordinates.

CesiumGS/cesiumjs-skills · 61 tokens

cesiumjs-custom-shader

CustomShader authoring — vertexShaderText and fragmentShaderText against VertexInput, FragmentInput, FeatureIds, Metadata, czmmodelMaterial. Use when reading EXTmeshfeatures or EXTstructuralmetadata property textures/tables, vertex displacement, or shading VoxelPrimitive.

CesiumGS/cesiumjs-skills · 61 tokens