Langsung ke konten
Skillpedia
PDF, Word & slide260k Β· #493

excel-author

Fungsinya

Skill ini memuat konvensi standar perbankan untuk membuat file Excel dengan pustaka openpyxl, termasuk rumus, warna sel, dan rentang bernama. Skill ini ditujukan untuk orang yang membutuhkan spreadsheet yang bisa diaudit dan diubah oleh orang lain.

Kapan dipakai

  • βœ“Saat Anda membutuhkan buku kerja Excel baru yang dibuat dari nol atau dari data.
  • βœ“Saat spreadsheet harus ditinjau atau diaudit oleh orang lain.
  • βœ“Saat Anda ingin rumus dan input terpisah dengan jelas dalam sebuah buku kerja.

Link skill

https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/excel-author/SKILL.md

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/NousResearch/hermes-agent/blob/main/optional-skills/finance/excel-author/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuatkan buku kerja Excel dari data penjualan ini, dengan rumus langsung dan warna input yang jelas agar tim saya bisa mengauditnya.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Agent menulis buku kerja ke folder output menggunakan openpyxl, dengan rumus alih-alih nilai tempel dan warna sel yang konsisten. Setelah itu, file dihitung ulang sebelum diserahkan.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.

excel-author

Produce an .xlsx file on disk using openpyxl. Follow the banker-grade conventions below so the model is auditable, flexible, and reviewable by someone other than the person who built it.

Adapted from Anthropic's xlsx-author and audit-xls skills in the anthropics/financial-services repo. The MCP / Office-JS / Cowork-specific branches of the originals are dropped β€” this skill assumes headless Python.

Output contract

  • Write to ./out/<name>.xlsx. Create ./out/ if it does not exist.
  • Return the relative path in your final message so downstream tools can pick it up.
  • One logical model per file. Do not append to an existing workbook unless explicitly asked.

Setup

Use python when it already imports openpyxl (the Hermes Docker image ships it). Otherwise, when hermes is on PATH, let Hermes build its shared, pinned documents environment under the Hermes home (safe to run from several agents at once); in a Docker sandbox without Hermes the block builds a venv in the sandbox home with the same pinned versions. It is the same block as the microsoft-office/pdf skills. Never pip install into the interpreter that runs Hermes:

python -c "import openpyxl" 2>/dev/null && PY=python || if command -v hermes >/dev/null 2>&1; then
  PY="$(hermes pm environment documents --extra documents --extra documents-pdf)"
else
  PY="$HOME/.cache/hermes-docs-venv/bin/python"
  "$PY" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null || (
    # Safe to run from several agents at once: each caller builds a private venv,
    # a symlink publishes the first finished one atomically, the others delete theirs;
    # a published build is replaced and deleted only while it still fails to import.
    mkdir -p "$HOME/.cache" && cd "$HOME/.cache" && stage="$(mktemp -d hermes-docs-venv.XXXXXX)" || exit 1
    old="$(readlink hermes-docs-venv)"  # the published build, if any (another agent may have just published it)
    python3 -m venv "$stage" &&
      "$stage/bin/python" -m pip install -q --disable-pip-version-check python-docx==1.2.0 openpyxl==3.1.5 python-pptx==1.0.2 reportlab==5.1.0 pypdf==6.21.2 pdfplumber==0.11.10 pypdfium2==5.14.0 &&
      "$stage/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" &&
      if [ -z "$old" ]; then python3 -c 'import os, sys; os.symlink(*sys.argv[1:])' "$stage" hermes-docs-venv
      elif [ "$(readlink hermes-docs-venv)" = "$old" ] && ! "$old/bin/python" -c "import docx, openpyxl, pptx, reportlab, pypdf, pdfplumber, pypdfium2" 2>/dev/null; then
        ln -s "$stage" "$stage.lnk" && python3 -c 'import os, sys; os.replace(*sys.argv[1:])' "$stage.lnk" hermes-docs-venv &&
          case "$old" in hermes-docs-venv.??????) rm -rf "$old" ;; esac
      fi 2>/dev/null
    [ "$(readlink hermes-docs-venv)" = "$stage" ] || rm -rf "$stage" "$stage.lnk"
  )
fi
export PY

Run the model-building Python with "$PY".

Core conventions (non-negotiable)

Blue / black / green cell color

  • Blue (Font(color="0000FF")) β€” hardcoded input a human entered. Revenue drivers, WACC inputs, terminal growth, market data.
  • Black (default) β€” formula. Every derived cell is a live Excel formula.
  • Green (Font(color="006100")) β€” link to another sheet or external file.

A reviewer can then scan the sheet and immediately see what's an assumption vs. what's computed.

Formulas over hardcodes

Every calculation cell MUST be a formula string, never a number computed in Python and pasted as a value.

# WRONG β€” silent bug waiting to happen
ws["D20"] = revenue_prior_year * (1 + growth)

# CORRECT β€” flexes when the user changes the assumption
ws["D20"] = "=D19*(1+$B$8)"

The only hardcoded numbers permitted:

  1. Raw historical inputs (actual revenues, reported EBITDA, etc.)
  2. Assumption drivers the user is meant to flex (growth rates, WACC inputs, terminal g)
  3. Current market data (share price, debt balance) β€” with a cell comment documenting source + date

If you catch yourself computing a value in Python and writing the result, stop.

Named ranges for cross-sheet references

Use named ranges for any figure referenced from another sheet, a deck, or a memo.

from openpyxl.workbook.defined_name import DefinedName
wb.defined_names["WACC"] = DefinedName("WACC", attr_text="Inputs!$C$8")
# then elsewhere:
calc["D30"] = "=D29/WACC"

Balan

Pertanyaan umum

Di mana file disimpan?

Di folder out dalam direktori kerja, dan jalur relatifnya dikembalikan kepada Anda.

Apakah skill ini memasang paket ke Python saya?

Skill menyatakan tidak boleh melakukan pip install ke interpreter yang menjalankan Hermes, dan memakai lingkungan terpisah sebagai gantinya.

Apakah satu permintaan menghasilkan satu buku kerja?

Ya. Setiap file memuat satu model logis, dan tidak menambahkan ke buku kerja yang sudah ada kecuali diminta.

Detail

Deskripsi asli dari pembuat

Build auditable financial workbooks headless via openpyxl.

repo: NousResearch/hermes-agent

Popularitas

Bintang GitHub
260k
Peringkat
#493
Lisensi
MIT
Diperbarui
2/11/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa