Thank you for your interest in contributing! π¦π‘οΈ
Found a bug or false positive? Open an issue with:
- Description of the problem
- Steps to reproduce
- Expected vs actual behavior
- Skill code that triggered the issue (if applicable)
Have an idea? Open an issue with:
- Clear description of the feature
- Use case / why it's valuable
- Example of how it would work
Add new Semgrep patterns:
- Edit
scanner/rules/semgrep-rules.yaml - Add your pattern with clear documentation
- Test it on demo skills
- Submit a PR
Example:
- id: my-new-check
pattern: risky_function($ARG)
message: "Clear explanation of the risk"
severity: WARNING
languages: [javascript]Help improve accuracy:
- Add a test skill to
demo-skills/ - Run the scanner on it
- Verify the results are accurate
- Submit a PR with the test case
- Fork the repository
- Create a feature branch:
git checkout -b feature/my-feature
- Make your changes
- Test thoroughly
- Commit with clear messages:
git commit -m "Add: description of feature" - Push and open a Pull Request
Improvements to docs are always welcome:
- Fix typos
- Add examples
- Clarify instructions
- Translate to other languages
# Clone your fork
git clone https://github.com/yourusername/sclawhub.git
cd sclawhub
# Install dependencies
cd scanner
npm install
# Set up environment
cp .env.example .env
# Add your ANTHROPIC_API_KEY
# Test the scanner
node scan.js ../demo-skills/safe-skill.js "Test"- Use clear, descriptive variable names
- Comment complex logic
- Follow existing code patterns
- Keep functions focused and small
Before submitting a PR:
- Test your changes on multiple skills
- Verify no false positives introduced
- Check that existing tests still pass
- Add new tests if applicable
- Update README.md if needed
- Update CHANGELOG.md with your changes
- Ensure all tests pass
- Request review from maintainers
- Address any feedback
- Merge once approved!
Do not open public issues for security vulnerabilities.
Email security concerns to: kondormit@gmail.com
- Open a discussion in Issues
- Tag @kondormit on Twitter
- Email: kondormit@gmail.com
Be respectful, inclusive, and professional. We're all here to build something useful together.
Thank you for contributing to OpenClaw security! π¦π‘οΈ