Files
recordingtest/historyhooks/guard-history-fields.sh
minsung 5ac612f373 Add history tracking hooks and project structure
- Add docs/history/ directory for work history files
- Add PROGRESS.md for project status tracking
- Add .claude/settings.json with Gitea MCP permissions
- Gitea issue #1: 히스토리 및 AI 사용량 추적 시스템 설정

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-07 11:47:14 +09:00

9 lines
331 B
Bash

#!/usr/bin/env bash
# PostToolUse(Write) 훅: 히스토리 파일 필수 필드 검증
# 대상: docs/*/history/*.md
# 필수 항목(소요 시간, Context 사용량) 누락 시 exit 2로 Write 차단
set -euo pipefail
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cat | python3 "$SCRIPT_DIR/guard-history-fields.py"