permission-manager – skill Lập trình cho agent AI
Quản lý quyền của opencode: rà soát danh sách luôn cho phép, đề xuất lệnh chỉ đọc an toàn, cấu hình mẫu quyền.
Cài skill permission-manager bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/permission-manager-80254.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /permission-manager – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/permission-manager-80254.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $permission-manager – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/permission-manager-80254.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /permission-manager – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/permission-manager-80254.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /permission-manager – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc 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, andls -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:
/permissionsOr in natural language, ask opencode to "manage opencode permissions" or "review allowed commands".
Skill liên quan
- phase-gated-debugging – Dùng khi gỡ lỗi bất kỳ lỗi nào. Áp dụng quy trình 5 pha, chặn chỉnh sửa code cho đến khi…
- php – Hướng dẫn super-code theo từng ngôn ngữ dành cho php.
- pi-delegate – Giao việc viết code cho CLI Pi coding agent (`pi`) chỉ khi người dùng yêu cầu rõ ràng…
- placecall – Thực hiện cuộc gọi đi thật tới doanh nghiệp tại Mỹ qua PlaceCall API: đặt lịch, hỏi…
- plaid-fintech – Mẫu chuyên sâu tích hợp Plaid API, gồm luồng Link token, đồng bộ giao dịch, xác minh…
- platform-engineering – Xây dựng nền tảng nội bộ cho lập trình viên (IDP) với hạ tầng tự phục vụ, golden path và…
- playwright-java – Khởi tạo, viết, debug và nâng cấp test E2E Playwright cấp doanh nghiệp bằng Java, dùng…
- poka-yoke – Chống lỗi cho code, cấu hình và quy trình: làm cho hành động sai trở nên không thể hoặc…