vn-law-check — Claude Code plugin: audit and install
The vn-law-check Claude Code plugin audits websites and mobile apps against Vietnamese law. It examines local source files or site pages, then reports findings by risk level.
MIT ★ 509 updated 2026-11-13
/plugin marketplace add mhfed/vn-law-check
/plugin install vn-law-check@vn-law-checkWhat vn-law-check does
The plugin checks sites and mobile apps against legal checklists covering personal data, e-commerce, cybersecurity, advertising and related areas. It classifies the site first, then runs the checks that fit and attaches legal document numbers to findings. A simple static site gets a brief result.
scan.sh searches local code or downloaded pages for signs such as forms, tracking scripts, carts and login features. For a URL, another script uses curl to fetch the homepage, linked pages on the same domain and JavaScript files within stated limits. The scripts use grep and bash; they do not send data elsewhere or edit user files. This is an initial screening tool, not formal legal advice.
What it helps with
- check a website for personal-data collection
- find forms, trackers and cart features in site code
- apply relevant legal checklists to a website
- group findings by risk and cite legal document numbers
Example prompts for the agent
- Audit this site against Vietnamese law: [URL]
- Scan this website source directory and report legal risks
- Check this mobile app against the relevant Vietnamese legal checklists
How to install vn-law-check
Plugin marketplace
/plugin marketplace add mhfed/vn-law-check/plugin install vn-law-check@vn-law-checkStep by step, with commands for each platform: Claude Code plugins: marketplaces, installing, and building your own
Questions about vn-law-check
How do I install vn-law-check in Claude Code?
Run these commands in order: /plugin marketplace add mhfed/vn-law-check, then /plugin install vn-law-check@vn-law-check.
What does vn-law-check do?
It checks website or mobile app code against legal checklists for Vietnam. The report groups findings by risk level and cites legal document numbers.
What does vn-law-check need to run?
Its scripts use bash and grep; URL scans also call curl. For a local source directory, the scanner reads files on the machine.
Source text
vn-law-check · MIT
# vn-law-check Skill cho Claude giúp audit sơ bộ pháp lý website và mobile app theo quy định Việt Nam hiện hành: bảo vệ dữ liệu cá nhân, thương mại điện tử, an ninh mạng, bảo vệ người tiêu dùng, quảng cáo trực tuyến, giao dịch điện tử, và minh bạch AI. Khi plugin này được kích hoạt, Claude sẽ đọc code/nội dung website thực tế (footer, trang chính sách, cookie banner, form thu thập dữ liệu...), đối chiếu với 8 bộ checklist dựa trên văn bản pháp luật hiện hành, rồi xuất báo cáo phân loại mức độ rủi ro (cần xử lý ngay / nên cải thiện / đạt yêu cầu / không áp dụng). Mỗi phát hiện đều kèm số hiệu văn bản pháp luật cụ thể để người dùng tự xác minh lại. Trước khi mở checklist, Claude phân loại website theo 4 mức (tĩnh, thu thập nhẹ, bán hàng, nền tảng quy mô) và chỉ áp dụng những checklist phù hợp. Blog cá nhân hay trang tĩnh không thu thập dữ liệu thì chỉ nhận một kết luận ngắn, không phải báo cáo dài. Plugin gồm: - các file markdown: checklist, rules, mẫu báo cáo, danh sách nguồn luật - hai script bash trong `skills/vn-law-check/scripts/` `scan.sh` quét website hoặc mobile app bằng `grep` để tìm form, script theo dõi, giỏ hàng, đăng nhập, chatbot AI, dấu hiệu hosting, quyền truy cập và SDK của app, rồi in kết quả ra màn hình: - Khi đưa vào một thư mục source code: chỉ đọc file local, không gọi mạng. - Khi đưa vào một URL: gọi `fetch-site.sh`. Script này dùng `curl` gửi request GET tới **chính URL người dùng đưa vào**, tải trang chủ, tối đa 15 trang cùng tên miền được link từ trang chủ (chính sách, liên hệ, sản phẩm, giỏ hàng, đăng nhập) và tối đa 20 file JavaScript cùng tên miền, mỗi file không quá 5 MB, vào một thư mục tạm trên máy người dùng. Request có User-Agent `vn-law-check (+https://github.com/mhfed/vn-law-check)`. Hai script không gửi dữ liệu đi đâu khác, không đọc biến môi trường hay credential, không sửa file của người dùng. Plugin không chạy MCP server, không có hook, không cần cấu hình gì thêm. Lưu ý quan trọng: đây là công cụ hỗ trợ rà soát ban đầu, **không phải tư vấn pháp lý chính thức**. Luật Việt Nam về mảng này đang trong giai đoạn chuyển tiếp mạnh (nhiều luật mới 2025 có hiệu lực năm 2026). Xem thêm chi tiết và giới hạn tại `skills/vn-law-check/DISCLAIMER.md`. Mã nguồn đầy đủ và tài liệu: https://github.com/mhfed/vn-law-check
© mhfed · MIT · mhfed/vn-law-check