flutter-rive-workflow

Automate adding Rive animation demos to the Flutter lab module.

5|3|Updated Mar 15, 2026
One-click install
npx skills add https://github.com/ZHLX2005/fr --skill flutter-rive-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: flutter-rive-workflow
Source: https://github.com/ZHLX2005/fr/tree/main/.claude/skills/flutter-rive-workflow
Command: npx skills add https://github.com/ZHLX2005/fr --skill flutter-rive-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardize adding Rive animation demos to the Flutter project's lab module.

Core Features & Use Cases

  • Provides a repeatable pattern for placing .riv assets under assets/rive/<animation-name>/ and registering them in the lab.
  • Guides asset registration in pubspec.yaml with trailing slash for directories.
  • Enables creating and registering a dedicated lab demo page under lib/lab/demos and hooking it into the lab bootstrap.

Quick Start

Place the .riv asset under assets/rive/<name>/<name>.riv, update pubspec.yaml accordingly, create the demo page in lib/lab/demos, and register it in lab_bootstrap.dart.

Frequently Asked Questions about flutter-rive-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Rive animations to a Flutter lab module?

To add Rive animations to a Flutter lab module, place your .riv assets under assets/rive/<animation-name>/, register the directory in pubspec.yaml, create a demo page under lib/lab/demos, and hook it into lab_bootstrap.dart.

What is the standard way to register .riv files in Flutter pubspec.yaml?

The standard way to register .riv files in pubspec.yaml is by adding the asset directory path with a trailing slash, such as assets/rive/<name>/, to ensure the Flutter compiler recognizes and bundles the entire animation directory correctly.

Do I need to create a new page every time I add a Rive demo in Flutter?

Yes, adding a Rive demo requires creating a dedicated demo page under lib/lab/demos and explicitly registering it within the lab_bootstrap.dart file to integrate the new animation into the Flutter lab architecture.

Why are my Rive assets not loading in my Flutter lab project?

Rive assets may not load in a Flutter lab project if the pubspec.yaml configuration lacks the trailing slash for the assets/rive/<name>/ directory, or if the demo page is not properly registered in lab_bootstrap.dart.

Can I automate Rive demo integration across multiple Flutter lab projects?

You can automate Rive demo integration by applying a repeatable pattern that standardizes asset placement, pubspec.yaml updates, and demo page registration, ensuring consistent setup across multiple Flutter lab modules.

What's the best way to structure Rive animation assets in a Flutter project?

The best way to structure Rive animation assets in a Flutter project is to organize them under assets/rive/<animation-name>/<name>.riv, which keeps animations isolated and simplifies pubspec.yaml registration and lab demo page creation.