Skip to content

docs: fix Setup/credentials ordering, stale free-session detail claims, and a broken filename ref#26

Open
stozo04 wants to merge 3 commits into
mainfrom
docs/setup-credentials-ordering
Open

docs: fix Setup/credentials ordering, stale free-session detail claims, and a broken filename ref#26
stozo04 wants to merge 3 commits into
mainfrom
docs/setup-credentials-ordering

Conversation

@stozo04

@stozo04 stozo04 commented Jun 22, 2026

Copy link
Copy Markdown
Owner

Docs-only PR. No code changes. Three doc files corrected.

1. Setup / credentials ordering (SKILL.md + README)

Both docs told a new user to run speediance-cli login before telling them to set credentials. But login resolves credentials up front — newLoginCmdapiClient(false)resolveConfig()RequireCredentials(), which returns a config error (ExitConfig) the instant email or password is empty, before any network call. So the documented first command failed.

  • SKILL.md — "Setup (one time)" restructured into an ordered sequence: install → provide credentials → login → first data command. Surfaced the config set path (writes config.json at 0600) with a shell-history caveat, and added an explicit workspace-.env note for OpenClaw / headless agents.
  • README.md — the Go-install snippet no longer runs login prematurely; credentials now come first, with the same config set option and a credentials-first note.

2. Accuracy: free-session detail (SKILL.md + README)

The overhaul made the CLI a verbatim passthrough that now emits guided free-session detail (e.g. Aerobic Rowing) — not just program detail. Two stale lines still implied all free sessions are totals-only:

  • SKILL.md "Empty shape" bullet said detail is [] for kind:"free" — contradicting its own table and notes. Corrected: [] for a freestyle Free Lift, populated for a guided free session.
  • README Notes said Free Lift sessions return totals only and "Programs do." Corrected to include guided free sessions returning full per-rep/per-interval detail.

3. Broken filename reference (CLAUDE.md)

CLAUDE.md pointed to `Releasing.md`, but the file is RELEASING.md (uppercase, matching GOAL.md / AGENTS.md). On GitHub / any case-sensitive filesystem the lowercase form resolves to nothing. Corrected the casing.

Verification

Read the output-producing code (workout/model.go, api/endpoints.go, the command bodies, template, exit.go, output.go) to confirm the documented output shapes — {training_id, kind, info, detail}, the workouts digest fields, library [{id,name,muscle,tab}], the plan schema, exit codes — all match. For CLAUDE.md, confirmed every concrete reference resolves: both .claude/ imports exist, the named immutable guard test exists in internal/cli, and .github/workflows/ci.yml does run go test -race + lint on pull_request. After each push, re-fetched the files from the branch and diffed against the verified local copies (byte-identical md5).

stozo04 added 2 commits June 21, 2026 22:19
A first-time reader following the SKILL.md top-to-bottom hit `speediance-cli
login` (in Setup) before the Credentials section told them to set
SPEEDIANCE_EMAIL/PASSWORD. But `login` calls RequireCredentials() and exits with
a config error when email/password are unresolved — so the documented first
command fails.

Restructure "Setup (one time)" into an explicit ordered sequence:
  1. Install
  2. Provide credentials (env / .env / `config set`)
  3. login
  4. first data command

Also surface the `config set` path (writes config.json at 0600) with a
shell-history caveat, and add an explicit workspace `.env` note for OpenClaw /
headless agent use. Docs only; no code change.
…detail claims

Companion to the SKILL.md Setup reorder on this branch.

README (Install): the Go-install snippet ran `speediance-cli login` before the
credentials paragraph, so a copy-paste first run hit a config error (login calls
RequireCredentials before any network call). Reorder to install -> set
credentials -> login, surface `config set`, and add an explicit credentials-first
note.

Accuracy fix in both files: the overhaul made the CLI a verbatim passthrough that
now emits guided free-session detail (e.g. Aerobic Rowing). Two stale lines still
implied all free sessions are totals-only:
- SKILL.md "Empty shape" bullet said detail is `[]` for kind:"free" (contradicting
  its own table/notes). Corrected: `[]` for a freestyle Free Lift, populated for a
  guided free session.
- README Notes said Free Lift sessions return totals only / "Programs do."
  Corrected to include guided free sessions returning full detail.

Docs only; no code change.
@stozo04 stozo04 changed the title docs(skill): reorder Setup so credentials come before login docs: fix Setup/credentials ordering (SKILL.md + README) and correct stale free-session detail claims Jun 22, 2026
CLAUDE.md referenced `Releasing.md`, but the file is `RELEASING.md` (uppercase,
matching GOAL.md / AGENTS.md). On GitHub and any case-sensitive filesystem the
lowercase form resolves to nothing, so a contributor or agent pointed at it hits
"no such file." Docs only.
@stozo04 stozo04 changed the title docs: fix Setup/credentials ordering (SKILL.md + README) and correct stale free-session detail claims docs: fix Setup/credentials ordering, stale free-session detail claims, and a broken filename ref Jun 22, 2026
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