agentsclimarketplace

Run3 Load and Validate Data from JSON for Document Templating

Skill cxcscmu/SkillLearnBench/skills/b3-teacher-feedback-claude-haiku-4-5/offer-letter-generator/run3_Load-and-Validate-Data-from-JSON-for-Document-Templating

[COLM'26] SkillLearnBench is the first benchmark for evaluating continual learning methods that automatically generate agent skills.

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run3_Load-and-Validate-Data-from-JSON-for-Document-Templating

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

What its author says it does

Copied from the file, not written here

Use this skill to read employee/candidate data from a JSON file and validate that all required fields exist before attempting document generation. This prevents placeholder errors caused by missing data.

SKILL.md

1.1 KB, as published. Nobody here has run it

Algorithm

def load_employee_data(json_file_path):
    with open(json_file_path, 'r') as f:
        data = json.load(f)
    
    required_fields = [
        'CANDIDATE_FULL_NAME', 'POSITION', 'START_DATE',
        'SALARY', 'BENEFITS', 'RELOCATION_PACKAGE'
    ]
    
    for field in required_fields:
        if field not in data:
            raise ValueError(f"Missing required field: {field}")
    
    return data

Validation Checks

  • Verify all keys match placeholder names exactly (case-sensitive)
  • Check that RELOCATION_PACKAGE is either "Yes" or "No"
  • Ensure salary and date values are in expected formats
  • Raise descriptive errors for missing fields

Return Format

Return a dictionary where keys match placeholder names and values are the data to insert.

Keep looking

Skills are one crate of 328,083. 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.