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

  1. Fork the repository on GitLab.

  2. Clone your fork locally.

  3. Create a branch for your feature or fix.

  4. Implement your changes, ensuring you follow our Coding Standards.

  5. Write tests for your changes.

  6. Open a Merge Request against the main branch 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.

  1. Generate a Phased GSD Spec before writing any production code.

  2. The spec must reside in prompts/plans/<plan_name>/<plan_name>.md.

  3. Use the template at prompts/templates/TASK_SPEC.md.

  4. 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_case for 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.