Agent skill

Koapp Apps

by AxiosLeo in AxiosLeo/node-koapp

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

MITAuto-check passedBackend & APIs

Install Koapp Apps

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

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

GitHub CLI
$ gh skill install AxiosLeo/node-koapp koapp-apps --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-apps .claude/skills/koapp-apps && 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-apps
GitHub stars
145
Token cost
~1.2k tokens
SKILL.md length
390 words
Files
5
Skills in repo
8
Repo updated
First seen
Licence
MIT

At a glance

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

  • Building a server with koapp
  • SKILL.md covers Which class do I need?, Shared config keys, Shared events and Shared lifecycle, plus 5 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Configuring ports

What it does

Koapp Apps is an agent skill from AxiosLeo/node-koapp. Choose and configure the right @axiosleo/koapp Application class - KoaApplication for HTTP, SocketApplication for TCP sockets, WebSocketApplication for WebSocket. Use when building a server with koapp, configuring ports, listen host, session, static files, body parser, ping heartbeat, managing socket connections, or deciding between HTTP/TCP/WS transport.

Its SKILL.md is about 1.2k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files (for example `examples.md`, `http-server.md` and `socket-server.md`).

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

When your agent uses it

  • Building a server with koapp
  • Configuring ports
  • Managing socket connections
  • Deciding between HTTP/TCP/WS transport

Example prompts

  • “/koapp-apps”

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

    No scripts in the folder and no shell commands in SKILL.md (its code samples are javascript).

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

  • Network

    No URLs in SKILL.md.

    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 Apps loads about 1.2k tokens when it runs. Until then it costs about 92 tokens; SKILL.md has 390 words of instructions outside code blocks.

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

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). 390 words, ~1,166 tokens.

Download SKILL.mdSave it as .claude/skills/koapp-apps/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
koapp-apps
description
Choose and configure the right @axiosleo/koapp Application class - KoaApplication for HTTP, SocketApplication for TCP sockets, WebSocketApplication for WebSocket. Use when building a server with koapp, configuring ports, listen host, session, static files, body parser, ping heartbeat, managing socket connections, or deciding between HTTP/TCP/WS transport.

@axiosleo/koapp Application Classes

@axiosleo/koapp exposes three runtime application classes, all extending a shared Application base. Pick one based on the transport you need.

Which class do I need?

ClassTransportUse when
KoaApplicationHTTP(S) via KoaREST APIs, file uploads, SSR, Server-Sent Events
SocketApplicationRaw TCP via Node netCustom TCP protocol, IoT gateways, line-delimited services
WebSocketApplicationWebSocket via wsReal-time browser apps, chat, live dashboards

All three accept { port, routers, debug, app_id } at minimum; see the per-class docs for full options:

Shared config keys

All three apps normalize config through Configuration from @axiosleo/cli-tool:

javascript
{
  port: 8080,            // Port to listen on
  listen_host: 'localhost', // '0.0.0.0' for public access (Koa only)
  routers: [],           // Array of Router instances
  app_id: '',            // Optional stable ID; auto uuid-v4 if empty
  debug: false           // Verbose logging
}

Shared events

All apps extend EventEmitter and emit:

  • starting - before the server binds
  • response - after each response is produced (framework uses this internally to write the response)

Socket apps also expose a separate app.event EventEmitter emitting:

  • connection - new client connected
  • listen - server bound to the port

Shared lifecycle

javascript
const app = new KoaApplication({ ... });
app.on('starting', () => console.log('about to listen'));
await app.start();       // all three classes implement .start()

Connection management (Socket + WebSocket)

SocketApplication implements the following methods, inherited by WebSocketApplication:

  • broadcast(data, msg, code, connections) - send to many; pass null for all
  • send(connection, data, msg, code) - send to one raw connection
  • close(connection) - close one raw connection
  • sendByConnectionId(id, data, msg, code) - send by tracked connection ID
  • closeByConnectionId(id) - close by tracked connection ID
  • getConnection(id) - returns the raw connection or null
  • ping(id) - send a ping payload to one connection

Connections are tracked in app.connections keyed by an auto-generated connection_id (_uuid_salt('connect:' + app_id)).

Show full SKILL.md (159 more words)Show less

Ping heartbeat

Socket apps support opt-in periodic ping:

javascript
new SocketApplication({
  port: 8081,
  routers: [root],
  ping: {
    open: true,              // default false
    interval: 1000 * 60 * 5, // default 5min
    data: 'this is a ping'
  }
});

When ping.open is true, the app broadcasts data to all active connections every interval ms.

Protocol differences

AspectSocket (TCP)WebSocket
Request framing{...json}@@@@@@ delimiterPlain JSON string
send(conn, data)conn.write(data + '@@@@@@')conn.send(data)
close(conn)conn.end()conn.close()
headers in contextnonecontext.headers (from upgrade request)

