Token导航 LogoToken导航TokenDH.com
前端设计操作浏览器github未标认证来源可访问许可证需确认审计提醒

extract-axure-data提取 axure 数据

Agent Skill

用于辅助数据整理、表格处理、CSV/Excel 分析、指标计算和图表准备。它适合让 Agent 清洗字段、汇总数据、发现异常、生成统计口径或把分析结果转成可读说明。使用时需要确认数据来源、字段含义和时间范围,避免把样本数据当全量事实;涉及敏感数据、导出文件或批量写回时,应先确认权限和脱敏边界。

总安装

776

周安装

33

GitHub Stars

11

下载量

272
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:extract-axure-data(提取 axure 数据)
来源仓库:https://github.com/lintendo/axhub-skills
仓库路径:skills/extract-axure-data
安装命令:
npx skills add https://github.com/lintendo/axhub-skills --skill extract-axure-data
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/lintendo/axhub-skills --skill extract-axure-data

简介

用于从 Axure 原型中提取结构化数据,支持页面重建、内容分析和设计审查。

  • 适合将原型中的交互逻辑、组件结构和视觉元素转为可分析格式。
  • 使用时需提供有效的 Axure 链接或本地文件路径。
  • 涉及敏感信息时应提前脱敏,避免导出未授权内容。
  • extract-axure-data 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Extract Axure Data

Extract structured data from Axure prototypes for page reconstruction, content analysis, or design review. The script handles dependency installation automatically — just point it at a URL.

When to use this

  • User shares an Axure prototype URL and wants to extract or rebuild it
  • User asks to clone, reconstruct, or analyze a wireframe/prototype
  • User mentions AxShare, Axure Cloud, or prototype URLs with start.html#p=
  • User wants design tokens, screenshots, or interaction data from a prototype

How it works

Axure stores page data in static JS files (data/document.js, files/{page}/data.js). The script parses these directly in Node.js without needing a browser — this is fast and works for sitemap, interactions, and annotations. Screenshots and design tokens require rendering, so Playwright launches a Chromium instance for those.

Quick start

Run the extraction script from scripts/extract.mjs relative to this skill directory.

# Basic extraction — screenshot + design tokens (default)
node scripts/extract.mjs <AXURE_URL> --all

# Full extraction — add interactions, annotations, page text
node scripts/extract.mjs <AXURE_URL> --all --advanced

# Specific pages only
node scripts/extract.mjs <AXURE_URL> --pages login,dashboard

First run auto-installs Playwright + Chromium to ~/.cache/axure-extractor/. This takes 1-2 minutes and happens once.

Parameters

FlagWhat it doesDefault
<url>Axure prototype URL (required)
--allProcess all pagesfirst page only
--advancedAdd interactions, annotations, page textoff
-o DIROutput directory./axure-export
--pages P1,P2Process only named pages
--no-screenshotSkip screenshotsscreenshots on
--no-headlessShow browser windowheadless
--connect-cdp URLAttach to running Chrome (for auth)
--verboseDetailed loggingoff

Output structure

axure-export/
├── sitemap.json           # Page tree and hierarchy (always produced)
└── pages/{pageName}/
    ├── screenshot.png      # Page screenshot
    ├── theme.json          # Design tokens (colors, fonts, spacing, radii)
    ├── data.json           # Page metadata and diagram        (--advanced)
    ├── notes.json          # Component annotations            (--advanced)
    ├── interactions.json   # Event map (clicks, navigations)  (--advanced)
    └── content.md          # Rendered page text as Markdown   (--advanced)

Recommended workflow: page reconstruction

When the goal is to rebuild an Axure prototype as a real web page, use a two-step approach. The reason for splitting is that screenshots + theme tokens are enough for ~80% visual fidelity, and the additional data only helps when fine-tuning details — so extracting everything upfront wastes time if the basic result is already good.

Step 1 — Basic extraction:

node scripts/extract.mjs <URL> --pages <target>

Use screenshot.png as the visual reference and theme.json for exact colors, fonts, and spacing. Build the page.

