docs-for-me
v0.1.7
Published
Create programmer-friendly Git change guides and commit messages.
Downloads
1,482
Maintainers
Readme
docs-for-me is built for the everyday developer moment right before a commit:
- What did I change?
- What files and flows were affected?
- What should the commit message say?
- What can I paste into
git commitafter I review it?
The output is Markdown, so it can be read in a terminal, saved beside a project, or deleted after review.
Install
Install it with npm:
npm install -g docs-for-meThen run it inside a Git repository:
docs-for-me changes --ai none --out changes-guide.mdYou can also install it inside one project:
npm install --save-dev docs-for-me
npm exec docs-for-me changes --ai none --out changes-guide.mdFor a one-time trial without installing globally:
npx docs-for-me changes --ai none --out changes-guide.mdUsage
Create a pre-commit guide for unstaged changes:
docs-for-me changes --ai none --out changes-guide.mdCreate a guide for staged changes:
docs-for-me changes --staged --ai none --out changes-guide.mdCompare changes since a branch or ref:
docs-for-me changes --since main --ai none --out changes-guide.mdUse OpenCode for a more natural explanation:
docs-for-me changes --ai opencode --out changes-ai-guide.mdWhat It Gives You
The changes command reads your Git diff and writes a Markdown guide with:
- a plain-language summary
- changed files and changed areas
- changed functions or code areas when visible
- a copy-paste-ready commit message
- a files-checked list
- an accuracy note
OpenCode Mode
OpenCode mode uses the opencode CLI as the AI provider.
First, make sure OpenCode works:
opencode run "Say hello in one sentence."Then run:
docs-for-me changes --ai opencode --out changes-ai-guide.mdWhen OpenCode is working, the generated Markdown should not contain:
- **AI:** unavailable or disabled (`opencode`)Local vs AI Changes
--ai none does not use machine learning. It uses local diff parsing and
generic software detectors to describe visible change patterns.
--ai opencode sends the Git diff to OpenCode and asks it to produce the same
kind of guide with a more natural explanation and a subject-plus-body commit
message.
Progress Messages
Commands print progress messages so long-running AI calls do not look frozen:
[ 0.0s] Reading Git diff for unstaged changes
[ 0.0s] Preparing change guide with provider: none
[ 0.0s] Reading Git diff...
[ 0.0s] Parsing changed files and changed lines...
[ 0.0s] Detected 42 changed line(s) across 3 file(s).
[ 0.0s] Scoring 18 local detector signal(s)...
[ 0.0s] Rendering developer-readable Markdown...
[ 0.0s] Writing Markdown output
[ 0.0s] Change guide ready.Hide progress messages with:
docs-for-me changes --ai none --quiet --out changes-guide.mdPrivacy
--ai none runs locally and does not call an AI provider.
--ai opencode sends your Git diff to OpenCode and to whatever model/provider
OpenCode is configured to use. Do not use AI mode on private or sensitive code
unless you are comfortable with that provider handling the content.
Contributor Setup
The core CLI is written in Python, but npm is the user-facing package path.
Use this setup only when developing docs-for-me itself:
python -m venv .venv
.venv\Scripts\activate
pip install -e . pytest
.venv\Scripts\python.exe -m pytest --basetemp .\build\pytest-tempTo build the Windows executable that the npm package runs:
npm run build:exe:winThen test the npm wrapper locally:
npm run test:npm-localThe npm wrapper expects the executable here:
prebuilt/win32-x64/docs-for-me.exe