migrate-settings-to-compose-swing
Skill by JetBrains
Migrates a Swing settings page to Compose Swing, with previews and tests. It is for developers maintaining IntelliJ-based settings UIs who want declarative composables.
Install migrate-settings-to-compose-swing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.claude/skills && cp -r /tmp/intellij-community/.agents/skills/migrate-settings-to-compose-swing ~/.claude/skills/migrate-settings-to-compose-swingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
Step-by-step: install migrate-settings-to-compose-swing in Claude Code
git clone --depth 1 https://github.com/JetBrains/intellij-community /tmp/intellij-community && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/intellij-community/.agents/skills/migrate-settings-to-compose-swing ~/.gemini/antigravity-cli/skills/migrate-settings-to-compose-swingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Step-by-step: install migrate-settings-to-compose-swing in Antigravity CLI
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill moves a Swing settings page to Compose Swing. It extracts the UI into declarative composables that receive state and callbacks, while a controller reads the working model and handles events. It keeps the configurable's transaction and application order, and it uses the base library's declarative controls for buttons, labels, text and choices.
Each migrated form gets zero-argument preview composables and tests in runComposeSwingTest. The tests cover Reset, enabled regions, Apply, Cancel, validation and disposal. The skill also sets rules for state, lifecycle, threading, validation and search, and asks for checks in a realized IDE window. It is aimed at developers maintaining IntelliJ Platform settings pages built with Swing.
Written from the project's SKILL.md and checked against it.
What it can do
- Inventory settings pagesLists every page, nested editor and extension-provided form in the requested screen, with its validation and Apply, Reset and Cancel behavior.
- Separate controller and formMoves state reads and event handling into a controller, so composables receive values and callbacks only.
- Build a page-level compositionCreates one composition at the page boundary, using the existing UI owner's lifetime.
- Rebuild panels with FormPanelReplaces Kotlin UI DSL panel blocks with FormPanel while keeping bundle keys, spacing, focus and labels.
- Add previewsAdds zero-argument preview composables beside each production form, using the default preview size.
- Test migrated formsDrives user actions in runComposeSwingTest and asserts rendered results for Reset, Apply, Cancel and validation.
- Handle validation and searchKeeps input-time and apply-time checks and describes searchable option indexing for absent strings.
What you need
- JetBrains compose-swing-ui library, version v0.1.0-alpha06 as referenced in the source
- IntelliJ IDE build that matches the form APIs
Try asking
- Migrate the Swing settings page in this plugin to Compose Swing.
- Add previews and runComposeSwingTest tests for this migrated settings form.
- Move my nested settings editor into a Compose Swing composable with hoisted state.
Good to know
- Stops and reports a control when no library or IntelliJ component covers it.
- Headless tests verify state, callbacks and structure, not painting or visual parity.
- Painting, preferred sizes and visual parity need a realized IDE window.
- A wrapper around an unchanged form does not count as a completed page.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: .agents/skills/migrate-settings-to-compose-swing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md5 KB
Alternatives to migrate-settings-to-compose-swing
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
migrate-settings-to-compose-swing: common questions
What happens when a control has no existing component?
The skill stops and reports it as a missing component. A new component is a reusable composable in the IntelliJ components package that follows the library's custom components guide.
How are previews and tests set up for each form?
Each production form gets zero-argument preview composables. Tests run in runComposeSwingTest with the form passed to setContent, and they check the rendered result after recomposition.
What if the running IDE does not match the form APIs?
The skill says to report the API mismatch and the required IDE build. It does not change the form to fit a stale runtime.
How do I install migrate-settings-to-compose-swing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is migrate-settings-to-compose-swing free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is migrate-settings-to-compose-swing safe to use?
It scores 78 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to migrate-settings-to-compose-swing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
