Welcome! If you have never contributed to open source or submitted a pull request on GitHub before, you are in the right place.
You do not need to be an expert to contribute to PACT. Whether you are fixing a typo in documentation, improving button styling, writing a test, or fixing a bug, your help is warmly welcomed.
This guide walks you through the entire process step by step, from creating your personal copy of the repository to opening your first Pull Request.
🚀 Live Production App: Play with the live app before contributing at https://pact-os.vercel.app 🎃 Hacktoberfest 2026: All merged PRs for open
good first issue&hacktoberfestissues automatically count toward Hacktoberfest!
- Open Source Concepts in Plain English
- Before You Start
- Choose Your First Contribution
- Step 1: Fork the Repository
- Step 2: Install Required Software
- Step 3: Clone Your Fork to Your Computer
- Step 4: Install Dependencies
- Step 5: Set Up Environment Variables
- Step 6: Run PACT Locally
- Step 7: Quick Project Orientation
- Step 8: Create a Topic Branch
- Step 9: Make Your Changes
- Step 10: Test and Validate Your Changes
- Step 11: Commit Your Changes
- Step 12: Push to Your Fork
- Step 13: Open Your Pull Request
- Step 14: What Happens After You Submit?
- Common Beginner Mistakes to Avoid
- First Contribution Checklist
If you are new to GitHub and Git, here are the core terms you will encounter:
- Repository ("Repo"): The project folder on GitHub containing all code, documentation, and history.
- Issue: A tracked task, feature idea, documentation request, or bug report.
- Fork: Your own personal copy of the PACT repository on your GitHub account where you can freely make changes.
- Clone: Downloading a copy of your forked repository from GitHub onto your local computer.
- Branch: An isolated workspace in Git where you make specific changes without affecting the main codebase.
- Commit: A saved snapshot or checkpoint of your changes with a short descriptive message.
- Push: Uploading your saved local commits from your computer up to your GitHub fork.
- Pull Request (PR): A proposal sent to the PACT maintainers asking them to review and merge your changes into the main repository.
- Maintainer: The project developers who review contributions, answer questions, and merge pull requests.
- Check Existing Issues: Visit the GitHub Issues tab. Filter issues with the
good first issueanddifficulty:beginnerlabels (or browse our Curated Issues Master Catalog and Label Taxonomy). - Avoid Duplicate Work: Check if someone is already commenting on or assigned to an issue before starting.
- Claim an Issue: Leave a short comment on the issue (e.g., "I'd like to work on this issue. Please assign it to me."). A maintainer will confirm your assignment.
- Ask Questions: If any requirement is unclear, ask directly inside the issue. It is always better to clarify early than to rewrite code later.
You do not have to write hundreds of lines of complex code or understand the entire architecture. PACT embraces a micro-contribution model: tasks are deliberately scoped to one single file and one specific, high-leverage improvement (typically 5–30 minutes of focused implementation).
Look for these beginner-friendly labels on GitHub:
- 📖 Documentation (
type:docs): Fix typos, clarify setup instructions, or improve code comments. - 🎨 UI Polish (
type:ui): Refine button styling, add hover elevations, improve responsive padding. - ♿ Accessibility (
type:a11y): Add missingaria-labeloraria-expandedattributes, improve keyboard focus indicators. - 🐛 Bug Fixes (
type:bug): Prevent empty input submissions, fix string pluralizations. - 🧪 Unit Tests (
type:test): Add single boundary or edge-case test cases to existing test suites. - 🧹 Developer Experience (
type:refactor/type:tooling): Add standard script aliases, clean unused imports.
💡 Every Good First Issue includes the exact target file, step-by-step guidance, acceptance criteria, and local test command so you can succeed on your very first try!
- Open the official PACT repository: https://github.com/TheVicky1/Pact_OS.
- Look at the top-right corner of the page and click the Fork button.
- In the dialog, select your GitHub username and click Create fork.
- GitHub will create a copy under
https://github.com/<your-username>/Pact_OS.
Before running PACT on your computer, ensure you have the following installed:
- Node.js (LTS Version 20.x or 22.x):
- Download from nodejs.org.
- Node.js includes
npm(Node Package Manager).
- Git:
- Download from git-scm.com.
- A Code Editor:
- We recommend Visual Studio Code (VS Code).
Open your terminal (macOS/Linux) or PowerShell / Command Prompt (Windows) and run:
node --version
npm --version
git --versionIf version numbers appear for all three, your environment is ready.
- Open your terminal or PowerShell.
- Clone your personal fork (replace
<your-username>with your actual GitHub username):git clone https://github.com/<your-username>/Pact_OS.git cd Pact_OS
- Connect your local repository to the original PACT repository (called
upstream) so you can stay updated with new changes:git remote add upstream https://github.com/TheVicky1/Pact_OS.git
If you prefer a graphical interface:
- Download and install GitHub Desktop.
- Click File → Clone Repository...
- Select your fork of
Pact_OSand choose a local directory on your computer.
Inside your Pact_OS project directory in the terminal, run:
npm installThis command reads package.json and downloads all necessary libraries (such as Next.js, React, Tailwind CSS, and Lucide icons) into a local node_modules folder.
PACT uses environment variables to configure URLs and keys. We provide a template file called .env.example.
-
Copy
.env.exampleto create your private.env.localfile:macOS / Linux / Git Bash / PowerShell:
cp .env.example .env.local
Windows Command Prompt:
copy .env.example .env.local -
Note for Beginners: The template values in
.env.exampleallow you to run the application UI, explore all views, and run the test suite locally right away without requiring a live Supabase database account.
⚠️ Important:.env.localis listed in.gitignore. Never commit or share your.env.localfile, as it is meant to hold local secrets.
Start the local development server:
npm run devIn your terminal, you will see output similar to:
▲ Next.js 16.3.4
- Local: http://localhost:3000
✓ Ready in 1.5s
Open your web browser and navigate to http://localhost:3000 to view PACT running on your machine!
(To stop the server at any time, press Ctrl + C in your terminal).
Here is a simplified map of the PACT codebase to help you find where to make changes:
Pact_OS/
├── src/
│ ├── app/ # Web pages and routes (e.g., /app/planner, /app/tasks)
│ ├── components/ # Reusable UI elements (buttons, inputs, modal dialogs, cards)
│ ├── features/ # Feature-specific components (dashboard, calendar, habits, focus)
│ ├── lib/ # Business logic engines (accountability, money math, analytics)
│ └── types/ # TypeScript interfaces and data models
├── docs/ # Product and developer documentation
└── tests/ # Automated domain and security test suites
Never make changes directly on the main branch. Always create a new branch for your task:
# 1. Switch to main and pull latest changes from upstream
git checkout main
git pull upstream main
# 2. Create and switch to your new branch
git checkout -b <branch-name>docs/fix-setup-typoui/adjust-card-paddingfix/calendar-event-modaltest/add-money-formatter-tests
- Open the project folder in VS Code (
code .). - Make your edits carefully.
- Keep your changes focused strictly on the issue you are solving. Avoid editing unrelated files or reformatting large sections of code.
- UI Design Reminder: PACT uses a disciplined Obsidian Black Canvas (
#050505), Warm White text (#F5F5F5), and Restrained PACT Gold (#D4AF37). Avoid introducing arbitrary neon colors.
Before submitting your work, run these validation checks locally. All 85 authoritative domain test suites run completely offline using mock harnesses with zero live database connection or network credential requirements:
- Check Code Quality & Formatting:
npm run lint
Keeping code cleanly formatted and linted makes your pull request easy to review and prevents CI failures:
💡 Code Formatting & Linting Guidelines Box
- Run ESLint before committing: Always run
npm run lintto catch unused variables, missing React hook dependencies, and formatting issues early.- Verify TypeScript types: Run
npm run typecheckto ensure all types and imports compile cleanly.- Recommended IDE Extensions (VS Code):
- ESLint (
dbaeumer.vscode-eslint) — highlights lint rules inline as you type.- Prettier - Code formatter (
esbenp.prettier-vscode) — keeps indentation (2 spaces), quotes, and trailing commas consistent across.ts,.tsx,.json, and.mdfiles.- Tailwind CSS IntelliSense (
bradlc.vscode-tailwindcss) — autocompletes and sorts Tailwind utility classes.- Keep diffs minimal: Format only the files you touched for your issue so your pull request diff stays small and focused.
- Check TypeScript Types:
npm run typecheck
- Run the Automated Test Suite (85 Suites):
npm test # (or: node scratch/run-tests.mjs)
- Run a Single Test Suite (Fast Feedback):
npm run test:file -- tests/habit-completion-service.test.ts
- Run the Secret Scanner:
node scratch/secret-scan.mjs
- Verify Production Build (for code changes):
npm run build
If any command reports an error, review the error message, resolve the issue in your code, and run the check again. For common fixes, see the Troubleshooting Guide.
Once your changes are tested and all checks pass, save them to Git:
- View what files you modified:
git status
- Stage your changes:
git add . - Save your commit with a clear, concise message:
git commit -m "docs: clarify local setup prerequisites"
feat: add focus timer sound togglefix: resolve task priority dropdown alignmentdocs: update troubleshooting guide for Windows usersui: polish active focus card shadowtest: add unit test for grace period calculation
Upload your local commit to your GitHub fork:
git push -u origin <your-branch-name>(Replace <your-branch-name> with the name of the branch you created in Step 8).
- Go to your fork on GitHub (
https://github.com/<your-username>/Pact_OS). - You will see a yellow banner: " had recent pushes" with a green Compare & pull request button. Click it.
- Verify that the base repository is
TheVicky1/Pact_OSand the base branch ismain. - Fill in the title and description:
- Title: A concise summary (e.g.,
docs: clarify local environment setup for Windows). - Description:
- Explain what was changed.
- Explain why the change was made.
- Link the issue:
Fixes #12orCloses #34. - Describe how you tested the change.
- For UI changes, attach a before/after screenshot.
- Title: A concise summary (e.g.,
- Click Create pull request.
🎉 Congratulations! You have just submitted your Pull Request to PACT!
- Maintainer Review: A maintainer will review your Pull Request, verify that tests pass, and review your code.
- Feedback & Iteration:
- If changes are suggested, do not worry! Code review is a normal, collaborative part of software development.
- Simply make the requested edits in your local branch, save, commit, and push again (
git push). Your Pull Request on GitHub will update automatically!
- Approval & Merge: Once approved, a maintainer will merge your Pull Request into
main. - Recognition: Your contribution will be celebrated and recognized in CONTRIBUTORS.md!
| Mistake | Why to Avoid It | What to Do Instead |
|---|---|---|
Editing directly on main |
Makes it hard to sync with new updates from upstream. | Always create a topic branch (git checkout -b fix/my-fix). |
Committing .env.local or secrets |
Exposes private credentials or API keys. | Verify .env.local is in .gitignore and run node scratch/secret-scan.mjs. |
| Mixing unrelated edits | Large, unfocused PRs take longer to review and may conflict. | Keep each PR focused on a single issue or improvement. |
| Ignoring lint/type errors | Broken types prevent successful production builds. | Run npm run lint and npx tsc --noEmit before opening your PR. |
| Forgetting to link the issue | Maintainers have to manually search for context. | Add Closes #<issue-number> in your PR description. |
Before submitting your PR, use this quick checklist:
- I have read this beginner guide and CONTRIBUTING.md.
- I created a dedicated topic branch from
main. - My changes are focused strictly on the assigned issue.
- For UI edits, I respected PACT's Obsidian Black & Gold design system.
-
npm run lintpassed with 0 errors. -
npx tsc --noEmitpassed with 0 errors. -
node scratch/run-tests.mjspassed all test suites. -
node scratch/secret-scan.mjsconfirmed 0 committed secrets. - I pushed my branch and opened a Pull Request with a clear summary.
💡 Need More Help?
If you run into any errors during setup or development, check out our Troubleshooting Guide or visit SUPPORT.md.