Maintainer
This project is maintained exclusively by @thiagofinch. All official updates and releases are published by the maintainer only.Branch Workflow
IMPORTANT: Push direto em
main = PROIBIDO. Always create a branch and open a Pull Request.Branch Naming Convention
Use the following prefixes for your branch names:| Prefix | Use Case |
|---|---|
feat/ | New features |
fix/ | Bug fixes |
docs/ | Documentation changes |
refactor/ | Code refactoring |
test/ | Adding or updating tests |
{prefix}{short-description}
Examples
feat/add-pipeline-v2fix/batch-log-formatdocs/update-readmerefactor/simplify-session-logic
Commit Conventions
Mega Brain uses Conventional Commits for all commit messages:Commit Message Structure
feat: New featurefix: Bug fixdocs: Documentation changesrefactor: Code refactoringtest: Test additions or updateschore: Maintenance tasksperf: Performance improvementsci: CI/CD changes
Pull Requests
PR Workflow
- Create a branch from
mainfollowing the naming convention above - Make your changes with conventional commits
- Open a PR using the provided template
- Get approval - All PRs require approval from @thiagofinch before merge
- Address checklist - Ensure all checklist items in the PR template are addressed
- Link issues - Use
Fixes #XXin the PR body to auto-close related issues
Before Opening PR
- Branch follows naming convention
- Commits follow conventional format
- All tests pass locally
- Documentation updated if needed
In PR Description
- Clear description of changes
- Link to related issues
- Screenshots/examples if UI changes
- Checklist items addressed
What NOT to Do
Security Guidelines
Security Best Practices:
- Never hardcode credentials in code
- Use
.envfor all secrets (already in.gitignore) - If a key is accidentally exposed, rotate it immediately
- Review code for sensitive information before committing
Secret Management
All sensitive configuration belongs in.env:
- API keys or tokens
- Password or credentials
.envfiles- Private configuration data
Code Style
Naming Conventions
| Type | Convention | Example |
|---|---|---|
| Folders | lowercase | inbox, system |
| Config files | SCREAMING-CASE | STATE.json, MEMORY.md |
| Python scripts | snake_case | session_start.py |
| Skills | kebab-case | knowledge-extraction/ |
Python Guidelines
- Use
pathlib.Pathfor cross-platform file paths - Python 3.10+ required
- Stdlib + PyYAML only for hooks
- Follow PEP 8 style guide
File Structure
Testing
Before submitting your PR:Questions?
Open an issue or reach out to @thiagofinch on the project repository.Need Help?
If you’re unsure about any contribution guidelines or have questions about implementation details, don’t hesitate to ask by opening an issue or contacting the maintainer.
