ai-studio-project-converter
将 Google AI Studio 生成的 React 项目转换为本项目页面组件的流程规范;在处理 Import Map、样式迁移、依赖安装、环境变量与验收时使用。
Skill by fern-ok
Chalk Labs
Need help deploying ai-studio-project-converter?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/fern-ok-ai-studio-project-converter
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: frontend
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
ai-studio-project-converter- Description
- 将 Google AI Studio 生成的 React 项目转换为本项目页面组件的流程规范;在处理 Import Map、样式迁移、依赖安装、环境变量与验收时使用。
- License
- Apache-2.0
- Instructions
- 285 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# AI Studio 项目转换规范
将 Google AI Studio 生成的零配置 React 应用转换为本项目页面组件,保持视觉效果和功能,符合本项目开发规范。
## 核心目标
- 保持页面视觉一致性
- 移除 AI Studio 特定入口与 HTML 模板
- 产出可在本项目中运行的页面组件
## 使用方式
### 步骤 1:运行预处理脚本
```bash
node scripts/ai-studio-converter.mjs <ai-studio-project-dir> [output-name]
# 示例
node scripts/ai-studio-converter.mjs "temp/my-ai-studio-project" my-page
```
**脚本会自动完成**:
- 完整复制 AI Studio 项目到 `src/prototypes/[页面名]/`
- 分析项目结构(Import Map、自定义样式、依赖等)
- 生成 AI 工作文档(`.ai-studio-tasks.md`)
- 生成详细数据(`.ai-studio-analysis.json`)
- **不修改任何代码**(100% 安全)
### 步骤 2:按任务清单完成转换
脚本会生成 `.ai-studio-tasks.md` 文件,包含:
- 项目概况统计
- 5 个具体任务清单
- Import Map 依赖映射
- 环境变量配置提示
- 验收测试步骤
按任务清单与本规范示例执行转换。
## 转换要点
### AI Studio 项目特征
**典型目录结构**:
```
ai-studio-project/
├── assets/ # 静态资源(可选)
├── components/ # UI 组件
├── App.tsx # 主应用组件
├── index.tsx # React 挂载入口
├── index.html # HTML 模板(Import Map + Tailwind CDN)
├── constants.ts # 常量定义(可选)
├── types.ts # 类型定义(可选)
├── vite.config.ts # Vite 配置(可选)
└── metadata.json # 项目元数据(可选)
```
**技术栈**:
- **框架**:React 19(Function Components + Hooks)
- **语言**:TypeScript
- **模块**:Native ESM(Import Map,通常是 esm.sh CDN)
- **样式**:Tailwind CSS(CDN Runtime Mode)
- **图标**:Lucide React
- **配置**:Vite(如果有 vite.config.ts)
### 关键文件特征
**index.html**:
```html
<script src="https://cdn.tailwindcss.com"></script>
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@19",
"lucide-react": "https://esm.sh/lucide-react"
}
}
</script>
<style>/* 可能包含自定义样式 */</style>
<link href="https://fonts.googleapis.com/..."> <!-- 可能包含外部字体 -->
```
### 本项目页面组件规范
默认先转换为普通 React 页面组件。只有在需求明确要求接入 Axhub / Axure 运行时能力时,才引入 `forwardRef<AxureHandle, AxureProps>`、`useImperativeHandle` 和 `axure-types`。
**默认格式(推荐)**:
```typescript
/**
* @name 页面名称
*
* 参考资料:
* - /rules/development-guide.md
* - /skills/default-resource-recommendations/SKILL.md
*/
import './style.css';
import React from 'react';
export default function PageName() {
// 组件逻辑
return (
// JSX 内容
);
}
```
**仅在以下场景才接入 Axure API**:
- 页面需要被 Axhub / Axure 接管
- 需要配置面板、外部数据源、事件回调或动作触发
- 用户明确要求保持与现有 Axure 组件一致的接口形式
此时再参考 `/rules/axure-api-guide.md`,使用如下包装形式:
```typescript
import React, { forwardRef, useImperativeHandle } from 'react';
import type { AxureProps, AxureHandle } from '../../common/axure-types';From fern-ok/prototype-demo, Apache-2.0.
More from fern-ok/prototype-demo
- 0.479score
extract-axure-data
fern-ok
Extract structured data from Axure prototypes using Playwright — screenshots, design tokens, interaction maps, annotations, and page text.
SkillCFreshness: CClaude Code +9 - 0.476score
generate-theme
fern-ok
从网页中采集设计令牌并生成完整的 DESIGN.md 设计规范文档 + Tailwind CSS 主题文件。 当用户提供 URL 并要求"提取主题"、"生成设计规范"、"导出设计系统"、 "提取这个网站的设计令牌"、"帮我做一个主题"、"分析这个页面的设计风格"时使用。 产出包含 DESIGN.md(Google…
SkillCFreshness: CClaude Code +9 - 0.471score
axure-prototype-workflow
fern-ok
使用 skills/ 中的 extract-axure-data 等技能提取 Axure 原型资产、生成主题/数据/文档、还原页面与生成业务文档的流程规范;当用户提供 Axure 原型链接或提出资产提取、原型还原、主题/数据模型/文档生成、交互引导需求时使用。
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jul 22, 2026 (3 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- Apache-2.0
- Repository
- github.com/fern-ok/prototype-demo
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.426score
ai-studio-project-converter
liuqiao666
将 Google AI Studio 生成的 React 项目转换为本项目页面组件的流程规范;在处理 Import Map、样式迁移、依赖安装、环境变量与验收时使用。
SkillDFreshness: D★ 1Claude Code +9 - 0.242score
ai-studio-project-converter
tracyping-pm
将 Google AI Studio 生成的 React 项目转换为本项目页面组件的流程规范;在处理 Import Map、样式迁移、依赖安装、环境变量与验收时使用。
SkillDFreshness: DClaude Code +9
More from fern-ok
- 0.479score
extract-axure-data
fern-ok
Extract structured data from Axure prototypes using Playwright — screenshots, design tokens, interaction maps, annotations, and page text.
SkillCFreshness: CClaude Code +9 - 0.476score
generate-theme
fern-ok
从网页中采集设计令牌并生成完整的 DESIGN.md 设计规范文档 + Tailwind CSS 主题文件。 当用户提供 URL 并要求"提取主题"、"生成设计规范"、"导出设计系统"、 "提取这个网站的设计令牌"、"帮我做一个主题"、"分析这个页面的设计风格"时使用。 产出包含 DESIGN.md(Google…
SkillCFreshness: CClaude Code +9 - 0.471score
axure-prototype-workflow
fern-ok
使用 skills/ 中的 extract-axure-data 等技能提取 Axure 原型资产、生成主题/数据/文档、还原页面与生成业务文档的流程规范;当用户提供 Axure 原型链接或提出资产提取、原型还原、主题/数据模型/文档生成、交互引导需求时使用。
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get ai-studio-project-converter running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
ai-studio-project-converter skill. Agent Mart. https://agentmart.dev/skills/fern-ok-ai-studio-project-converter (last updated 2026-10-24)