Contributing to Book
Thanks for considering a contribution to Book. Every patch helps.
Code of Conduct
By participating in this project, you agree to abide by our Code of Conduct.
Getting Started
-
Fork the repository on GitLab.
-
Clone your fork locally.
-
Create a branch for your feature or fix.
-
Implement your changes, ensuring you follow our Coding Standards.
-
Write tests for your changes.
-
Open a Merge Request against the
mainbranch of the upstream project.
Use the provided MR template. Issue templates are available for bug reports and feature proposals.
Note: if you are an internal contributor with direct access, you can push a branch directly to the upstream repository and open a Merge Request from there.
Phased Spec-Driven Development (SDD)
For any complex task (affecting > 2 files or involving architectural changes), we follow a strict Spec-First Protocol.
-
Generate a Phased GSD Spec before writing any production code.
-
The spec must reside in
prompts/plans/<plan_name>/<plan_name>.md. -
Use the template at
prompts/templates/TASK_SPEC.md. -
Wait for feedback/approval on the spec before proceeding to implementation.
Coding Standards
-
Language: Kotlin is the primary language.
-
Architecture: Adhere to Clean Architecture. Keep business logic in
:domain. -
Dependency Injection: Use Metro.
-
TUI/CLI: Use Mordant for rendering and Clikt for commands.
-
Testing: Use MockK for unit tests. Avoid annotations; prefer constructor injection or manual instantiation.
-
Naming: Use
snake_casefor IDs and command names.
Testing & Verification
Because this is a Kotlin Multiplatform (KMP) project, ensure you compile all code with assemble and run all tests before submitting your Merge Request:
./gradlew assemble test
Publishing
Publishable modules are published to Maven via the vanniktech plugin โ configuration is centralized at the root build.gradle.kts, and versioning comes from git tags. To publish locally or add/remove a published module, see Maven Publishing.
Questions?
If you have questions about the codebase or the contribution process, feel free to open an issue with the question label.