Skip to content

[Quest] Hooks 마스터리 #1

Description

@ernestolee13

Claude Code 훅으로 자동화 파이프라인 구축하는 퀘스트입니다.

🪝 Hooks 마스터리

Claude Code의 라이프사이클 훅(PreToolUse, PostToolUse, UserPromptSubmit, Stop)을 단계별로 배웁니다. 위험 명령 차단부터 자동 git 스테이징, 컨텍스트 주입, 완료 알림까지 프로 수준의 자동화 환경을 구축합니다.

난이도: intermediate | 단계: 5단계 | 보너스 XP: 60

학습 단계

  1. 훅 환경 설정 — .claude/settings.json에 훅 설정 구조 만들기
  2. 위험 명령 차단 (PreToolUse) — rm -rf 등 위험 명령 자동 차단 스크립트
  3. 자동 Git 스테이징 (PostToolUse) — 파일 수정 시 자동 git add
  4. 컨텍스트 자동 주입 (UserPromptSubmit) — git status, 최근 에러 자동 포함
  5. 훅 통합 검증 — 전체 훅 설정 테스트

Gist: https://gist.github.com/ernestolee13/898df7e7d245b8eecd2c9dedb86ffb7d


Quest Coder에서 공유됨

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    quest-share커뮤니티 퀘스트 공유

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions