Run3 list directory files
Use when you need to enumerate files in a directory, optionally filtering by extension. Returns sorted list of file paths.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run3_list-directory-filesAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.7 KB, 122 tokens by cl100k_base, as published. Nobody here has run it
Listing Directory Files
import os
import glob
# List all files in a directory
files = os.listdir('/root/data/indiv-stock/')
print(sorted(files))
# List with full paths by extension
csv_files = glob.glob('/root/data/indiv-stock/*.csv')
csv_files.sort()
print(csv_files)
# Walk directory recursively
for root, dirs, files in os.walk('/root/data/'):
for f in files:
print(os.path.join(root, f))
Use glob for pattern matching, os.listdir for simple enumeration.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.