permissions-debug
ما الذي تفعله
توضح هذه المهارة كيفية فحص الأدوات المعتمدة وحدود الأوامر في Kode، ثم إجراء أصغر تغيير ضروري في الصلاحيات. وهي موجهة لمستخدمي Kode الذين تُحجب أدواتهم دون سبب واضح.
متى تستخدمها
- ✓عندما يحجب Kode أداة كنت تتوقع أن تعمل.
- ✓عندما يستمر Kode في طلب الإذن نفسه مرارًا.
- ✓عندما يتصرف وكيل مساعد بشكل مختلف عن وكيل Kode الرئيسي.
رابط المهارة
https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“يستمر Kode في حجب أداة البحث في الملفات رغم أنني وافقت عليها. لماذا، وكيف أصلحها؟”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يفحص الوكيل الإجراء المحجوب بدقة، ويسرد الأدوات المعتمدة، ويبحث عن حدود الأوامر. ثم يجري أصغر تغيير قابل للتراجع ويكرر الإجراء لاختباره.
المحتوى التقني (ملف SKILL.md الأصلي)
النص الأصلي من المؤلف، مباشرة من GitHub.
Permissions Debug (Kode-first, fail-closed)
Non-negotiables
- Do not auto-escalate permissions. If an action would normally require user approval, keep it interactive and explain why.
- Prefer minimal, reversible permission changes and verify immediately.
- In
dontAskcontexts, treat “would prompt” as deny (fail-closed). Do not try to bypass.
Fast triage (what to check first)
Confirm what is blocked
- Look for the exact tool name and the rejection message.
- If the failure is from a subagent, confirm whether the parent context was more restricted.
Inspect approved tools / project allowlist
- Use
SlashCommandto run/approved-tools listand confirm whether the tool (or its rule category) is present. - If the list is unexpectedly long or contains stale entries, remove only the minimum needed with
/approved-tools remove <tool>.
- Use
Check per-command constraints
- Some flows apply
commandAllowedToolsconstraints (slash command / skill execution contexts). Confirm the command’sallowed-toolsfrontmatter and whether it should be restrictive.
- Some flows apply
Verification loop (keep it tight)
- Re-run the exact action that was blocked and confirm:
- whether the prompt appears (interactive modes), or
- whether the tool is allowed/denied deterministically (headless /
dontAsk).
Forensics (when “it should have worked”)
- Inspect the latest session artifacts under
~/.kode/(messages + errors) to confirm what tool call was attempted and why it was denied. - If a background shell was involved, cross-check task output files in
~/.kode/**/tasks/for the correspondingbashId.
الأسئلة الشائعة
هل سيفعّل الوكيل الصلاحيات تلقائيًا؟
لا. لا تعتمد المهارة إجراءات كان يجب أن تحتاج إلى موافقتك.
ماذا يحدث في تشغيل لا تظهر فيه أي طلبات؟
أي إجراء يحتاج إلى طلب يُعامل كمرفوض، وهذا يبقي الأمور آمنة.
كيف يتأكد الوكيل من الإصلاح؟
يكرر الإجراء المحجوب ليرى هل صار مسموحًا أو ما زال مرفوضًا.
التفاصيل
الوصف الأصلي من المؤلف
Troubleshoot Kode permission prompts/denials (tool allowlists, commandAllowedTools, dontAsk fail-closed, subagent inheritance). Use when tools are unexpectedly blocked, permission prompts repeat, or behavior differs between main agent and subagents.
repo: shareAI-lab/Kode-CLI
الشعبية
- نجوم GitHub
- 5.2k
- الترتيب
- #15023
- الترخيص
- Apache-2.0
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
capabilities-manage
5.2kتساعد وكيلك على تشغيل ميزات Kode CLI مثل خوادم اللغة وشريط الحالة والإضافات أو إيقافها أو إعادة ضبطها بطلب بسيط.
doc-coauthoring
5.2kترشد وكيلك في كتابة اقتراح أو مواصفات أو مستند قرار واضح من ملاحظاتك الأولية، ثم تراجعه مع قارئ جديد.
lsp-maintain
5.2kتساعد وكيلك على معرفة سبب غياب اقتراحات الشيفرة في Kode، وإعداد الإضافة التي توفر خادم اللغة المفقود.
mcp-builder
5.2kترشد وكيلك في بناء خادم MCP يمنح الذكاء الاصطناعي إجراءات واضحة ومسمّاة جيدًا لخدمة خارجية، بلغة TypeScript أو Python.
مهارات مشابهة
add-model-provider
394kتتيح لوكيلك ربط مزوّد نموذج ذكاء اصطناعي جديد بـ OpenClaw باستخدام أوامر إعداد آمنة، وإبقاء مفاتيح API خارج النص العادي، وإجراء اختبار حي.
acp-router
394kيساعد وكيلك على إرسال مهمة إلى مساعد برمجة مثل Claude Code أو Cursor عبر OpenClaw، فيعمل العمل داخل تلك الأداة.
browser-automation
394kتعلّم وكيلك التحكم في صفحات الويب خطوة بخطوة، بما في ذلك تسجيل الدخول والتبويبات والتعافي عندما تتوقف الصفحة عن الاستجابة.