Agent Skills › videojs/video.js › create-spf-behavior

create-spf-behavior

GitHub

用于创建或提取 SPF 播放引擎的原子行为,涵盖信号、生命周期及测试定义。适用于新增具备独立职责的行为模块,确保可测试性与边界清晰,并执行相关验证。

.agents/skills/create-spf-behavior/SKILL.md videojs/video.js

触发场景

需要创建新的 SPF 行为 将功能拆分为独立的原子行为

安装

npx skills add videojs/video.js --skill create-spf-behavior -g -y
更多选项

非标准路径

npx skills add https://github.com/videojs/video.js/tree/main/.agents/skills/create-spf-behavior -g -y

不安装直接使用

npx skills use videojs/video.js@create-spf-behavior

指定 Agent (Claude Code)

npx skills add videojs/video.js --skill create-spf-behavior -a claude-code -g -y

安装 repo 全部 skill

npx skills add videojs/video.js --all -g -y

预览 repo 内 skill

npx skills add videojs/video.js --list

SKILL.md

Frontmatter
{
    "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.

版本历史

  • 8a0a3d8 当前 2026-10-20 08:02

同 Skill 集合

.agents/skills/change-spf-behavior/SKILL.md
.agents/skills/commit-pr/SKILL.md
.agents/skills/configure-vite-plus/SKILL.md
.agents/skills/create-html-component/SKILL.md
.agents/skills/create-issue/SKILL.md
.agents/skills/create-react-component/SKILL.md
.agents/skills/create-skill/SKILL.md
.agents/skills/design-api/SKILL.md
.agents/skills/document-spf-feature/SKILL.md
.agents/skills/document-spf-use-case/SKILL.md
.agents/skills/implement-accessible-ui/SKILL.md
.agents/skills/implement-spf-feature/SKILL.md
.agents/skills/implement-spf-use-case/SKILL.md
.agents/skills/implement-ui-transition/SKILL.md
.agents/skills/investigate-issue/SKILL.md
.agents/skills/maintain-agent-docs/SKILL.md
.agents/skills/maintain-tests/SKILL.md
.agents/skills/maintain-vjsc-skin-gaps/SKILL.md
.agents/skills/review-accessibility/SKILL.md
.agents/skills/review-api/SKILL.md
.agents/skills/review-branch/SKILL.md
.agents/skills/review-docs/SKILL.md
.agents/skills/review-html-component-design/SKILL.md
.agents/skills/review-html-component/SKILL.md
.agents/skills/review-react-component-design/SKILL.md
.agents/skills/review-react-component/SKILL.md
.agents/skills/write-api-reference/SKILL.md
.agents/skills/write-design-doc/SKILL.md
.agents/skills/write-docs/SKILL.md
.agents/skills/write-html-component-design/SKILL.md
.agents/skills/write-locale-translations/SKILL.md
.agents/skills/write-react-component-design/SKILL.md
.agents/skills/write-rfc/SKILL.md
.agents/skills/create-rolldown-plugin/SKILL.md
.agents/skills/create-vite-plugin/SKILL.md
.agents/skills/create-vjsc-component/SKILL.md
.agents/skills/transform-rolldown-code/SKILL.md

元信息

文件数
0
版本
8a0a3d8
Hash
b1f5a5cc
收录时间
2026-10-20 08:02

首页 - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-11-03 22:28
浙ICP备14020137号-1