用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/genkit-ai/genkit --skill typescript命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
Conventions for clean, idiomatic Python. Load whenever you read, edit, or write Python source files.
How to write pytest tests for modules in this workspace. Load whenever you are about to write or extend tests.
Explain concepts in very simple terms suitable for a five-year-old.
基于 SOC 职业分类
| name | typescript |
| description | TypeScript coding conventions, best practices, and patterns for writing clean, maintainable code. |
"strict": true in tsconfig.json).const over let; never use var.unknown instead of any where possible.camelCasePascalCaseUPPER_SNAKE_CASE for true constants, camelCase for derived valueskebab-case.tsT, K, V) or descriptive (TResult)src/
index.ts # Entry point, exports
types.ts # Shared type definitions
utils/ # Utility functions
services/ # Business logic
middleware/ # Express/framework middleware
Error class).try/catch with 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/await over raw promises.Promise.all() for concurrent independent operations.import { thing } from './module'.js extensions in import paths for ESM compatibility.Array.map/filter/reduce over for loops for transformations.?.) and nullish coalescing (??).thing.ts → thing.test.tsit('should return empty array when no items match')