Back to Skills

scrcpy-option-ui-builder

This skill should modify the category screens and add the requested scrcpy options to the UI, depending on the type of the option (text, toggle, dropdown, etc.). Use this skill for adding new scrcpy options in the UI.

8starsUpdated 3/25/2026

Security Assessment

Safe(100/100)
Security Score100/100

About scrcpy-option-ui-builder

The `scrcpy-option-ui-builder` skill is designed to enhance the user interface for managing scrcpy options within an application. It addresses the challenge of adding, modifying, or extending UI controls for scrcpy configuration without manually rewriting large portions of the interface. By providing a structured approach to integrate new options, it ensures consistency across different categories of settings, making it easier for developers to maintain and scale the UI as new scrcpy features are introduced.

This skill offers capabilities to create or extend category-specific screens in the UI, manage reusable widgets, and integrate various control types such as text inputs, toggles, and dropdowns. It leverages existing argument classes to bind UI controls to their corresponding scrcpy functionality, allowing users to view and modify values seamlessly. The skill also provides guidance for translation management, ensuring that new options are properly labeled and documented in the interface. Additionally, it includes references to reusable components like `ConfigItem` and `ConfigTextBox`, promoting a modular and maintainable codebase.

Targeted primarily at developers working on scrcpy-based applications, this skill is suitable for teams or individuals aiming to extend configuration interfaces efficiently. It is particularly useful for developers who need to add advanced or custom scrcpy options without disrupting existing UI structure. Use cases include creating new category screens, extending existing screens with additional options, and maintaining translation consistency across the interface. Overall, it streamlines the process of UI development for scrcpy configurations, reducing potential errors and ensuring a user-friendly experience.

FAQ

How do I add a new scrcpy option to the UI?

First, gather information about the option from the documentation and ensure the corresponding argument class exists. Then extend or create the relevant `<category_screen>.dart` file and wrap the control using `ConfigItem` with the appropriate child widget.

Can I create new category screens for options that do not exist yet?

Yes, you can create a new scrollable screen following the example of existing screens like `video_screen.dart`. Make sure to add the new route in `routes.dart` and introduce a `NavigationPaneItem` in `home_screen.dart`.

What types of UI controls can I use with this skill?

You can use text inputs, toggles, switches, and dropdowns. The skill references reusable widgets such as `ConfigItem` and `ConfigTextBox` to standardize control presentation.

How do I manage translations for new options?

Currently, only English is supported. Add entries in `assets/i18n/en.json` under the path `config/<category>/<argument.label>` with the required keys `title`, `description`, and `arg`. Optionally, include `default` for default control values.

Are there any prerequisites for using this skill?

You should be familiar with the existing scrcpy argument classes and the UI structure in `/lib/presentation/scrcpy_config/`. Ensure any new argument classes are created before adding them to the UI.

Install scrcpy-option-ui-builder

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill