Skillpedia
PDF وWord والعروض التقديمية260k · #610

microsoft-office

ما الذي تفعله

تتيح هذه المهارة للذكاء الاصطناعي لديك بناء مستندات Word وعروض PowerPoint ومصنفات Excel وتعديلها باستخدام أدوات Python. وهي لمن يحتاج ملفات Office ينتجها ذكاؤه الاصطناعي أو يحدّثها.

متى تستخدمها

  • ✓عندما تريد إنشاء تقرير أو خطاب أو قالب Word أو تعديله.
  • ✓عندما تريد بناء عرض PowerPoint أو تحديثه أو إضافة ملاحظات المتحدث إليه.
  • ✓عندما تريد إنشاء مصنف Excel فيه معادلات أو مخططات أو أوراق منسقة.

رابط المهارة

https://github.com/NousResearch/hermes-agent/blob/main/skills/productivity/microsoft-office/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/NousResearch/hermes-agent/blob/main/skills/productivity/microsoft-office/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أنشئ مصنف Excel فيه ثلاث أوراق للميزانية الشهرية والمصروفات والمدخرات، مع إجماليات ومخطط.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تكتب المهارة ملفات .docx و.pptx و.xlsx مباشرة باستخدام مكتبات Python. لا يلزم تثبيت Microsoft Office، لكن LibreOffice مطلوب لتحويل الصيغ القديمة أو عرض الصفحات.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

Microsoft Office Skill

Create, read, edit, and template Word (.docx), PowerPoint (.pptx), and Excel (.xlsx, .csv) files offline with small Python CLIs built on python-docx, python-pptx, and openpyxl. Office itself is never needed. It does not open legacy binary formats (.doc, .ppt, .xls) and does not render pages without LibreOffice.

When to Use

Pick the format, then read its reference with skill_view before working:

File Reference Typical asks
.docx references/word.md reports, letters, contracts, {{token}} templates, tracked changes, comments
.pptx references/powerpoint.md pitch decks, brand-template decks, chart refreshes, speaker notes, slide PNGs
.xlsx, .csv references/excel.md styled multi-sheet workbooks, formulas, charts, CSV conversion, row/column restructures

Deeper notes: references/revisions-and-comments.md (Word review markup) and references/restructuring.md (Excel reference shifting).

  • Not for .doc/.ppt/.xls: convert first with soffice --headless --convert-to docx|pptx|xlsx old-file when LibreOffice is installed.
  • Not for .odt/.odp/.ods, or WYSIWYG layout work.

Prerequisites

  • Python 3.10+ with python-docx, python-pptx, and openpyxl (import names docx, pptx, openpyxl).

  • Pick the interpreter with terminal. Use python when it already imports the libraries (the Hermes Docker image ships them). Otherwise, when hermes is on PATH, let Hermes build its shared, pinned documents environment under the Hermes home: it survives container restarts, never touches the Hermes install itself, and is safe to run from several agents at once. When it is not (the terminal runs in a Docker sandbox, which has no Hermes), the block builds a venv in the sandbox home with the same pinned versions. Use this exact block in every document skill so they all share one environment:

    python -c "import docx, pptx, 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
    "$PY" scripts/docx_create.py --help
    

    Run every helper with "$PY". In PowerShell (Hermes runs on that host, so it is on PATH): $env:PY = hermes pm environment documents --extra documents --extra documents-pdf. Never pip install into the interpreter that runs Hermes or into the hermes pm environment one; Hermes owns both.

  • Optional: LibreOffice (soffice) for PDF export, Excel recalculation, and slide rendering, plus poppler (pdftoppm or pdftocairo) for slide PNGs. The helpers that need them report what is missing and exit 0.

How to Run

Every helper lives in scripts/, is an argparse CLI with --help, prints JSON to stdout, and exits non-zero on failure. Run them with terminal from the skill

الأسئلة الشائعة

هل تفتح ملفات Office القديمة؟

لا. تقول المهارة إنها لا تفتح ملفات .doc أو .ppt أو .xls، ويجب تحويلها أولًا.

هل تحتاج إلى Microsoft Office؟

لا. تقول المهارة إنها تعمل دون اتصال بمكتبات Python، ولا تحتاج Office نفسه أبدًا.

ما إصدار Python المطلوب؟

تحتاج المهارة إلى Python 3.10 أو أحدث، مع python-docx وpython-pptx وopenpyxl.

التفاصيل

الوصف الأصلي من المؤلف

Create, read, and edit Word, PowerPoint, and Excel files.

repo: NousResearch/hermes-agent

الشعبية

نجوم GitHub
260k
الترتيب
#610
الترخيص
MIT
آخر تحديث
2‏/11‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة