Thank you for your interest in contributing to MacOptimizer Pro! We welcome bug reports, feature suggestions, architecture improvements, and code contributions from the macOS open-source community.
All contributors and maintainers are expected to adhere to standard respectful, inclusive, and professional communication standards.
- macOS 14.0 (Sonoma) or macOS 15.0+ (Sequoia)
- Xcode 15.0+ / Xcode 16.0+ (with Command Line Tools installed:
xcode-select --install) - Swift 5.9+
- Git
# Clone the repository
git clone https://github.com/osmancagrigenc/MacOsOptimizer.git
cd MacOsOptimizer
# Run unit tests
swift test
# Build debug binary
swift build
# Build standalone .app bundle
./Scripts/build_app.sh- Zero-Harm First: Every filesystem or process operation MUST be validated through
SafetyPolicyEngine. Never write direct file removal code without policy checks. - Swift Concurrency: Use native Swift
async/await,TaskGroup, and actors. Avoid legacy dispatch queues or callback pyramids. - Darwin & Native APIs Over Shell Commands: Prefer Darwin Mach Kernel C APIs (
host_statistics64,sysctlbyname),FileManager, andProcessInfoover executing/bin/shor/bin/ps. - Clean UI & Liquid Glass: Adhere to SwiftUI best practices with fluid responsive sizing (
ViewThatFits,LazyVGridadaptive columns,maxWidth: .infinity). - No Secrets in Code: Never commit API keys, personal paths, or tokens. API keys must use
KeychainManager.
- All new features and policy changes must include unit tests in
Tests/MacOptimizerTests/. - Verify tests before opening a pull request:
swift test --enable-code-coverage - All property-based safety tests must pass with 0 failures.
- Fork the repository and create a descriptive branch:
git checkout -b feature/awesome-telemetry-chart
- Commit your changes following standard Conventional Commits (
feat:,fix:,refactor:,docs:,test:). - Ensure
swift testpasses cleanly. - Open a Pull Request against the
mainbranch with a clear summary of changes, motivation, and test coverage evidence.