StudyLoop is a local-first, AuDHD-aware study tool, pre-1.0, and every kind of contribution is welcome — a reproducible bug, a clearer sentence, a focused test, an honest account of where a study flow became overwhelming. The path from clone to merged pull request is six steps; this page is the router, and each step links the one page that owns it.
- Set up — fork and clone first (step 1 of Your first contribution below), then install
uv, just, tmux, Node and Chromium,
just sync-dev,uv run studyloop setup, prove the import: Development Environment. - Make one change — fork, branch as
docs/…,fix/…,test/…orfeat/…, change one thing: Your first contribution below, then the page for your kind of change under Making changes. - Prove it — the failing test first, at the nearest useful boundary, then the fix: Testing Cookbook. Stuck? Debugging.
- Pass the gate —
just preflight(lint, typecheck, test, test-js, docs, release-consistency, spec-check; F7),git diff --check, andjust e2eif you touched the web layer. - Write the changelog bullet — one learner-facing line under
[Unreleased]for each user-visible change, in the same PR; a test, docs, chore or ci change normally gets none, and the PR says so under question 2: Changelog Process. - Open the pull request —
<type>(<scope>): <imperative description>as title, the five questions as description: Raising a Pull Request.
Licensing and conduct. Contributions are accepted under the repository's MIT License (inbound = outbound; no CLA, no DCO). The Contributor Covenant 2.1 applies; beyond it, never quote learners' private material (transcripts, notes, struggles) in public. Before you design anything, read the AuDHD learning philosophy.
- Development environment
- Your first contribution
- How the repository is organised
- Making changes
- Testing
- Continuous integration
- Documentation standards
- Changelog process
- Raising a pull request
- Submitting an issue
- How we prioritise
- AI usage, and models through a LiteLLM gateway
- Security
- FAQ
Python 3.12 (.python-version), uv, just, tmux, Node and Playwright Chromium; one just sync-dev;
then prove import studyloop resolves inside your checkout. Every command, with its output, is on
Development Environment.
You do not need to fix an entire workflow: a clearer sentence or a test for one refused operation is a useful first PR. For a new capability, open an issue and agree the smallest slice before coding.
- Fork StudyLoop on GitHub into your account and clone the fork
(
git clone https://github.com/<you>/StudyLoop.git). The upstream repository isNetDevAutomate/StudyLoop. - Point at upstream and branch from its
main; choosefix/,test/orfeat/instead ofdocs/when that is what you are changing (F1):
git remote add upstream https://github.com/NetDevAutomate/StudyLoop.git
git fetch upstream
git switch -c docs/first-contribution upstream/main- Set up and change one thing. Follow Development Environment, reproduce the problem with synthetic data, then change only the owning layer: a CLI command → A CLI Command, a web route → A Web Route and UI, an MCP tool → An MCP Tool, a doctor check → A Doctor Check; for anything else the code map names the layer.
- Prove and open.
git push -u origin docs/first-contributionpublishes your fork branch; GitHub then offers a PR intoNetDevAutomate/StudyLoop:main. Report setup failures rather than bypassing checks or describing skipped tests as passing.
Before a second contribution, fetch upstream and branch afresh; do not stack unrelated changes on your first PR, and never discard uncommitted work to synchronise a branch.
Two packages (packages/studyloop/ — CLI, Web UI, mentor adapters, planning, review, content;
packages/agent-session-tools/ — session import, SQLite search, sync), agents/ (personas and
skills per harness), docs/, openspec/ (specs and change proposals), scripts/, releases/.
Which layer owns what, and where each kind of change lands: Code Map.
Code-level naming, OpenSpec changes and ADRs: Conventions.
Small fix: open the PR directly. Behaviour or design change: an issue first, then a proposal under
openspec/changes/. Six mentor harnesses are first-party: Kiro CLI, Codex, Claude Code and pi are
core; OpenCode and Grok Build are preview (F4); everything else is out of scope until an issue
defines it, and a new harness is declined unless that issue defines all seven items — persona
mechanism, launch and resume commands, session store, exporter, health check, failure behaviour, a
live acceptance path (F2; Harnesses and Agents). Then pick the
page for your kind of change:
- A CLI Command · 2. A Web Route and UI · 3. An MCP Tool · 4. A Doctor Check · 5. Harnesses and Agents · 6. Content Schemas and Pipeline · 7. Documentation.
Branches are feat/…, fix/…, docs/…, test/…; lane/ is reserved (F1). Commit subjects
follow the grammar on Raising a Pull Request. Topic-specific
practice modules are a design-stage proposal, not a plugin API you can build against today:
Optional Modules (Proposal) and
Module Index (Proposal).
The default just test runs the unit tier; integration, e2e, acceptance, uat and the live
markers are deselected (F7). Choosing the tier and writing the focused test:
Testing Cookbook. Opt-in runs with a real harness:
Acceptance Testing.
.github/workflows/ci.yml runs on every push and pull request to main (lint, typecheck, SAST,
audits, the unit suite on 3.12 and 3.13, JavaScript tests, the browser suite, a wheel smoke); a red
job blocks merging. .github/workflows/nightly-uat.yml runs the integration tier nightly at
03:00 UTC; acceptance and UAT never run in CI (F8). Reproduce CI locally with just ci-local.
The site is an allowlist (mkdocs.yml), the build is strict (structure, nav, links), and the
drift tests pin every command, path, anchor and source-backed fact a page shows — a stale
command fails the suite; stale prose is caught by review. Writing a truthful page, and the AuDHD writing rules:
Documentation.
One bullet per user-visible change under ## [Unreleased] in CHANGELOG.md, in the learner's
words, in the same PR; the maintainer dates it at release. Sections, wording and what the gate does
and does not check: Changelog Process.
Title <type>(<scope>): <imperative description>; description answers the five questions (F3):
problem, change, automated checks, manual check, what remains unverified. Grammar, eight real
examples, the template and what reviewers check: Raising a Pull Request.
Bug: what you tried, the exact command or UI action, what happened, what you expected, and
studyloop doctor --json with private paths removed. Feature: the learner situation first, then the
smallest change that would help. Never paste keys, tokens or session transcripts. Details:
Issues and Prioritisation.
- A learner's session, data or privacy at risk. 2. Friction in the first week. 3. Truth of the documentation. 4. Accessibility and low-energy paths. 5. New capability, in roadmap order. The reasoning: Issues and Prioritisation.
AI-assisted contributions are welcome if you review everything you submit and disclose the help
(a Co-Authored-By: trailer on the commit and a line under question 2 of the PR). Mentor harnesses bring their own model access;
content generation uses the provider registry, where a LiteLLM gateway is one openai_compat row.
Disclosure, ownership and the gateway option: AI Usage.
Report vulnerabilities privately through
GitHub's advisory form;
SECURITY.md names the
supported line. In code: keys live in the encrypted store, never in the repository; pre-commit runs
secret detection and bandit — keep the hooks installed.
Can I add my favourite coding assistant? Open an issue with the seven items; Harnesses and Agents explains why drive-by additions are declined.
The docs build failed on a sentence I did not write. Your change made it false; fix the page. Documentation.
just e2e says another run holds the lock. Wait, or check the pid it names:
Debugging.
I only have low-energy time. Documentation truth fixes, reproducible bug reports and accessibility notes are the most valuable small contributions this project receives.