Token导航 LogoToken导航

Agent Skill · 前端设计

typescript-expert(TypeScript expert 搜索)

typescript-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要围绕仓库状态、代码变更或协作事项进行整理时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

typescript-expert 是前端设计类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描已通过,按安装量在前端设计类的 10,216 个 Skill 里排第 3,164。

总安装 1,529周安装 65GitHub Stars 25下载 536核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/oimiragieo/agent-studio --skill typescript-expert

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

typescript-expert 用于处理 GitHub 仓库、Issue、Pull Request 和代码协作信息。适合围绕仓库状态、代码变更或协作事项进行整理和查询。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态及是否触发联网或文件读写。

涉及创建 PR、修改 Issue 时需确认 token 权限和目标仓库范围。

来源仓库内路径:skills/typescript-expert

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/oimiragieo/agent-studio --skill typescript-exp…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

typescript-expert 怎么安装?

在终端执行 npx skills add https://github.com/oimiragieo/agent-studio --skill typescript-expert。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

typescript-expert 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

typescript-expert 需要什么权限?

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

typescript-expert 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

typescript-expert 用的人多吗?

公开数据是累计安装 1,529 次,近一周安装 65 次,下载 536 次,GitHub 25 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

typescript-expert 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
typescript-expert

TypeScript expert 搜索 · 本页

1,52925接触敏感数据未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Typescript Expert

javascript code style and structure

When reviewing or writing code, apply these guidelines:

  • Code Style and Structure

- Naming Conventions - JavaScript Usage

javascript documentation with jsdoc

When reviewing or writing code, apply these guidelines:

  • JSDoc Comments: Use JSDoc comments for JavaScript and modern ES6 syntax.

javascript typescript code style

When reviewing or writing code, apply these guidelines:

  • Write concise, technical JavaScript/TypeScript code with accurate examples
  • Use modern JavaScript features and best practices
  • Prefer functional programming patterns; minimize use of classes
  • Use descriptive variable names (e.g., isExtensionEnabled, hasPermission)

javascript typescript coding standards

When reviewing or writing code, apply these guidelines:

  • Always use WordPress coding standards when writing JavaScript and TypeScript.
  • Prefer writing TypeScript over JavaScript.

javascript typescript coding style

When reviewing or writing code, apply these guidelines:

  • Use "function" keyword for pure functions. Omit semicolons.
  • Use TypeScript for all code. Prefer interfaces over types. Avoid enums, use maps.
  • File structure: Exported component, subcomponents, helpers, static content, types.
  • Avoid unnecessary curly braces in conditional statements.
  • For single-line statements in conditionals, omit curly braces.
  • Use concise, one-line syntax for simple conditional statements (e.g., if (condition) doSomething()).

typescript code generation rules

When reviewing or writing code, apply these guidelines:

  • Always use TypeScript for type safety. Provide appropriate type definitions and interfaces.
  • Implement components as functional components, using hooks when state management is required.
  • Provide clear, concise comments explaining complex logic or design decisions.
  • Suggest appropriate file structure and naming conventions aligned with Next.js 14 best practices.
  • Use the 'use client' directive only w

TypeScript 5.5–5.8 features (2025–2026)

Apply these modern features when writing or reviewing TypeScript code:

Inferred Type Predicates (TS 5.5)

TypeScript now infers type predicates from function bodies. No need to manually annotate x is T for simple filters.

// Before 5.5 — manual predicate required
const strings = values.filter((v): v is string => v !== null && typeof v === 'string');

// TS 5.5+ — predicate is inferred automatically
const strings = values.filter(v => v !== null && typeof v === 'string'); // string[]

Prefer letting TypeScript infer predicates over writing them by hand unless the inference is ambiguous.

Isolated Declarations (TS 5.5)

Enable "isolatedDeclarations": true in tsconfig for libraries and shared packages. This enforces that every exported symbol has an explicit type annotation, enabling parallel .d.ts generation by third-party tools (esbuild, oxc) without running tsc.

