Agent Skills › videojs/video.js › write-design-doc

write-design-doc

GitHub

用于根据用户明确请求撰写或更新 Video.js 架构、功能或决策记录。通过阅读代码和现有文档,提炼非显而易见的rationale,生成简洁的设计文档。

.agents/skills/write-design-doc/SKILL.md videojs/video.js

触发场景

用户明确要求创建设计文档 用户明确要求修订决策记录

安装

npx skills add videojs/video.js --skill write-design-doc -g -y
更多选项

非标准路径

npx skills add https://github.com/videojs/video.js/tree/main/.agents/skills/write-design-doc -g -y

不安装直接使用

npx skills use videojs/video.js@write-design-doc

指定 Agent (Claude Code)

npx skills add videojs/video.js --skill write-design-doc -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": "write-design-doc",
    "description": "Write or update a Video.js architecture, feature, or decision record only when the user explicitly requests that record. Use for compact, non-inferable rationale outside UI component design."
}

Internal records

Read internal/design/README.md and internal/decisions/README.md; they define current placement, status, and format.

Workflow

  1. Confirm that the user explicitly requested creation or revision of the record. Do not invoke this skill merely because a design decision exists.
  2. Use the requested artifact and path when given; otherwise choose the smallest matching design or decision location.
  3. Read the relevant code, tests, history, and existing record. Treat executable sources as current behavior.
  4. State the decision directly, then preserve only the important rationale, constraint, or trade-off that cannot be inferred from those sources.
  5. Link source, tests, or related records instead of copying APIs, schemas, state flow, file inventories, or mechanics.
  6. Include alternatives or consequences only when they materially explain the choice. Omit empty headings and speculative detail.

Keep the result to a few paragraphs when possible. Do not create adjacent records, split one record into several, or turn it into an RFC without a separate explicit request.

Example

Input: “Record why source selection belongs in the core player.”

Output: A compact decision and the non-inferable reason it should survive outside the code, with source links where useful.

版本历史

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

同 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/create-spf-behavior/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-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
61f0cfea
收录时间
2026-10-20 08:03

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