شعار Ssh Skill

Ssh Skill

المجتمع
badseal
ssh-skill

Use when a task requires SSH or SCP/SFTP behavior, a remote server, server alias/IP/hostname/user@host, bastion or jump-host access, remote command execution, upload/download, server transfer, deployment, tunnels, port forwarding, or remote internal services; Chinese triggers include 服务器, 远程, 连接, 登录, 上传, 下载, 部署, 跳板机, 隧道. DO NOT use for local shell commands, localhost/current-machine work, local Docker, browser downloads, Git remotes, or direct non-SSH database access.

نظرة عامة

الناشرbadseal
المستودعssh-skill
اسم المهارةssh-skill
النجوم
538
التفريعات
54
الملفات المرفقة
82
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

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

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/badseal/ssh-skill.git \
  .claude/skills/ssh-skill
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

SSH Skill v4

Purpose

Use this contract for SSH-mediated work in Codex and Claude Code on Windows, macOS, and Linux. The deterministic Python CLI owns transport, retries, output limits, host-key policy, and compatibility behavior.

Chinese intent examples: 连接服务器, 远程执行, 上传文件, 下载日志, 通过跳板机, 建立隧道. Continue the user-facing conversation in the user's language.

Scope

Use for:

  • Commands or inspections on a remote host.
  • Upload, download, SFTP, SCP-equivalent, or server-to-server transfer.
  • SSH aliases, keys, agents, bastions, ProxyJump, tunnels, and port forwarding.
  • Remote deployment, remote database access through a tunnel, and cluster work.

DO NOT use for:

  • Local commands, localhost, current-machine services, or local Docker.
  • Browser or HTTP downloads that do not traverse SSH.
  • Git remote operations; use the relevant Git workflow instead.
  • Direct database connections that do not require an SSH tunnel.

Hard Rules

  1. Resolve the root containing this loaded SKILL.md; call it <SSH_SKILL_ROOT> for the current task.
  2. Invoke <SSH_SKILL_ROOT>/scripts/ssh_skill.py; do not construct raw ssh, scp, sftp, or rsync commands.
  3. Pass arguments as discrete process arguments. Never add a local shell wrapper around remote command text.
  4. Parse the one JSON document on stdout before deciding the next action.
  5. Treat outcome_unknown as a stop condition. Report its request ID and do not repeat the command automatically.
  6. Do not retry authentication failures, destructive commands, or partially completed multi-host operations without new evidence and user intent.
  7. Never expose passwords, private-key content, tokens, or askpass data.
  8. Preview multi-host and irreversible operations before applying them.

Resolve The Skill Root Once

  • Prefer the directory of the SKILL.md that activated this skill.
  • If the runtime provides an explicit loaded-skill path, use it directly.
  • Do not assume .agents, .codex, .claude, or any user-home path.
  • Run doctor --json when the root is ambiguous, a dependency is missing, or multiple installed copies may have drifted.
  • Do not run doctor before every operation. Reuse the resolved root within the same task unless the environment changes.
  • If doctor reports several copies, keep using the currently loaded copy and disclose version or content drift; never copy or overwrite automatically.

Read exactly one platform guide when invocation syntax is needed:

Standard Workflow

  1. Classify the request as exec, transfer, cluster, config, tunnel, or doctor.
  2. Resolve <SSH_SKILL_ROOT> once.
  3. Identify the SSH alias. If it is unknown, use config list-servers or config find; do not guess from an IP or a similar name.
  4. Separate read-only discovery from mutation. Ask for missing target or scope only when it materially changes the operation.
  5. Preview multi-host, production, delete, or overwrite work.
  6. Invoke the unified CLI once with the smallest complete operation.
  7. Parse success, data, error, and meta, then report the actual result.

Do not add connection tests, repeated status calls, or daemon restarts unless the result indicates that one of them is necessary.

Invocation Contract

Use the platform-appropriate Python executable and path syntax:

text
<PYTHON> "<SSH_SKILL_ROOT>/scripts/ssh_skill.py" <operation> <arguments>
  • Keep remote paths in POSIX form, such as /var/log/app.log.
  • Keep the entire remote command as one argument.
  • Prefer one remote command that gathers closely related read-only facts.
  • Keep dependent or separately risky mutations as separate operations.
  • Use --progress only when progress events are useful to the user.
  • Use --no-progress when a clean noninteractive stderr is required.

See references/commands.md for complete syntax.

Operations