// Required when isolatedDeclarations: true
export function add(a: number, b: number): number {
  return a + b;
}
// Omitting the return type annotation is an error under isolatedDeclarations

Use isolatedDeclarations for any published package or monorepo shared library. It also improves incremental build performance.

Never-Initialized Variable Checks (TS 5.7)

TS 5.7 catches variables that are declared but never assigned in any code path, even when accessed via inner functions.

// TS 5.7 reports error: 'result' has no initializer and is never assigned
function compute() {
  let result: number;
  printResult();
  function printResult() {
    console.log(result);
  } // error
}

Enable this by keeping strict: true. No extra flag needed.

--erasableSyntaxOnly (TS 5.8)

Add "erasableSyntaxOnly": true to tsconfig for Node.js projects that use native TypeScript stripping (Node 22.6+ with --experimental-strip-types, or Node 23+). This flag turns enums, namespaces, and constructor parameter properties into compile errors.

// All three are errors under erasableSyntaxOnly: true
enum Status {
  Active,
  Inactive,
} // error — use const object instead
namespace Utils {
  export const x = 1;
} // error — use a module instead
class Foo {
  constructor(private x: string) {}
} // error — assign manually

Preferred replacements:

// Enum → const object + typeof
const Status = { Active: 'active', Inactive: 'inactive' } as const;
type Status = (typeof Status)[keyof typeof Status];

// Parameter property → explicit assignment
class Foo {
  private x: string;
  constructor(x: string) {
    this.x = x;
  }
}
satisfies Operator

Use satisfies to validate an object against a type while keeping the narrowest literal type inference.

type Config = { env: 'dev' | 'prod'; retries: number };

// Plain annotation widens env to 'dev' | 'prod'
const cfg1: Config = { env: 'dev', retries: 3 };
// typeof cfg1.env → 'dev' | 'prod'

// satisfies keeps literal but still validates the shape
const cfg2 = { env: 'dev', retries: 3 } satisfies Config;
// typeof cfg2.env → 'dev'  (narrower — use for keyof, typeof lookups)

Key use cases: configuration objects, i18n maps, event handler registries, route definitions.

const Type Parameters (TS 5.0+)

Annotate a generic with const to request literal-type inference from call sites without requiring as const at every call.

// Without const — T infers as string[]
function identity<T>(value: T): T {
  return value;
}
identity(['a', 'b']); // T = string[]

// With const — T infers as readonly ['a', 'b']
function identity<const T>(value: T): T {
  return value;
}
identity(['a', 'b']); // T = readonly ['a', 'b']

Useful for tuple factories, typed route builders, and fluent API chains.

NoInfer Utility Type (TS 5.4+)

Use NoInfer<T> to prevent a parameter from being used as an inference site, forcing TypeScript to resolve T from other arguments first.

// Without NoInfer — TypeScript widens initial to string (wrong)
function createFSM<T extends string>(states: T[], initial: T): void {}
createFSM(['idle', 'running'], 'typo'); // no error — 'typo' widens T

// With NoInfer — initial must match inferred T from states
function createFSM<T extends string>(states: T[], initial: NoInfer<T>): void {}
createFSM(['idle', 'running'], 'typo'); // error — 'typo' not in T

tsconfig recommendations for Node 22+

Use these settings for Node.js 22+ projects (native ESM or CJS):

{
  "compilerOptions": {
    // Target Node 22 supports ES2023 natively
    "target": "ES2023",
    "lib": ["ES2023"],

    // Native Node ESM (files use .ts extension, output .js/.mjs)
    "module": "NodeNext",
    "moduleResolution": "NodeNext",

    // Strict + extras
    "strict": true,
    "exactOptionalPropertyTypes": true,
    "noUncheckedIndexedAccess": true,
    "noImplicitOverride": true,

    // TS 5.5+ — enforce explicit exports for parallel d.ts gen (libraries)
    // "isolatedDeclarations": true,

    // TS 5.8 — disallow enums/namespaces/param-props (Node strip-types compat)
    // "erasableSyntaxOnly": true,

    "esModuleInterop": true,
    "forceConsistentCasingInFileNames": true,
    "skipLibCheck": true,
    "outDir": "dist",
    "declaration": true,
    "declarationMap": true,
    "sourceMap": true,
  },
}

