Token导航 LogoToken导航TokenDH.com
研究检索需要联网unknown未标认证来源可访问许可证需确认审计未展示

typescript-expertTypeScript expert 搜索

Agent Skill

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

总安装

309

周安装

13

下载量

108
Local Agent

安装说明

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

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

typescript-expert 用于查找、检索和筛选相关信息,支持基于关键词快速定位技术资料或解决方案。

  • 适用于需要从文档、代码库或社区资源中提炼 TypeScript 相关知识的场景。
  • 可结合任务目标设定搜索策略,并通过来源仓库验证其检索逻辑的有效性。
  • 安装前需确认是否依赖网络访问及数据缓存机制,避免因权限限制导致功能异常。
  • 当前安装方式未明确,建议查阅原始 SKILL.md 获取部署细节。

SKILL.md

TypeScript Expert

Overview

This skill provides expert-level guidance for TypeScript development targeting TypeScript 5.x and ES2022. Apply these guidelines when writing new TypeScript code, reviewing existing code, or refactoring to ensure maintainability, type safety, security, and performance.

When to Use This Skill

Activate this skill when:

  • Writing new TypeScript code (.ts, .tsx files)
  • Reviewing or refactoring existing TypeScript implementations
  • Making architectural decisions for TypeScript projects
  • Implementing security-sensitive features
  • Setting up testing infrastructure
  • Optimizing TypeScript code performance
  • Establishing coding standards for a team

Core Principles

Before writing any TypeScript code, internalize these foundational principles:

  1. Respect existing architecture - Study the codebase patterns before introducing new abstractions
  2. Prioritize readability - Favor explicit, clear solutions over clever shortcuts
  3. Maintain type safety - Avoid any; use TypeScript's type system to catch errors at compile time
  4. Keep it simple - Short methods, focused classes, single-purpose modules
  5. Security first - Validate inputs, sanitize outputs, handle secrets properly

Development Workflow

1. Before Writing Code

Before implementing any TypeScript feature:

  1. Explore the codebase structure

- Identify existing patterns for similar functionality - Locate shared utilities and types that can be reused - Understand the project's dependency injection or composition pattern

  1. Check type definitions

- Search for existing interfaces and types that match your needs - Centralize shared contracts instead of duplicating shapes - Use the project's type organization conventions

  1. Review security requirements

- Identify external inputs that need validation - Determine what secrets or sensitive data will be handled - Plan error handling and logging strategy

2. While Writing Code

Apply these guidelines during implementation:

Type System Best Practices:

  • Avoid any (implicit or explicit); prefer unknown with type narrowing
  • Use discriminated unions for state machines and event handlers
  • Express intent with utility types (Readonly, Partial, Record, Pick, Omit)
  • Centralize shared type definitions

Code Organization:

  • Use kebab-case for filenames (user-service.ts, data-mapper.ts)
  • PascalCase for types/classes/interfaces, camelCase for functions/variables
  • Keep tests and types near their implementations
  • Extract helpers when functions grow beyond 20-30 lines

Async & Error Handling:

  • Use async/await with try/catch blocks
  • Guard edge cases early to avoid deep nesting
  • Propagate structured errors through logging utilities
  • Handle user-facing errors through the project's notification pattern

Security Practices:

  • Validate external input with schema validators or type guards
  • Never hardcode secrets; use secure storage
  • Sanitize untrusted content before rendering
  • Use parameterized queries to prevent injection

3. After Writing Code

Before considering the task complete:

  1. Run quality checks npm run lint # Fix style issues npm run type-check # Verify type safety npm run test # Run tests
  2. Add or update tests

- Unit tests for business logic - Integration tests for cross-module behavior - E2E tests for user-facing features

  1. Document public APIs

- Add JSDoc comments to public functions/classes - Include @param, @returns, @throws annotations - Add @example for non-obvious usage

  1. Review performance implications

- Lazy-load heavy dependencies - Consider debouncing high-frequency events - Track resource lifetimes to prevent memory leaks

Quick Reference Checklist

Use this checklist for code reviews or self-review:

  • No usage of any type (use unknown + type guards instead)
  • All external inputs validated with type guards or schema validators
  • Secrets loaded from secure sources, never hardcoded
  • Error handling with try/catch and structured error propagation
  • Public APIs documented with JSDoc
  • Tests added/updated for new functionality
  • Lint and type-check pass without errors
  • Follows project's naming conventions (kebab-case files, PascalCase types)
  • Code reuses existing utilities before creating new ones
  • Functions are focused and single-purpose (<30 lines)

Detailed Guidelines

For comprehensive coverage of all TypeScript development aspects, consult the detailed guidelines document:

Read: references/typescript-guidelines.md

This reference covers:

  • Project organization strategies
  • Type system advanced patterns
  • Architecture and design patterns
  • External integration best practices
  • Comprehensive security practices
  • Configuration and secrets management
  • UI/UX component patterns
  • Testing strategies
  • Performance optimization techniques
  • Documentation standards

Load this reference when encountering complex scenarios or when establishing team standards.

Common Scenarios

Scenario 1: Adding a New Feature

  1. Search for similar existing features to maintain consistency
  2. Identify shared types and utilities to reuse
  3. Create focused, single-purpose modules
  4. Write tests alongside implementation
  5. Document public APIs with JSDoc
  6. Run lint/type-check before committing

Scenario 2: Refactoring Legacy Code

  1. Add tests for existing behavior first (if missing)
  2. Read detailed guidelines in references/typescript-guidelines.md
  3. Replace any types with proper types or unknown + guards
  4. Extract reusable utilities from duplicated code
  5. Improve error handling with structured errors
  6. Verify tests still pass after refactoring

Scenario 3: Security-Sensitive Implementation

  1. Review "Security Practices" in references/typescript-guidelines.md
  2. Implement input validation with schema validators
  3. Use type guards for runtime type safety
  4. Handle secrets through secure storage APIs
  5. Add comprehensive tests including security edge cases
  6. Document security considerations in code comments

Scenario 4: Performance Optimization

  1. Review "Performance & Reliability" in references/typescript-guidelines.md
  2. Profile to identify actual bottlenecks (don't optimize prematurely)
  3. Implement lazy loading for heavy dependencies
  4. Add debouncing/throttling for high-frequency events
  5. Track and dispose resources properly
  6. Measure improvements with benchmarks

Resources

This skill includes one reference file:

references/typescript-guidelines.md

Comprehensive TypeScript development guidelines covering all aspects in detail. Load this reference when:

  • Establishing team coding standards
  • Encountering complex architectural decisions
  • Implementing security-critical features
  • Setting up testing infrastructure
  • Optimizing performance
  • Resolving type system challenges

The reference provides in-depth guidance on topics that may only be briefly mentioned in this SKILL.md.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

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

平台分布

Local Agent

73.84%
按下载量换算80

安全审计

暂无安全审计结果可展示。

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

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

来源信息

继续浏览同类 Skills