Genkit is an open-source framework for building AI-powered applications with JavaScript, Go, Python, and Dart. Developers use it to connect language models and other AI providers while implementing chatbots, automations, recommendations, multimodal features, structured outputs, tools, and agent workflows. The catalogue skills support development with Genkit.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add genkit-ai/genkit --skill typescriptgit clone --depth 1 https://github.com/genkit-ai/genkitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/genkit-ai/genkit/typescript)<a href="https://agentmods.dev/skills/genkit-ai/genkit/typescript"><img src="https://agentmods.dev/badge/skills/genkit-ai/genkit/typescript/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/genkit-ai/genkit/typescript"><img src="https://agentmods.dev/badge/skills/genkit-ai/genkit/typescript.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00020 | $0.00534 |
| Opus 5.5 | $0.00008 | $0.00214 |
| Sonnet 5.5 | $0.00004 | $0.00107 |
| Haiku 4.5 | $0.00002 | $0.00053 |
Grade A, and why
typescript scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 79 lines — stays where its author put it; the contents beside it link to each section on GitHub.
TypeScript Coding Conventions
General Principles
- Use TypeScript strict mode (
"strict": truein tsconfig.json). - Prefer
constoverlet; never usevar. - Use explicit return types on exported functions.
- Prefer interfaces over type aliases for object shapes.
- Use
unknowninstead ofanywhere possible.
Naming Conventions
- Variables & functions:
camelCase - Classes & interfaces:
PascalCase - Constants:
UPPER_SNAKE_CASEfor true constants,camelCasefor derived values - Files:
kebab-case.ts - Type parameters: Single uppercase letter (
T,K,V) or descriptive (TResult)
File Structure
src/
index.ts # Entry point, exports
types.ts # Shared type definitions
utils/ # Utility functions
services/ # Business logic
middleware/ # Express/framework middleware
Error Handling
- Use typed errors (extend
Errorclass). - Always handle promise rejections.
- Prefer
try/catchwith specific error types over generic catches.
class AppError extends Error {
constructor(
message: string,
public readonly code: string,
public readonly statusCode: number = 500
) {
super(message);
this.name = 'AppError';
}
}
Async Patterns
- Use
async/awaitover raw promises. - Use
Promise.all()for concurrent independent operations. - Avoid mixing callbacks and promises.
Imports
- Use named imports:
import { thing } from './module' - Group imports: external packages first, then internal modules.
- Use
.jsextensions in import paths for ESM compatibility.
Code Style
- Maximum line length: 100 characters.
- Use template literals for string interpolation.
- Prefer
Array.map/filter/reduceoverforloops for transformations. - Use optional chaining (
?.) and nullish coalescing (??). - Destructure objects and arrays when accessing multiple properties.
Testing
- Co-locate test files:
thing.ts→thing.test.ts - Use descriptive test names:
it('should return empty array when no items match') - Test edge cases: empty inputs, null values, error conditions.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago First seen · 79 lines · 20 tokens per session scan A fef4f53ee3dc
typescript is a skill published in the GitHub repository genkit-ai/genkit (6,523 stars, last pushed today), licensed Apache-2.0. It adds 20 tokens to every session and 534 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
Other skills, from other repositories
typescript-development
You MUST activate this skill when working on TypeScript or JavaScript projects.
js-gof
Apply Gang of Four and related design patterns in JavaScript and TypeScript. Use when implementing creational, structural, or behavioral patterns, or when the user mentions factories, builder, prototype, flyweight, singleton, object pool, adapter, wrapper, decorator, proxy, bridge, composite, facade, chain of…
error-handling
Apply error handling and recovery patterns in JavaScript/TypeScript or Node.js. Use when implementing error handling, retry logic, or when the user mentions domain errors, error recovery, error escalation.
js-conventions
Apply Metarhia JavaScript style. Use when writing or editing .js, .mjs, .ts files (with certain corrections for typescript), formatting code, or when the user asks about code style or linting.
pn-godot-dev
Guides Godot Engine 4.x development: GDScript, GDExtension (C++), multiplayer, VisualShader/shader code, export/platform config, autoloads, Resource serialization, InputMap, headless CI, AnimationPlayer/Tree, 2D/3D workflows, physics, PCG, and Blender pipeline. Use when developing Godot 4.x projects.
pn-node-api
Guides Node/API design, DB access patterns, and env/secrets. Use when designing or implementing Node/API code; covers API design, error handling, config, and DB patterns.