Skip to content

feat: add 'prime' subcommand for LLM agent orientation#20

Merged
DTTerastar merged 1 commit into
mainfrom
feat/prime-command
Apr 25, 2026
Merged

feat: add 'prime' subcommand for LLM agent orientation#20
DTTerastar merged 1 commit into
mainfrom
feat/prime-command

Conversation

@DTTerastar
Copy link
Copy Markdown
Collaborator

Summary

Per CONTRACT §6, every quantcli CLI exposes `prime` printing a one-screen primer aimed at LLM agents calling the CLI as a tool. crono has had this since #6; this PR ports it to liftoff with the same section structure.

```
WHAT IT IS
OUTPUT FORMATS
AUTH
DATE FLAGS
SUBCOMMANDS
EXAMPLES
GOTCHAS
```

Same headings, same order, same terse style — content adapted to liftoff's reality (workouts list/show/stats, bodyweights list/stats, LIFTOFF_API_BASE for the API host rotation, fitdown set notation).

Also extends the rootCmd `Long` so `liftoff-export --help` points agents at `prime` from the top.

Test plan

  • `go build ./...`, `go vet ./...` pass
  • `liftoff-export prime` prints the full primer
  • `liftoff-export --help` mentions prime in the long description

Cross-repo status

  • crono: ✓ (crono#6 merged)
  • liftoff: this PR
  • withings: pending — same template, withings-specific content (activity/sleep/workouts/measurements/intraday + OAuth setup notes)

🤖 Generated with Claude Code

Per quantcli shared contract §6, every CLI exposes 'prime' printing a
one-screen primer aimed at LLM agents calling the CLI as a tool. Same
section structure across all three repos (WHAT IT IS / OUTPUT FORMATS /
AUTH / DATE FLAGS / SUBCOMMANDS / EXAMPLES / GOTCHAS) so an agent that
has read crono's prime knows where to look in liftoff's.
https://github.com/quantcli/common/blob/main/CONTRACT.md#6-the-prime-subcommand

Liftoff-specific content covers:
- workouts list/show/stats and bodyweights list/stats
- Local-zone date semantics
- LIFTOFF_API_BASE override for the periodic API host rotation
- jq recipes for volume math and bodyweight delta

Also extends the rootCmd Long description so 'liftoff-export --help'
points agents at 'prime' from the top.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@DTTerastar DTTerastar merged commit 4a9a283 into main Apr 25, 2026
1 check passed
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