شعار Officecli Skills

Officecli Skills

المجتمع
mingchen666
officecli-skills

Unified OfficeCLI skill for creating, reading, and editing Office files. Use for any .docx, .pptx, or .xlsx task, including Word documents, PowerPoint decks, Excel workbooks, academic papers, pitch decks, financial models, dashboards, and fillable Word forms. This is the only top-level OfficeCLI skill; route to the specific reference files under references/ as needed.

نظرة عامة

الناشرmingchen666
المستودعReviva
اسم المهارةofficecli-skills
النجوم
293
التفريعات
31
الملفات المرفقة
9
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • الملفات المرفقة: 9

    نصوص برمجية وقوالب ومراجع يمكن للنموذج قراءتها أثناء عمله. الملفات للقراءة فقط ولا تُنفّذ أبدًا.

  • مفتوحة المصدر

    نشرها mingchen666 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Officecli Skills في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى الإضافات → المهارات.
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/mingchen666/Reviva/tree/main/electron/builtin-assets/skills/officecli-skills
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات → المهارات → إضافة مهارة → من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/mingchen666/Reviva.git /tmp/Reviva
mkdir -p .claude/skills
cp -r /tmp/Reviva/electron/builtin-assets/skills/officecli-skills .claude/skills/officecli-skills
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Officecli Skills في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج Officecli Skills تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Officecli Skills بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تترتب أي تكلفة على المهارة غير المستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

OfficeCLI

OfficeCLI is the unified Office skill for .docx, .pptx, and .xlsx work. It covers reading, creating, and editing Office files through Reviva's controlled tools and the local officecli runtime.

This is the top-level router skill. Do not load every reference file by default. Load only the reference files needed for the current task.

Runtime Setup

Use the shared Reviva OfficeCLI runtime:

  • Reviva on Windows prefers the bundled officecli binary.
  • If the bundled binary is missing or unavailable, Reviva falls back to system officecli from PATH.
  • Check availability in 设置 > 环境检测 > OfficeCLI.
  • Do not run install commands automatically unless the user explicitly asks.
  • When a property, path, enum, or element name is uncertain, ask officecli help <format> <element> --json before guessing.

Reference files may contain legacy standalone Setup sections copied from their original skills. Treat this section as authoritative inside Reviva.

Reference files may also keep their original YAML frontmatter names, such as officecli-docx or officecli-xlsx. Treat those names as source metadata only. The recommended top-level skill to bind is this unified officecli-skills skill.

Tool Pairing

Office work is a Skill + Tool pairing:

  • Skill: decides how to plan and structure the Office artifact.
  • Tool: decides whether the Agent may actually read, create, or edit files.

Expected tool pairing:

  • office_read: bottom-level precise reader for .docx, .pptx, .xlsx; general document reading should go through document_read when available.
  • office_write: create and edit .docx, .pptx, .xlsx; write capability and should be explicitly enabled.

If office_write is unavailable, plan the work and explain what would be changed, but do not claim the file was created or edited.

Routing

Choose the smallest set of references that covers the request.

User intentReferences
General Word document, report, memo, letter, proposal, docx editingreferences/docx.md
Academic paper, thesis, citation style, bibliography, footnotes/endnotes, equations, cross-referencesreferences/docx.md + references/academic-paper.md
Fillable Word form, content controls, form fields, mail merge, protected form, contract/SOW templatereferences/word-form.md
General PowerPoint deck, slides, presentation, template, speaker notes, commentsreferences/pptx.md
Fundraising deck, investor deck, seed/Series A/B/C pitchreferences/pptx.md + references/pitch-deck.md
General Excel workbook, spreadsheet, tracker, CSV import, formulas, charts, pivot tablesreferences/xlsx.md
Financial model, 3-statement, DCF, LBO, SaaS unit economics, sensitivity/scenario analysisreferences/xlsx.md + references/financial-model.md
Excel dashboard, KPI dashboard, executive dashboard, CSV to dashboard, analytics dashboardreferences/xlsx.md + references/data-dashboard.md

Reverse routing rules:

  • Do not use pitch-deck for a generic board review, sales deck, all-hands, or product launch. Use pptx.
  • Do not use financial-model for a simple budget tracker, CSV dump, or operational KPI sheet. Use xlsx.
  • Do not use data-dashboard for a one-chart weekly report or simple formatted table. Use xlsx.
  • Do not use academic-paper for ordinary reports or memos. Use docx.
  • Do not use word-form for non-fillable documents. Use docx.

Standard Workflow

