How this skill is triggered — by the user, by Claude, or both
Slash command
/aitd:axshareThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
访问 AxShare 原型页面 (https://d9faxa.axshare.com/),提供:
访问 AxShare 原型页面 (https://d9faxa.axshare.com/),提供:
url (required): AxShare 页面 URL,如 https://d9faxa.axshare.com/action (optional): 操作类型
screenshot: 仅截图text: 仅提取文本all: 同时获取截图和文本(默认)list: 列出所有页面capture-all: 抓取所有页面// 从用户输入中提取 URL 和操作类型
// 例如: "use axshare https://d9faxa.axshare.com/ screenshot"
关键: AxShare 页面使用 iframe 展示内容,必须直接访问 iframe URL 才能完整截图。
navigate_page 导航到目标 URL({type: "url", url: "目标URL"})#mainFrame 出现)evaluate_script 获取 iframe 的 src 地址:() => {
const iframe = document.querySelector('#mainFrame');
return iframe ? iframe.src : null;
}
navigate_page 直接导航到 iframe URL({type: "url", url: "iframeURL"})() => {
// 滚动到页面底部,触发懒加载内容
window.scrollTo(0, document.body.scrollHeight);
// 等待 500ms 让内容加载
return new Promise(resolve => setTimeout(() => {
// 滚回顶部
window.scrollTo(0, 0);
resolve({
scrollHeight: document.body.scrollHeight,
clientHeight: document.documentElement.clientHeight
});
}, 500));
}
take_screenshot 获取全页截图({fullPage: true} 或 filePath: "/tmp/xxx.png"):filePath: /tmp/axshare_{timestamp}.png
fullPage: true
evaluate_script 提取 DOM 文字(辅助):() => {
return document.body.innerText;
}
mcp__zai-mcp-server__ui_to_artifact 分析截图(主要):image_source: /tmp/axshare_{timestamp}.png
output_type: description
prompt: "详细分析这个 AxShare 原型页面的布局、组件、交互元素和功能。输出描述:1) 整体布局结构 2) 主要UI组件 3) 文字内容和标签 4) 交互元素(按钮、输入框、链接等) 5) 交互说明(红色字和线)"
步骤同上,只执行 1-7 步,返回截图文件路径。
navigate_page 导航到目标 URL({type: "url", url: "目标URL"})evaluate_script 获取 iframe src 并导航evaluate_script 提取页面文本DOM 结构和选择器详见 DOM_REFERENCE.md。
操作步骤:
navigate_page 导航到主 URL({type: "url", url: "主URL"})#sitemapTreeContainer 加载evaluate_script 提取所有页面信息(脚本见 DOM_REFERENCE.md)先执行 list 操作获取所有页面
对每个页面:
a. 构造完整 iframe URL: {baseUrl}/{nodeurl}
b. 使用 navigate_page 导航到 iframe URL({type: "url", url: "iframeURL"})
c. 等待内容加载完成
d. 滚动触发懒加载:
() => {
window.scrollTo(0, document.body.scrollHeight);
return new Promise(resolve => setTimeout(() => {
window.scrollTo(0, 0);
resolve({ scrollHeight: document.body.scrollHeight });
}, 500));
}
e. 使用 take_screenshot 获取全页截图,保存到 /tmp/axshare_{index}_{pagename}.png
filePath: /tmp/axshare_{index}_{pagename}.png
fullPage: true
f. 使用 evaluate_script 提取 DOM 文字(辅助)
g. 使用 mcp__zai-mcp-server__ui_to_artifact 分析截图(主要)
结合所有页面的图片分析和 DOM 文字,输出完整原型描述(图片为主,DOM 为辅)
use axshare https://d9faxa.axshare.com/
默认操作: 同时获取截图和文本
use axshare https://d9faxa.axshare.com/ screenshot
仅截图
use axshare https://d9faxa.axshare.com/ text
仅提取文本
use axshare https://d9faxa.axshare.com/ list
列出所有页面
use axshare https://d9faxa.axshare.com/ capture-all
抓取所有页面
use axshare https://d9faxa.axshare.com/ list
输出:
## AxShare 页面目录
**URL**: https://d9faxa.axshare.com/
共找到 5 个页面:
1. **首页**
- URL: 首页.html
2. **超声访视评估**
- URL: 超声访视评估.html
3. **数据导出**
- URL: 数据导出.html
...
使用此 skill 前需要确保已配置 chrome-devtools MCP 服务器。
chrome-devtools 是 Claude Code 内置的 MCP 工具,无需额外安装,只需确保在配置中启用即可。
Creates, edits, and optimizes skills for Claude Code, including drafting, evaluating with test prompts, iterating on performance, and improving skill descriptions for better triggering accuracy.
npx claudepluginhub taimei-1024/cursor-plugins --plugin aitd