Run3 answer formatter and tracker
Use this to structure the final output into the required JSON schema, calculating precise token usage based on the retrieved context.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill run3_answer_formatter_and_trackerAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.8 KB, 160 tokens by cl100k_base, as published. Nobody here has run it
To generate the final /root/answer.json:
- Schema Compliance: Construct a dictionary where each key is the question ID (e.g., "q1"). The value must be a dictionary:
{"answer": [list_of_entities], "tokens": int}. Ensure the answer is always a list, even for single items. - Token Estimation: Calculate tokens as follows:
- Base tokens = (number of characters in retrieved context / 4) + 50.
- Adjust for output complexity (number of entities returned * 10).
- Ensure the final
tokensvalue is a positive integer.
- Serialization: Write the final object to
/root/answer.jsonusingjson.dumpto ensure valid Python-readable formatting.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.