agentsclimarketplace

Json file processing

Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-claude-sonnet-4-6/schedule-planning/json-file-processing

Read input JSON files with email requests and write results.json with reply filenames and recipients.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill json-file-processing

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

SKILL.md

1.3 KB, 357 tokens by cl100k_base, as published. Nobody here has run it

JSON File Processing for Meeting Scheduler

Reading Input

import json

with open("/root/test_input.json") as f:
    emails = json.load(f)

# Each item has: email_text, from_email
for i, email in enumerate(emails, start=1):
    msg_id = i
    text = email["email_text"]
    sender = email["from_email"]

Writing Reply Files

def save_reply(msg_id, content):
    filename = f"/root/reply_{msg_id}.txt"
    with open(filename, "w") as f:
        f.write(content)
    return f"reply_{msg_id}.txt"

Writing results.json

results = {
    "sent_results": [
        {"filename": f"reply_{msg_id}.txt", "recipient": sender}
        for msg_id, sender in ...
    ]
}
with open("/root/results.json", "w") as f:
    json.dump(results, f, indent=2)

Date Formatting Rules

  • Day name: full name, e.g. "Monday"
  • Month: full name, e.g. "March"
  • Day: zero-padded two digits, e.g. "09"
  • Year: four digits, e.g. "2026"
  • Example: "Monday, March 09, 2026"

Time Formatting Rules

  • Hours: zero-padded two digits, e.g. "09", "10", "11"
  • Minutes: zero-padded two digits, e.g. "00", "30"
  • Period: "AM" or "PM"
  • Example: "09:00 AM - 10:30 AM"

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 325,949. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.