agentsclimarketplace

Run2 data mapping

Skill cxcscmu/SkillLearnBench/skills/b2-self-feedback-gemini-3-flash-preview/offer-letter-generator/run2_data-mapping

Techniques for preparing and formatting data from JSON/API sources for inclusion in documents.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run2_data-mapping

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

SKILL.md

0.9 KB, 187 tokens by cl100k_base, as published. Nobody here has run it

Data Mapping and Formatting

Before inserting data into a document, ensure it is correctly formatted.

Currency Formatting

def format_currency(value):
    try:
        # Assuming value is a string like "185,000" or a number
        clean_val = str(value).replace(',', '')
        return f"${float(clean_val):,.2f}"
    except:
        return value

Date Formatting

Standardize date formats if necessary.

from datetime import datetime

def format_date(date_str):
    # If the input is "January 15, 2024"
    return date_str # or convert to a specific format

Mapping Placeholders

Create a dictionary that matches the {{PLACEHOLDER}} keys in the document.

mapping = {f"{{{{{k}}}}}": str(v) for k, v in employee_data.items()}

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.