agentsclimarketplace

Run3 Build Replacement Dictionary for Word Template Placeholders

Skill cxcscmu/SkillLearnBench/skills/b3-teacher-feedback-claude-haiku-4-5/offer-letter-generator/run3_Build-Replacement-Dictionary-for-Word-Template-Placeholders

Use this skill to create the regex patterns and replacement values needed to fill placeholders in a Word template. Organize patterns for easy iteration and ensure proper escaping.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run3_Build-Replacement-Dictionary-for-Word-Template-Placeholders

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, 162 tokens by cl100k_base, as published. Nobody here has run it

Algorithm

def build_replacement_dict(employee_data):
    return {
        r'{{CANDIDATE_FULL_NAME}}': employee_data['CANDIDATE_FULL_NAME'],
        r'{{POSITION}}': employee_data['POSITION'],
        r'{{START_DATE}}': employee_data['START_DATE'],
        r'{{SALARY}}': employee_data['SALARY'],
        r'{{BENEFITS}}': employee_data['BENEFITS'],
    }

Key Details

  • Use raw strings (r'...') for regex patterns
  • Patterns should match placeholder text exactly, including braces
  • Do not include conditional placeholders (IF_*, END_IF_*) here—handle those separately
  • Return a dictionary for easy iteration in replacement loops

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.