For bundled apps (Vite, webpack, esbuild) use "module": "ESNext" and "moduleResolution": "bundler" instead.

ESM / CJS interop guidance

Follow these rules to avoid module-system errors in Node 22+ projects:

  1. type field drives defaults. "type": "module" in package.json makes .js files ESM. Omit type or set "commonjs" for CJS defaults.
  2. Extensions always win. .mjs → ESM, .cjs → CJS, regardless of type.
  3. moduleResolution: NodeNext requires explicit extensions in relative imports: import {foo} from './foo.js'; // correct —.js even for.ts source import {bar} from './bar.cjs'; // correct for CJS output
  4. ESM cannot require() CJS synchronously. ESM → CJS: use createRequire. CJS → ESM: use dynamic import().
  5. Dual-publishing (CJS + ESM): Use the exports field in package.json with "import" and "require" conditions. Build with tsc -p tsconfig.esm.json and tsc -p tsconfig.cjs.json.
  6. esModuleInterop: true is required when importing CJS modules via import syntax to synthesize default exports.
  7. For bundled apps, use "moduleResolution": "bundler" — it permits extension-less imports and lets the bundler handle resolution. Do not set "type": "module" in bundled projects (TypeScript cannot fully analyze the bundler's CJS/ESM interop in that mode).

Anti-Patterns (do not use)

  • Enums — Use const objects with typeof instead. Enums generate runtime code, break tree-shaking, and are banned by erasableSyntaxOnly.
  • namespace declarations — Use ES modules. Namespaces are non-erasable and a legacy pattern.
  • any — Use unknown with type guards, or model the type properly.
  • Type assertions (as T) — Prefer satisfies, type guards, or proper generics.
  • ! non-null assertions — Handle null/undefined explicitly.
  • Class parameter properties — Assign fields explicitly; banned by erasableSyntaxOnly.

Consolidated Skills

This expert skill consolidates 1 individual skills:

  • typescript-expert

Related Skills

  • nodejs-expert - Node.js backend patterns (Express, NestJS) that use TypeScript

Iron Laws

  1. ALWAYS prefer interfaces over type aliases and use strict TypeScript compiler settings for all new code
  2. NEVER use any types — use proper type annotations, unknown, or generics instead
  3. ALWAYS use type guards for runtime type narrowing rather than casting with as
  4. NEVER use enums — use const maps or literal union types for better tree-shaking and clarity
  5. ALWAYS apply functional patterns with immutable data; avoid class-based patterns when functions suffice

Anti-Patterns

Anti-PatternWhy It FailsCorrect Approach
any types everywhereDefeats type safety, hides bugs at compile timeUse unknown, generics, or proper interfaces
TypeScript enumsPoor tree-shaking, runtime overhead, confusing emitUse const maps or literal union types
Type casting with asBypasses type checking, creates false confidenceUse type guards (typeof, instanceof, discriminants)
Mutable shared state in classesUnpredictable behavior, hard to testUse functional patterns with immutable data
Loose tsconfig without strict modeMisses entire categories of type errorsEnable "strict": true in all TypeScript configs

Memory Protocol (MANDATORY)

Before starting:

cat .claude/context/memory/learnings.md

After completing: Record any new patterns or exceptions discovered.

ASSUME INTERRUPTION: Your context may reset. If it's not in memory, it didn't happen.

平台分布

Codex

36.2%
按下载量换算194

Claude

29.73%
按下载量换算159

Cursor

19.06%
按下载量换算102

Gemini CLI

9.02%
按下载量换算48

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

接触敏感数据

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

安装前确认

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

继续浏览同类 Skills