ktor

ktor is a skill for Claude Code, Codex from Heapy/kortex. It costs 57 tokens per session (1,795 once invoked), scanned A, original, Apache-2.0.

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

Written for Claude Code and Codex: shipped in a Claude Code plugin, but also agents/openai.yaml present.

Part of the kortex plugin — 5 skills shipped together

Good fit Use it when building, changing, debugging, or reviewing Ktor server and client applications, including REST APIs, real-time connections, tests, and deployment.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/heapy/kortex/ktor
View source ↗ Heapy/kortex
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.

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.

Or install kortex, the plugin that ships this one along with the rest of its 5 skills.

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 ktor

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/heapy/kortex/ktor"><img src="https://agentmods.dev/badge/skills/heapy/kortex/ktor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
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. 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.00057 $0.01795
Opus 5.5 $0.00023 $0.00718
Sonnet 5.5 $0.00011 $0.00359
Haiku 4.5 $0.00006 $0.00179

Measured 1mo ago against content hash 41db5080232f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 (7 stars, last pushed 10d ago), licensed Apache-2.0. It adds 57 tokens to every session and 1,795 once invoked, about $0.0002 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-08-31.

Related

Other skills, from other repositories

kotlin-backend-conventions

A set of coding conventions for BK-CI Kotlin back-end projects. Kotlin is a programming language, and back-end code runs the services behind an application.

TencentBlueKing/bk-ci · 71 tokens

backend-microservice-development

Backend microservice development guidance for BK-CI using Kotlin or Java and Spring Boot. It covers resources, API, service, and data-access layers, dependency injection, service ownership, and backend conventions.

TencentBlueKing/bk-ci · 62 tokens

flutter-implement-json-serialization

Create model classes with fromJson and toJson methods using dart:convert. Use when manually mapping JSON keys to class properties for simple data structures.

aiskillstore/marketplace · 41 tokens

swift-codable

Implement Swift Codable models for JSON and property-list encoding and decoding with JSONDecoder, JSONEncoder, CodingKeys, and custom init(from:) or encode(to:). Use when parsing API responses, remapping keys, flattening nested JSON, handling date or data decoding strategies, decoding heterogeneous arrays, or…

dpearson2699/swift-ios-skills · 76 tokens

python-fastapi-setup

FastAPI service setup: app/main.py, API routers, pydantic-settings, lifespan/app.state services, middleware, health checks, pytest/TestClient, Uvicorn, Gunicorn/uvicorn-worker, Docker/Compose. Use for scaffolding or modernizing Python API services; skip for Flask/Django-only, frontend-only, non-Python APIs, or…

Victory-7291/project-scaffold-setup-skills · 84 tokens

kotlin-ktor-patterns

Ktor server patterns including routing DSL, plugins, authentication, Koin DI, kotlinx.serialization, WebSockets, and testApplication testing. Use when building a Ktor server — routing, plugins, auth, DI, serialization, or tests.

userInner/SKILLS · 55 tokens