AI First and Last Frame Video Generation: Planning Short Transition Videos with First and Last Frames

Introduction

The “outfit swap flash,” “product reveal,” and “before-and-after comparison” effects common in short videos and advertisements typically last only a few seconds. However, the visuals must transition from a specific State A to a specific State B. If you only provide a single reference image and let the model “freestyle,” the beginning and end frames may not align with your brand assets; on the other hand, manually crafting keyframes throughout the process is prohibitively expensive. This article introduces the community Skill on SkillHub: “AI First & Last Frame Video Generation.” It takes a first frame and a last frame as input to generate a short video transitioning between them. It emphasizes camera movement, subject trajectory, and reveal pacing within the workflow, followed by a standardized acceptance checklist upon delivery.

What is This

“AI First & Last Frame Video Generation” is an Agent Skill under the design-media category on SkillHub. Its coordinates are @user_87b8e34f/first-last-frame-video. The current version is 0.2.1, the source is community, and the publisher is user_87b8e34f. It targets the scenario of “two approved images → one short transition video”: you specify the first and last frames, and the AI generates the intermediate transition. It is designed for transition clips requiring controllable start and end visuals, rather than open-ended text-to-video generation.

Official Pages:

  • SkillHub: https://www.skillhub.cn/skills/user_87b8e34f/first-last-frame-video
  • API Endpoint: https://api.skillhub.cn/user_87b8e34f/first-last-frame-video

The Skill is marked with requires_api_key=true. You must prepare the corresponding API key before use and configure it in your Agent environment as required by the platform (refer to the installed SKILL.md for specific fields).

Core Features

Based on the official description, this Skill is verified to possess the following capabilities:

  1. First & Last Frame Anchoring: Generates a short transition video using one first frame and one last frame. The final output should begin with the first frame and end with the last frame.
  2. Plannable Intermediate Process: Allows planning for camera movement, subject motion paths, and reveal pacing between the two frames, rather than just a simple cross-dissolve.
  3. Typical Creative Types: Transitions “between two states” such as outfit change transitions, product reveals, before-and-after comparisons, day-night switches, scene teleportation, and cinematic endings.
  4. Delivery Acceptance Checklist: First confirm if the start and end frames align with the assets, then check the intermediate motion, direction, duration, and audio. It is recommended to generate only one transition at a time and review it honestly upon completion to facilitate iterative improvements to prompts and assets.

The above capability descriptions are derived from the SkillHub page introduction. The underlying models or interface names are not separately listed on the public page, so this article does not expand on unverified technical stack details.

Installation & Activation

SkillHub recommends allowing the Agent to follow the installation documentation or using the skillhub CLI locally to install to the skills directory currently recognizable by the Agent (installing to the wrong directory will result in the Skill not being loaded).

1. Check or Install SkillHub CLI

command -v skillhub && skillhub --version

If not installed, execute the full installation (CLI + Default Skill) following the official documentation:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash

To install only the CLI:

curl -fsSL https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/install.sh | bash -s -- --cli-only

Installation and priority source policy descriptions can be found at: https://skillhub.cn/install/skillhub.md

2. Install This Skill

The installation prompt provided on the official page is: Based on the aforementioned skillhub.md, install the coordinates @user_87b8e34f/first-last-frame-video.

CLI Example (--dir needs to be replaced with your current environment’s skills path):

skillhub install @user_87b8e34f/first-last-frame-video --dir <skills directory>

Common Agent skills directories (excerpted from SkillHub installation documentation, subject to your local actual configuration):

  • Claude Code: ~/.claude/skills/
  • Cursor: ~/.cursor/skills/
  • Codex: ~/.codex/skills/ or .agents/skills/ under the project

Restart or refresh the Agent after installation to activate the Skill. Since the tag requires an API Key, please configure the key in the Agent or Skill settings before calling the generation capabilities.

Typical Usage

The public page does not include step-by-step screenshots, but the introduction provides a reproducible workflow. You can drive the Agent to use this Skill in a conversation following this order:

  1. Prepare Assets: Two approved images—clarify which is the first frame and which is the last frame; keep the subject composition, lighting, and aspect ratio as consistent as possible to minimize intermediate “glitches.”
  2. Describe Transition Intent: Use natural language to specify the type (e.g., outfit swap, product reveal, day-night switch) and the desired camera movement, subject trajectory, reveal pacing, and duration preference.
  3. Generate One Transition: Generate only one video at a time to avoid mixing multiple clips, which makes comparison and review difficult.
  4. Acceptance Checklist:
    • Is the first frame identical to the provided first frame?
    • Is the last frame identical to the provided last frame?
    • Are the intermediate motion direction and speed reasonable?
    • Does the duration meet expectations?
    • If there is an audio track, is it silent or do the sound effects meet requirements?
  5. Review: Clearly record which item failed and whether to modify the assets or the description in the next round before retrying.

This is a “two-image to video” workflow focused on start/end controllability and acceptance, rather than one-time batch production.

Use Cases & Notes

Who is it for

  • Editing, operations, and design collaboration scenarios requiring brand or event materials to “must go from Screen A to Screen B.”
  • Users already using Skill-supported Agents like Cursor, Claude Code, or Codex, and willing to describe camera work and pacing via conversation.

Usage Notes

  • First and last frames must be pre-approved; blurriness or aspect ratio inconsistencies will directly affect intermediate transition quality.
  • requires_api_key=true: Real generation cannot be completed without configuring a key. Please confirm billing and compliance first.
  • Community Source (community) Skill: Behavior is subject to the SKILL.md within the installation package and SkillHub page updates; the version number is based on the current 0.2.1.
  • SkillHub data scraping indicates this Skill is categorized under design-media and has high community popularity (page statistics fluctuate; refer to SkillHub’s real-time display).

Conclusion

“AI First & Last Frame Video Generation” breaks down short transitions into three steps: “Anchor First & Last + Plan Intermediate + Checklist Acceptance.” It is suitable for two-state transitions such as outfit swaps, reveals, comparisons, and scene changes. If you want to implement this workflow in your Agent, you can install @user_87b8e34f/first-last-frame-video from the official page and prepare your API Key: https://www.skillhub.cn/skills/user_87b8e34f/first-last-frame-video

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye