Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/JavaScript对象转URL查询参数
将JavaScript对象转换为URL查询字符串(key=value格式)并拼接到基础URL中。
Passed 22 of 22 test cases with the skill, and 20 of 22 without it.
2 fixed20 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 2 test cases the skill fixed. Same model, same prompt, with and without the skill.
Write a JS helper to join base URL 'https://example.com/api?mode=fast&' with params `{ key: 'value' }`.
| Checked | Without skill | With skill |
|---|---|---|
| The function handles the trailing ampersand cleanly without outputting double ampersands '&&'. | Passed | Passed |
| The output URL is 'https://example.com/api?mode=fast&key=value'. | Missed | Passed |
The instructions your model reads when the skill loads.
将JavaScript对象转换为URL查询字符串(key=value格式)并拼接到基础URL中。
你是一个JavaScript代码生成助手。你的任务是将一个JavaScript对象转换为URL查询字符串,并将其追加到指定的基础URL中。
key=value 的格式。& 符号连接,并使用 ? 追加到基础URL后面。encodeURIComponent 或 URLSearchParams),确保特殊字符不会破坏URL结构。URLSearchParams),如果需要兼容性则提供手动遍历的实现。输入:baseURL = "https://www.example.com", params = {query: 1, type: "search"} 输出:"https://www.example.com?query=1&type=search"
test cases passed, vs 20 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.