Chuyển đến nội dung
Skillpedia
Bảo mật48k · #5435

permission-manager

Skill này làm gì

Agent này giúp quản lý quyền thực thi lệnh trong một hệ thống có tên opencode. Nó rà soát các lệnh được phép, đề xuất các lệnh an toàn có thể chạy mà không cần hỏi quyền, và giúp thiết lập ai được làm gì.

Khi nào nên dùng

  • ✓Khi bạn muốn biết những lệnh nào được phép trong opencode.
  • ✓Khi thiết lập những lệnh mà một AI agent có thể chạy an toàn.
  • ✓Khi xem xét bảo mật của các quyền thực thi lệnh.

Liên kết skill

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/permission-manager/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/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/permission-manager/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

“Quản lý các quyền của opencode.”

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

Cách hoạt động

Agent đọc các cài đặt quyền hiện tại, hiển thị bản tóm tắt những gì được phép và đề xuất thay đổi để hệ thống an toàn hơn, đặc biệt là cho phép các lệnh chỉ đọc thông tin.

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.

What I do

  • Review and summarize currently always-allowed commands
  • Suggest safe read-only commands for auto-approval
  • Add or remove commands from the allow list in opencode.json
  • Configure skill-level permissions (allow/deny/ask) with wildcard patterns
  • Audit permission configs for security and usability

When to Use

Use this when optimizing opencode's permission settings, reviewing allowed commands, or configuring skill access controls.

Workflow Steps

  1. Read current config: Load ~/.config/opencode/opencode.json or project-level opencode.json
  2. Summarize permissions: Identify currently allowed commands and skill permissions
  3. Suggest additions: Propose safe read-only commands for auto-allow (see recommended list below)
  4. Apply changes: Edit the config to add/remove permission entries
  5. Validate: Ensure JSON is valid after changes

Complements opencode's built-in allow/deny/ask permissions by auditing current config and recommending adjustments through conversation.

Key Rules

  • Never allow commands that modify files, commit, push, or change system state
  • Prefer exact command entries such as git status --short, git diff --stat, and ls -la
  • Avoid trailing wildcards such as git status* unless the expanded command family has been manually reviewed as read-only
  • Confirm with user before modifying permission config
  • Distinguish between bash command permissions and skill permissions
  • Keep config organized: group related commands together

Limitations

  • This skill is scoped to opencode permission configuration and should not modify other agent hosts' permission stores.
  • Treat all write-capable command permissions as high-risk; review them manually even when a pattern looks narrow.

How to trigger me

Use the Task tool with the permission-manager subagent type:

/permissions

Or in natural language, ask opencode to "manage opencode permissions" or "review allowed commands".

Câu hỏi thường gặp

“opencode” là gì?

Đây là hệ thống cho phép các AI agent chạy lệnh trên máy tính của bạn. Agent này giúp bạn kiểm soát những lệnh nào chúng được thực thi.

“Always-allow lists” là gì?

Đây là danh sách các lệnh mà hệ thống opencode có thể chạy mà không cần hỏi quyền mỗi lần.

Vì sao cần rà soát các lệnh?

Để đảm bảo các AI agent không chạy lệnh nguy hiểm có thể thay đổi tệp hoặc hệ thống của bạn mà không có sự cho phép.

Chi tiết

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

Manage opencode permissions: review always-allow lists, suggest safe read-only commands, configure permission patterns

repo: sickn33/agentic-awesome-skills

Độ phổ biến

Sao GitHub
48k
Vị trí xếp hạng
#5435
Giấy phép
MIT
Cập nhật
15/10/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ự