@suboney/commit-doc-agent
v0.1.2
Published
Local-first CLI that turns git commits into editable feature documentation.
Readme
Commit-Driven Documentation Agent
commit-doc-agent is a local-first CLI that turns git commits into editable feature documentation.
It installs into a repository, listens through a local post-commit hook, analyzes the latest diff, and writes feature-page markdown into docs/.
Install
After publish:
npm install -g @suboney/commit-doc-agentUsage
Prepare a repo for automatic docs:
commit-doc-agent setup local --repo .Generate docs for the latest commit manually:
commit-doc-agent local --repo . --ref HEAD --out docsUse local Ollama generation:
commit-doc-agent setup local --repo . --ollamaThe generated docs use an editable schema at docs/.schema/feature-page.md.
Development
npm install
npm test
npm run cli -- --help
npm run cli -- setup local --repo demo-project
npm run cli -- local --repo demo-project --ref HEAD --out demo-project/docsSee Project Overview for the architecture and source map.
Publishing
Release target:
- Package name:
@suboney/commit-doc-agent - npm account:
suboney - Public install command after publish:
npm install -g @suboney/commit-doc-agent
Build and inspect the package before publishing:
npm test
npm pack --dry-runPublish from an authenticated npm session:
npm login
npm whoami
npm publish