Thank you for your interest in contributing! This guide covers everything you need to get started.
- Fork & clone the repo:
git clone https://github.com/<your-fork>/claude-code-hooks.git
cd claude-code-hooks
npm install-
The repo is an npm workspaces monorepo. Packages live under
packages/. -
Use Node.js 18+.
# Install all workspace dependencies
npm install
# Run a command in a specific package
npm -w @claude-code-hooks/sound <command>
npm -w @claude-code-hooks/security <command>
npm -w @claude-code-hooks/secrets <command>
# Run tests across all packages
npm test
# Run linting across all packages
npm run lint- Create a feature branch from
main:git checkout -b feat/my-feature
- Keep commits small and focused. One logical change per commit.
- Follow existing code style β the codebase is plain JS (ES modules), no transpiler needed.
- Test your changes locally before pushing.
- Open a PR against
main. - Describe what changed and why.
- Link related issues if applicable.
- Keep PRs small. Prefer multiple small PRs over one massive one.
Open a GitHub issue with:
- Steps to reproduce
- Expected vs actual behavior
- OS + Node.js version
Please follow our Code of Conduct.
By contributing, you agree that your contributions will be licensed under the MIT License.
claude-code-hooksμ κΈ°μ¬ν΄ μ£Όμ μ κ°μ¬ν©λλ€! μλλ μμνλ λ° νμν λͺ¨λ λ΄μ©μ λλ€.
- μ μ₯μλ₯Ό ν¬ν¬ & ν΄λ‘ ν©λλ€:
git clone https://github.com/<your-fork>/claude-code-hooks.git
cd claude-code-hooks
npm install-
μ΄ μ μ₯μλ npm workspaces λͺ¨λ Έλ ν¬μ λλ€. ν¨ν€μ§λ
packages/μλμ μμ΅λλ€. -
Node.js 18 μ΄μμ μ¬μ©νμΈμ.
# μ 체 μν¬μ€νμ΄μ€ μμ‘΄μ± μ€μΉ
npm install
# νΉμ ν¨ν€μ§μμ λͺ
λ Ή μ€ν
npm -w @claude-code-hooks/sound <command>
npm -w @claude-code-hooks/security <command>
npm -w @claude-code-hooks/secrets <command>
# μ 체 ν¨ν€μ§ ν
μ€νΈ
npm testmainμμ κΈ°λ₯ λΈλμΉλ₯Ό μμ±ν©λλ€.- 컀λ°μ μκ³ μ§μ€μ μΌλ‘ μ μ§ν©λλ€. νλμ λ Όλ¦¬μ λ³κ²½μ νλμ 컀λ°.
- κΈ°μ‘΄ μ½λ μ€νμΌμ λ°λ¦ λλ€ β μ½λλ² μ΄μ€λ μμ JS (ES λͺ¨λ)μ΄λ©° νΈλμ€νμΌλ¬κ° νμ μμ΅λλ€.
- νΈμνκΈ° μ μ λ‘컬μμ λ³κ²½ μ¬νμ ν μ€νΈν©λλ€.
mainλΈλμΉμ λν΄ PRμ μ½λλ€.- 무μμ΄ λ³κ²½λμκ³ μ λ³κ²½νλμ§ μ€λͺ ν©λλ€.
- κ΄λ ¨ μ΄μκ° μμΌλ©΄ λ§ν¬ν©λλ€.
- PRμ μκ² μ μ§ν©λλ€. νλμ κ±°λν PRλ³΄λ€ μ¬λ¬ κ°μ μμ PRμ μ νΈν©λλ€.
GitHub μ΄μλ₯Ό μ΄κ³ λ€μμ ν¬ν¨νμΈμ:
- μ¬ν λ¨κ³
- μμ λμ vs μ€μ λμ
- OS + Node.js λ²μ
νλ κ°λ Ήμ λ°λΌμ£ΌμΈμ.
κΈ°μ¬ν¨μΌλ‘μ¨, κ·νμ κΈ°μ¬κ° MIT λΌμ΄μ μ€ νμ λΌμ΄μ μ€λ¨μ λμν©λλ€.