Skip to main content

design-api

Design Video.js TypeScript APIs. Use for public shape, inference, state, extension points, middleware, composition, or ergonomics.

跳到安装

来源信息

仓库
videojs/v10
最近来源活动
2026年8月14日 22:10
检测到的 SKILL.md 语言
英语
星标
947
分支
91

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

文件资源管理器
8 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
design-api
description
Design Video.js TypeScript APIs. Use for public shape, inference, state, extension points, middleware, composition, or ergonomics.
# API design and DX Inspect the current call sites, types, tests, exports, and relevant design records before applying general guidance. Existing local contracts beat generic patterns. ## Default priorities 1. Correct observable behavior 2. Type safety and useful inference 3. A small, coherent concept set 4. Consistency with adjacent Video.js APIs 5. Composable escape hatches and tree-shakable output Prefer config objects once positional arguments become ambiguous, explicit contracts over hidden coupling, and inference over required annotations. Avoid adding a plugin system when ordinary composition or a narrow extension point solves the problem. ## Load references conditionally - General API tradeoffs: `references/principles.md` - Type inference or public type shape: `references/typescript.md` - Store, signal, or state architecture: `references/state.md` - Middleware, builders, adapters, or lifecycles: `references/extensibility.md` - Suspected design smell: `references/anti-patterns.md` - Prior-art comparison: `references/libraries.md` and, only if useful, `references/voices.md` Do not load every reference by default. ## Example Input: “Design a typed selector API for the store.” Output: A concrete public shape with inference behavior, compatibility tradeoffs, extension points, and tests to prove the contract.
在 GitHub 查看