Run1 question file processing
How to parse key-value pairs from a text file where keys and question values are stored together.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run1_question-file-processingAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.7 KB, 139 tokens by cl100k_base, as published. Nobody here has run it
To process /root/question.txt, which contains keys and values, you must accurately extract the identifier (e.g., "q1") and the query string.
- Parsing Pattern: Use regular expressions or string splitting if the format is consistent (e.g.,
key: valueorkey=value).questions = {} with open('/root/question.txt', 'r') as f: for line in f: if ':' in line: key, val = line.split(':', 1) questions[key.strip()] = val.strip() - Iteration: Loop through the resulting dictionary to perform retrieval for each unique ID.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.