Chuyển đến nội dung
Skillpedia
Agent5.2k · #15023

permissions-debug

Skill này làm gì

Skill này giải thích cách kiểm tra các công cụ được phê duyệt và giới hạn lệnh của Kode, rồi thực hiện thay đổi quyền nhỏ nhất cần thiết. Skill dành cho người dùng Kode có công cụ bị chặn bất ngờ.

Khi nào nên dùng

  • ✓Khi Kode chặn một công cụ mà bạn mong đợi sẽ hoạt động.
  • ✓Khi Kode cứ hỏi lại cùng một quyền hết lần này đến lần khác.
  • ✓Khi một agent phụ hoạt động khác với agent Kode chính.

Liên kết skill

https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/shareAI-lab/Kode-CLI/blob/main/packages/builtin-skills/skills/permissions-debug/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Kode cứ chặn công cụ tìm kiếm tệp của tôi dù tôi đã phê duyệt. Vì sao và tôi sửa thế nào?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra đúng hành động bị chặn, liệt kê các công cụ đã được phê duyệt và tìm giới hạn lệnh. Agent thực hiện thay đổi nhỏ nhất có thể hoàn tác rồi lặp lại hành động để kiểm tra.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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 dontAsk contexts, treat “would prompt” as deny (fail-closed). Do not try to bypass.

Fast triage (what to check first)

  1. 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.
  2. Inspect approved tools / project allowlist

    • Use SlashCommand to run /approved-tools list and 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>.
  3. Check per-command constraints

    • Some flows apply commandAllowedTools constraints (slash command / skill execution contexts). Confirm the command’s allowed-tools frontmatter and whether it should be restrictive.

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 corresponding bashId.
Câu hỏi thường gặp

Agent có tự bật quyền không?

Không. Skill không tự phê duyệt các hành động mà bình thường cần bạn phê duyệt.

Điều gì xảy ra trong một lần chạy không hiện lời nhắc?

Mọi hành động cần lời nhắc sẽ bị coi là bị từ chối, để giữ an toàn.

Agent xác nhận việc sửa bằng cách nào?

Nó lặp lại hành động bị chặn để xem nó đã được cho phép hay vẫn bị từ chối.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
5.2k
Vị trí xếp hạng
#15023
Giấy phép
Apache-2.0
Cập nhật
2/11/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự