acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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…
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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…
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
Dịch nội dung file .md sang tiếng Việt tại path do user chỉ định. Dùng khi user gõ /audit-vietnamese hoặc yêu cầu "dịch file .md này sang tiếng Việt".
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
Dọn dẹp project an toàn theo dry-run, phân loại rác/dead code/worktree/branch, yêu cầu xác nhận trước thao tác phá huỷ.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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á.…
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
Chạy test, gitleaks, sensitive-content scan; chỉ push nếu cả 3 pass.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
Đọ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.
acegalaxy-co/ace_commons-ccswitch-cli
Command Claude Code
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…