platforms/hermes/skills/software-development/all-my-ai-needs-precommit-gate/SKILL.md
在 all-my-ai-needs 仓库执行“可否提交”前置门禁:完整性/隐私扫描/同步一致性/技能验证,并输出可提交结论。
npx skillsauth add codingsamss/ai-dotfiles all-my-ai-needs-precommit-gateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
当用户在 all-my-ai-needs 仓库询问“是否可以提交/能不能 commit/提交前检查”时使用。
git add/commit。cd /path/to/all-my-ai-needs
git rev-parse --show-toplevel
git branch --show-current
git status --short
git status --ignored --short
git diff --check
git diff --cached --check
git grep -nEI "AKIA[0-9A-Z]{16}|ASIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{20,}|xox[baprs]-[A-Za-z0-9-]{10,}|sk-[A-Za-z0-9]{20,}|PLAYWRIGHT_MCP_EXTENSION_TOKEN\\s*=\\s*\\\"[^<\\\"]+\\\"|x-api-key\\s*[:=]\\s*\\\"[^<\\\"]+\\\"" || true
git grep -nE "playwright/scripts/playwright_cli\\.sh|playwright/references/cli\\.md|playwright/references/workflows\\.md|\\$PWCLI\\b|@playwright/cli\\b" || true
git ls-files -o --exclude-standard -z | xargs -0 -r rg -nEI "AKIA[0-9A-Z]{16}|ASIA[0-9A-Z]{16}|ghp_[A-Za-z0-9]{36}|github_pat_[A-Za-z0-9_]{20,}|xox[baprs]-[A-Za-z0-9-]{10,}|sk-[A-Za-z0-9]{20,}|PLAYWRIGHT_MCP_EXTENSION_TOKEN\\s*=\\s*\\\"[^<\\\"]+\\\"|x-api-key\\s*[:=]\\s*\\\"[^<\\\"]+\\\"" || true
TMP_INDEX="$(mktemp)"
GIT_INDEX_FILE="$TMP_INDEX" git add -A
GIT_INDEX_FILE="$TMP_INDEX" git diff --cached --check
rm -f "$TMP_INDEX"
说明:很多 whitespace 问题(尤其是新文件)在未暂存阶段不一定暴露;用临时 index 复查可避免改动用户当前暂存区。
git diff --stat
git diff --cached --stat
staged=0,明确提示“当前可提交但尚未暂存,直接 commit 不会成功”。bash platforms/hermes/scripts/managed_skills.sh status
bash platforms/hermes/scripts/managed_skills.sh likely-custom
bash platforms/hermes/scripts/managed_skills.sh official-review
bash platforms/hermes/scripts/managed_skills.sh unmanaged-repo
likely-custom 非空:优先作为回流候选(通常阻塞“可提交”)。official-review 非空:进入人工审查清单(通常非阻塞)。unmanaged-repo 非空:本地磁盘缺失的删除候选,必须人工确认。Repo Skills Not In Local Source (Present On Disk / Likely builtin-hub):通常非阻塞,不作为删除依据。SKILL.md(必需);runtime.yaml / README.md 按平台规范检查(存在则校验,不强制每个 skill 都有)。scripts/validate-svg.sh)。rsvg-convert),可记为非阻塞警告,但需在结论里注明。git status --short
git add ... + commit message 规范(Conventional Commits + [更新摘要])git grep 只扫已跟踪文件,未跟踪文件必须额外扫描,避免漏报。git add -A 改写用户暂存区;优先使用临时 index 进行 staged 视角检查。managed_skills.sh 的 “Repo Skills Not In Local Source (Present On Disk / Likely builtin-hub)” 不是删除候选,不能据此删仓库 skill。runtime.yaml 应保留在仓库,不应要求同步到运行目录。~/.hermes/cron 常有运行态文件(如 .tick.lock、output/),通常不应作为阻塞。git push;仅在用户明确要求时执行。git status --short 并确认改动范围与结论一致。development
Safely search MX users or groups and send Midea MX / 美信 IM messages from Codex. Use when the user asks to notify someone, send a message to a person or group, use a configured group alias, @ users, @ all, or send MX file/image messages. Read lookups need no extra authorization; every live send needs explicit user authorization for that exact target and message.
development
Use when Sam wants to collect, save, translate, or reformat official source articles/blog posts/research/product announcements into the Obsidian vault, especially requests mentioning 官方文章, 官网排版, 原始排版, 美观, 收录, 1:1, 原文1:1, or 英文中文对照1:1. Preserve the source site's information architecture and visual hierarchy rather than forcing a generic Markdown template.
development
Query Midea MX / 美信 local message cache through the MX local HTTP query service from Codex. Use when the user asks to read MX sessions, search chat history, search messages globally or inside a group/session, list recent messages, or page message history. This is read-only and does not require send authorization. Never fall back to reading SQLite or app cache files directly.
tools
MX channel output rules. Always active in MX conversations.