agentleFS
TienDat-VnaTienDat-Vna/BackSpec/.agents/skills/dangerous-action-blocker/SKILL.md

dangerous-action-blocker

Skill1 starsChanged 47 days agoMITView on GitHub

Bộ lọc và chặn đứng mọi câu lệnh nguy hiểm, thao tác phá hoại file hệ thống, force push hoặc drop database của AI Agent.

  • Reads credentials
  • Deletes or force-pushes
  • Commits and pushes

The file

Files
SKILL.md
<!-- GENERATED FROM registry/skills/dangerous-action-blocker/SKILL.md — DO NOT EDIT DIRECTLY --><!-- GENERATED FROM .shared/skills/03-hooks/dangerous-action-blocker/SKILL.md — DO NOT EDIT DIRECTLY -->

Skill — Dangerous Action Blocker (Bộ Chặn Lệnh Nguy Hiểm & Phá Hoại Hệ Thống)

Skill này kích hoạt bộ lọc phòng thủ cấp cao nhất nhằm ngăn chặn Agent thực thi các câu lệnh gây mất mát dữ liệu hoặc phá vỡ tính toàn vẹn của mã nguồn.

🛑 DANH MỤC LỆNH BỊ CHẶN TUYỆT ĐỐI (BLACKLIST COMMANDS)

1. Phá hủy File & Thư mục:

  • ❌ rm -rf / hoặc rm -rf ~ hoặc rm -rf *
  • ❌ Xóa các thư mục hệ thống: .git/, scripts/, .sdd/, .shared/ mà không có human approval.

2. Phá hoại Git & Lịch sử Commit:

  • ❌ git push --force hoặc git push -f lên các branch bảo vệ (main, master, uat, production).
  • ❌ git reset --hard origin/main làm mất các thay đổi chưa commit.

3. Phá hoại Cơ sở Dữ liệu:

  • ❌ Chạy trực tiếp DROP TABLE, TRUNCATE TABLE, DROP DATABASE ngoài môi trường migration.
  • ❌ Sửa trực tiếp các file SQL migration cũ đã được release.

4. Sửa Đổi File Cấu Hình Trái Phép:

  • ❌ Sửa các file: .env, CONSTITUTION.md, CLAUDE.md, AGENTS.md (chỉ được sửa khi có sự đồng ý của Human Lead).

⚡ HÀNH ĐỘNG KHI GẶP LỆNH NGUY HIỂM

  1. Chặn đứng lệnh ngay trước khi shell thực thi.
  2. Kích hoạt mã cảnh báo:
    [DANGEROUS-COMMAND-BLOCKED] Lệnh bị từ chối vì lý do an toàn!
    Lệnh phát hiện: {COMMAND}
    Nguy cơ        : Phá hủy dữ liệu / Vi phạm chính sách an toàn
  3. Yêu cầu chuyển sang phương án an toàn (ví dụ: dùng Soft Delete thay vì Drop, dùng Rebase an toàn thay vì Force Push).

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.