Responsive Maker:自动移动端响应式 UI - Openclaw Skills
作者:互联网
2026-04-14
什么是 Responsive Maker?
Responsive Maker 是 Openclaw Skills 生态系统中的专业工具,旨在消除手动编写媒体查询和 Tailwind 断点的繁重工作。它分析现有的组件结构(无论是 React、Vue 还是纯 HTML),并智能地注入必要的 CSS 逻辑,以确保布局在移动端、平板端和桌面端视口中完美重排。
通过专注于移动优先原则,它确保您的应用程序无论在何种设备上使用,都能保持易用性和专业性。该技能通过自动化将固定布局转换为灵活的自适应界面,有效地弥合了以桌面为中心的开发与现代移动优先网页之间的差距。
下载入口:https://github.com/openclaw/skills/tree/main/skills/lxgicstudios/responsive-maker
安装与下载
1. ClawHub CLI
从源直接安装技能的最快方式。
npx clawhub@latest install responsive-maker
2. 手动安装
将技能文件夹复制到以下位置之一
全局模式~/.openclaw/skills/
工作区
/skills/
优先级:工作区 > 本地 > 内置
3. 提示词安装
将此提示词复制到 OpenClaw 即可自动安装。
请帮我使用 Clawhub 安装 responsive-maker。如果尚未安装 Clawhub,请先安装(npm i -g clawhub)。
Responsive Maker 应用场景
- 将旧有的仅限桌面端的 React 或 Vue 组件转换为移动端友好型。
- 快速原型化响应式布局,无需手动编写 CSS 媒体查询。
- 为整个组件目录批量添加 Tailwind CSS 响应式前缀。
- 修复现有生产代码库中移动端用户反馈的布局中断问题。
- 该工具读取目标组件文件或目录的源代码。
- 它识别固定宽度的容器、排版比例以及 flexbox 或 grid 配置。
- AI 逻辑根据特定的布局结构确定最有效的断点。
- 生成响应式层(CSS 媒体查询或 Tailwind 前缀)并将其注入到组件中。
- 生成的代码保留了原有的样式,同时为不同的屏幕尺寸增加了必要的灵活性。
Responsive Maker 配置指南
确保您的系统中安装了 Node.js 18 或更高版本。无需永久安装;只需通过 npx 执行命令即可使用 Openclaw Skills 集合中的此项功能。
npx ai-responsive src/components/Hero.tsx
要处理整个目录或使用 glob 模式:
npx ai-responsive src/components/
npx ai-responsive "src/**/*.tsx"
Responsive Maker 数据架构与分类体系
| 功能 | 描述 |
|---|---|
| 输入支持 | 支持 .tsx, .jsx, .vue, .html 和 .css 文件 |
| 输出逻辑 | 直接修改文件或生成带有响应式逻辑的更新版本 |
| 断点系统 | 基于行业标准实现 sm, md, lg 和 xl 层级 |
| 样式引擎 | 兼容 Tailwind CSS, CSS Modules 和标准 CSS |
name: responsive-maker
description: Make components responsive with proper breakpoints. Use when your components look terrible on mobile.
Responsive Maker
Your component looks great on desktop. Then someone opens it on their phone and it's a mess. This tool takes your components and adds proper responsive breakpoints. It handles the media queries, flexbox adjustments, and font scaling so your UI works on every screen size.
One command. Zero config. Just works.
Quick Start
npx ai-responsive src/components/Hero.tsx
What It Does
- Analyzes your component structure and adds responsive breakpoints
- Converts fixed layouts to flexible ones that adapt to screen size
- Adds mobile-first media queries or Tailwind responsive prefixes
- Handles typography scaling, spacing adjustments, and layout reflows
- Preserves your existing styles while adding responsive layers
Usage Examples
npx ai-responsive src/components/Hero.tsx
npx ai-responsive src/components/
npx ai-responsive "src/**/*.tsx"
Best Practices
- Design mobile first - Start with the smallest screen and add complexity for larger ones
- Test on real devices - Emulators miss things. Check on an actual phone.
- Don't hide content on mobile - Restructure it instead. Users on phones deserve the same info.
When to Use This
- Your desktop-only components need to work on mobile
- You're retrofitting responsive design onto an existing project
- A client reported the site looks broken on their phone
Part of the LXGIC Dev Toolkit
This is one of 110+ free developer tools built by LXGIC Studios. No paywalls, no sign-ups, no API keys on free tiers. Just tools that work.
Find more:
- GitHub: https://github.com/LXGIC-Studios
- Twitter: https://x.com/lxgicstudios
- Substack: https://lxgicstudios.substack.com
- Website: https://lxgic.dev
Requirements
No install needed. Just run with npx. Node.js 18+ recommended.
How It Works
Reads your component code, analyzes the layout structure, and generates responsive CSS or Tailwind classes. AI determines the optimal breakpoints and layout adjustments for each screen size.
License
MIT. Free forever. Use it however you want.
相关推荐
专题
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
+ 收藏
最新数据
相关文章
巴塞罗那指南:旅游、移居与技术洞察 - Openclaw Skills
RunPod CLI:管理 GPU 容器与 Serverless - Openclaw Skills
三层记忆管理器:高级 AI 智能体记忆系统 - Openclaw 技能
YouTube 灵感提取器:将视频转化为创业洞察 - Openclaw Skills
小红书自动发布:自动化小红书内容 - Openclaw Skills
富途 API:实时股市行情与技术分析 - Openclaw Skills
Nutrient 文档处理:转换、OCR 与脱敏 - Openclaw Skills
Elytro Wallet:面向 Openclaw Skills 的 EIP-4337 智能账户管理
Rho 加密货币组合追踪器:多平台损益与净值 - Openclaw Skills
AHC-Automator:制造与 CRM 自动化 - Openclaw 技能
AI精选