Existing Files

  1. Identify the file format from extension.
  2. Load only the necessary references.
  3. Read the file first with office_read(mode="overview"); do not edit blind.
  4. Read relevant text, outline, stats, issues, or images as needed.
  5. Plan the edits as structured actions.
  6. Execute through office_write only when write access is available.
  7. Re-read or inspect the result enough to summarize what changed.

New Files

  1. Identify target format and output path.
  2. Load the necessary references.
  3. Build a concise artifact plan: structure, layout, data model, or slide/page list.
  4. Execute creation through office_write(operation="create").
  5. Inspect the result with office_read or relevant OfficeCLI views.
  6. Return the output path and a short creation summary.

Safety

  • Default to creating a new output file instead of overwriting the source.
  • Never claim an edit happened unless office_write returned success.
  • Do not expose arbitrary officecli command execution as the product interface.
  • Prefer typed actions over raw XML.
  • raw-set is a last-resort bridge and should remain disabled unless the product explicitly enables a narrow, template-backed action.
  • For destructive actions like remove, require precise paths and keep the scope narrow.
  • Do not write outside authorized workspace paths.
  • Do not use cloud knowledge-base documents as local files; use kb_search for cloud knowledge.

Action Layers

Prefer these layers in order:

  1. High-level structured actions: add_heading, add_table, add_picture, add_chart, set_cell, set_range, add_slide, replace_text.
  2. Typed OfficeCLI primitives: add, clone, set, remove, query, get.
  3. Dotted properties inside typed primitives, such as font.color, pbdr.bottom, calc.fullCalcOnLoad.
  4. batch through office_write(useBatch=true) for many stable actions.
  5. raw_set through explicit allowRawXml=true and per-action confirm=true when typed actions cannot express the required OpenXML change.

Inside Reviva, office_write exposes common actions plus format shortcuts:

  • Word: paragraphs, headings, tables, pictures, comments, fields, headers, footers, form controls.
  • PowerPoint: slides, shapes, text boxes, pictures, charts, speaker notes, connectors.
  • Excel: sheets, cells, ranges, formulas, tables, charts, defined names.

For uncommon elements or uncertain props, call office_write(operation="help", format, element, verb) before creating actions.

Use useBatch=true when applying many stable actions, especially Excel formulas/ranges, PPT layout construction, and form field batches. The Agent may decide this per task. Avoid batch for exploratory edits where individual warning output is important.

Use raw_set only for documented OfficeCLI fallback cases such as SDT dropdown items, date formats, field cache patches, workbook activeTab, or targeted XML cleanup. The Agent may decide this when typed actions cannot express the change, but must set allowRawXml=true and confirm=true on each raw action. Prefer typed set when a dotted property exists. Reviva forces post-write issues/validate checks for batch and raw_set.

QA Expectations

Do not treat validate as proof of quality. Each format has different failure modes:

  • Word: heading hierarchy, TOC/footer fields, placeholder leakage, layout rhythm.
  • PowerPoint: overflow, dark-on-dark text, misalignment, missing alt text, missing speaker notes in pitch decks.
  • Excel: formula errors, stale cached values, ### overflow, chart title/series placeholders, cross-sheet formula quoting.
  • Word forms: missing SDT alias/tag, unlocked protected regions, broken field names, placeholder leakage.

Use the relevant reference file's QA section for format-specific checks.

Reference Files

The long-form rules live under references/:

  • references/docx.md
  • references/pptx.md
  • references/xlsx.md
  • references/academic-paper.md
  • references/pitch-deck.md
  • references/financial-model.md
  • references/data-dashboard.md
  • references/word-form.md

Read only what the task requires.

الملفات المرفقة

يقرأ النموذج هذه الملفات عند الحاجة أثناء تحميل المهارة. وهي متاحة للقراءة ولا تُنفّذ أبدًا.

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

ماذا تفعل مهارة الذكاء الاصطناعي Officecli Skills؟

Unified OfficeCLI skill for creating, reading, and editing Office files. Use for any .docx, .pptx, or .xlsx task, including Word documents, PowerPoint decks, Excel workbooks, academic papers, pitch decks, financial models, dashboards, and fillable Word forms. This is the only top-level OfficeCLI skill; route to the specific reference files under references/ as needed.

لماذا تستخدم Officecli Skills على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Officecli Skills عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Officecli Skills في TypingMind؟

افتح الإضافات → المهارات → التثبيت من GitHub في TypingMind والصق https://github.com/mingchen666/Reviva/tree/main/electron/builtin-assets/skills/officecli-skills. يقرأ TypingMind ملف SKILL.md الخاص بها، ويجمع ملفاتها ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Officecli Skills؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Officecli Skills؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Officecli Skills معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Officecli Skills مجانية؟

نشرها mingchen666 على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا البريدية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