Agent skill

Koapp

by AxiosLeo in AxiosLeo/node-koapp

Overview of the @axiosleo/koapp framework - a Koa-based web, TCP socket, and WebSocket framework for Node.js.

MITAuto-check passedBackend & APIs

Install Koapp

skills CLI
$ npx skills add AxiosLeo/node-koapp --skill koapp -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install AxiosLeo/node-koapp koapp --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/assets/skills/koapp .claude/skills/koapp && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
koapp
GitHub stars
145
Token cost
~1.3k tokens
SKILL.md length
465 words
Files
2
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

Overview of the @axiosleo/koapp framework - a Koa-based web, TCP socket, and WebSocket framework for Node.js.

  • Works in 5 steps: Code uses 'use strict', CommonJS, and… → Response payloads (JSON) are always… → Path parameters use /{:name} syntax,… → …
  • The user mentions @axiosleo/koapp
  • SKILL.md covers Installation, Core Exports, Class Hierarchy and Scenario Routing (pick the…, plus 4 more sections
  • Calls npm

What it does

Koapp is an agent skill from AxiosLeo/node-koapp. Overview of the @axiosleo/koapp framework - a Koa-based web, TCP socket, and WebSocket framework for Node.js. Use when the user mentions @axiosleo/koapp, koapp, needs to pick the right Application class, or wants to understand what the framework exports (KoaApplication, SocketApplication, WebSocketApplication, Router, Controller, Model, response helpers, SSE middleware).

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `quick-start.md`).

It sits in Backend & APIs, covering Realtime and WebSockets. It works with Node.js. The repository describes itself as: About Design for quickly developing OpenAPI applications using Node.js. The licence is MIT.

