Skip to content

docs: backfill CLI reference, architecture overview, and package doc - #227

Open
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:docs/backfill-cli-and-package-docs
Open

docs: backfill CLI reference, architecture overview, and package doc#227
iamlasse wants to merge 2 commits into
marcus:mainfrom
iamlasse:docs/backfill-cli-and-package-docs

Conversation

@iamlasse

@iamlasse iamlasse commented Aug 23, 2026

Copy link
Copy Markdown

Summary

Backfills three documentation gaps found by auditing the repo:

  • CLI referencewebsite/docs/cli-reference.md documented only run, preview, task, and budget in detail. Added sections for commit normalize, busfactor, config (get/set/validate), init, doctor, daemon (start/stop/status), install/uninstall, logs, report, status, stats, and setup, with flags captured from each command's actual --help output, plus expanded budget snapshot/history/calibrate detail.
  • Architecture overview — new docs/architecture.md: a package map (command layer, core runtime, budget/usage data, persistence, analysis) and a walkthrough of how a run flows through them, linking to docs/guides/run-lifecycle.md. Linked from the README's Development section.
  • Package doccmd/provider-calibration was the only Go package missing a // Package comment; added one linking to docs/guides/provider-calibration.md. A repo-wide sweep confirmed all other exported declarations already have doc comments.

Verification

  • go build ./... and go vet ./... pass
  • All command names, subcommands, flags, and defaults in the CLI reference were transcribed from the built binary's --help output

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift


Automated by nightshift

iamlasse and others added 2 commits June 28, 2026 02:10
Add internal/commits with pure Normalize/validate functions enforcing the project's Conventional Commits rules (known type set, lowercase type, lowercase subject, 72-char subject limit, whitespace trimming, and 72-column body wrapping). Wire it into the CLI as 'nightshift commit normalize' (positional, --file, and stdin sources; --check to validate only), ship a commit-msg git hook under scripts/, and document the format and installation in docs/commit-messages.md.

Nightshift-Task: commit-normalize
Nightshift-Ref: https://github.com/marcus/nightshift
- Expand website/docs/cli-reference.md with sections for commit
(normalize), busfactor, config (get/set/validate), init, doctor, daemon
(start/stop/status), install/uninstall, logs, report, status, stats, and
setup, captured from each command's help text - Add docs/architecture.md
mapping the Go packages and the run flow; link it from README.md - Add
the missing package-level doc comment to
cmd/provider-calibration/main.go

Nightshift-Task: docs-backfill
Nightshift-Ref: https://github.com/marcus/nightshift
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants