一键导入
asset-handling
Extracts images, icons, fonts, and other assets from recording data for use in the clone.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Extracts images, icons, fonts, and other assets from recording data for use in the clone.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Visual compliance testing tools for comparing a website clone against reference recordings. Use to run tests, generate visual diffs, and analyze differences.
Browser automation CLI for AI agents. Use for navigating websites, filling forms, clicking buttons, taking screenshots, extracting data, and testing web applications.
| name | asset-handling |
| description | Extracts images, icons, fonts, and other assets from recording data for use in the clone. |
Extract and copy assets (images, icons, fonts, CSS, JS) from recordings to your project.
Screenshot -> Accessibility Tree -> Grep DOM -> Manifest -> Copy Asset
public/ folder with correct extensionLook at the recording screenshot to identify what you need:
Read the accessibility tree to find identifying information:
cat ./recordings/<rec>/screenshots/<idx>/viewport/axtree.txt
Look for entries like:
[22] img 'Company Logo'
[45] img 'Twitter icon'
[67] button 'Search' [has icon]
Use the accessible name or common keywords to find the URL in DOM:
grep -i "company-logo" ./recordings/<rec>/screenshots/<idx>/dom.html
grep -i "twitter" ./recordings/<rec>/screenshots/<idx>/dom.html
grep -i "\.png\|\.jpg\|\.svg" ./recordings/<rec>/screenshots/<idx>/dom.html | head -20
Look up the URL in the manifest:
cat ./recordings/<rec>/screenshots/<idx>/manifest.json | grep -A1 "logo"
The manifest maps URLs to hashes:
{
"assets": [
{"url": "https://example.com/images/logo.png", "hash": "abc123def456..."}
]
}
Copy the asset with the correct extension:
cp ./recordings/<rec>/assets/<hash> ./public/images/logo.png
grep -oE 'src="[^"]*\.(png|jpg|jpeg|gif|webp|svg)"' ./recordings/<rec>/screenshots/<idx>/dom.html
grep -i "img src" ./recordings/<rec>/screenshots/<idx>/dom.html
grep -i "background-image" ./recordings/<rec>/screenshots/<idx>/dom.html
Icons come in three forms:
Inline SVG (no asset file):
grep -o "<svg[^>]*>.*</svg>" ./recordings/<rec>/screenshots/<idx>/dom.html
Icon images (img tags):
grep -i "icon" ./recordings/<rec>/screenshots/<idx>/dom.html
CSS background (in stylesheets):
cat ./recordings/<rec>/screenshots/<idx>/manifest.json | grep "\.css"
grep "background-image" ./recordings/<rec>/assets/<css-hash>
cat ./recordings/<rec>/screenshots/<idx>/manifest.json | grep -i "font\|woff\|ttf"
grep -A5 "@font-face" ./recordings/<rec>/assets/<css-hash>
dom.html and save to your projectbackground-image URLsOrganize extracted assets:
public/
├── images/
│ ├── logo.png
│ ├── banner.jpg
│ └── products/
├── icons/
│ ├── twitter.svg
│ ├── facebook.svg
│ └── search.svg
└── fonts/
├── inter-regular.woff2
└── inter-bold.woff2