feat(hook): filler_word_check.sh PostToolUse hook 신설 + settings.json 등록

PD 직접 지시 (2026-05-07): "영역 영역 무한 반복 재발 방지 보완책 반영"

신설:
- scripts/filler_word_check.sh: PostToolUse Edit/Write/MultiEdit hook
  - new_string·content에서 "영역" 빈도 grep
  - 8회 이상 시 stderr 경고 (한도 7회)
  - feedback_pm_filler_word_overuse.md 정합

등록:
- .claude/settings.json PostToolUse Edit/Write/MultiEdit hooks 영역에 추가

영구 효과:
- 본 PM Edit/Write 시점에 자동 빈도 감지 + 자기검증 환기
This commit is contained in:
깃 관리자 2026-05-07 17:04:44 +09:00
parent a65eb0bcc6
commit 5ac7ddd435
2 changed files with 38 additions and 0 deletions

View File

@ -193,6 +193,10 @@
{ {
"type": "command", "type": "command",
"command": "bash scripts/c35_obligation_check.sh 2>/dev/null || true" "command": "bash scripts/c35_obligation_check.sh 2>/dev/null || true"
},
{
"type": "command",
"command": "bash scripts/filler_word_check.sh 2>/dev/null || true"
} }
] ]
}, },

View File

@ -0,0 +1,34 @@
#!/bin/bash
# filler_word_check.sh — BurningTimes feedback_pm_filler_word_overuse hook
# 2026-05-07 PD 직접 지시 신설
# PostToolUse (Edit/Write/MultiEdit) — "영역" filler 어휘 빈도 차단·환기
# 토큰 비용: 0
INPUT=$(cat 2>/dev/null)
BODY=$(echo "$INPUT" | grep -oE '"(new_string|content)"[[:space:]]*:[[:space:]]*"[^"]*"' | head -3)
[ -z "$BODY" ] && exit 0
# 한국어 텍스트(주석·문서·대화로그)에서만 검사. 코드 변수명에 "Area"는 무관.
YEONGYEOK_COUNT=$(echo "$BODY" | grep -oE '영역' | wc -l | tr -d ' ')
if [ "$YEONGYEOK_COUNT" -ge 8 ]; then
cat >&2 <<EOF
🚨 [BurningTimes filler-word-check] "영역" 어휘 ${YEONGYEOK_COUNT}회 감지 (한도 7회)
원인:
- 명사 뒤·문장 끝에 "영역" 자동 부착 = filler 어휘 과다
- 정확 명사 회피 + 모호한 표현 영구화
의무:
- 응답 발신 직전 자기 응답 재독
- 정확 명사 치환 (충돌 처리·발판·작업·단계 등)
- feedback_pm_filler_word_overuse.md 자기검증 5항 적용
근거:
- PD 2026-05-07 직접 지시 "앞으로 내게 '영역 영역'을 무한하게 늘리는 짓을 하지 마"
- feedback constitutional tier
EOF
fi
exit 0