interactive-login
ما الذي تفعله
تتيح للمساعد أن يبدأ تسجيل دخول لأدوات سطر أوامر المطورين، ويخزّن النتيجة في سلسلة المفاتيح بالنظام. وهي للمطورين الذين يحتاجون إلى تسجيل دخول أدواتهم.
متى تستخدمها
- ✓عندما تحتاج أداة سطر أوامر مثل AWS أو GitHub إلى تسجيل دخولك أولاً.
- ✓عندما تريد حفظ تسجيل دخول كي تستخدمه أوامر لاحقة بأمان.
- ✓عندما يلزم رمز الجهاز أو تسجيل الدخول عبر المتصفح لإنهاء الإعداد.
رابط المهارة
https://github.com/yc-software/qm/blob/main/skills-seed/interactive-login/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“سجّل دخولي في أداة AWS من سطر الأوامر، حتى تراجع عمليات النشر الخاصة بي.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يبدأ المساعد تسجيل دخول الأداة في مجلد مؤقت جديد، ويعرض لك عنوان الويب والرمز الذي تدخله، ثم يحفظ النتيجة في سلسلة المفاتيح. ولا يُستخدم مجلدك الرئيسي المعتاد أبداً.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Interactive login
Nothing captures logins for you. Every login runs in a fresh temporary home and is saved
to the keychain with the script shipped with this skill. Never log in against the real
$HOME, and never treat a token or config already in $HOME as a usable login: only a
keychain handle is. Use the same explicit sandbox_id for the skill read, login,
and save-login commands so the temporary home and save script stay on one computer.
Make a fresh directory and start the login with
execute(background:true)with every config location pointed into it. Copy in any config the CLI needs first (for AWS, the[profile …]/[sso-session …]blocks in.aws/config); everything under that directory becomes the saved login.d=$(mktemp -d) && echo "$d" in_d() { env HOME="$d" XDG_CONFIG_HOME="$d/.config" XDG_DATA_HOME="$d/.local/share" XDG_STATE_HOME="$d/.local/state" XDG_CACHE_HOME="$d/.cache" "$@"; } in_d aws sso login --profile work --use-device-code --no-browser in_d gh auth login --hostname github.com --git-protocol https --web in_d glab auth login --hostname gitlab.com --web in_d gcloud auth login --no-launch-browserUse the CLI's device-code mode (AWS needs
--use-device-code); a browser flow only completes on the same machine.Relay the verification URL and code from the job output. Answer any prompt with
backgroundactionsend_input. Use itswatchorpollaction with the returnedprocess_id; never stop the job while the person is approving.When it exits successfully, save the directory with the script under the absolute directory the skill read reported:
node <skill dir>/scripts/save-login.mjs aws "$d" --label "work (123456789012)"The script uploads only the files under that directory, removes the directory, and prints the credential handle. It also removes a directory that holds no usable login. Never remove the directory yourself; if the save fails, run the script again. Saving the same service again replaces that entry in place: its id, handle, owner and grants stay the same.
Use the login only by naming the handle in
credentialsonexecute(includingbackground:true), including to check that it works. The files are staged in a private home for that command or job, and refreshes the CLI writes are saved back when it ends.
Never print token files or paste their contents into the conversation. If the login fails or expires, start again from step 1 with a new directory.
الأسئلة الشائعة
هل يرى المساعد كلمة مروري؟
تكمل تسجيل الدخول بنفسك في متصفحك، باستخدام الرمز الذي تعرضه الأداة. ويكتفي المساعد بنقل الرابط والرمز.
لماذا يُستخدم مجلد مؤقت؟
يبقي تسجيل الدخول الجديد منفصلاً عن إعدادات حاسوبك المعتادة، فلا تُعاد استخدام الرموز الموجودة بالخطأ.
ماذا لو لم ينتهِ تسجيل الدخول؟
يُحفظ تسجيل الدخول فقط بعد انتهائه، فيمكنك المحاولة مرة أخرى إذا توقف.
التفاصيل
الوصف الأصلي من المؤلف
Log a CLI in with a browser/device-code flow (aws sso, gh, glab, gcloud, …) and save the result to the keychain so later commands can request it through execute.credentials.
repo: yc-software/qm
الشعبية
- نجوم GitHub
- 16k
- الترتيب
- #10896
- الترخيص
- MIT
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
deploy-qm
16kينشر حزمة QM على Fly.io أو AWS أو Render، ثم يجهّز مديراً وموصلات، واختيارياً Slack، وفق قائمة نشر كاملة.
onboarding
16kيرشد المستخدم الجديد خلال ربط حساباته ومشاركة طريقة عمله واختيار صوت وإعداد أول مساعدة، في محادثة قصيرة واحدة.
admin
16kيتيح لمدير مؤسسة موثّق أن يفحص الإعدادات على مستوى المؤسسة والنطاقات الأخرى أو يغيّرها من المحادثة، مع تأكيد كل تغيير قبل تنفيذه.
browse
16kيشغّل متصفحاً حقيقياً متخفياً من سطر الأوامر لتنفيذ إجراءات على المواقع، مثل تسجيل الدخول وملء النماذج، مع حفظ تسجيلات الدخول لكل شخص. مخصص للإجراءات لا للقراءة.
مهارات مشابهة
openclaw-update
394kيساعد وكيلك على تحديث بوابة OpenClaw Gateway الموجودة، مع اختيار طريقة التحديث المناسبة لطريقة تثبيتها والحفاظ على جلستك.
diagnose-gateway
394kيساعد وكيلك على معرفة سبب فشل بوابة OpenClaw Gateway عبر فحص الإعدادات والقنوات والمنافذ دون تغيير أي شيء.
crabbox-apps
394kيساعد وكيلك على فتح تطبيق وتشغيله على جهاز سحابي مؤقت، ثم عرض واجهته في الشريط الجانبي للدردشة.