Skip to content

Latest commit

 

History

History
81 lines (60 loc) · 3.25 KB

CONTRIBUTING.md

File metadata and controls

81 lines (60 loc) · 3.25 KB

Contributing

Thanks for helping improve KIPR's software. These guidelines apply to everyone, whether you write the code yourself or with an AI coding agent. Agents also read AGENTS.md, which describes this repository in detail.

New to KIPR development? Start with the KIPR Development Toolkit and its Wombat Developer Manual.

Branches

Name branches after the person who owns the change, followed by a short topic:

<name>/<topic>        e.g. jdoe/console-scrollback

This applies to agent-written changes too: the branch names the person responsible for it. Branch from master and open pull requests against master. If you don't have write access, work from a fork.

Plan first

For anything beyond a small, obvious fix, write a short plan before changing code: what you'll change, which files it touches, and how you'll verify it. Get it reviewed before you start, in an issue, a draft pull request, or with the maintainer you're working with. A wrong approach is much cheaper to catch in a plan than in code review.

If you're working with an agent, have it present its plan and review the plan yourself before it edits anything. The exception for small fixes is for code you write yourself; an agent plans every change.

Keep changes focused

  • Make one logical change per pull request.
  • Work within the existing architecture and conventions described in AGENTS.md. If you think the architecture itself should change, propose that separately.
  • Don't reformat, rename, or reorganize code you aren't otherwise changing; it buries the real change in review. Preserve each file's existing formatting.

Build for what's needed now

Avoid speculative changes: no abstractions, options, or extension points for features or hardware that don't exist yet. If you spot a future need, open an issue for it instead.

Comments

Comment what a reader can't see from the code: why a system command or path is needed, Qt or NetworkManager quirks, and the reason behind a non-obvious choice. Don't describe what the code plainly does, and don't commit commented-out code; version control keeps the history.

Documentation

Update documentation in the same pull request as the change that affects it: README.md, AGENTS.md, and CONTRIBUTING.md.

Pull requests

Open pull requests as drafts while they're in progress. The description should cover what changed and why, how you verified it, and anything left undone. State plainly what wasn't tested rather than implying it was.

This repository

  • CI builds every pull request with the same Docker image you run locally (see AGENTS.md). That build checks that botui compiles against Ubuntu's Qt 6 without warnings; it doesn't produce a binary that runs on a Wombat.
  • Changes to what botui does on a Wombat need testing on a Wombat: screens, networking, and anything that runs a system command or script. Describe what you tested in the pull request, or say that it's untested.
  • botui shares paths, scripts, and file formats with wombat-os and libwallaby; AGENTS.md lists them. Changing one of them needs a matching pull request in the other repository. Link the two.