Agent skill
excel-translation
Excel Translation Skill
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/excel-translation
SKILL.md
Excel Translation Skill
Version: 1.0.0 Category: Data Engineering Triggers: Translate Excel calculation files, Spanish to English conversion Tools:
scripts/python/translate_excel.py
Overview
This skill provides the capability to batch translate engineering calculation Excel files from Spanish to English. It uses a specialized dictionary of engineering terms and preserves the original file structure, formulas, and formatting.
Capabilities
- Batch Processing: Translates all
.xlsxfiles in a target directory. - Structure Preservation: Maintains sheet names, cell locations, and formulas.
- Engineering Vocabulary: Uses a curated dictionary for accurate technical translation.
- Safety: Uses regex-based word boundary detection to prevent partial word replacement errors (e.g., preventing "DE" replacement inside "MODEL").
Usage
Command
python3 scripts/python/translate_excel.py
Configuration
The script is currently configured to target:
/mnt/github/workspace-hub/doris/62092_sesa/data/calculations
To change the target, modify the target_dir variable in the main() function of the script.
Dictionary
The translation dictionary is embedded in the script. To add new terms, update the replacements dictionary in scripts/python/translate_excel.py.
Technical Details
- Dependencies:
openpyxl - Logic:
- Iterates through all
.xlsxfiles in the target directory (skipping*_en.xlsx). - Loads workbook using
openpyxl. - Translates sheet names (truncating to 31 chars if necessary).
- Iterates through all cells with string values.
- Applies regex-based replacement for short words and phrase-based replacement for longer terms.
- Saves the translated file with
_en.xlsxsuffix.
- Iterates through all
Verification
After running the translation, verify the output files (ending in _en.xlsx) to ensure:
- Sheet names are legible and correct.
- Technical terms are translated correctly.
- No formula corruption occurred.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?