agentsclimarketplace

Run3 Save Modified Word Document to Disk

Skill cxcscmu/SkillLearnBench/skills/b3-teacher-feedback-claude-haiku-4-5/offer-letter-generator/run3_Save-Modified-Word-Document-to-Disk

Use this skill to write a modified python-docx Document object back to a .docx file, handling file paths and permissions correctly.From its SKILL.md

Install
npx -y skills add cxcscmu/SkillLearnBench --skill run3_Save-Modified-Word-Document-to-Disk

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

SKILL.md

0.7 KB, 107 tokens by cl100k_base, as published. Nobody here has run it

Algorithm

def save_document(doc, output_path):
    try:
        doc.save(output_path)
        return True
    except Exception as e:
        raise IOError(f"Failed to save document to {output_path}: {e}")

Key Details

  • The output path should be an absolute or relative path to the desired .docx file
  • doc.save() overwrites existing files
  • Ensure the output directory exists or the parent path is writable
  • Catch and report errors explicitly for debugging

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.