Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/docx4imgs
从 Word 文档中提取所有图片并保存到指定目录。当用户提到 Word 提取图片、docx 抠图、Word 取图时使用。
Passed 20 of 22 test cases with the skill, and 3 of 22 without it.
and 16 more in the full report
18 fixed2 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 18 test cases the skill fixed. Same model, same prompt, with and without the skill.
Create a Python snippet to extract all figures from ./research/findings.docx into ./findings_img/.
| Checked | Without skill | With skill |
|---|---|---|
| Imports docx4imgs from skills.word. | Missed | Passed |
| Passes word_path='./research/findings.docx' to docx4imgs. | Missed | Passed |
The instructions your model reads when the skill loads.
从 Word 里提取图片
从 Word 文档中提取所有图片,并保存到指定目录。会自动根据 word 名称在指定文件夹下生成一个子目录。
office/skills/word/docx4imgs/
from skills.word import docx4imgs
docx4imgs(
word_path='./test.docx',
img_path='./images/'
)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
word_path | str | 是 | - | Word 文档的路径 |
img_path | str | 是 | - | 提取图片的存储位置。会根据 word 名称在指定文件夹下自动生成一个子目录 |
None
from skills.word import docx4imgs
docx4imgs(word_path='./document.docx', img_path='./extracted_images/')
test cases passed, vs 3 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.