Skillpedia
النشر والسحابة (DevOps)12k · #11578

tmux

ما الذي تفعله

تتيح هذه المهارة للوكيل النظر إلى جلسات الطرفية التي يديرها tmux والكتابة فيها. وهي مخصصة للمطورين الذين يشغّلون أدوات سطر أوامر طويلة أو تفاعلية في طرفية مستمرة.

متى تستخدمها

  • ✓عندما يعمل أمر في جلسة tmux وتريد من الوكيل فحص مخرجاته.
  • ✓عندما تحتاج أداة سطر أوامر تفاعلية إلى رد مكتوب.
  • ✓عندما تريد بدء جلسة طرفية في الخلفية لمهمة تستمر في العمل.

رابط المهارة

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/tmux/SKILL.md

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

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

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

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

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

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

“افحص جلسة tmux المسماة worker وأخبرني إن كان البناء ما زال يعمل.”

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

كيف تعمل

يعرض الوكيل الجلسات والألواح (panes)، ويقرأ ما يظهر على الشاشة، ويرسل المفاتيح أو النص عند الطلب. ولا يوافق على طلب تأكيد قبل أن يفهم ما يفعله.

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

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

tmux

Use for interactive commands that are already running in tmux or need a persistent terminal. Use normal terminal execution for one-shot commands.

Prerequisite

command -v tmux

If the command is absent, tell the user that tmux must be installed; do not silently install it.

Basics

tmux ls
tmux list-windows -t shared
tmux list-panes -t shared:0
tmux capture-pane -t shared:0.0 -p
tmux capture-pane -t shared:0.0 -p -S -

Targets use session:window.pane, for example shared:0.0.

Send input

Send literal text and Enter separately:

tmux send-keys -t shared:0.0 -l -- "Please continue"
tmux send-keys -t shared:0.0 Enter

Special keys:

tmux send-keys -t shared:0.0 C-c
tmux send-keys -t shared:0.0 C-d
tmux send-keys -t shared:0.0 Escape

Use -l -- for arbitrary text. Never approve a confirmation prompt until its target and consequences are understood.

Sessions

tmux new-session -d -s worker
tmux rename-session -t old new
tmux kill-session -t worker

Killing a session is destructive. Do it only when the user requested that outcome or the session was created solely for the current task and is no longer needed.

Helpers

skill_view returns this Skill's baseDirectory. Use it to run:

  • <baseDirectory>/scripts/find-sessions.sh to discover sessions, including custom socket paths.
  • <baseDirectory>/scripts/wait-for-text.sh to wait until pane output contains a pattern.

capture-pane -p writes to stdout, -S - includes full scrollback, and tmux sessions persist across SSH disconnects.

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

هل يثبّت tmux؟

لا. إذا كان tmux غير موجود، يخبرك الوكيل بضرورة تثبيته ولا يثبّته بصمت.

هل يستطيع إغلاق جلسة؟

نعم، لكن فقط عندما تطلب ذلك، أو عندما أُنشئت الجلسة لهذه المهمة الحالية فقط ولم تعد لازمة.

كيف تُسمّى الجلسات والألواح؟

يُكتب الهدف بالصيغة session:window.pane، مثل shared:0.0.

التفاصيل

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

Control tmux sessions and panes for interactive CLIs: discover sessions, capture output, send keys, paste text, and monitor prompts.

repo: EKKOLearnAI/ekko-studio

الشعبية

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

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

0

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

التعليقات

  • …

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

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