ghealth-shared
Shared prerequisites for all ghealth skills — auth, setup, global flags, command structure
npx skills add Google-Health-API/google-health-cli --skill ghealth-shared --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# ghealth — Shared Prerequisites ## Setup ```bash ghealth setup # interactive wizard, run once ``` Six steps: GCP project ID, OAuth client_secret JSON (Desktop application), Health API enable, scope selection, browser-based OAuth, save profile. **Scriptable** (skips prompts): ```bash ghealth setup \ --project-id my-project \ --client-secret ~/Downloads/client_secret_123.json \ --scopes-preset readonly \ --skip-enable-api \ --no-prompt ``` Add `--non-interactive-auth` to skip the browser step and finish later with `ghealth auth login --complete <code>`. ## Files written All under `~/.config/ghealth/` (override with `GHEALTH_CONFIG_DIR`): | File | Contents | Mode | |------|----------|------| | `client_secret.json` | Your GCP OAuth client | 0600 | | `credentials.json` | Access + refresh tokens (plaintext JSON) | 0600 | | `pending_auth.json` | In-progress non-interactive flow state | 0600 | | `config.toml` | Active profile (project, scopes, format) | 0600 | ## Authentication | Method | Usage | |--------|-------| | Stored credentials | `ghealth auth login` (default after setup) | | Headless (no browser) | `ghealth auth login --non-interactive` → click URL → `ghealth auth login --complet
- Setup
- Files written
- Authentication
- Bootstrap recipes for agents
- Command Structure
- Global Flags
- Discovery
- Output
ghealth setup # interactive wizard, run once ghealth setup \ ghealth setup --instructions Same six steps an auth error would emit when no client_secret.json is configured: ghealth setup # one interactive run; refresh handles itself afterwards ghealth setup --project-id $P --client-secret $CS \ stdout prints status: "setup_pending_auth" + an auth_url on stderr human clicks the URL on any browser → URL bar shows ?code=... ; agent copies it ghealth auth login --complete <code> on authenticated host:
What does the ghealth-shared skill do?
Shared prerequisites for all ghealth skills — auth, setup, global flags, command structure
How do I install it?
Run `npx skills add Google-Health-API/google-health-cli --skill ghealth-shared --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From Google-Health-API/google-health-cli, a repository with 219 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
