Skip to content

docs: fix broken cookbook examples and doc drift - #167

Open
joshdholtz wants to merge 4 commits into
mainfrom
docs-accuracy-pass
Open

docs: fix broken cookbook examples and doc drift#167
joshdholtz wants to merge 4 commits into
mainfrom
docs-accuracy-pass

Conversation

@joshdholtz

@joshdholtz joshdholtz commented Sep 7, 2026

Copy link
Copy Markdown
Member

A docs accuracy pass, checked against the real command tree (rc commands --json) and per-command schemas.

Two cookbook examples didn't run at all: customers grant was shown with flags it doesn't have (it takes positional args), and one example used customer singular. Also dropped a dead --yes on the promptless entitlements create and unmangled the refund note so it says what the example shows.

command-surface.md calls itself the source of truth but was missing three shipped commands: rc api, rc packages list, and rc capital setup.

The README still pitched store-state plans as Apple/Play-only, which stopped being true when the server took over store rules. Its command table was also missing products update/push/prices — the prices commands are referenced elsewhere in the same README.

🤖 Generated with Claude Code


Note

Low Risk
Markdown-only documentation corrections with no runtime, auth, or data-handling changes.

Overview
Documentation-only pass so examples and the command tree match what rc actually ships (validated against rc commands / schemas).

README expands the capability table: offerings gain restore/delete, products document update, push, and prices / prices set, and the experimental store-state section no longer implies Apple/Play-only support—the server picks supported stores and fields.

docs/command-surface.md fills gaps in the source-of-truth tree (rc api, rc packages list, rc capital setup), corrects chart invocation to rc charts show <name>, and updates customer command signatures (show required ID, set-attribute via repeatable --set, grant positional args). The intentional-no-bulk-import note now carves out store-state CSV/JSON as the exception.

docs/cookbook.md fixes copy-paste examples: customers grant uses positional args, customers list (not customer), drops spurious --yes on entitlements create, and clarifies that subscription refunds are meant to prompt.

Reviewed by Cursor Bugbot for commit cbec68a. Bugbot is set up for automated code reviews on this repo. Configure here.

joshdholtz and others added 3 commits September 7, 2026 09:15
customers grant takes positional args, not --customer-id/--entitlement-id
flags; 'customer list' isn't a command; entitlements create is promptless so
--yes was dead weight; the refund note said the opposite of what the example
shows.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
rc api, rc packages list, and rc capital setup all shipped without landing in
the tree this file claims is the source of truth.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Store-state isn't Apple/Play-only since the server took over store rules.
The Products row was missing update, push, and the prices commands the AI
Toolkit section already references; Offerings was missing restore and delete.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI lite review requested due to automatic review settings September 7, 2026 14:16

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

grant takes an entitlement ID, not a lookup key; set-attribute uses --set
key=value; customers show requires the ID; charts prose names the real
'charts show' command; packages list only fetches the first page per
offering, so stop claiming 'all'; the no-bulk-import bullet now carves out
store-state plans, which are exactly that.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@joshdholtz
joshdholtz requested review from a team, RPallas92 and popcorn September 8, 2026 23:00
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