Common pitfalls

  • Calling new KoaApplication({ static: false }) disables the built-in static server. Set static: { rootDir: './public' } to enable it.
  • SocketApplication requires every inbound message to end with @@@@@@. Clients must append that delimiter.
  • WebSocketApplication.ping.open = true triggers broadcast every interval even when there are zero connections - the call is a no-op but still schedules.
  • Do not call app.start() inside a route handler - the app is already running at that point.

Quick jump

If you just need to build one server, start with the matching doc:

© 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 4 other files in assets/skills/koapp-apps of AxiosLeo/node-koapp.

  • SKILL.md
  • examples.md
  • http-server.md
  • socket-server.md
  • websocket-server.md

Open the folder on GitHubat commit 102955d

Compare with similar skills

Koapp Apps 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 Apps compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Koapp Apps this skillAxiosLeo/node-koapp145—~1.2kAutomated safety check: PassMIT
Supabase Development and Debuggingsupabase/agent-skills2.7k3 repos~3.6kAutomated safety check: PassMIT
Use Yaakmountain-loop/yaak19k—~1.9kAutomated safety check: PassMIT
Gemini Live API Devgoogle-gemini/gemini-skills4.3k—~4.6kAutomated safety check: PassApache-2.0
Web3 PolymarketPolymarket/agent-skills1912 repos~2kAutomated safety check: PassNone
GraphQL ArchitectJeffallan/claude-skills12k1 repos~1.3kAutomated safety check: PassMIT

Similar skills

  • Official

    General Supabase skill for database, auth, Edge Functions, Realtime and storage work, plus client libraries, migrations, security audits, debugging and reading logs.

    2.7k GitHub starsUsed in 3 repos~3.6k tokens
    Backend & APIsAuto-check passed
  • Use Yaak

    mountain-loop/yaak

    A skill your agent uses when the user mentions Yaak, a Yaak workspace, or the yaak command, or asks to call, hit, or smoke test HTTP/REST endpoints, save or organize API requests for reuse or manual…

    19k GitHub stars~1.9k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Gemini Live API Dev

    google-gemini/gemini-skills

    Official

    A skill your agent uses when building real-time, bidirectional streaming applications with the Gemini Live API, or migrating legacy Live models (2.0/2.5/3.1) to Gemini 3.8 Live.

    4.3k GitHub stars~4.6k tokensUpdated yesterday
    Backend & APIsAuto-check passed
  • Web3 Polymarket

    Polymarket/agent-skills

    Polymarket integration for prediction market trading on Polygon.

    191 GitHub starsUsed in 2 repos~2k tokens
    Backend & APIsAuto-check passed
  • GraphQL Architect

    Jeffallan/claude-skills

    Designs GraphQL schemas and Apollo Federation graphs, with DataLoader resolvers, subscriptions, query complexity limits and caching.

    12k GitHub starsUsed in 1 repo~1.3k tokens
    Backend & APIsAuto-check passed
  • Broker Integration

    marketcalls/openalgo

    Integrate a new Indian broker into OpenAlgo, or modify an existing broker plugin.

    2.8k GitHub stars~4.7k tokensUpdated today
    Backend & APIsAuto-check: notes

More from AxiosLeo/node-koapp

All 8 skills in this repo
  • Koapp

    AxiosLeo/node-koapp

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

    145 GitHub stars~1.3k 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

Categories

Questions about Koapp Apps

What does Koapp Apps do?

Choose and configure the right @axiosleo/koapp Application class - KoaApplication for HTTP, SocketApplication for TCP sockets, WebSocketApplication for WebSocket. Koapp Apps is an agent skill from AxiosLeo/node-koapp. Choose and configure the right @axiosleo/koapp Application class - KoaApplication for HTTP, SocketApplication for TCP sockets, WebSocketApplication for WebSocket.

When should I use Koapp Apps?

Koapp Apps fits situations like: building a server with koapp; configuring ports; managing socket connections; deciding between HTTP/TCP/WS transport.

How do I install Koapp Apps in Claude Code?

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

How do I install Koapp Apps in Codex?

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

Can I use Koapp Apps 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-apps -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-apps, .gemini/skills/koapp-apps, .github/skills/koapp-apps and .opencode/skills/koapp-apps in your project.

What does Koapp Apps need to run?

SKILL.md names no scripts, command-line tools or credentials: Koapp Apps is instructions for the agent only.

Does Koapp Apps access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Koapp Apps 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 Apps use?

Koapp Apps 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 Apps use?

About 1.2k tokens (SKILL.md is roughly 4.7k 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 Apps?

Skills that share tags, products or a category with Koapp Apps: Supabase Development and Debugging (supabase/agent-skills, 2.7k stars), Use Yaak (mountain-loop/yaak, 19k stars), Gemini Live API Dev (google-gemini/gemini-skills, 4.3k stars) and Web3 Polymarket (Polymarket/agent-skills, 191 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Koapp Apps?

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.