Skip to main content

create-spf-behavior

Create or extract one SPF playback-engine behavior. Use for a new atomic responsibility with signals, lifecycle, cleanup, composition, and tests.

来源信息

仓库
videojs/video.js
最近来源活动
2026年10月21日 16:58
检测到的 SKILL.md 语言
英语
星标
40,037
Forks
7,486

安装方式

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

检查来源文件

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

文件资源管理器
2 个文件

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
create-spf-behavior
description
Create or extract one SPF playback-engine behavior. Use for a new atomic responsibility with signals, lifecycle, cleanup, composition, and tests.
# Create an SPF behavior Read `references/workflow.md` completely before acting; it contains the detailed SPF creation workflow and failure checks. Read adjacent behaviors, the composition site, state/context slots, and `internal/design/spf/conventions/README.md`. Load only the applicable signal, actor, reactor, configuration, or behavior convention. 1. Define one-sentence purpose, inputs, writes, lifecycle, cleanup, ordering, and source-reset rules. 2. Confirm the responsibility is independently testable and does not hide coordination with another behavior. 3. Add focused failing tests, implement the smallest behavior, and wire it at the owning composition layer. 4. Verify slot ownership, naming, cleanup, boundaries, and final test coverage. If existing ownership must change, treat the work as a behavior refactor. If the requested capability spans multiple behaviors, keep this workflow scoped to the one atomic responsibility and surface the broader composition work separately. Run the narrow affected SPF tests. Build SPF when public types or exports change, and measure size when a public entry point can grow. ## Example Input: “Extract manifest refresh scheduling into its own behavior.” Output: One independently testable responsibility with explicit inputs, writes, lifecycle, cleanup, composition, and proportional verification.
在 GitHub 查看