Skip to content
Agentmart
Submit a tool

local-axure-workflow

处理本地导出的 Axure 原型资源并生成主题、数据模型与页面还原的流程规范;在需要基于 sitemap.json 与本地页面资源进行分析与还原时使用。

Skill by liuqiao666

IndexedApache-2.0★ 1
Write a review

Chalk Labs

Need help deploying local-axure-workflow?

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.

Book a call

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/liuqiao666-local-axure-workflow

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.

We use your email only for this newsletter. Privacy

About

处理本地导出的 Axure 原型资源并生成主题、数据模型与页面还原的流程规范;在需要基于 sitemap.json 与本地页面资源进行分析与还原时使用。

Use cases: productivity

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/local-axure-workflow

What's inside

Skill name
local-axure-workflow
Description
处理本地导出的 Axure 原型资源并生成主题、数据模型与页面还原的流程规范;在需要基于 sitemap.json 与本地页面资源进行分析与还原时使用。
License
Apache-2.0
Instructions
238 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# 本地 Axure 资源处理规范

处理本地导出的 Axure 原型资源,包括主题提取、数据模型识别和页面还原。

## 核心能力

1. **主题提取与合并**:从多个页面提取 design tokens,合并生成统一主题文件
2. **数据模型识别**:从页面内容识别数据结构,生成数据库文件
3. **页面还原**:基于截图、主题、内容的精确还原
4. **MCP 补充**:可选使用 MCP 工具获取在线资源(如 sitemap.json 包含 projectUrl)

## 本地资源目录结构

```
<project-dir>/
├── sitemap.json              # 站点地图
└── page-<index>-<name>/      # 页面目录
    ├── assets/
    │   ├── images/           # 图片资源
    │   └── fonts/            # 字体资源(如有)
    ├── theme.json            # 设计令牌(Top10)
    ├── content.md            # 页面内容(Markdown)
    └── screenshot.png        # 页面截图
```

### 关键文件说明

- **sitemap.json**:项目名称、页面列表、原型 URL(如有)
- **theme.json**:设计令牌(colors、typography、spacing、radius、shadow 等)
- **doms.toon**:DOM 节点映射(TOON 格式,仅在需要精确还原时使用)
- **styles.toon**:样式池(TOON 格式,仅在需要完整样式时使用)
- **content.md**:页面内容(Markdown 格式)
- **screenshot.png**:页面截图(还原主要依据)

## 工作流程

### 阶段 0:定位资源目录

用户未提供目录路径时,使用 `listDirectory` 工具查找 `temp/` 下的项目目录(通常在二级目录下包含 sitemap.json)。找到后读取 sitemap.json 获取项目名称,询问用户是否处理该项目;如不是则请求提供正确路径。

### 阶段 1:识别资源

验证目录结构(检查 sitemap.json),解析站点地图,明确用户需求(默认:提取主题、识别数据、生成文档)。

### 阶段 2:提取设计主题

选择 3-5 个核心页面(首页、登录页、主要功能页),读取各页面的 `theme.json` 并结合 `screenshot.png` 分析视觉风格,合并主题数据(颜色、字体、间距、圆角、阴影),总结设计语言并生成设计规范。

**输出**:`src/themes/<theme-key>/`(包含 `globals.css` 或 `designToken.json`(designToken.json 必须包含 `name` 字段)、`DESIGN.md`、`index.tsx`,符合 `theme-guide.md` 规范)

### 阶段 3:识别数据模型

识别数据密集型页面(列表页、表单页、详情页),读取 `content.md` 提取文本内容,从表格列名、表单标签、重复模式中识别数据结构,跨页面验证并合并字段。

**输出**:`src/database/<table-name>.json`
- 文件名使用英文(如 `users.json`)
- `tableName` 使用中文(如 "用户表")

**数据表结构(强约束)**:每个文件必须是 JSON 对象(不要输出为纯数组),包含 `tableName` + `records`。

```json
{
  "tableName": "表名(中文)",
  "records": [
    { "id": 1, "字段1": "值1", "字段2": "值2" }
  ]
}
```

**最小一致性规则(用于减少错误)**:
- `records` 必须是数组;每条记录必须包含唯一的 `id`(允许 number 或 string,同表保持类型一致)。
- 字段名优先中文并与页面一致;同义字段不混用(如“手机号/手机号码”二选一)。
- 同字段同类型;图片字段用相对路径(如 `images/xxx.png`),不要 base64。

### 阶段 4:生成项目文档

生成站点地图文档(保持层级结构,页面名称可点击)和项目简介文档(基本信息、设计风格、数据模型概览)。

**输出**:`src/docs/`

## 页面还原指南

选择还原页面(用户指定或从站点地图选择 1-2 个核心页面)。

**核心方法**:看图 → 写代码 → 交付。

### 核心流程(必须跑完)

1. **确认前置条件**
   - 确认模型支持视觉识别(不支持则立即告知用户)
   - 确认可以直接读取图片内容(不需要转换,不支持则立即告知用户)
   - 生成页面名称(规范:小写字母、数字、连字符)

2. **获取截图**
   - 本地优先:使用页面目录下的 `screenshot.png`
   - 若本地缺失且 `sitemap.json` 含 `projectUrl`,可使用 MCP 获取在线截图(仅在本地不足时)

3. **验证图片读取能力**
   - 尝试读取 `screenshot.png`
   - **如果无法直接读取本地图片**(工具不支持或返回错误),必须:
     - 立即停止流程
     - 告知用户:"无法读取本地图片,请将 `[图片绝对路径]` 复制到对话框后提交"
     - 等待用户提交图片后再继续
   - 禁止假设或猜测图片内容
   - 禁止通过 Base64 编码读取图片内容

4. **生成页面代码**

   **辅助数据获取**(可选,生成仍以图片为主):
   - 主题:`theme.json`(校验样式)
   - 文本:`content.md`(校验文案)

   - 直接基于截图生成页面代码
   - 在代码生成过程中内部完成:
     - 识别布局结构(Header/Sidebar/Content 等)
     - 识别组件(Button/Input/Table/Card 等)
     - 提取样式(颜色、字体、间距、圆角、阴影等)
     - 识别交互(点击、悬停、状态切换等)

From liuqiao666/ProtoFlow, Apache-2.0.

More from liuqiao666/ProtoFlow

Signals

Stars
1
Forks
1
Open issues
0
Last commit (this folder)
Apr 9, 2026 (6 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
Apache-2.0
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

Same skill elsewhere

Copies of this SKILL.md published by others; search shows only one of them.

More from liuqiao666

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 local-axure-workflow 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.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying local-axure-workflow?

CallGet help
Cite this page

local-axure-workflow skill. Agent Mart. https://agentmart.dev/skills/liuqiao666-local-axure-workflow (last updated 2026-10-24)