Typescript Best Practices
Taoidle/plan-cascade
TypeScript/Node.js best practices. An agent skill from Taoidle/plan-cascade.
Walks through adding a message handler to NodeBridge in Neovate Code, from the implementation and its types to an optional test entry and a run with Bun.
$ npx skills add neovateai/neovate-code --skill add-nodebridge-handler -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install neovateai/neovate-code add-nodebridge-handler --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/neovateai/neovate-code.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/add-nodebridge-handler .claude/skills/add-nodebridge-handler && 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 "add-nodebridge-handler" agent skill from https://github.com/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handler into .claude/skills/add-nodebridge-handler/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-nodebridge-handler", 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/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handlerType 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 neovateai/neovate-code --skill add-nodebridge-handler -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install neovateai/neovate-code add-nodebridge-handler --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/neovateai/neovate-code.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/add-nodebridge-handler .agents/skills/add-nodebridge-handler && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "add-nodebridge-handler" agent skill from https://github.com/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handler into .agents/skills/add-nodebridge-handler/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-nodebridge-handler", 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 neovateai/neovate-code --skill add-nodebridge-handler -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install neovateai/neovate-code add-nodebridge-handler --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/neovateai/neovate-code.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/add-nodebridge-handler .cursor/skills/add-nodebridge-handler && 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 "add-nodebridge-handler" agent skill from https://github.com/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handler into .cursor/skills/add-nodebridge-handler/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-nodebridge-handler", 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/neovateai/neovate-code.git --path .claude/skills/add-nodebridge-handler--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 neovateai/neovate-code --skill add-nodebridge-handler -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install neovateai/neovate-code add-nodebridge-handler --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/neovateai/neovate-code.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/add-nodebridge-handler .gemini/skills/add-nodebridge-handler && 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 "add-nodebridge-handler" agent skill from https://github.com/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handler into .gemini/skills/add-nodebridge-handler/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-nodebridge-handler", 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 neovateai/neovate-code add-nodebridge-handlerInstalls 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 neovateai/neovate-code --skill add-nodebridge-handler -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/neovateai/neovate-code.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/add-nodebridge-handler .github/skills/add-nodebridge-handler && 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 "add-nodebridge-handler" agent skill from https://github.com/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handler into .github/skills/add-nodebridge-handler/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-nodebridge-handler", 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 neovateai/neovate-code --skill add-nodebridge-handler -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install neovateai/neovate-code add-nodebridge-handler --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/neovateai/neovate-code.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/add-nodebridge-handler .opencode/skills/add-nodebridge-handler && 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 "add-nodebridge-handler" agent skill from https://github.com/neovateai/neovate-code/tree/master/.claude/skills/add-nodebridge-handler into .opencode/skills/add-nodebridge-handler/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "add-nodebridge-handler", 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.
add-nodebridge-handlerWalks through adding a message handler to NodeBridge in Neovate Code, from the implementation and its types to an optional test entry and a run with Bun.
NodeBridge carries messages between the UI layer and the Node.js backend, and this guide lays out how to add one more handler. You register it in the `registerHandlers()` method of `NodeHandlerRegistry` in `src/nodeBridge.ts` under a dotted name such as `git.status`, fetch the working context with `getContext(cwd)`, wrap the body in try/catch, and return an object with `success` plus either `data` or `error`.
Next you add input and output types in `src/nodeBridge.types.ts` and list the handler in the `HandlerMap` type. Optionally you add it to the `HANDLERS` object in `scripts/test-nodebridge.ts`, then try it by running that script with Bun and either `--cwd` and parameter flags or a `--data` JSON string. A full worked example closes the guide, and it is specific to the Neovate Code repository.
4 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 0a24b36. 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:
bunFrom the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
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.
Add NodeBridge Handler loads about 1k tokens when it runs. Until then it costs about 51 tokens; SKILL.md has 206 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 neovateai/neovate-code at commit 0a24b36, republished under its MIT licence (© neovateai). 206 words, ~1,010 tokens.
.claude/skills/add-nodebridge-handler/SKILL.md (or your agent's skills folder).This skill guides the process of adding a new message handler to the NodeBridge system, which enables communication between the UI layer and the Node.js backend.
src/nodeBridge.tsLocate the registerHandlers() method in the NodeHandlerRegistry class and add your handler:
this.messageBus.registerHandler('category.handlerName', async (data) => {
const { cwd, ...otherParams } = data;
const context = await this.getContext(cwd);
// Implementation logic here
return {
success: true,
data: {
// Return data
},
};
});Handler Naming Convention:
category.action (e.g., git.status, session.send, utils.getPaths)config, git, mcp, models, outputStyles, project, projects, providers, session, sessions, slashCommand, status, utilsCommon Patterns:
await this.getContext(cwd){ success: true, data: {...} } for success{ success: false, error: 'message' } for errorssrc/nodeBridge.types.tsAdd input and output types near the relevant section:
// ============================================================================
// Category Handlers
// ============================================================================
type CategoryHandlerNameInput = {
cwd: string;
// other required params
optionalParam?: string;
};
type CategoryHandlerNameOutput = {
success: boolean;
error?: string;
data?: {
// return data shape
};
};Then add to the HandlerMap type:
export type HandlerMap = {
// ... existing handlers
// Category handlers
'category.handlerName': {
input: CategoryHandlerNameInput;
output: CategoryHandlerNameOutput;
};
};Update scripts/test-nodebridge.ts HANDLERS object if the handler should be easily testable:
const HANDLERS: Record<string, string> = {
// ... existing handlers
'category.handlerName': 'Description of what this handler does',
};Run the test script:
bun scripts/test-nodebridge.ts category.handlerName --cwd=/path/to/dir --param=valueOr with JSON data:
bun scripts/test-nodebridge.ts category.handlerName --data='{"cwd":"/path","param":"value"}'this.messageBus.registerHandler('utils.example', async (data) => {
const { cwd, name } = data;
try {
const context = await this.getContext(cwd);
// Do something with context and params
const result = await someOperation(name);
return {
success: true,
data: {
result,
},
};
} catch (error: any) {
return {
success: false,
error: error.message || 'Failed to execute example',
};
}
});type UtilsExampleInput = {
cwd: string;
name: string;
};
type UtilsExampleOutput = {
success: boolean;
error?: string;
data?: {
result: string;
};
};
// In HandlerMap:
'utils.example': {
input: UtilsExampleInput;
output: UtilsExampleOutput;
};data parameterthis.getContext(cwd) to get the Context instance (cached per cwd)config, paths, mcpManager, productName, version, etc.git.clone pattern)this.messageBus.emitEvent() (see git.commit.output pattern)© neovateai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in .claude/skills/add-nodebridge-handler of neovateai/neovate-code.
Open the folder on GitHubat commit 0a24b36
Add NodeBridge Handler 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 |
|---|---|---|---|---|---|---|
| Add NodeBridge Handler this skillneovateai/neovate-code | 1.6k | — | ~1k | Automated safety check: Pass | MIT | |
| Typescript Best PracticesTaoidle/plan-cascade | 133 | — | ~534 | Automated safety check: Pass | MIT | |
| Neo4j Driver Javascript Skillneo4j-contrib/neo4j-skills | 114 | — | ~3.5k | Automated safety check: Notes | MIT | |
| Typescriptericrisco/rsc-harness | 156 | — | ~2.8k | Automated safety check: Pass | MIT | |
| Spiceflowremorses/spiceflow | 167 | — | ~1.9k | Automated safety check: Pass | MIT | |
| starknet.js SDK Referenceinternet-court/internet-court-skill | 6.4k | 1 repos | ~3.5k | Automated safety check: Notes | Apache-2.0 |
Taoidle/plan-cascade
TypeScript/Node.js best practices. An agent skill from Taoidle/plan-cascade.
neo4j-contrib/neo4j-skills
Neo4j JavaScript/TypeScript Driver v6 — driver lifecycle, executeQuery, managed transactions (executeRead/executeWrite), session.run, Integer handling, JSON serialization, record access, async/await…
ericrisco/rsc-harness
A skill your agent uses when writing or fixing TypeScript type code (.ts/.tsx/.d.ts), modeling data with generics/unions/branded types, diagnosing narrowing failures, or configuring tsconfig and the…
remorses/spiceflow
Spiceflow is a super simple, fast, and type-safe API and React Server Components framework for TypeScript.
internet-court/internet-court-skill
Reference for building Starknet apps with starknet.js v9: providers, accounts, contract calls, fee estimation, wallet integration and paymaster flows.
rolling-scopes/rsschool-app
Master TypeScript's advanced type system including generics, conditional types, mapped types, template literals, and utility types for building type-safe applications.
neovateai/neovate-code
Runs Neovate Code's NodeBridge message handlers from the command line with bun scripts/test-nodebridge.ts, listing handlers and passing parameters.
Works with
Categories
Walks through adding a message handler to NodeBridge in Neovate Code, from the implementation and its types to an optional test entry and a run with Bun. js backend, and this guide lays out how to add one more handler.status`, fetch the working context with `getContext(cwd)`, wrap the body in try/catch, and return an object with `success` plus either `data` or `error`.
Add NodeBridge Handler fits situations like: adding a new handler to src/nodeBridge.ts; typing a new handler's input and output in src/nodeBridge.types.ts; trying a handler from the command line with scripts/test-nodebridge.ts.
Run `npx skills add neovateai/neovate-code --skill add-nodebridge-handler -a claude-code`. Or copy the skill folder (.claude/skills/add-nodebridge-handler in neovateai/neovate-code) into .claude/skills/add-nodebridge-handler in your project. Claude Code loads it when a task matches its description.
Run `npx skills add neovateai/neovate-code --skill add-nodebridge-handler -a codex`. Or copy the skill folder (.claude/skills/add-nodebridge-handler in neovateai/neovate-code) into .agents/skills/add-nodebridge-handler 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 neovateai/neovate-code --skill add-nodebridge-handler -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/add-nodebridge-handler, .gemini/skills/add-nodebridge-handler, .github/skills/add-nodebridge-handler and .opencode/skills/add-nodebridge-handler in your project.
Going by SKILL.md and its folder, Add NodeBridge Handler needs the command-line tools its instructions call (bun). Our summary lists: A checkout of the Neovate Code repository; Bun, to run `scripts/test-nodebridge.ts`.
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.
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.
Add NodeBridge Handler is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1k tokens (SKILL.md is roughly 4k 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 Add NodeBridge Handler: Typescript Best Practices (Taoidle/plan-cascade, 133 stars), Neo4j Driver Javascript Skill (neo4j-contrib/neo4j-skills, 114 stars), Typescript (ericrisco/rsc-harness, 156 stars) and Spiceflow (remorses/spiceflow, 167 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
neovateai (a GitHub organization) maintains it in neovateai/neovate-code, which has 1,558 GitHub stars. The repository holds 2 skills in this directory. The repository was last updated on March 24, 2026.
Source: neovateai/neovate-code on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.