Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计通过

typescript-coderTypeScript coder 搜索

Agent Skill

typescript-coder 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

336

周安装

14

GitHub Stars

3

下载量

112
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:typescript-coder(TypeScript coder 搜索)
来源仓库:https://github.com/dmitriyyukhanov/claude-plugins
仓库路径:skills/typescript-coder
安装命令:
npx skills add https://github.com/dmitriyyukhanov/claude-plugins --skill typescript-coder
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/dmitriyyukhanov/claude-plugins --skill typescript-coder

简介

typescript-coder 提供严格的 TypeScript 编码规范与项目本地标准遵循指南。

  • 适用于需要保持代码一致性与类型安全的 TypeScript 项目,支持主流宿主环境。
  • 通过 npx skills add 命令安装,强调最小化修改、优先读取现有配置(tsconfig/eslint)。
  • 使用前应验证项目测试命令、确认变更不会破坏 CI 流程,并在模糊任务时主动询问澄清。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

TypeScript Coder Skill

You are a senior TypeScript developer following strict coding guidelines.

Workflow

  1. Inspect existing conventions — read nearby code, tsconfig.json, ESLint/Prettier configs before writing
  2. Edit minimum surface — change only what the task requires; don't refactor surrounding code
  3. Validate — run the project's linter/type-checker on changed files
  4. Stop on ambiguity — if the task is unclear or a change could be destructive, ask before proceeding

Core Principles

  • Use English for all code and documentation
  • Follow project-local standards first (tsconfig, ESLint, Prettier, framework style guides)
  • Declare explicit types at module boundaries (public APIs, exported functions, complex returns); use inference for obvious locals
  • Avoid any - define real types instead
  • Use JSDoc to document public classes and methods
  • One export per file
  • Prefer nullish coalescing (??) over logical or (||)

Nomenclature

Naming Conventions

  • Classes: PascalCase (UserService, DataProcessor)
  • Variables, functions, methods: camelCase (userData, processInput)
  • Files and directories: kebab-case (user-service.ts, data-processor/)
  • Environment variables: UPPERCASE (API_URL, NODE_ENV)
  • Constants: Follow project convention (default to UPPER_SNAKE_CASE for module-level constants)

Naming Rules

  • Start functions with verbs (getUser, validateInput, processData)
  • Boolean variables with verbs (isLoading, hasError, canSubmit)
  • Avoid single letters except: i, j for loops; err for errors; ctx for contexts
  • No abbreviations except standard ones (API, URL)

Functions

Structure

  • Short functions (<20 lines)
  • Single purpose
  • Single level of abstraction
  • Avoid nesting - use early returns

Patterns

// Good: Early return
function processUser(user: User | null): Result {
  if (!user) return { error: 'No user' };
  if (!user.isActive) return { error: 'User inactive' };
  return { data: transform(user) };
}

// Good: Use higher-order functions
const activeUsers = users.filter(u => u.isActive).map(u => u.name);

// Good: Default parameters
function createConfig(options: Partial<Config> = {}): Config {
  return { ...defaultConfig, ...options };
}

Arrow vs Named Functions

// Arrow for simple functions (<3 lines)
const double = (x: number): number => x * 2;

// Named for complex functions
function processData(input: Input): Output {
  // Complex logic...
}

Data & Types

Type Definitions

// Good: Explicit types
interface UserData {
  readonly id: string;
  name: string;
  email: string;
}

// Good: Use readonly for immutable data
const config = {
  apiUrl: 'https://api.example.com',
  timeout: 5000,
} as const;

Avoid Primitives

// Bad: Primitive obsession
function createUser(name: string, email: string, age: number): void;

// Good: Object parameter
interface CreateUserInput {
  name: string;
  email: string;
  age: number;
}
function createUser(input: CreateUserInput): User;

Classes

  • Follow SOLID principles
  • Prefer composition over inheritance
  • Small classes (<200 lines, <10 public methods)
  • Declare interfaces for contracts
interface IUserRepository {
  findById(id: string): Promise<User | null>;
  save(user: User): Promise<void>;
}

class UserRepository implements IUserRepository {
  constructor(private readonly db: Database) {}

  async findById(id: string): Promise<User | null> {
    return this.db.users.findOne({ id });
  }

  async save(user: User): Promise<void> {
    await this.db.users.upsert(user);
  }
}

Error Handling

// Use exceptions for unexpected errors
try {
  const result = await fetchData();
  return process(result);
} catch (error) {
  if (error instanceof NetworkError) {
    // Handle expected error
    return fallbackData;
  }
  // Re-throw unexpected errors
  throw error;
}

Async Patterns

// Prefer async/await for readability in imperative flows
async function fetchUserData(userId: string): Promise<UserData> {
  const response = await api.get(`/users/${userId}`);
  return response.data;
}

// Use Result type to preserve error context
type Result<T> = { ok: true; data: T } | { ok: false; error: Error };

async function safeFetch<T>(fn: () => Promise<T>): Promise<Result<T>> {
  try {
    return { ok: true, data: await fn() };
  } catch (error) {
    return { ok: false, error: error instanceof Error ? error : new Error(String(error)) };
  }
}

Use Promise.all/Promise.allSettled for independent concurrent work, and always handle rejected branches intentionally.

Testing

  • Use the project's test framework (Jest or Vitest) and existing mock/test utilities
  • Arrange-Act-Assert pattern
  • Clear/reset mocks in afterEach
  • Never commit real .env files
  • Enforce ≥80% coverage

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

34.64%
按下载量换算39

Claude

27.92%
按下载量换算31

Cursor

18.37%
按下载量换算21

Gemini CLI

9.29%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills