agentleFS
jin2004-cmdjin2004-cmd/codex-practical-skills/video-portfolio-performance/SKILL.md

video-portfolio-performance

Skill1 starsChanged 36 days agoMITView on GitHub

Review and build video portfolio websites with mixed landscape and portrait media, strong visual direction, responsive interaction, and bounded loading cost. Not for publishing, Git operations, or deployment, which is portfolio-github-workflow.

The file

We split this skill into the rules it gives an agent

7 rules. About 0 are common, 5 are distinctive, and 2 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈5

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when a portfolio site contains multiple videos or needs a visual redesign without sacrificing playback quality.

    line 9
  2. Very specific:

    Use preload="none" below the fold.

    line 22
  3. Distinctive:

    Do not autoplay multiple videos.

    line 23
  4. Very specific:

    Use contain when the full frame matters and cover only for intentional crops.

    line 25
  5. Distinctive:

    Prefer web-friendly H.264/AAC versions with bounded file size.

    line 27
  6. Distinctive:

    Before, every video loads on page open:

    line 35
  7. Distinctive:

    After, a poster frame shows first and the file loads on interaction:

    line 41

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Video Portfolio Performance

Use this skill when a portfolio site contains multiple videos or needs a visual redesign without sacrificing playback quality.

Inspect

  1. Identify the real repository and preserve its public URL.
  2. Inventory media dimensions, codecs, duration, and file size.
  3. Separate landscape, portrait, and square media.
  4. Identify template-only or third-party work.
  5. Capture desktop and mobile baselines.

Media

  • Provide a poster for every video.
  • Use preload="none" below the fold.
  • Do not autoplay multiple videos.
  • Defer media outside the first viewport.
  • Use contain when the full frame matters and cover only for intentional crops.
  • Give each media surface a stable aspect ratio.
  • Prefer web-friendly H.264/AAC versions with bounded file size.

Design and validation

Make the work the first-viewport signal. Use one clear visual direction, restrained interaction, visible focus, touch support, and reduced-motion handling. Validate desktop/mobile framing, network cost, controls, poster fallbacks, navigation, broken paths, overlap, and console errors. Report limitations honestly.

Example

Before, every video loads on page open:

<video src="a.mp4" controls></video>   <!-- 6 个视频一起下载 -->

After, a poster frame shows first and the file loads on interaction:

<video poster="a.jpg" preload="none" controls>
  <source data-src="a.mp4" type="video/mp4">
</video>

Same page, first paint drops from several megabytes to a few hundred kilobytes.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.