mesop-to-lit
Skill by GoogleCloudPlatform
Assesses and ports a Mesop Python app to a FastAPI backend with Lit web components and a Vite build. Built for developers planning or carrying out a move off Mesop. Uses Web Awesome for UI components by default.
Install mesop-to-lit
Built from the published package, never by AI.
git clone --depth 1 https://github.com/GoogleCloudPlatform/genmedia-creative-studio /tmp/genmedia-creative-studio && mkdir -p ~/.claude/skills && cp -r /tmp/genmedia-creative-studio/experiments/mesop-to-lit-skill/skill/mesop-to-lit ~/.claude/skills/mesop-to-litRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/GoogleCloudPlatform/genmedia-creative-studio /tmp/genmedia-creative-studio && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/genmedia-creative-studio/experiments/mesop-to-lit-skill/skill/mesop-to-lit ~/.gemini/antigravity-cli/skills/mesop-to-litAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
The mesop-to-lit skill assesses and ports a Mesop (Python) app to a FastAPI backend, Lit web components and a Vite build. It runs a deterministic Python analyzer over the app to inventory routes, state, the UI and logic seam, constructs, serve model and hard topics such as upload, IAP/auth, Firestore and Cloud Tasks. It then applies a construct map and a stock, compose or custom component decision framework to produce a conversion assessment.
Web Awesome is the default component library, and Material 3 through @material/web is used only when explicitly requested. After the assessment, the skill can scaffold the target, derive endpoints, build components and set up tests. It is aimed at teams planning or carrying out a move off Mesop to Lit and FastAPI.
Written from the project's SKILL.md and checked against it.
What it can do
- Analyze a Mesop appRuns a deterministic analyzer that inventories routes, state, constructs, serve model and hard topics.
- Assess conversion scopeProduces a conversion assessment with scope, sequence, component list, endpoint surface and risks.
- Map Mesop constructsMaps Mesop constructs to Lit, Web Awesome or Material Web, and FastAPI using a construct map.
- Decide componentsClassifies each component as stock, composed, custom or shared using a Q1 to Q5 decision framework.
- Plan state and transportClassifies state fields and plans transport, defaulting to a stateless backend.
- Scaffold the targetCreates the single-service FastAPI and Vite/Lit project tree with pinned dependencies.
- Derive endpointsCreates one route per service method with typed request and response schemas.
- Build and test componentsBuilds Lit components from leaves to composites and sets up API and frontend tests.
- Wire single-service deployCovers a multi-stage Dockerfile, WSGI to ASGI conversion and CSP settings for deployment.
What you need
- Python 3 to run the analyzer, which uses only the standard library
- Node.js for the Vite build and npm packages
- A Mesop app to analyze
Try asking
- Is this Mesop app worth converting to FastAPI and Lit?
- Map these Mesop constructs to Web Awesome components
- Scaffold the FastAPI and Lit target for this Mesop app
Good to know
- Web Awesome is the default UI library; Material Web is used only when explicitly requested.
- Material Web is in maintenance mode, so only stable components are used and custom Lit is built for gaps.
- There is no LLM token streaming to port, and streaming should not be added during conversion.
- When pointed at a repo root, experiments/ and archive/ are excluded unless --include-nested is passed.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: experiments/mesop-to-lit-skill/skill/mesop-to-lit/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
Allowed tools: Bash(python3 ${CLAUDE_SKILL_DIR}/scripts/analyze_mesop_app.py *)
Alternatives to mesop-to-lit
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
mesop-to-lit: common questions
Does this skill convert a Mesop app automatically?
It runs an analyzer and produces an assessment, then can assist with scaffolding, endpoints, components and tests. The source describes these as steps to perform with the assessment as a guide.
Which UI component library does it use?
Web Awesome (@awesome.me/webawesome 3.14.0) is the default. Material 3 with @material/web 2.5.0 is supported only when explicitly requested.
What serve models does it detect?
It detects plain Mesop WSGI apps and FastAPI plus Mesop hybrid apps, which the source describes as already partway to the target.
How do I install mesop-to-lit?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is mesop-to-lit free?
The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.
Is mesop-to-lit safe to use?
It scores 78 of 100. Grades: maintenance A, licence A, 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 mesop-to-lit?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
