implement-spf-feature
GitHub依据工作流规范,将SPF功能条目转化为最小可验证增量。通过编写失败测试、分层实现及运行测试验证,更新注册表状态并报告实施进度与风险。
触发场景
安装
npx skills add videojs/video.js --skill implement-spf-feature -g -y
SKILL.md
Frontmatter
{
"name": "implement-spf-feature",
"description": "Implement an SPF feature from its registry entry. Use when an engine capability spans behaviors and requires tests plus status updates."
}
Implement an SPF feature
Read references/workflow.md completely before acting; it contains the detailed disambiguation, planning, implementation, testing, and registry-update workflow.
Treat the feature entry as planning input. Reconcile it with code, tests, conventions, and requested scope before editing.
- Read the entry, related features, implementation, tests, and applicable SPF conventions.
- List contradictions, open decisions, and out-of-scope capability.
- Define the smallest end-to-end increment with observable value and split it into testable state, behavior, composition, adapter, and documentation chunks.
- For each chunk, add or update a failing test, implement the minimum at the correct ownership layer, and run the narrow target.
- Run cumulative SPF tests, build, and size checks proportional to impact.
- Collapse the feature record to final decisions, remaining scope, and current source pointers.
Report implemented and deferred scope, test evidence, record updates, and remaining risks. Do not claim completion for a prerequisite or partial increment.
Example
Input: “Implement the smallest useful increment of timeline discontinuity support.”
Output: The smallest end-to-end capability, test evidence, proportional checks, updated feature status, and explicit deferred scope.
版本历史
- 8a0a3d8 当前 2026-10-20 08:03


