agy-auto
Skill này làm gì
agy-auto là một hệ thống bảo mật cho Antigravity CLI (agy), cho phép nó chạy các tác vụ tự động mà không cần cấp quyền thủ công mỗi lần. Nó kiểm tra tác vụ để đảm bảo an toàn trước khi thực hiện.
Khi nào nên dùng
- ✓Khi bạn muốn agy chạy tác vụ ở chế độ nền, không cần giám sát.
- ✓Khi bạn cần kiểm soát các lệnh mà agy có thể thực thi, như truy cập file hoặc mạng.
- ✓Khi bạn muốn thiết lập môi trường lập trình cặp an toàn với agy.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/skills/agy-auto/SKILL.mdSao 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
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Làm thế nào để thiết lập agy-auto để chạy các tác vụ không cần giám sát một cách an toàn?”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ kiểm tra mọi lệnh mà agy cố gắng chạy. Đầu tiên, nó chặn các lệnh nguy hiểm đã biết. Sau đó, nó cho phép các lệnh đơn giản, an toàn. Nếu không chắc chắn, nó dùng một mô hình AI để quyết định hoặc yêu cầu bạn phê duyệt bằng một mã đặc biệt.
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.
agy-auto — Antigravity Auto-Permission & Security Gate
Overview
agy-auto is a PreToolUse hook and security harness for Google Antigravity CLI (agy) that supports a reviewed unattended-execution policy without relying on --dangerously-skip-permissions. It passes every pending tool call through a multi-layered policy gate: deterministic hard-deny rules, deterministic fast-allow for workspace-scoped and read-only operations, an LLM classifier fallback (Gemini Flash Lite or local llama.cpp), and single-use scoped token approvals with Zero Ambient Authority.
When to Use This Skill
- Use when running Antigravity CLI (
agy) unattended or in background agent loops and you want automated tool permissions without exposing system files or credentials. - Use when you need granular, auditable controls over shell commands, file modifications, and network egress during
agyworkflows. - Use when setting up a secure pair-programming environment with Antigravity that reduces tool-call exposure within a verified workspace boundary.
How It Works
Step 1: Review, Pin, and Install agy-auto
[!IMPORTANT] Because
agy-autoinstalls as an active PreToolUse hook on the permission evaluation path, never clone a mutable branch directly into your live plugin directory. Always clone to a temporary staging folder, pin an immutable release tag or commit SHA, and inspect the codebase before making the hook executable.
Option A: Native Antigravity Plugin (Recommended)
# 1. Clone into a temporary review directory and checkout an immutable release tag
git clone https://github.com/onkarbadve/agy-auto.git /tmp/agy-auto-review
cd /tmp/agy-auto-review
git checkout <verified-full-commit-sha>
# 2. Inspect hook.sh and engine/ files before deployment
less hook.sh
python3 -m unittest -v tests/test_engine.py
# 3. Once reviewed and verified, copy to the Antigravity plugin directory and set permissions
# Host activation requires explicit user approval, an existing-config backup,
# and a reviewed non-overwriting installation into the confirmed host path.
Only if the exact CLI/hook combination has been verified to fail closed on missing, failed and tampered hooks, and the user explicitly approves this host permission change, configure toolPermission: "always-proceed" in ~/.gemini/antigravity-cli/settings.json so hooks can gate tool calls:
{
"toolPermission": "always-proceed"
}
Option B: Global Hook via Installer
# 1. Clone to an isolated location and pin release
git clone https://github.com/onkarbadve/agy-auto.git ~/.local/share/agy-auto
cd ~/.local/share/agy-auto
git checkout <verified-full-commit-sha>
# 2. Review and run the installer
chmod +x hook.sh
./install.sh # registers hook in hooks.json, sets always-proceed, runs smoke tests
Step 2: Policy Evaluation Layers
agy-auto evaluates each tool invocation through sequential layers (first match wins):
- Hard Deny: Immediately blocks recursive deletes outside workspace, credential reads (
~/.ssh,.env, cloud tokens), git history rewrites (push --force,rebase), package publishing, system file writes (/etc, shell rc), and gate tampering. - Fast Allow: Immediately permits parsed read-only commands (
cat,grep,git status) and workspace-confined writes without invoking an LLM. - Classifier: Ambiguous or grey-area commands fall through to an LLM classifier (a configured currently available provider model (verify pricing and private-context transmission), or a local
llama.cpp/ Ollama endpoint) that reviews the pending call against conversation context and fail-closes on timeout. - Scoped Action Approval: If a command is denied or needs human judgment, the engine issues a single-use 6-character action token bound strictly to
(tool, normalized_cmd, cwd). You approve it by replying> agy-approve <token>in chat. Conversational phrases like "yes" or "proceed" are ignored to prevent ambient authority leakage.
Before activation, test allowed and denied operations in disposable fixtures, including symlink/path escapes, shell expansions, network requests, missing hook, classifier timeout and token replay. A unit-test pass is not proof all host access is intercepted. Preserve a verified disable/rollback path. No model classifier is merge or policy authority.
Examples
Example 1: Approving a Blocked Command
…
Câu hỏi thường gặp
`--dangerously-skip-permissions` là gì?
Đây là một tùy chọn trong Antigravity CLI để tắt hoàn toàn các kiểm tra bảo mật. agy-auto là lựa chọn an toàn hơn, giữ nguyên các kiểm tra.
Làm sao để phê duyệt một lệnh mà agy-auto đã chặn?
Nếu agy-auto không chắc về một lệnh, nó sẽ yêu cầu một mã phê duyệt (ví dụ: “> agy-approve a1b2c3”). Bạn phải trả lời đúng mã đó trong cuộc trò chuyện để cho phép lệnh cụ thể đó chạy một lần.
Tôi có thể dùng agy-auto ngoại tuyến không?
Có, bạn có thể cấu hình agy-auto dùng mô hình AI cục bộ (như llama.cpp hoặc Ollama) thay vì dịch vụ trực tuyến, bằng cách chỉnh sửa file cấu hình `policy.toml`.
Chi tiết
Mô tả gốc của tác giả
Configure agy-auto PreToolUse security gate to run Antigravity CLI (agy) unattended with layered policy controls instead of --dangerously-skip-permissions.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #6247
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
reverse-engineer-anything
422kGiúp agent của bạn xem bên trong các app và package đã phát hành để giải thích tính năng, so sánh phiên bản hoặc hướng dẫn dựng lại bằng công cụ REA.
1password
394kGiúp agent của bạn cài đặt CLI của 1Password, đăng nhập, và đọc hoặc đưa thông tin bí mật vào mà không in giá trị ra cuộc trò chuyện.
healthcheck
394kGiúp agent của bạn rà soát bảo mật máy tính hoặc máy chủ đang chạy OpenClaw, như SSH, tường lửa, cập nhật và sao lưu, rồi đề xuất cách sửa an toàn.