Proposal: adopt pdd-kit, open-source Product-Driven Development
Hi! I'm Itai, and I work on pdd-kit, an open-source tool for keeping a product model next to the code. I've mapped Git Writer's behavior into one.
Before opening any pull request, I'd like your opinion: would a model like this be useful to Git Writer's maintainers and contributors? It's on a branch of my fork, so nothing here changes unless you want it to.
pdd-kit is fully open source (MIT). The format, the CLI, the agent skills and the report are all in github.com/itai-gendler/pdd-kit.
Open the model's report
The model is on the product-model branch of my fork. One command opens its report in your browser; it runs locally:
npx pdd-toolkit view itai-gendler/git-writer --branch product-model
Why a Product Model
The definition of your product already exists, just unstructured, incomplete and scattered across docs, code, tickets, chats and people. Every coding agent reconstructs it from scratch, and differently each time. PDD gives agents and humans a shared product model that is git-tracked, reviewable, and verifiable. (The problem, in full)
What it would add
product-model/, a Product Model of Git Writer: one definition of what the product does, as plain Markdown next to the code. It is made of:
- Entities (6): what the product keeps, and who acts on it (Notebook, Note, Image).
- Interfaces (3): how people and systems reach the product (Desktop app, Android app, iOS app).
- Domains (3): the subject areas the product is split into (Notebooks, Editor, Git Sync).
- Capabilities (42): what the product lets someone do (Sync notes, Resolve conflicts, Clone notebook).
- Journeys (8): one goal, carried across several capabilities (Recover a conflicting sync, Write a new note, Start from an existing folder).
- Business Rules (23): what must always hold, and who may do what (Synchronization commits local changes before integrating remote changes; A failed push retains the locally committed conflict resolution; Deleting a notebook removes its local files).
It would be only new files under product-model/; no code, build or CI changes.
Where it fits
The model doesn't replace Git Writer's docs; it lets each of them focus. Today the product definition is spread across these sources, each holding a piece and none holding all of it:
| Information source | Its purpose | In Git Writer |
|---|---|---|
| Product Model | Defines what the product is | product-model/ (proposed) |
| User docs | Teaches people to use the product | README (installation and spell checking) |
| Internal docs | Records architecture, design decisions, and onboarding | None in the repository |
| Design & architecture | Describes how it should look and work | The README's technology list; none in the repository beyond it |
| Code & tests | Implements and verifies how it is built | shared/ (Kotlin Multiplatform, Compose Multiplatform), with the apps in desktopApp/, androidApp/ and iosApp/, and tests under shared/src/*Test |
| Tickets, chats & people | Carry context, requests, and undocumented knowledge | GitHub issues and todo.md |
Some of the product isn't written down anywhere. Mapping Git Writer found product facts that only the code settles. These are just two examples, the most important ones:
- Auto sync already ships, and it is on by default.
todo.mdstill lists "schedule sync … every 10 minutes and on notebook open" and "check for network connection … disable the sync button" as high-priority work, and the README doesn't mention syncing on its own. In the code, Auto sync defaults to on (UserSettingsManager.kt) and syncs a connected notebook when it is opened, every ten minutes, and when the desktop app quits or the mobile app goes to the background, waiting for a three-second pause in typing (EditorScreenViewModel.kt). Sync is disabled when a phone reports it is offline, but stays available when only the host can't be reached (SyncFloatingButton.kt). - Deleting a notebook deletes its whole folder from disk. The README doesn't say what Delete does. In the code it removes the notebook's directory recursively,
.gitincluded, and leaves the hosted repository untouched (deleteNotebook). On desktop that includes a folder the Writer added with Open existing, which the app registered without creating it (openExistingNotebook). Is that the intended contract for an existing folder too, or should deleting it only take it off the list?
A contributor needs these, and a user mostly doesn't. Putting them in the user docs turns the docs into a spec; the model gives them their own home, so the docs can stay about teaching. If something isn't in the model, nobody decided it.
Questions you may have
Short answers here; the full ones are in the PDD FAQ.
We already have docs and an AGENTS.md. Why add this? They help, and they stay. But user docs hold the part a user needs, and internal docs and AGENTS.md are free-form, each mixing product decisions with design and implementation. The rest lives only in the code, and every agent reconstructs it from scratch, differently each time, with nobody reviewing what it concluded. The model is one structured definition that agents and people read the same way. (Docs, AGENTS.md)
Does every contributor need an AI agent? No. Contributors who don't use agents work exactly as they do today, and updating the model is the same kind of work as updating docs or tests when behavior changes. Those who use an agent can have it done for them: /pdd-verify checks the code against the model, reports every gap, and fixes the ones they choose. (More)
Does it add work to every pull request? Today a behavior change can touch the code, the user docs and the internal docs, each holding part of it in its own way, so they drift. With the model, each fact has one home. It doesn't have to block a pull request either: the model can be updated in the same one, or catch up after changes land. The code references in the model (the links from each file to the code behind it) are optional; if you'd rather not keep them, I'll remove them. (More)
Does it change how we develop? No. PDD doesn't touch how you implement: your workflow, coding agents and planning tools stay, and nothing new runs in CI. Asking an agent to implement something works as it always has. How much of it to use is up to you: only map, to keep a clear model after changes land, or the full development loop, where /pdd-ideate records a change in the model first (nothing is written until you approve it), your agent implements it your way, and /pdd-verify checks the result when you ask it to. Letting pdd-kit orchestrate implementation, with verify planning the work in phases and checking each one, is opt-in and off by default. (More)
How is this different from spec-driven tools or AI-generated docs? Spec-driven tools such as OpenSpec and spec-kit describe each change; PDD defines the product and leaves the change to whichever tool you use. AI-generated docs such as DeepWiki mix product rules, architecture and configuration; the model draws that boundary explicitly. (SDD, DeepWiki)
How would reviewers see a model change? As a Git diff today, or as a report of any pull request's model with npx pdd-toolkit view jotalac/git-writer --pr <n>, without cloning. A visual diff in the report is in progress (itai-gendler/pdd-kit#19). (More)
Interesting questions about Git Writer that the Product Model now answers
The report opens on the model's Product Overview: what Git Writer is, why it exists, and where it stops. Every answer below is read from the model.
To follow along in the report, the same command as above:
npx pdd-toolkit view itai-gendler/git-writer --branch product-model
1. Entities, and which capabilities change them
All 6 entities in the Git Writer model: what the product keeps, and who acts on it.
Which capabilities create, change or remove each entity, filtered to five notebook and sync capabilities:
- Clone notebook creates the Notebook together with every Note, Folder and Image the repository holds. It checks access with the host first, and if cloning fails the new folder is removed and no notebook is added.
- Sync notes creates and removes Notes, Folders and Images, not only changes them: it brings in what was added or deleted on another device, after saving the open note and committing local changes.
- Clear remote credentials changes only the Notebook: it becomes a local notebook again, and every file stays.
2. Capabilities, and which interfaces offer them
All 42 capabilities in the Git Writer model: what the product lets someone do.
Which interfaces offer each capability, filtered to the Editor domain:
- Add word to dictionary and Replace misspelled word are Desktop-only. They use the operating system's dictionaries in the spell check language, which can differ from the app language; Chinese is not spell checked.
- Resize image is Desktop-only too, but the chosen size is written into the note's Markdown, so Android and iOS show the image at that size. The image file itself is not changed.
- Add image is on all three: on Desktop by paste or drop, on Android and iOS from the image picker or the camera. Every image goes into the notebook's
images/folder.
3. Business rules, and where they apply
All 23 business rules in the Git Writer model: what must always hold, and who may do what.
Where each business rule is attached, filtered to the Settings and Image entities:
- Automatic sync waits for a pause in typing applies to Settings: the runs on opening a notebook and every ten minutes wait until the Writer has stopped typing for three seconds, so a pull doesn't replace a note mid-sentence. The sync on leaving runs at once.
- Conflict resolution keeps a whole chosen file version applies to Settings: a conflicting file is never merged line by line. The Writer keeps the local or the remote version of each file, or of all of them, and Auto merge makes the same whole-file choice for every file.
- Inserted images belong to the notebook images directory applies to Image: a note refers to
images/<file>, resolved from the notebook's root even when the note sits in a subfolder.
4. An entity: what it keeps, and how its state changes
The Notebook entity, one of the 6, and the information kept about it:
- Remote URL, Username and Password or token are kept per notebook, so each notebook can sync with its own repository and account.
- Active file is remembered between launches, while Open files, the tabs, last only for the session and reset when the Writer switches notebooks.
How it moves through its states, and the capability behind every move:
- Local is where Create notebook and Open notebook start; Clone notebook starts it in Ready. Edit notebook connects a local notebook only after the host accepts the credentials, and Clear remote credentials takes it back to Local.
- Conflict is reached only from Syncing. Abort Git sync returns it to Ready by going back to the commit made just before the pull, so the Writer's own edits are kept.
- Sync failed is also reached from Conflict, by Resolve conflicts when the final push fails. The resolution is already committed locally, so the next Sync notes pushes it without asking for the choices again.
5. A capability's scenarios, and one step by step
The 12 scenarios of the Sync notes capability:
- Twelve scenarios: syncs the Writer starts and syncs Auto sync starts, files added or deleted on the remote, a retry after a failure, and conflicts that either stop for the Writer's choices or are settled by the Auto merge preference.
One of them, opened step by step:
- Nobody starts it. It opens with an unattended condition: Auto sync is on, and a connected notebook was just opened, has been open for ten minutes, or is being left.
- From there it is the same sync as a manual one: the open note is saved, local changes are committed, remote changes are pulled and outgoing commits pushed, and the open note is reloaded only if the pull changed it.
What I'm asking
- Is this useful for Git Writer? A yes, a no, or "not yet" all help.
- If it is, I'll open a focused pull request shaped however you prefer: smaller, split by area, or without the code references.
- If it isn't, feel free to close this issue.
How it was made
The model was mapped from master with AI agents, and I reviewed it personally. I'll answer questions myself, and I'm happy to take any feedback needed for adoption.
AI assistance: the model was drafted with Claude Code and Codex, using the pdd-map skill. I reviewed it, linted it with npx pdd-toolkit lint, and checked each finding above against the code. This issue was drafted with Claude's help and edited by me.
SLOP
Thanks, but not interested.
