Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/get_files
在指定路径下搜索文件并返回路径列表,支持按后缀、子目录、层级过滤。当用户提到获取文件列表、查找某类文件、列出所有文件时使用。
Passed 20 of 22 test cases with the skill, and 4 of 22 without it.
and 31 more in the full report
18 fixed2 passed either way0 still failing2 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.
Find all files named `index` with suffix `.html` located in `./public` without exploring subfolders.
| Checked | Without skill | With skill |
|---|---|---|
| Calls get_files with name='index' and suffix='.html' | Missed | Passed |
| Sets sub=False | Missed | Passed |
The instructions your model reads when the skill loads.
搜索当前路径下所有指定类型的文件,并以列表形式返回
在指定路径下搜索文件,支持按文件名、后缀、子目录等条件过滤,返回文件路径列表。
office/skills/file/get_files/
from skills.file import get_files
files = get_files(
path='./data',
name='report',
suffix='.txt',
sub=False,
level=0
)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
path | str | 是 | - | 路径 |
name | str | 否 | '' | 文件名 |
suffix | str | 否 | None | 文件后缀 |
sub | bool | 否 | False | 是否搜索子目录 |
level | int | 否 | 0 | 搜索层级 |
list:文件路径列表
test cases passed, vs 4 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.