First off, thank you for considering contributing to SentinelAI! It's people like you that make SentinelAI such a great tool for cybersecurity education.
This project and everyone participating in it is governed by our Code of Conduct. By participating, you are expected to uphold this code.
Before creating bug reports, please check the existing issues to avoid duplicates. When you create a bug report, include as many details as possible:
- Use a clear and descriptive title
- Describe the exact steps to reproduce the problem
- Provide specific examples
- Describe the behavior you observed and what you expected
- Include screenshots if possible
- Include your environment details (OS, Python version, browser)
Enhancement suggestions are tracked as GitHub issues. When creating an enhancement suggestion, include:
- Use a clear and descriptive title
- Provide a detailed description of the suggested enhancement
- Explain why this enhancement would be useful
- List any similar features in other tools
- Fork the repo and create your branch from
main - If you've added code that should be tested, add tests
- Ensure the test suite passes
- Make sure your code follows the existing style
- Write a clear commit message
- Update documentation as needed
- Fork and clone the repository
git clone https://github.com/yourusername/sentinelai.git
cd sentinelai- Create a virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate- Install dependencies
pip install -r requirements.txt- Train the model
cd model
python train.py- Run the application
python app.py- Follow PEP 8
- Use meaningful variable names
- Add docstrings to functions and classes
- Keep functions focused and small
- Comment complex logic
- Use ES6+ features
- Use meaningful variable names
- Add comments for complex logic
- Follow consistent indentation (2 spaces)
- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters
- Reference issues and pull requests after the first line
Example:
Add cognitive manipulation detection
- Implement 8 psychological trigger categories
- Add radar chart visualization
- Update documentation
Fixes #123
sentinelai/
├── app.py # Flask application
├── model/ # ML models and training
├── templates/ # HTML templates
├── static/ # CSS and JavaScript
└── data/ # Training datasets
Before submitting a pull request:
- Test the ML model training
- Test the Flask application
- Test all UI features
- Test on different browsers
- Check for console errors
- Update README.md if you change functionality
- Add docstrings to new functions
- Update comments for modified code
- Add examples for new features
Feel free to open an issue with your question or contact the maintainers directly.
Contributors will be recognized in the README.md file.
Thank you for contributing to SentinelAI! 🛡️