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

typescript-standardsTypeScript standards 搜索

Agent Skill

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

总安装

259

周安装

11

GitHub Stars

公开资料未说明

下载量

91
CodexClaudeCursorGemini CLI

安装说明

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

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

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

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

命令行安装

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

skills.shnpx skills
npx skills add https://github.com/hebertpaziam/skills --skill typescript-standards

简介

typescript-standards 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中快速定位候选结果。

  • 适用于关键词搜索、任务场景匹配或来源线索筛选等研究检索场景。
  • 通过 npx skills add 命令从指定 GitHub 仓库安装并使用该技能。
  • 安装前需确认权限范围、维护状态,以及是否会触发联网或文件操作。
  • 适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

SKILL.md

TypeScript Standards

When to Use

  • Creating or refactoring TypeScript files in the project.
  • Defining interfaces, types, shared contracts, and module boundaries.
  • Modeling domain, results, errors, collections, and public APIs.
  • Making design and architecture decisions that are not specific to a framework.

Goal

  • Maintain strong, predictable, and readable typing.
  • Preserve simplicity, cohesion, and healthy code evolution.
  • Concentrate detailed rules in local references to avoid duplication and maintain clear precedence.
  • Apply design principles pragmatically, without overengineering.

LIFT Principle

Before creating any new type, helper, module, class, adapter, factory, port, or abstraction, apply the LIFT principle:

  • Locate: Find existing contracts, types, helpers, patterns, modules, and references.
  • Identify: Determine what already solves part of the problem and where there is real or potential duplication.
  • Find: Find the smallest coherent point of reuse, extension, or composition before introducing something new.
  • Try to be DRY: Eliminate real duplication without creating premature abstractions, overly generic layers, or opaque structures.

Integration with Other Skills

  • This skill is cross-cutting and language-level: frameworks like Angular and Vue should continue dictating framework-specific architecture.
  • typescript-standards defines modeling, contracts, module design, boundary validation, and pragmatic design in TypeScript.
  • In case of conflict, the framework skill prevails for ecosystem-specific organization and typescript-standards prevails for general language and design rules.

Main Rules

  • Apply LIFT before introducing new types, modules, classes, helpers, adapters, factories, or patterns.
  • Never use any; when the type is uncertain, use unknown.
  • Interfaces must start with I.
  • Do not create interfaces inside files that are not dedicated to the interface.
  • Every interface must have a corresponding generator using faker.js.
  • The interface generator must live in a dedicated file and respect the folder hierarchy adopted by the project.
  • The generator must create or receive a single random seed per execution and derive all contract data from it.
  • Do not create enums inside files that are not dedicated to the enum.
  • Keep only one enum per file.
  • Every enum must have in the same file a mapping structure for its value labels.
  • Prefer functions and modules over classes.
  • Prefer composition over inheritance.
  • Apply KISS, YAGNI, and SoC by default.
  • Treat SOLID as pragmatic heuristics, not as a dogmatic checklist.
  • Treat Object Calisthenics as optional design pressure, not as law.
  • Use GoF patterns only when there is real pressure for change, repetition, or decoupling.
  • Prefer Record over Map when object keys are sufficient.
  • Use Map only when its specific API or support for non-serializable keys is truly needed.
  • Prefer one contract per file, unless the types are strongly related.
  • Before introducing new types, check if an equivalent contract already exists in the domain.
  • Validate runtime boundaries when data enters from outside the system.
  • Use single quotes and semicolons.

Procedure

  1. Apply LIFT before creating new types, modules, or abstractions.
  2. Identify the contracts, types, and boundaries truly needed for the change.
  3. If there is an interface, also plan the corresponding generator in the correct project hierarchy.
  4. Reuse existing types before creating new ones.
  5. Model with the most restrictive, clear, and simple option possible.
  6. If there is uncertainty, use unknown and perform explicit narrowing.
  7. Choose between function, module, object, or class based on the real need for state, identity, lifecycle, or polymorphism.
  8. If considering a GoF pattern, first check if simple composition solves the case.
  9. Review the result with KISS, YAGNI, SoC, and domain readability.

Quality Checklist

  • LIFT applied before introducing new structures.
  • No any was introduced.
  • Interfaces follow the I prefix.
  • Interfaces live in dedicated files.
  • Interfaces have a corresponding generator.
  • The interface generator uses faker.js.
  • The interface generator respects the project's folder hierarchy.
  • The interface generator uses a single random seed per execution.
  • Enums live in dedicated files.
  • Only one enum per file.
  • Every enum has a label mapping structure in the same file.
  • The simplest solution that meets the case was preferred.
  • No speculative abstraction.
  • Record was preferred when sufficient.
  • Map was only used with real technical justification.
  • External boundaries were treated with proper validation when needed.
  • The file uses single quotes and semicolons.
  • No unnecessary proliferation of types, classes, or patterns.

Notes

  • This skill does not require object-oriented design as default; in TypeScript, functions, modules, and composition are usually the best starting point.
  • SOLID, GoF, and Object Calisthenics exist here to improve design and maintainability, not to justify extra complexity.
  • When the framework skill defines a specific structure, follow the framework and apply this skill at the language and design layer.

Typing Decisions

Consult when defining interfaces, types, enums, generics, or modeling domain contracts.

Architecture and Module Design

Consult when designing functions, classes, modules, boundaries, or API surfaces.

Design Principles

Consult when making structural or design decisions that affect maintainability.

Design Patterns

Consult only when there is real pressure for change, repetition, or decoupling.

Pragmatic Design

Consult when evaluating duplication, abstraction trade-offs, or refactoring triggers.

适合场景

01

用户想查找某类 Agent Skill 时

02

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

03

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

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

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

能力 4

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

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

平台分布

Codex

34.93%
按下载量换算32

Claude

30.91%
按下载量换算28

Cursor

20.75%
按下载量换算19

Gemini CLI

10.47%
按下载量换算10

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

需要联网

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

安装前确认

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

来源信息

继续浏览同类 Skills