Thanks for your interest in contributing to AgentGuard!
- Fork the repo
- Create a branch:
git checkout -b feat/your-feature - Commit with clear messages:
feat: add X,fix: resolve Y - Open a Pull Request
- Tests: Add tests for new rules and features
- Docs: Update README and rule documentation if behavior changes
- Scope: One feature/fix per PR
- Style: Follow existing code conventions (ruff for linting)
- Create
agentguard/rules/your_rule.py - Inherit from
Rulebase class - Set
rule_id,rule_name,severity,owasp - Implement
scan_line()orscan_content() - Return
Findingobjects - Register in
agentguard/rules/__init__.py - Add tests in
tests/test_scanner.py
Include:
- OS and version
- Steps to reproduce
- Expected vs actual behavior
- Logs (redact sensitive info)
Be respectful. Be constructive. No harassment.
Built by Dockfix Labs.