Nx Generate
nomcopter/react-mosaic
Generate code using nx generators. An agent skill from nomcopter/react-mosaic.
Organize route handlers into reusable classes by extending the @axiosleo/koapp Controller base class.
$ npx skills add AxiosLeo/node-koapp --skill koapp-controller -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install AxiosLeo/node-koapp koapp-controller --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .claude/skills && cp -r skills-src/assets/skills/koapp-controller .claude/skills/koapp-controller && rm -rf skills-srcUse ~/.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/
Install the "koapp-controller" agent skill from https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controller into .claude/skills/koapp-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "koapp-controller", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controllerType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add AxiosLeo/node-koapp --skill koapp-controller -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install AxiosLeo/node-koapp koapp-controller --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .agents/skills && cp -r skills-src/assets/skills/koapp-controller .agents/skills/koapp-controller && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "koapp-controller" agent skill from https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controller into .agents/skills/koapp-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "koapp-controller", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AxiosLeo/node-koapp --skill koapp-controller -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install AxiosLeo/node-koapp koapp-controller --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/assets/skills/koapp-controller .cursor/skills/koapp-controller && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "koapp-controller" agent skill from https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controller into .cursor/skills/koapp-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "koapp-controller", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/AxiosLeo/node-koapp.git --path assets/skills/koapp-controller--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add AxiosLeo/node-koapp --skill koapp-controller -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install AxiosLeo/node-koapp koapp-controller --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/assets/skills/koapp-controller .gemini/skills/koapp-controller && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "koapp-controller" agent skill from https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controller into .gemini/skills/koapp-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "koapp-controller", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install AxiosLeo/node-koapp koapp-controllerInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add AxiosLeo/node-koapp --skill koapp-controller -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .github/skills && cp -r skills-src/assets/skills/koapp-controller .github/skills/koapp-controller && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "koapp-controller" agent skill from https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controller into .github/skills/koapp-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "koapp-controller", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add AxiosLeo/node-koapp --skill koapp-controller -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install AxiosLeo/node-koapp koapp-controller --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/AxiosLeo/node-koapp.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/assets/skills/koapp-controller .opencode/skills/koapp-controller && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "koapp-controller" agent skill from https://github.com/AxiosLeo/node-koapp/tree/main/assets/skills/koapp-controller into .opencode/skills/koapp-controller/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "koapp-controller", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
koapp-controllerOrganize route handlers into reusable classes by extending the @axiosleo/koapp Controller base class.
Koapp Controller is an agent skill from AxiosLeo/node-koapp. 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.
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 `examples.md`).
It sits in Development, covering Project scaffolding. The repository describes itself as: About Design for quickly developing OpenAPI applications using Node.js. The licence is MIT.
Read from SKILL.md and the folder at commit 102955d. It shows what the files ask for, not the result of running them.
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.
Shell commands in SKILL.md call:
npxFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md. Its commands use npx, which can reach the network depending on how they are called.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Koapp Controller loads about 1.3k tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 380 words of instructions outside code blocks.
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.
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.
The full file from AxiosLeo/node-koapp at commit 102955d, republished under its MIT licence (© AxiosLeo). 380 words, ~1,335 tokens.
.claude/skills/koapp-controller/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Source: src/controller.js.
Controller is a thin base class that mirrors the
response helpers as instance methods. Extend
it to keep related handlers together and share auxiliary state.
const { Controller } = require('@axiosleo/koapp');| Method | Equivalent function | Notes |
|---|---|---|
this.success(data?, headers?) | success(data, headers) | 200 OK JSON envelope |
this.failed(data?, code?, status?, headers?) | failed(data, code, status, headers) | Non-2xx JSON envelope |
this.result(data, status?, headers?) | result(data, status, headers) | Raw body pass-through |
this.response(data, code, status?, headers?) | response(data, code, status, headers) | Full control envelope |
this.error(status, msg, headers?) | error(status, msg, headers) | Shortcut error envelope |
this.log(...data) | debug.log from @axiosleo/cli-tool | Conditional logging |
All this.success / failed / result / response / error throw, same as the
functional helpers. See koapp-response for envelope details.
const { Controller, Router } = require('@axiosleo/koapp');
class HealthController extends Controller {
async ping(context) {
this.log('ping from', context.request_id);
this.success({ pong: true });
}
async version() {
this.success({ version: require('../package.json').version });
}
}
const health = new HealthController();
const router = new Router('/health');
router.get('/ping', (ctx) => health.ping(ctx));
router.get('/version', () => health.version());BaseController with common middlewares or
helpers, then extend it per module (the init scaffolding template at
assets/tmpl/services/src/modules/controller.ts.tmpl does this).Controller methods expect a context argument and may use this, so bind
them explicitly when registering with the router:
router.get('/users/{:id}', (ctx) => controller.find(ctx));
router.post('/users', (ctx) => controller.create(ctx));
// or with arrow methods
class UsersController extends Controller {
find = async (ctx) => {
const id = Number(ctx.params.id);
this.success({ id });
};
}Pure wrappers (ctx) => controller.method(ctx) preserve this and avoid
.bind clutter.
Since this.success / failed / ... throw, any code after them does not
run. The workflow catches the throw and writes the response. Keep try /
catch only where you intend to shape a different error:
async create(context) {
try {
const user = await this.db.users.insert(context.body);
this.success({ id: user.id });
} catch (err) {
if (err.code === 'DUP_ENTRY') {
this.failed({ email: context.body.email }, '409;Email Already Registered', 409);
}
throw err; // let the workflow convert to 500
}
}this.log is wired to debug.log from @axiosleo/cli-tool. Enable it by
running with DEBUG=1 (or the cli-tool equivalent), or by setting
debug: true on the application.
this.log('loading user', context.params.id);Validation stays on the router:
router.push('post', '/users', (ctx) => controller.create(ctx), {
body: {
rules: {
name: 'required|string',
email: 'required|email'
}
}
});The validator runs before the handler, so by the time controller.create
executes you already have a validated context.body.
Running npx @axiosleo/koapp gen -d ./meta -o ./services/src/modules
produces .controller.ts files that extend a project-local
BaseController. That BaseController typically extends Controller and
adds database handles:
import { Controller } from '@axiosleo/koapp';
import { mainDB } from '../services/db';
export class BaseController extends Controller {
protected mainDB = mainDB;
}context into instance methods: router.get('/x', controller.handler) loses this when the router calls the method as a free function. Use arrow wrappers.this.success(...) from a handler is redundant - the throw short-circuits execution.this. Use context or local variables instead.© AxiosLeo, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file in assets/skills/koapp-controller of AxiosLeo/node-koapp.
Open the folder on GitHubat commit 102955d
Koapp Controller 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.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Koapp Controller this skillAxiosLeo/node-koapp | 145 | — | ~1.3k | Automated safety check: Pass | MIT | |
| Nx Generatenomcopter/react-mosaic | 4.8k | 7 repos | ~1.9k | Automated safety check: Pass | Custom licence | |
| PonytailDavidObando/gsharp | 565 | 8 repos | ~1.7k | Automated safety check: Pass | MIT | |
| Run Nx Generatornrwl/nx | 29k | 2 repos | ~592 | Automated safety check: Notes | MIT | |
| Conductor Setupgemini-cli-extensions/conductor | 3.8k | — | ~4.2k | Automated safety check: Pass | Apache-2.0 | |
| Mirage VFS Adapter Authoringstrukto-ai/mirage | 3.7k | — | ~2.5k | Automated safety check: Pass | Apache-2.0 |
nomcopter/react-mosaic
Generate code using nx generators. An agent skill from nomcopter/react-mosaic.
DavidObando/gsharp
Forces the laziest solution that actually works, simplest, shortest, most minimal.
nrwl/nx
Run Nx generators with prioritization for workspace-plugin generators.
gemini-cli-extensions/conductor
Scaffolds the project and sets up the Conductor environment.
strukto-ai/mirage
Builds or extends a custom Mirage virtual filesystem adapter for an API, database, object store or app data, with a working mount configuration and filesystem tests.
siteboon/claudecodeui
Enforces this repository's TypeScript backend module architecture under server/: feature folders, barrel exports, and where shared types and utilities belong.
AxiosLeo/node-koapp
Overview of the @axiosleo/koapp framework - a Koa-based web, TCP socket, and WebSocket framework for Node.js.
AxiosLeo/node-koapp
Choose and configure the right @axiosleo/koapp Application class - KoaApplication for HTTP, SocketApplication for TCP sockets, WebSocketApplication for WebSocket.
AxiosLeo/node-koapp
Validate and serialize structured data with the @axiosleo/koapp Model class powered by validatorjs.
AxiosLeo/node-koapp
Send structured responses from @axiosleo/koapp handlers using success/failed/result/response/error helpers and HttpError/HttpResponse classes.
AxiosLeo/node-koapp
Define routes, path parameters, validators, and nested routers with the @axiosleo/koapp Router class.
AxiosLeo/node-koapp
Stream Server-Sent Events (SSE) from a @axiosleo/koapp Koa route using the KoaSSEMiddleware.
Categories
Organize route handlers into reusable classes by extending the @axiosleo/koapp Controller base class. Koapp Controller is an agent skill from AxiosLeo/node-koapp. Organize route handlers into reusable classes by extending the @axiosleo/koapp Controller base class.
Koapp Controller fits situations like: grouping related handlers; reusing response helpers (this.success/failed/result/response/error/log); sharing state across handlers; scaffolding service modules for a koapp project.
Run `npx skills add AxiosLeo/node-koapp --skill koapp-controller -a claude-code`. Or copy the skill folder (assets/skills/koapp-controller in AxiosLeo/node-koapp) into .claude/skills/koapp-controller in your project. Claude Code loads it when a task matches its description.
Run `npx skills add AxiosLeo/node-koapp --skill koapp-controller -a codex`. Or copy the skill folder (assets/skills/koapp-controller in AxiosLeo/node-koapp) into .agents/skills/koapp-controller in your project. Codex loads it when a task matches its description.
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-controller -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-controller, .gemini/skills/koapp-controller, .github/skills/koapp-controller and .opencode/skills/koapp-controller in your project.
Going by SKILL.md and its folder, Koapp Controller needs the command-line tools its instructions call (npx). Our summary lists: Node.js.
SKILL.md contains no URLs. Its commands use npx, which can reach the network depending on how they are called. This is read from the text; nothing was executed.
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.
Koapp Controller is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
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.
Skills that share tags, products or a category with Koapp Controller: Nx Generate (nomcopter/react-mosaic, 4.8k stars), Ponytail (DavidObando/gsharp, 565 stars), Run Nx Generator (nrwl/nx, 29k stars) and Conductor Setup (gemini-cli-extensions/conductor, 3.8k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
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.