Welcome to TalebElm (طالب علم). We build an open learning platform for software engineers with clear architecture, server-graded exams, and automated verification. Every accepted pull request helps keep that path reliable and accessible for everyone.
This guide walks you through finding work, setting up your environment, making your change, and getting it merged. We want contributing to feel clear, friendly, and respectful of your time.
We organize work into six milestones (M0 through M5). Ready issues have a milestone, no assignee, and no open pull request:
is:issue is:open no:assignee -linked:pr -no:milestone NOT "[Tracking]" in:title
Browse ready issues with that query on GitHub: https://github.com/Tawjjeh/TalebElm/issues?q=is%3Aissue+is%3Aopen+no%3Aassignee+-linked%3Apr+-no%3Amilestone+NOT+%22%5BTracking%5D%22+in%3Atitle
If you are new to the project, start with good first issue:
https://github.com/Tawjjeh/TalebElm/issues?q=is%3Aissue+is%3Aopen+label%3A%22good+first+issue%22+no%3Aassignee+-linked%3Apr
These are small, isolated tasks such as adding missing unit tests or fixing documentation discrepancies.
We use a claim-by-comment workflow:
- Leave a short comment on the issue describing what you plan to change and which files you will touch.
- Start working right away. You do not need to wait for anyone to assign the issue to you.
- Open a pull request within 7 days. If you need more time or run into questions, leave an update on the issue thread.
- If an assigned issue stays idle for more than 14 days without an open pull request or branch, we clear the assignment so someone else can pick it up.
To keep things fair and manageable, please focus on one open issue at a time. The first pull request that meets the architectural rules and passes all checks wins.
You will need Git, Python 3, and the .NET 10 SDK.
-
Fork the repository and clone your fork:
git clone https://github.com/<your-username>/TalebElm.git cd TalebElm git remote add upstream https://github.com/Tawjjeh/TalebElm.git
-
Verify that everything builds and tests pass cleanly on main before making any edits:
dotnet build TalebElm.slnx DOTNET_ROLL_FORWARD=Major dotnet test TalebElm.slnx python3 scripts/check-docs.pyThese commands work identically on Linux, macOS, and Windows.
Always branch from fresh upstream/main:
git fetch upstream
git switch -c feat/my-topic upstream/mainUse descriptive branch prefixes based on what you are changing:
feat/<topic>for new capabilities or endpointsfix/<topic>for bug fixesdocs/<topic>for documentation changestest/<topic>for test additions or test harness improvementsrefactor/<topic>for refactoring approved by an open decision
Keep each pull request to one vertical slice. Aim for roughly 200 lines of changes including tests. Touch only the files needed for that slice; avoid unrelated formatting or drive-by cleanups.
TalebElm follows Clean Architecture with strict inward dependency rules:
- Domain (
src/TalebElm.Domain): Entities, enums, exceptions, repository interfaces,IUnitOfWork. Depends on nothing. - Application (
src/TalebElm.Application): Service abstractions and concrete services, DTOs, FluentValidation validators, client interfaces. Never takes a directDbContext; it usesIUnitOfWork. - Infrastructure (
src/TalebElm.Infrastructure): EF CoreAppDbContext, entity configurations, migrations, repository implementations, typed HTTP clients. Holds persistence only, no business logic. - Api (
src/TalebElm.Api): Controllers, middleware, dependency injection composition roots inProgram.cs. - Tests (
tests/TalebElm.Tests): Unit tests and SQLite integration tests.
Every new asynchronous method across services and repositories must accept CancellationToken ct = default as its last parameter and forward it throughout.
Every behavioral change requires tests that prove it. The test should fail before your change and pass after it. Unit tests live alongside existing suites; integration tests use SQLite in-memory or throwaway instances.
When you change an API contract, add a route, or alter business behavior, update the corresponding documentation under docs/ in the same pull request. Keep existing progress markers (Implemented, Target, Proposed) accurate.
Run python3 scripts/check-docs.py before pushing. It checks that all markdown links, anchors, and references resolve cleanly.
We use Conventional Commits in the imperative mood:
feat: add Track publish endpointfix: prevent duplicate enrollment on published trackdocs: document unlock dual gate rulestest: verify exam retake score preservationrefactor: consolidate service registrations in Application
Keep commit messages plain and descriptive. Do not include generated-by footers, co-author lines, or filler.
When your branch is ready:
- Push your branch to your GitHub fork:
git push -u origin feat/my-topic
- Open a pull request against
Tawjjeh/TalebElmbranchmain. - In the PR body, link the issue using
Closes #123. - Summarize what changed, why, and how you verified it.
- Ensure all CI checks pass. If a check fails, inspect the log and push fixes to your branch.
Here is what to expect after opening your pull request:
- Timely reviews: I review open pull requests within 48 hours.
- Constructive feedback: Reviews focus on architectural boundaries, test coverage, and correctness. Feedback is specific and actionable.
- Iterative updates: If changes are requested, push additional commits to your branch. There is no need to close the PR or force-push.
- Squash merge: Once approved and checks pass, your change is squash-merged into
mainas a single clean commit with your name as author.
- Questions about the architecture, roadmap, or ideas: GitHub Discussions.
- Questions about a specific task: Comment directly on the issue thread.
- Security vulnerabilities: Follow
SECURITY.mdand report privately. Do not open public issues for security concerns.
- Never trust client-supplied scores, handles, or problem completion flags.
- Never return
IsCorrectin any learner-facing response or DTO. - Never commit database files (
*.db), secrets, connection strings, or personal access tokens. - Do not modify
.github/workflows/without prior coordination on an issue. - Respect the Clean Architecture boundaries at all times.
Thank you for contributing to TalebElm!