Create Vjsc Component logo

Create Vjsc Component

OrganizationPopular
videojs
create-vjsc-component

Create VJSC modules. Use for UI and styles.

Overview

Publishervideojs
Repositoryv10
Skill namecreate-vjsc-component
Stars
1K
Forks
93
Bundled files
Instructions only
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by videojs on GitHub. Read the source before you install it.

Installation

Install the Create Vjsc Component AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/videojs/v10/tree/main/.agents/skills/create-vjsc-component
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/videojs/v10.git /tmp/v10
mkdir -p .claude/skills
cp -r /tmp/v10/.agents/skills/create-vjsc-component .claude/skills/create-vjsc-component
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Create Vjsc Component in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Create Vjsc Component on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Create Vjsc Component is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Create a VJSC component

Author every module so VJSC can understand and transform it in isolation. Prefer explicit component anatomy and state over knowledge of surrounding markup.

Component ownership

Keep schemas limited to parts owned by the component's real public compound API. Never copy an independent primitive into another component: VolumePopover.Tooltip and Menu.Tooltip are forbidden. Compose Tooltip instead.

Shared triggers

Nest the component trigger inside the tooltip composition:

tsx
<ButtonTooltip side="top">
  <$.Menu.Trigger>Settings</$.Menu.Trigger>
</ButtonTooltip>

Use the same pattern for VolumePopover.Trigger.

  • React targets lower each primitive through its render composition so both behaviors reach one button.
  • HTML root rewrites select parts.Trigger.one() and call trigger.replaceWith(...). This preserves the tooltip wrapper while adding commandfor to the concrete button or Host.
  • If two replaced parts share one wrapper, fix the canonical composition instead of duplicating the wrapper.

Styling

Use the component's styling hooks and exported data attributes before introducing a structural relationship. Put a style on the canonical part that owns the visual, and put state on that same part when practical. If the required hook or state is missing, consider adding a real part, data attribute, ARIA state, or CSS custom property before reaching through the DOM.

Safe defaults include self data-* and aria-* variants, interaction pseudo-classes, pseudo-elements, media or container queries, and locally owned named groups.

The following break isolated transforms and are forbidden:

  • peer, peer-*, and named peer relationships.
  • Implicit ancestor variants such as in-*.
  • Group consumers without an owner referenced by the same component module.
  • Utilities whose compiled CSS escapes the semantic rule's scope.

Do not silence those isolation errors. A named group is acceptable only when the JSX module statically references both its owner and consumers, such as sliderStyles.root with sliderStyles.thumb.

Avoid structural selectors such as :has(), has-*, group-has-*, descendants, child or sibling combinators, *, and **. Treat VJSC_STYLE_COMPLEX_SELECTOR as design feedback: prefer a component part, colocated state attribute, or locally owned named group. Existing exceptions are gaps, not patterns to copy.

Style modules

  • Default-export styles({...}) from a relative *.styles.ts module and reference static members directly inside JSX className. Do not hide references behind barrels, variables, spreads, or dynamic property access; per-module collection must see styles.thumb itself.
  • Name rules after the part or shortest semantic role: root, trigger, popup, content, track, fill, thumb, or playIcon. Do not repeat the component name in the key. Set the module prefix and let each rule derive prefix-<kebab key>, with root emitting the prefix itself, such as media-slider-thumb. Spell out className only where a rule departs from that.
  • Put shared primitive rules in a generic module and component-specific deltas in a specific module. Follow the current button.styles.ts plus play-button.styles.ts, and slider.styles.ts plus time-slider.styles.ts, pattern.
  • Compose classes from general to specific to caller override: [sliderStyles.thumb, styles.thumb, className].
  • Organize component and style modules by role (behaviors, buttons, dialogs, display, layout, menus, sliders), with reusable popup rules under styles/popups. Name output assets for the rules they aggregate, and keep skin-only layout in the skin rather than a generic primitive module.
  • Put common utilities in utilities and selected skin or target differences in variants instead of duplicating a rule.

Shared utilities and tokens

  • Put a recipe that several rules repeat into packages/skins/src/styles/tailwind.css as an @utility, and prefix it at the use site instead of building class strings dynamically. Name property families <property>-media-<token> (mask-media-volume, clip-media-x-*) and multi-property recipes <recipe>-media (surface-media, focus-ring-media).
  • Keep @utility bodies flat declaration lists. The Shadcn registry exporter cannot represent nested rules, so state, pseudo-element, and media handling belongs on the use site through variants, and preference modes belong in themes/preferences.css through tokens.
  • Functional utilities read their argument with --value([*]); custom variants use the block form because the shorthand splits comma-separated media query lists. Name variants media-<state> and use the layout variants media-xs, media-sm, media-md, media-lg, media-xl, media-2xl, and their media-max-* counterparts instead of raw container prefixes. Reach for media-transitioning when starting and ending styles share a value, media-highlighted for hover, focus, expanded, and highlighted states, and media-anchored for anchor-positioning support checks.
  • Add other breakpoint sizes when a layout needs them, following Tailwind’s container size scale. Define the matching --container-media-* theme key and both media-* and media-max-* variants, and update the utility reference. Unused variants do not generate utility rules in compiled Tailwind CSS.
  • Prefer a --media-* token with an @theme inline alias over literal values, and use the named utility the alias produces, such as duration-media-fast, scale-media-hidden, or shadow-media-thumb. Reserve the (--var) shorthand for runtime values such as --media-slider-pointer. Use rounded-media-pill rather than rounded-full, whose calc(infinity * 1px) the style pipeline cannot serialize.
  • The vjsc plugin writes a candidate manifest into the Vite cache directory and aliases it as vjsc:candidates; the dev Tailwind entry imports it so scanning sees the utilities the transform resolves. The plugin also re-includes the manifest in the Vite watcher, which skips the cache directory by default, so Tailwind recompiles as modules record. Raw style modules are not scanned.
  • Composed rules override the rules they extend by order in CSS output, but Tailwind output has no runtime class merging, so a same-property override across composed rules still needs ! unless Tailwind emits the shorthand first.

Example

Input: “Add a tooltip to the volume-popover button.”

Output: Wrap $.VolumePopover.Trigger in ButtonTooltip; keep the schema at Root, Trigger, and Popup; preserve the wrapper in HTML with replaceWith(...); style each primitive through its own part and state hooks.

Validation

Build Core after schema changes. Run affected isolated transforms for HTML and React with CSS and Tailwind, inspect all style diagnostics, refresh generated snapshots, run pnpm -F @videojs/skins test, and verify no foreign parts or forbidden relationships remain.

Frequently asked questions

What does the Create Vjsc Component AI skill do?

Create VJSC modules. Use for UI and styles.

Why use Create Vjsc Component on TypingMind?

Because you install it once and use it with any model. Create Vjsc Component is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Create Vjsc Component in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/videojs/v10/tree/main/.agents/skills/create-vjsc-component. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Create Vjsc Component?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Create Vjsc Component?

As many as you like. As long as a model supports skills, you can use Create Vjsc Component with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Create Vjsc Component AI skill free?

It is published on GitHub by videojs. Check the repository for licensing terms. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