Cursor rule Codex
Application configuration and setup patterns.
Cursor rule Codex
Application configuration and setup patterns.
Cursor rule Codex
CLI command patterns and development.
Cursor rule Codex
Controller patterns and conventions.
Cursor rule Codex
Cursor rule "development-workflow" from AxiosLeo/node-koapp, covering development workflow and standards, code quality, linting, testing and development scripts.
Cursor rule Codex
The framework provides several built-in middlewares.
Cursor rule Codex
This is a Node.js web framework built on Koa.js for rapid application development.
Cursor rule Codex
Router and routing patterns in koapp framework.
Cursor rule Codex
SocketApplication and WebSocketApplication usage patterns and class hierarchy.
Cursor rule Codex
Testing patterns and conventions.
Skill Claude CodeCodex
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…
Skill Claude CodeCodex
Organize route handlers into reusable classes by extending the @axiosleo/koapp Controller base class. Use when grouping related handlers, reusing response helpers (this.success/failed/result/response/error/log), sharing state across handlers, or scaffolding service modules for a koapp project.
Skill Claude CodeCodex
Validate and serialize structured data with the @axiosleo/koapp Model class powered by validatorjs. Use when creating typed payload objects, running rules like required/integer/email/min/max, converting between JSON and plain objects, listing properties, or automatically raising HttpError(400) on validation failure…
Skill Claude CodeCodex
Send structured responses from @axiosleo/koapp handlers using success/failed/result/response/error helpers and HttpError/HttpResponse classes. Use when returning JSON envelopes, custom HTTP status codes, raw HTML/text, error responses, or when setting response headers from a koapp route handler or controller method.
Skill Claude CodeCodex
Define routes, path parameters, validators, and nested routers with the @axiosleo/koapp Router class. Use when declaring HTTP/WebSocket/TCP routes in koapp, adding path params like /users/{:id}, composing nested routers, attaching per-route middlewares or after-handlers, validating params/query/body with validatorjs…
Skill Claude CodeCodex
Stream Server-Sent Events (SSE) from a @axiosleo/koapp Koa route using the KoaSSEMiddleware. Use when pushing real-time events to a browser over HTTP, implementing progress bars, live logs, notifications, or EventSource endpoints with text/event-stream, including ctx.koa.sse.send/close/keepAlive APIs.
Skill Claude CodeCodex
Write type-safe @axiosleo/koapp code in TypeScript - typed contexts (KoaContext, ContextFromSpec, RequiredContext, SocketContext, WebSocketContext), Router generics, ContextHandler middlewares, module augmentation, typed file uploads with @koa/multer, response helper generics, and typed application configs. Use when a…
Skill Claude CodeCodex
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…