From ecc552f7fee7931a262d58861e80d7a3d8f129c6 Mon Sep 17 00:00:00 2001 From: gavicoding Date: Sun, 22 Nov 2026 10:20:33 -0300 Subject: [PATCH] docs: add contributing guide, security policy, and issue templates --- .github/ISSUE_TEMPLATE/bug_report.md | 22 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/feature_request.md | 12 ++++++++++++ CONTRIBUTING.md | 23 +++++++++++++++++++++++ SECURITY.md | 12 ++++++++++++ 4 files changed, 69 insertions(+) create mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 CONTRIBUTING.md create mode 100644 SECURITY.md diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md new file mode 100644 index 0000000..0d7a3ec --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -0,0 +1,22 @@ +--- +name: Bug report +about: Report a bug or unexpected behavior in OtimizaPC +title: "[Bug] " +labels: bug +--- + +## Description +A clear description of what went wrong. + +## Environment +- Windows version (e.g., Windows 11 24H2): +- Running as Administrator? (Yes / No): +- OtimizaPC version / commit: + +## Steps to Reproduce +1. Open tab '...' +2. Click '...' +3. Observe error + +## Expected Behavior +What you expected to happen. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md new file mode 100644 index 0000000..bdde133 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -0,0 +1,12 @@ +--- +name: Feature request +about: Suggest a safe optimization, cleanup category, or UX improvement +title: "[Feature] " +labels: enhancement +--- + +## Problem or Use Case +What problem or bottleneck would this improvement solve? + +## Proposed Solution +Describe how the feature should work while keeping explicit user confirmation before modifying files, registry keys, or services. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..9f96419 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,23 @@ +# Contributing to OtimizaPC + +Thank you for contributing to **OtimizaPC**! + +## Development Setup + +- **OS:** Windows 10 / 11 +- **SDK:** [.NET 8 SDK](https://dotnet.microsoft.com/download/dotnet/8.0) +- **Architecture:** WPF + MVVM (`Views` ↔ `ViewModels` ↔ `Services`) using `CommunityToolkit.Mvvm` + +```bash +git clone https://github.com/gavicoding/OtimizaPC.git +cd OtimizaPC +dotnet restore OtimizaPC.sln +dotnet build OtimizaPC.sln -c Release +``` + +## Guidelines + +1. Branch from `main` using descriptive branch names (`feat/...`, `fix/...`, `docs/...`). +2. **Safety first:** Never implement silent or unconfirmed deletions. Every cleanup, duplicate removal, or residue action must present exact paths/byte totals for explicit user approval. +3. Preserve standard Windows non-admin fallback behavior and surface elevation prompts cleanly via `ElevationHelper`. +4. Ensure `dotnet build OtimizaPC.sln -c Release` passes with zero errors before submitting a Pull Request. diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..8eec05d --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,12 @@ +# Security Policy + +## Reporting a Vulnerability + +OtimizaPC performs privileged file cleanup, service inspection, and Windows Registry tweaks when elevated. If you discover a security flaw (such as unsafe elevation, symlink/junction traversal during cleanup, or unquoted service path issues), please **do not** disclose it in public issues. + +Report privately via **GitHub Security Advisories** or email `gavicoding@gmail.com` with: + +- Affected service or module (e.g. `CleanupService`, `ResidueService`, `ElevationHelper`) +- Reproduction steps and impact assessment + +Reports are triaged promptly so fixes can be released safely.