Agent Skills › videojs/video.js › write-docs

write-docs

GitHub

负责编写 Video.js 各类文档,包括指南、概念页、README 及 JSDoc。依据 Diataxis 框架区分内容形态,遵循特定写作风格与结构规范,确保文档准确性、SEO 优化及版本重定向处理。

.agents/skills/write-docs/SKILL.md videojs/video.js

触发场景

需要撰写或更新项目文档 生成 API 参考说明或安装指南 维护技术博客或概念性文章

安装

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

非标准路径

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

不安装直接使用

npx skills use videojs/video.js@write-docs

指定 Agent (Claude Code)

npx skills add videojs/video.js --skill write-docs -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-docs",
    "description": "Write Video.js guides, concepts, READMEs, and JSDoc. Use for site prose, examples, inline API documentation, or package documentation."
}

Documentation

Treat implementation, types, tests, and content schemas as factual sources. Read site/src/content/docs/writing-style/write-guides.mdx before authoring a site guide.

Choose the artifact

Before drafting, write down the shape (how-to or concept), the reader's question, and the compass quadrant it serves (action or cognition, study or work). Both shapes live in site/src/content/docs/guides/; exact API and error-code descriptions live under reference/, and pnpm -F site test diataxis guards that line.

  • Achieve a specific outcome with the player (autoplay, captions, self-hosting): how-to guide. Keep only the explanation needed to complete or adapt that task.
  • Reusable mental model or rationale that helps with several tasks: concept page. Do not create a concept page for background that belongs to one how-to.
  • Package install and entry points: package README
  • Non-obvious public contract at the symbol: JSDoc
  • Exact component, feature, hook, utility, option, state surface, or error code: reference page. Update its owning TypeScript or registry source rather than duplicating exhaustive detail in a guide.

Workflow

  1. Identify the audience, question, and owning source files.
  2. Read neighboring docs for current voice and MDX patterns.
  3. Load only what applies:
    • Voice and structure: references/writing-style.md
    • Content drifting between document types, or per-type tone and sentence forms: references/diataxis.md
    • SEO-sensitive site content: references/seo.md
    • State/tooling concepts: references/state-tooling.md
    • Component-library comparisons: references/component-libraries.md
    • Code or error examples: the matching file in patterns/
    • New artifact scaffold: the matching file in templates/
  4. Lead with the user outcome or concept. Use complete, verified examples and explain only non-obvious parts.
  5. Reread the draft against references/diataxis.md: every heading and sentence form matches the shape you chose. Move passages that read like another shape to the page that owns them and leave a link.
  6. Add the sidebar entry and framework/style restrictions for new site pages. When a page changes slug, add a [[redirects]] rule for the old URL and its .md twin to site/netlify.toml, above the section-wide rules.
  7. Run examples or relevant tests where practical, run pnpm -F site test diataxis for site pages, and render affected MDX for every supported variant.

Do not duplicate signatures TypeScript already expresses. API-builder exports are the exception when its tests require structured JSDoc fields.

Example

Input: “Write a guide for configuring captions.”

Output: A task-oriented page with verified examples, the correct sidebar metadata, and rendered MDX validation.

版本历史

  • 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-design-doc/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
55e642c3
收录时间
2026-10-20 08:03

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