OperationUse
execRun one command on one SSH alias.
uploadCopy a local file or directory to a remote POSIX path.
downloadCopy a remote file or directory to a local path.
transferMove data between two SSH aliases.
clusterPreview or apply one command to resolved host targets.
configList, find, create, update, delete, or export SSH aliases.
tunnelStart, list, inspect, or stop local SSH tunnels.
daemonInspect or manage the optional connection daemon.
doctorDiagnose local runtime, copies, OpenSSH, agent, and config.

Execution And Transfer

  • exec uses daemon reuse only where safe; --no-daemon is an explicit diagnostic escape hatch, not a routine first step.
  • A timeout after request transmission through OpenSSH, Paramiko, or cluster execution can mean the remote side executed the command. The CLI returns outcome_unknown with retryable=false; stop and ask the user how to verify state.
  • For upload/download, preserve the distinction between local native paths and remote POSIX paths. Use --recursive only for directories.
  • Use --resume when continuing a known interrupted transfer.
  • Server-to-server direct mode may expose an SSH agent to the source host. Agent forwarding remains off unless --allow-agent-forwarding is explicit.

Cluster And Configuration Gates

  • cluster without --apply is a target preview and opens no SSH connection.
  • Review targets, target_count, and production_targets from the preview.
  • Add --apply only after the requested target set is confirmed.
  • Add --confirm-production when any target is classified as production.
  • A config delete without --apply is a preview. Applied deletion creates a timestamped backup before atomic replacement.
  • Do not put new plaintext passwords into SSH configuration metadata.

Tunnels And Daemons

  • Return the allocated local port and tunnel ID after starting a tunnel.
  • Bind local forwarding only according to the tool's safe default.
  • Prefer status or list before stopping a tunnel when the identifier is vague.
  • Do not restart a daemon merely because a second command follows the first. The daemon is designed for reuse across compatible calls.

Result Contract

The CLI writes exactly one versioned JSON document to stdout:

  • schema_version: result schema, currently 1.0.
  • success: whether the requested operation completed successfully.
  • operation: stable operation identifier.
  • data: bounded operation-specific data.
  • error: stable code, message, retryability, and outcome on failure.
  • meta: request ID, platform, transport, elapsed time, and warnings.

The top-level stdout result is capped at 256 KiB. Recursive transfer details retain at most 100 head/tail samples while their total-count fields preserve the actual scale. Progress, when explicitly enabled, is real-time, bounded, ASCII-safe JSONL on stderr. Do not merge it with stdout. If output is truncated, disclose truncation and use the retained diagnostic tail instead of rerunning solely to obtain more output.

Safety Defaults

  • Host keys default to accept-new; changed known keys are rejected.
  • Do not disable host-key verification or discard known_hosts in routine use.
  • Existing legacy passwords may be read with warnings but must stay redacted.
  • Prefer keys and the platform SSH agent; never request a private key value.
  • Production and multi-host scope require observable confirmation flags.
  • Read references/safety.md before credential changes, production work, agent forwarding, config deletion, or uncertain outcomes.

Error Decisions

  • invalid_alias: list or find aliases once; do not brute-force names.
  • config_not_found: run doctor, then report the expected local config path.
  • Authentication failure: report the method and remediation; do not loop.
  • outcome_unknown: stop, preserve request ID, and verify state separately.
  • Partial cluster failure: report per-host outcomes; do not replay successes.
  • Missing dependency: use the relevant platform guide, not another shell.

Compatibility

  • Codex and Claude Code share this file and the same Python CLI.
  • Windows, macOS, and Linux share core behavior; only local invocation and dependency remediation differ.
  • Legacy script filenames remain compatibility entrypoints during v4 migration.
  • --legacy-json is only for an identified old consumer. New AI calls use the v1 envelope and never request legacy output.

Final Check

  • Correct loaded root and platform syntax used.
  • Correct alias, remote path, and target scope used.
  • Required preview and production confirmation completed.
  • One stdout JSON parsed; warnings and request ID preserved.
  • No secret exposed and no uncertain operation replayed.

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

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

و22 من الملفات الإضافية.

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

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

Use when a task requires SSH or SCP/SFTP behavior, a remote server, server alias/IP/hostname/user@host, bastion or jump-host access, remote command execution, upload/download, server transfer, deployment, tunnels, port forwarding, or remote internal services; Chinese triggers include 服务器, 远程, 连接, 登录, 上传, 下载, 部署, 跳板机, 隧道. DO NOT use for local shell commands, localhost/current-machine work, local Docker, browser downloads, Git remotes, or direct non-SSH database access.

لماذا تستخدم Ssh Skill على TypingMind؟

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

كيف أثبّت Ssh Skill في TypingMind؟

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

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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