Step 2 — Refine if needed:

node scripts/extract.mjs <URL> --pages <target> --advanced

If interactions are missing or annotations are wrong, the additional files (interactions.json, notes.json, content.md) provide the detail to fix them.

Authenticated prototypes

Some Axure prototypes require login (AxShare, corporate SSO). Two approaches:

Connect to an existing Chrome session (recommended — reuses cookies):

macOS:

/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --remote-debugging-port=9222

Windows:

start chrome --remote-debugging-port=9222

Then log in via that Chrome window and run:

node scripts/extract.mjs <URL> --all --connect-cdp http://localhost:9222

Show the browser window (manual login during extraction):

node scripts/extract.mjs <URL> --all --no-headless

Dependency installation

The script auto-installs on first run. If it fails:

# Manual install
cd ~/.cache/axure-extractor   # macOS/Linux
# or: cd %USERPROFILE%\.cache\axure-extractor   (Windows)

npm install playwright
npx playwright install chromium

# If Chromium download is slow (e.g. behind GFW):
PLAYWRIGHT_DOWNLOAD_HOST=https://npmmirror.com/mirrors/playwright npx playwright install chromium

If Playwright can't be installed at all, the script degrades gracefully — it still extracts sitemap, page data, annotations, and interactions (everything that doesn't need a browser), but skips screenshots and theme tokens.

Output data formats

theme.json

Design system tokens extracted from computed styles:

{
  "colors": {
    "background": [{"value": "rgb(255,255,255)", "count": 42, "tags": ["div"]}],
    "text": [{"value": "rgb(51,51,51)", "count": 28, "tags": ["p","span"]}],
    "border": [{"value": "rgb(221,221,221)", "count": 12}]
  },
  "typography": {
    "families": [{"value": "\"PingFang SC\", sans-serif", "count": 56}],
    "textStyles": [{"size": "14px", "lineHeight": "22px", "weight": "400", "count": 20}]
  },
  "spacing": [{"value": "16px", "count": 15}],
  "radius": [{"value": "4px", "count": 8}]
}

notes.json

Component annotations authored in Axure:

{
  "page": {"description": "User login page"},
  "id-username-input": {"description": "Username field", "placeholder": "Enter username"},
  "id-submit-btn": {"description": "Login button", "action": "Submit form"}
}

interactions.json

Event mappings defined in Axure's interaction designer:

{
  "onClick": {"targetPage": "dashboard", "action": "navigate"}
}

Playwright 查缺补漏

导出数据基于静态 JS 解析和快照整理,某些动态内容(交互状态、条件面板、动态面板切换等)可能不完整。可使用 Playwright CLI 回到原型页面补充整理。

# 打开 Axure 原型
playwright-cli open <AXURE_URL>
playwright-cli snapshot

# 点击交互元素查看动态面板切换
playwright-cli click e12
playwright-cli screenshot --filename=panel-state-2.png

# 获取元素的精确样式
playwright-cli eval "el => getComputedStyle(el).cssText" e5

playwright-cli close
完整命令参考: Playwright CLI 官方技能文档

典型补充场景

场景Playwright 做什么
动态面板状态点击触发切换后截图
条件显示/隐藏触发条件后整理 DOM
交互动画录制交互过程
需要登录的原型复用已登录的 Chrome 会话
Axure 母版内容进入页面后完整整理

Troubleshooting

ProblemFix
HTTP 404:.../data/document.jsURL isn't an Axure prototype, or wrong base URL
Sitemap 提取失败Check URL is reachable: curl -I <url>
Screenshots are blankPage needs longer to render — try --no-headless to watch
Need loginUse --connect-cdp (see Authenticated prototypes above)
Playwright install failsManual install, or set PLAYWRIGHT_DOWNLOAD_HOST for mirror

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.3%
按下载量换算96

Claude

30.94%
按下载量换算84

Cursor

20.83%
按下载量换算57

Gemini CLI

10.31%
按下载量换算28

安全审计

Gen Agent Trust Hub

可疑

Socket

可疑

Snyk

可疑

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills