Review code changes (staged diff, branch range, or specific files) for correctness, security, style consistency, and rule compliance. Use before large commits or before deploying to prod. Returns issue list + severity.
Delegate cheap bulk coding tasks (refactor, boilerplate, batch edits across many files) to Aider + DeepSeek inside an isolated worktree. Use when task is mechanical and large-scale, or when offloading from Opus to save tokens. Returns worktree path + diff summary; never auto-commits.
Delegate large-context READ-ONLY tasks (cross-file audit, repo summarization, "find all places that X", architecture review) to Gemini CLI. Leverages Gemini's large context window and free tier. Not for coding — use delegate-codex or delegate-sonnet for edit/refactor work.
Deep scan for secrets/PII/internal patterns in a staged diff or commit range. Use to audit before pushing to a remote, after a merge, or when suspecting a leak. Returns a table of findings + remediation steps.
Audit file CLAUDE.md — phát hiện nội dung trùng lặp, link chết (dead link), và bảo vệ BLOCK harness rules do install.sh quản lý (giữa marker BEGIN/END HARNESS RULES). Nếu phát hiện trùng lặp thì edit gộp lại, LUÔN ưu tiên giữ nội dung trong BLOCK harness. Dùng khi user gõ /audit-claude-md hoặc yêu cầu "kiểm tra…
Audit toàn bộ static context load mỗi session — global rules (/.claude/rules/), CLAUDE.md project, project rules trong .claude/rules (phân loại ALWAYS vs LAZY, chấm gate, đề xuất paths:), và MEMORY.md index (auto-memory) — đọc nội dung thật, phát hiện trùng lặp/derivable/phình, rồi sau khi user xác nhận thì áp fix…
Phát hiện package ecosystem của project và chạy audit read-only vulnerability + outdated-dependency, rồi tóm tắt kết quả. Dùng khi user nói "audit dependencies", "check for vulnerable packages", "outdated deps", hoặc chạy /audit-dependency.
Audit + auto-fix auto-memory system — quét mọi memory dir (global tới project hiện tại, từ /.claude/projects/ /memory), phát hiện broken link/orphan/naming lệch/nội dung nhét thẳng MEMORY.md/thừa-trùng/stale/not-memory-worthy, tự sửa case chắc chắn (cấu trúc, không mất nội dung), liệt kê + hỏi confirm trước khi xoá.…
Audit local branch đã merge và worktree stale, rồi chỉ xoá những gì user xác nhận. Dùng khi user nói "clean up merged branches", "delete stale branches", "prune worktrees", hoặc chạy /git-cleanup-branch.
Soạn PR title và body từ commit và diff so với base branch, rồi tuỳ chọn tạo/update bằng gh. Dùng khi user nói "write PR description", "generate pull request body", hoặc chạy /git-commit-describe.
Stage và commit thay đổi vào local git only, không push. Thêm --conventional để soạn message theo Conventional Commit (type prefix). Dùng khi user nói "commit", "commit local", "commit this", "gen commit message", "write conventional commit", hoặc chạy /commit, /commit --conventional.
Squash toàn bộ git history thành 1 commit duy nhất để cắt đứt vĩnh viễn secret bị lộ khỏi history. Destructive và irreversible sau khi force-push — mọi collaborator phải re-clone. Chỉ dùng khi user nói rõ "force snapshot", "squash history", "xoá lịch sử git", "reset history vì leak", hoặc chạy /git-force-snapshot.
Reclaim disk on the prod host — prune Docker build cache + dangling images only, then verify the target service and its neighbors. Safe, no downtime, no data loss. Dùng khi user nói "dọn disk prod", "cleanup production", hoặc chạy /production-cleanup.
Safe in-place prod deploy for a multi-service host — pull + rebuild + up the TARGET service only, snapshot before / verify all services after, auto-rollback on healthcheck fail. Dùng khi user nói "deploy prod", "đẩy lên production", hoặc chạy /production-deploy.
Recover a WEDGED prod host (TCP open but HTTP=000 / SSH banner-timeout — usually disk-full ENOSPC) via out-of-band provider reboot, then cleanup + verify. Dùng khi user nói "prod bị treo", "host wedged", hoặc chạy /production-reboot.
Đọc ledger orchestration dở dang (.claude/state/orchestrator-ledger.md), tái tạo bảng phân rã, chỉ re-dispatch subtask failed/pending. Dùng khi user nói "resume orchestration", "tiếp tục task dở dang", hoặc chạy /resume-orchestration.
Chạy vòng lặp code → sửa → viết testcase → test cho task được giao tới khi thật sự xong (test xanh, đạt acceptance criteria). Dùng khi user nói "làm tới khi xong", "loop code test fix cho đến khi hoàn thiện", "cứ lặp sửa cho tới khi pass", hoặc chạy /task-loop-feature . Không dùng cho sửa một lần — chỉ cho task cần…
Runs before the agent uses a tool for Edit, Write, MultiEdit, NotebookEdit, Task and Bash tool calls, executing pre-edit-orchestrator-gate.sh, pre-edit-content-scan.sh, pre-task-dispatch-gate.sh and pre-bash-gate.sh (4 commands). From acegalaxy-co/ace_commons-ccswitch-cli.
Runs after a tool call finishes for Bash, Edit, Write and MultiEdit tool calls, executing post-bash-stuck-detector.sh and post-edit-advisor.sh (2 commands). From acegalaxy-co/ace_commons-ccswitch-cli.