First off, thank you for taking the time to contribute to Stacklok Claude Hooks! Claude Hooks is released under the Apache 2.0 license. If you would like to contribute something or want to hack on the code, this document should help you get started.
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. Please report unacceptable behavior to [email protected].
If you think you have found a security vulnerability in stacklok-claude-hooks please DO NOT disclose it publicly until we've had a chance to fix it. Please don't report security vulnerabilities using GitHub issues; instead, please follow this process
We use GitHub issues to track bugs and enhancements. If you have a general usage question, please ask in the #mcp-servers channel of the Stacklok Discord server.
If you are reporting a bug, please help to speed up problem diagnosis by providing as much information as possible. Ideally, that would include a small sample project that reproduces the problem.
PRs to resolve existing issues are greatly appreciated and issues labeled as "good first issue" are a great place to start!
- All commits must include a Signed-off-by trailer at the end of each commit message to indicate that the contributor agrees to the Developer Certificate of Origin.
- Create an issue outlining the fix or feature.
- Fork the stacklok-claude-hooks repository to your own GitHub account and clone it locally.
- Hack on your changes.
- Correctly format your commit messages, see Commit message guidelines below.
- Open a PR by ensuring the title and its description reflect the content of the PR.
- Ensure that CI passes, if it fails, fix the failures.
- Every pull request requires a review from the core stacklok-claude-hooks team before merging.
- Once approved, all of your commits will be squashed into a single commit with your PR title.
We follow the commit formatting recommendations found on Chris Beams' How to Write a Git Commit Message article:
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Use the body to explain what and why vs. how