Skip to content

docs: add package-level godoc to all 11 undocumented Go packages#175

Open
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:docs/backfill-package-godoc
Open

docs: add package-level godoc to all 11 undocumented Go packages#175
iamlasse wants to merge 1 commit into
marcus:mainfrom
iamlasse:docs/backfill-package-godoc

Conversation

@iamlasse
Copy link
Copy Markdown

@iamlasse iamlasse commented Jun 7, 2026

Summary

Adds canonical doc.go files with comprehensive package-level godoc to all 11 Go packages that lacked them, following the standard Go convention.

New doc.go files (11 packages)

  • cmd/nightshift/commands — CLI subcommands
  • cmd/provider-calibration — budget calibration tool
  • internal/agents — AI agent interfaces and implementations
  • internal/analysis — code ownership and bus-factor analysis
  • internal/db — SQLite storage layer
  • internal/integrations — external config and task sources
  • internal/orchestrator — agent coordination
  • internal/providers — usage tracking and cost estimation
  • internal/reporting — run reports and morning summaries
  • internal/tasks — task definitions and priority selection
  • internal/tmux — tmux session scraping

Cleanup

  • Removed duplicate // Package X ... comments from 11 source files so doc.go is the single canonical location
  • Removed file-level comments (// claude.go implements...) that were being picked up as package docs by go doc

Verification

  • go vet ./... — passes
  • go build ./... — passes
  • go test ./... — 818 tests pass in 24 packages
  • go doc <pkg> — all 11 packages now show proper doc.go content
  • All exported symbols already had inline godoc; no additional inline comments needed

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

Add canonical doc.go files with comprehensive package-level godoc to:
- cmd/nightshift/commands (CLI subcommands)
- cmd/provider-calibration (budget calibration tool)
- internal/agents (AI agent interfaces and implementations)
- internal/analysis (code ownership and bus-factor analysis)
- internal/db (SQLite storage layer)
- internal/integrations (external config and task sources)
- internal/orchestrator (agent coordination and plan-implement-review loop)
- internal/providers (usage tracking and cost estimation)
- internal/reporting (run reports and morning summaries)
- internal/tasks (task definitions and priority selection)
- internal/tmux (tmux session scraping for usage data)

Remove duplicate package comments from source files so that doc.go
is the single canonical location for package documentation.

All exported symbols already had inline godoc; no changes needed there.

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.

1 participant