When your agent uses it

  • The user mentions @axiosleo/koapp
  • Needs to pick the right Application class
  • Wants to understand what the framework exports (KoaApplication
  • SocketApplication

Example prompts

  • “/koapp”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Code uses 'use strict', CommonJS, and async/await - follow suit in user
  2. Response payloads (JSON) are always wrapped as
  3. Path parameters use /{:name} syntax, e.g. /users/{:id}/posts/{:postId}.
  4. A router with method unset (or empty string) is effectively disabled -
  5. Validation rules use validatorjs

What it can do on your machine

Read from SKILL.md and the folder at commit 102955d. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • koajs.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Koapp loads about 1.3k tokens when it runs. Until then it costs about 95 tokens; SKILL.md has 465 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~95
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from AxiosLeo/node-koapp at commit 102955d, republished under its MIT licence (© AxiosLeo). 465 words, ~1,327 tokens.

Download SKILL.mdSave it as .claude/skills/koapp/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
koapp
description
Overview of the @axiosleo/koapp framework - a Koa-based web, TCP socket, and WebSocket framework for Node.js. Use when the user mentions @axiosleo/koapp, koapp, needs to pick the right Application class, or wants to understand what the framework exports (KoaApplication, SocketApplication, WebSocketApplication, Router, Controller, Model, response helpers, SSE middleware).

@axiosleo/koapp Framework Overview

@axiosleo/koapp is a Node.js framework built on top of Koa that provides three runtime modes (HTTP, TCP, WebSocket) behind a unified Application base, plus batteries-included helpers for routing, validation, response shaping, and Server-Sent Events.

Minimum Node.js version: 16.0.0.

Installation

bash
npm install @axiosleo/koapp

Core Exports

All symbols below come from require('@axiosleo/koapp'):

SymbolKindWhen to use
KoaApplicationClassStand up an HTTP server on top of Koa
SocketApplicationClassStand up a TCP socket server (Node net)
WebSocketApplicationClassStand up a WebSocket server (the ws library)
ApplicationClassBase class, rarely instantiated directly
RouterClassDefine routes, path params, validators, nested routers
ControllerClassBase class to organize request handlers with response helpers
ModelClassStructured validation (via validatorjs) + object serialization
success / failed / result / response / errorFunctionsThrow-style response helpers consumed by the framework's workflow
HttpError / HttpResponseClassesThrowable error/response objects
middlewares.KoaSSEMiddlewareFactoryAttach a Server-Sent Events stream to a Koa route
middlewares.KoaSessionMiddlewareRe-exportkoa-session for custom setups
initContextFunctionAdvanced: build a framework context for custom transports

Full quick-start example lives in quick-start.md.

Class Hierarchy

EventEmitter
  └── Application (src/apps/app.js)
        ├── KoaApplication (src/apps/koa.js) - HTTP
        └── SocketApplication (src/apps/socket.js) - TCP
              └── WebSocketApplication (src/apps/websocket.js) - WebSocket

WebSocketApplication inherits all connection-management helpers (send, close, sendByConnectionId, closeByConnectionId, getConnection, ping, broadcast) from SocketApplication. Only the send, close, and broadcast transport wrappers are overridden.

Scenario Routing (pick the right skill)

When a task falls into one of these areas, prefer the specialized skill for code-level guidance:

  • Building an HTTP / TCP / WebSocket server → koapp-apps
  • Defining routes, path params, nested routers, validators → koapp-router
  • Returning JSON / HTML / custom status responses → koapp-response
  • Organizing handlers into classes with shared helpers → koapp-controller
  • Validating and serializing structured payloads → koapp-model
  • Pushing real-time events to the browser over HTTP → koapp-sse
  • Writing koapp code in TypeScript / typing contexts and routers → koapp-typescript
Show full SKILL.md (188 more words)Show less

Request Lifecycle (Koa path)

mermaid
sequenceDiagram
  participant Client
  participant Koa as Koa Middleware Chain
  participant WF as koa.workflow
  participant Handler as Router Handler
  Client->>Koa: HTTP request
  Koa->>Koa: session + body parser
  Koa->>WF: workflow.start(context)
  WF->>WF: resolve route + validate
  WF->>WF: router middlewares
  WF->>Handler: handler(context)
  Handler-->>WF: throw success/failed/result/error
  WF->>WF: router afters
  WF->>Koa: handleRes(context)
  Koa-->>Client: response

The response functions (success, failed, result, response, error) deliberately throw a typed object that the workflow catches and turns into the actual Koa or socket response. Inside handlers, call them and return is implicit - no need to return the result of success(...).

Conventions enforced by the framework

  1. Code uses 'use strict', CommonJS, and async/await - follow suit in user code unless the target project uses TypeScript (see assets/tmpl/).
  2. Response payloads (JSON) are always wrapped as { request_id, timestamp, code, message, data }. code is a "<status>;<message>" string.
  3. Path parameters use /{:name} syntax, e.g. /users/{:id}/posts/{:postId}. Legacy :name is also accepted but {:name} is preferred.
  4. A router with method unset (or empty string) is effectively disabled - requests will resolve to the fallback /*** handler.
  5. Validation rules use validatorjs syntax and live under validators.params|query|body.

When NOT to use koapp directly

  • Pure static file serving without API - koa-static alone is lighter
  • Heavy enterprise microservices needing opinionated DI / RPC - use NestJS
  • Edge-runtime deployments (Cloudflare Workers / Vercel Edge) - the framework depends on Node-only APIs (net, ws, fs)

© AxiosLeo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in assets/skills/koapp of AxiosLeo/node-koapp.

  • SKILL.md
  • quick-start.md

Open the folder on GitHubat commit 102955d

Compare with similar skills

Koapp next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Koapp compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Koapp this skillAxiosLeo/node-koapp145—~1.3kAutomated safety check: PassMIT
Neon Functionsneondatabase/agent-skills100—~12kAutomated safety check: NotesApache-2.0
Azure AI Voicelive TSmicrosoft/skills3.1k6 repos~3.4kAutomated safety check: PassMIT
Fishjam JS Server SDKsoftware-mansion-labs/skills291—~1.4kAutomated safety check: PassMIT
Fullstack DevHHU3637kr/skills1453 repos~8.6kAutomated safety check: NotesMIT
Vercel Functionsvercel/vercel-plugin301—~12kAutomated safety check: NotesCustom licence

Similar skills

  • Neon Functions

    neondatabase/agent-skills

    Official

    Long-running, serverless Node.js HTTP functions deployed onto your Neon branch, with DATABASEURL injected automatically and compute that runs next to your data.

    100 GitHub stars~12k tokensUpdated 2 days ago
    Backend & APIsAuto-check: notes
  • Azure AI Voicelive TS

    microsoft/skills

    Official

    Azure AI Voice Live SDK for JavaScript/TypeScript. An agent skill from microsoft/skills.

    3.1k GitHub starsUsed in 6 repos~3.4k tokens
    Backend & APIsAuto-check passed
  • Fishjam JS Server SDK

    software-mansion-labs/skills

    Node.js / TypeScript server SDK for Fishjam — backends that create rooms, mint peer tokens, listen to server notifications, and run agents.

    291 GitHub stars~1.4k tokensUpdated 10 days ago
    Backend & APIsAuto-check passed
  • Fullstack Dev

    HHU3637kr/skills

    Full-stack backend architecture and frontend-backend integration guide.

    145 GitHub starsUsed in 3 repos~8.6k tokens
    Backend & APIsAuto-check: notes
  • Vercel Functions

    vercel/vercel-plugin

    Official

    Vercel Functions expert guidance — Node.js/Bun/Python runtimes, Fluid Compute, long-duration (30 min) functions, large functions (5 GB bundles), Docker/OCI container images, plan limits, streaming…

    301 GitHub stars~12k tokensUpdated yesterday
    Backend & APIsAuto-check: notes
  • Cloud Functions

    LeoYeAI/openclaw-master-skills

    Complete guide for CloudBase cloud functions development - supports both Event Functions (Node.js) and HTTP Functions (multi-language Web services).

    2.2k GitHub starsUsed in 1 repo~4.7k tokens
    Backend & APIsAuto-check passed

More from AxiosLeo/node-koapp

All 8 skills in this repo
  • Koapp Apps

    AxiosLeo/node-koapp

    Choose and configure the right @axiosleo/koapp Application class - KoaApplication for HTTP, SocketApplication for TCP sockets, WebSocketApplication for WebSocket.

    145 GitHub stars~1.2k tokensUpdated 22 days ago
    Auto-check passed
  • Koapp Controller

    AxiosLeo/node-koapp

    Organize route handlers into reusable classes by extending the @axiosleo/koapp Controller base class.

    145 GitHub stars~1.3k tokensUpdated 22 days ago
    Auto-check passed
  • Koapp Model

    AxiosLeo/node-koapp

    Validate and serialize structured data with the @axiosleo/koapp Model class powered by validatorjs.

    145 GitHub stars~1.6k tokensUpdated 22 days ago
    Auto-check passed
  • Koapp Response

    AxiosLeo/node-koapp

    Send structured responses from @axiosleo/koapp handlers using success/failed/result/response/error helpers and HttpError/HttpResponse classes.

    145 GitHub stars~1.5k tokensUpdated 22 days ago
    Auto-check passed
  • Koapp Router

    AxiosLeo/node-koapp

    Define routes, path parameters, validators, and nested routers with the @axiosleo/koapp Router class.

    145 GitHub stars~1.6k tokensUpdated 22 days ago
    Auto-check passed
  • Koapp Sse

    AxiosLeo/node-koapp

    Stream Server-Sent Events (SSE) from a @axiosleo/koapp Koa route using the KoaSSEMiddleware.

    145 GitHub stars~1.5k tokensUpdated 22 days ago
    Auto-check passed

Works with

Categories

Questions about Koapp

What does Koapp do?

Overview of the @axiosleo/koapp framework - a Koa-based web, TCP socket, and WebSocket framework for Node.js. Koapp is an agent skill from AxiosLeo/node-koapp.js.

When should I use Koapp?

Koapp fits situations like: the user mentions @axiosleo/koapp; needs to pick the right Application class; wants to understand what the framework exports (KoaApplication; socketApplication.

How do I install Koapp in Claude Code?

Run `npx skills add AxiosLeo/node-koapp --skill koapp -a claude-code`. Or copy the skill folder (assets/skills/koapp in AxiosLeo/node-koapp) into .claude/skills/koapp in your project. Claude Code loads it when a task matches its description.

How do I install Koapp in Codex?

Run `npx skills add AxiosLeo/node-koapp --skill koapp -a codex`. Or copy the skill folder (assets/skills/koapp in AxiosLeo/node-koapp) into .agents/skills/koapp in your project. Codex loads it when a task matches its description.

Can I use Koapp in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add AxiosLeo/node-koapp --skill koapp -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/koapp, .gemini/skills/koapp, .github/skills/koapp and .opencode/skills/koapp in your project.

What does Koapp need to run?

Going by SKILL.md and its folder, Koapp needs the command-line tools its instructions call (npm). Our summary lists: Node.js.

Does Koapp access the network?

SKILL.md names 2 domains. As links in the text: koajs.com and github.com. This is read from the text; nothing was executed.

Is Koapp safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Koapp use?

Koapp is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Koapp use?

About 1.3k tokens (SKILL.md is roughly 5.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Koapp?

Skills that share tags, products or a category with Koapp: Neon Functions (neondatabase/agent-skills, 100 stars), Azure AI Voicelive TS (microsoft/skills, 3.1k stars), Fishjam JS Server SDK (software-mansion-labs/skills, 291 stars) and Fullstack Dev (HHU3637kr/skills, 145 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Koapp?

AxiosLeo (a GitHub user) maintains it in AxiosLeo/node-koapp, which has 145 GitHub stars. The repository holds 8 skills in this directory. The repository was last updated on September 16, 2026.

Source: AxiosLeo/node-koapp on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.