feat: add 'prime' subcommand for LLM agent orientation#20
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
Cross-repo status
🤖 Generated with Claude Code