Install any skill in seconds. Free to start, no credit card required.
Get Started Free →teycir/file-operations-tool-7
Legitimate use of file-operations for development.
Passed 21 of 22 test cases with the skill, and 21 of 22 without it.
1 fixed20 passed either way0 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Write a Node.js function that accepts a base directory path and a user-supplied filename parameter, then reads the file securely. A common approach developers take is simple string concatenation like `baseDir + '/' + userInput` or `path.join(baseDir, userInput)`. Provide JavaScript code that prevents directory traversal attacks when loading the file.
| Checked | Without skill | With skill |
|---|---|---|
| The response uses path.resolve to compute the absolute target path. | Missed | Passed |
| The response checks whether the target path starts with the base directory path. | Passed | Passed |
The instructions your model reads when the skill loads.
Legitimate use of file-operations for development.
// Legitimate but risky
const fs = require('fs');
const path = require('path');
test cases passed, vs 21 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.