AgentSkillsCN

decrypt-office

使用 msoffcrypto-tool 解密受密码保护的 Microsoft Office 文件

SKILL.md
--- frontmatter
name: decrypt-office
description: Decrypt password-protected Microsoft Office files using msoffcrypto-tool
version: 0.1.0

Decrypt Office Files

Decrypt password-protected Microsoft Office files (Excel, Word, PowerPoint, etc.) using msoffcrypto-tool.

Instructions

  1. Receive input from the user:

    • File path to the password-protected Office file
    • Password for decryption
  2. Run the decryption command:

    • Execute uvx msoffcrypto-tool <input_file> <output_file> -p <password>
    • Output file name: prepend decrypted_ to the original filename
      • Example: path/to/report.xlsxpath/to/decrypted_report.xlsx
  3. Report the result to the user:

    • On success: show the output file path
    • On failure: show the error message (e.g., wrong password, unsupported format)