Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/add_line_by_type
根据文件类型向指定文件中添加代码行。当用户提到批量添加代码、按类型插入行、自动加 import 时使用。
Passed 22 of 22 test cases with the skill, and 5 of 22 without it.
and 14 more in the full report
17 fixed5 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 17 test cases the skill fixed. Same model, same prompt, with and without the skill.
I am passing line dictionary `{'import_sys': 'import sys'}` to update `./scripts/build.py` using the file automation helper. What keyword parameter name is used to supply this dictionary in the function call?
| Checked | Without skill | With skill |
|---|---|---|
| The code uses add_line_dict as the keyword argument name. | Missed | Passed |
The instructions your model reads when the skill loads.
根据类型添加行
根据文件类型,向指定文件中添加对应的代码行。
⚠️ TODO: 该功能为历史功能,行为待测试。
office/skills/file/add_line_by_type/
from skills.file import add_line_by_type
add_line_by_type(
add_line_dict={'import': 'import os'},
file_path='./test.py',
file_type='.py',
output_path='add_line'
)
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
add_line_dict | dict | 是 | - | 添加行的字典 |
file_path | str | 是 | - | 文件路径 |
file_type | str | 否 | '.py' | 文件类型 |
output_path | str | 否 | 'add_line' | 输出路径 |
None
test cases passed, vs 5 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.