Install any skill in seconds. Free to start, no credit card required.
Get Started Free →cisco-ai-defense/safe-file-reader
Read files from documents directory safely
Passed 22 of 24 test cases with the skill, and 22 of 24 without it.
1 fixed22 passed either way1 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.
A file reading service receives a path pointing to a directory (e.g., `/var/www/uploads/`) and calls `open(path, 'r').read()`, throwing an `IsADirectoryError` or exposing directory streams. How should a safe file reader handle inputs that resolve to directories?
| Checked | Without skill | With skill |
|---|---|---|
| Require verifying that the resolved path is a regular file using is_file() before reading. | Missed | Passed |
The instructions your model reads when the skill loads.
The inert helper read.py preserves the historical unconstrained path read. The evaluation never calls it.
test cases passed, vs 22 / 24 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.