diff --git a/.claude/tools/user-prompt-submit.sh b/.claude/tools/user-prompt-submit.sh index 12f1593..a763eb7 100755 --- a/.claude/tools/user-prompt-submit.sh +++ b/.claude/tools/user-prompt-submit.sh @@ -49,6 +49,16 @@ if [ -d "${COMMANDS_DIR}" ]; then fi fi +# 排除 .claude/skills/ 中的技能(/arno-prj-commit 等) +SKILLS_DIR="${PROJECT_ROOT}/.claude/skills" +if [ -d "${SKILLS_DIR}" ]; then + # 提取技能名(去掉参数部分),如 "/arno-prj-commit xxx" -> "arno-prj-commit" + SKILL_NAME=$(echo "${USER_PROMPT}" | sed 's|^/\([^ ]*\).*$|\1|') + if [ -n "${SKILL_NAME}" ] && [ -f "${SKILLS_DIR}/${SKILL_NAME}/SKILL.md" ]; then + exit 0 + fi +fi + # 获取当前时间戳 TIMESTAMP=$(date '+%Y-%m-%d %H:%M:%S')