zipai-optimizer
ما الذي تفعله
يساعد هذا الوكيل الذكاء الاصطناعي على أن يكون أكثر كفاءة في معالجة المعلومات. يزيل التفاصيل غير الضرورية، ويرتب ما هو مهم، ويجعل ردود الذكاء الاصطناعي أقصر وأكثر مباشرة.
متى تستخدمها
- ✓عندما تريد أن يرد الذكاء الاصطناعي بسرعة وبإيجاز أكبر.
- ✓عندما تتعامل مع ملفات أو سجلات كثيرة ويحتاج الذكاء الاصطناعي إلى التركيز على الأساسيات.
- ✓لتحسين استخدام «ذاكرة» الذكاء الاصطناعي في المحادثات الطويلة.
رابط المهارة
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/zipai-optimizer/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“استخدم المحسّن لتلخيص سجل الأخطاء هذا، واستخرج المعلومات الحاسمة فقط.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يعمل بإزالة الكلمات الزائدة، والتركيز على أهم أجزاء المعلومات، وتنظيم البيانات بشكل مضغوط. هذا يتيح للذكاء الاصطناعي معالجة كل شيء بسرعة أكبر.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
ZipAI: Context & Token Optimizer
When to Use
Use this skill when the request needs context-window-aware triage, prompt caching optimizations, concise technical output, ambiguity handling, or selective reading of logs, source files, JSON/YAML payloads, VCS output, or MCP tool results.
Rules
Rule 1 — Adaptive Verbosity (No Filler)
- Fixes: technical only. ZERO filler (e.g., "Certainly", "I understand", "Here is", "Sure").
- Analysis: full reasoning allowed.
- Direct Ask: max 15 words in ultra-dense telegraphic style. Omit grammatical helper constructs.
- Long Sessions: never re-summarize past thread context.
- Reviews: use structured headers:
[ISSUE],[SUGGESTION],[NITPICK].
Rule 2 — Ambiguity-First Execution
- Ask exactly ONE question if 2+ interpretations exist. Never stack questions.
- Default to minimal intervention for minor changes.
- Scope ambiguous requests to narrowest boundary.
Rule 3 — Prompt Caching & Prefix Stability
- Static-First Ordering: Structure prompts to place invariant components (system instructions, core rules, static tool schemas) at the top of the prompt.
- Isolate Dynamic Context: Append dynamic and volatile elements (active conversation history, recently read file contents, CLI execution outputs) at the very end of the prompt to protect and reuse the cached prefix.
- Prefix Integrity: Avoid interleaving new queries or dynamic variables inside static system blocks. Keep the static instructions strictly invariant.
- Cached Files Reuse: Reuse already loaded file contents present in the conversation history; do not re-read files unless explicitly updated.
Rule 4 — Semantic Input Pruning & Log Compression
- Traceback Extraction: When handling error or build outputs, parse and filter logs using grep/regex to extract only tracebacks, error statements, and a maximum of 3-5 lines of context around them. Strip all info logs, successful build tasks, and redundant progress messages.
- Skeletal Code Viewing (AST): For large files (>300 lines), do not view the full file. Use
grep -nE "^(class|def|async def|function|const|let|var).*="(or language equivalents) to view class and function headers first, then target specific ranges withview_file. - Smart JSON/YAML Crusher: Minify structured inputs. Strip pretty-printing whitespaces, comments, and unused fields from JSON/YAML payloads before placing them in context. Convert large arrays to dense CSV or key-value listings if they are queried.
Rule 5 — Surgical & Compact Output
- Local Replacements: Perform edits using surgical tools (
str_replaceor single-hunk diffs). Never reprint unchanged surrounding code or perform full-file reprints. - Batch Modifies: Consolidate multiple non-contiguous edits in a single file into a single multi-replace chunk operation, ordered from leaf dependencies upward.
- Differential Output: Limit conversational responses to the exact modified blocks, avoiding conversational code repetition.
Rule 6 — Telegraphic Grammar & Density
- Syntax Compression: Strip articles ("a", "an", "the"), redundant helper verbs ("to be", "to have", "do"), and politeness/softening modifiers ("please", "simply", "just", "easy").
- Structure: Format output blocks into dense semantic mappings (
key: val), short bullet lists, and compact tables. Avoid paragraphs of text.
Rule 7 — Token-Budget Reasoning (CoT Optimization)
- Direct Mode: Skip long planning/thinking cycles for trivial, deterministic edits (typos, formatting, import adjustments).
- Abbreviated Thoughts: Keep thought blocks compact. Never reprint code snippets or copy-paste file blocks inside thoughts. Reference files via path and lines (e.g.
file.py#L12-18).
Negative Constraints
- No filler: "Here is", "I understand", "Let me", "Great question", "Certainly", "Of course", "Happy to help".
- No blind truncation of stacktraces or error logs.
- No full-file reads on large files.
- No re-reading files already in context.
- No multi-question clarification dumps.
- No silent bundling of unrelated changes.
- No full git diff ingestion on large changesets — extract hunks only.
- No git log beyond 20 entries unless a specific range is requested.
- No full MCP object inspection when field-level access suffices.
- No MCP mutations without prior read of current resource state.
- No SHA reuse across sessions for file updates.
Example
User request:
…
الأسئلة الشائعة
لماذا يتحدث الذكاء الاصطناعي أحيانًا بإسهاب؟
قد يضيف معلومات إضافية ليكون واضحًا أو ليملأ الفراغ. يعلّم هذا الوكيل الذكاء الاصطناعي أن يكون مباشرًا ويتجنب «الحشو».
ماذا يعني «token»؟
الـtokens أجزاء من الكلمات أو الحروف يستخدمها الذكاء الاصطناعي لفهم النص وتوليده. كلما قلّت الـtokens، كانت المعالجة أسرع وأرخص.
هل يمكنه مساعدتي في كتابة الشيفرة؟
نعم، يمكنه مساعدة الذكاء الاصطناعي على تحليل الشيفرة وتحسينها بكفاءة أكبر، من خلال التركيز على الأجزاء ذات الصلة فقط.
التفاصيل
الوصف الأصلي من المؤلف
Ultra-dense token optimizer skill for prompt caching, log pruning, AST-based inspection, and minified JSON payloads.
الشعبية
- نجوم GitHub
- 48k
- الترتيب
- #6239
- الترخيص
- MIT
- آخر تحديث
- 15/10/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
00-andruia-consultant
48kيساعد وكيلك على بدء مشاريع الذكاء الاصطناعي أو تحسينها. يحلل الكود ويقترح الأدوات ويُعد خطط عمل بالإسبانية.
007
48kيتيح لوكيلك إجراء تدقيقات أمنية ونمذجة التهديدات. مفيد لحماية المشاريع من الهجمات والثغرات الأمنية.
10-andruia-skill-smith
48kيساعد وكيلك على إنشاء أدوات الذكاء الاصطناعي أو تحسينها. يحدد طريقة عملها، ويكتب توثيقها، ويتحقق من بنيتها.
20-andruia-niche-intelligence
48kيتيح لوكيلك إعداد ملخص عن صناعة محددة. مفيد لفهم السياق والقواعد وأنماط الاستخدام والمخاطر لمشروع ما، باستخدام مصادر موثوقة.
مهارات مشابهة
writing-skills
311kيعلّم وكيلك كتابة مهارات جديدة واختبار كل واحدة أولًا، والتأكد من أنها تغيّر سلوك الوكيل فعلًا.
writing-for-agents
310kيشرح كيفية كتابة تعليمات واضحة لوكلاء الذكاء الاصطناعي، بما في ذلك ملفات المهارات وAGENTS.md وCLAUDE.md، ليتصرف الوكيل بشكل متوقع.
bengali-nlp
280kيعالج وكيلك النصوص البنغالية، فيفهمها ويتعامل معها، ويعيد تنسيقها ويعالج خصائصها اللغوية الخاصة.