Run2 csv reporting
Reliable CSV generation for security audits with automated field mapping.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run2_csv-reportingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, 163 tokens by cl100k_base, as published. Nobody here has run it
Reliable CSV Reporting
This skill focuses on clean and error-free CSV generation.
Best Practices
- Use
csv.DictWriterfor clarity and automatic field alignment. - Always specify
newline=''when opening the file to avoid blank lines on some platforms. - Ensure all dictionary keys match the
fieldnameslist exactly.
import csv
def generate_csv_report(data_list, output_file):
if not data_list:
print("No data to write to CSV.")
return
fieldnames = list(data_list[0].keys())
with open(output_file, 'w', newline='', encoding='utf-8') as f:
writer = csv.DictWriter(f, fieldnames=fieldnames)
writer.writeheader()
writer.writerows(data_list)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.