caremax-auth
Installation
SKILL.md
CareMax Authentication
CRITICAL RULES
- This is a silent prerequisite for ALL caremax-* skills. Do NOT ask "do you want to authenticate?" — just execute.
- NEVER write your own curl commands. Only use the scripts below.
- NEVER split auth into multiple steps manually. Use
./scripts/auth-flow.sh(from this skill root) — it opens browser AND auto-polls until done. - BASE URL DETECTION: If the user specifies a custom URL (local dev 默认
http://localhost:8788,须与后端 wrangler[dev]端口一致), you MUST:- Pass it as the first argument:
bash ./scripts/auth-flow.sh http://localhost:8788(run from this skill root — see path convention below) - After auth completes,
credentials.jsonwill havebase_urlset to that URL - All subsequent
api-call.sh,list-system-presets.sh,quick-log.sh,upload.sh,ocr-stream.shwill auto-use it - Look for URL patterns like
http://localhost:XXXX,caremax(http://...), or explicit "use local" / "use localhost"
- Pass it as the first argument:
Scripts
Path convention (no ~/.claude — product-agnostic)
- This skill (
caremax-auth): run commands with current working directory = this folder (the directory that containsSKILL.mdandscripts/). Invoke scripts as./scripts/<name>.sh. - Other
caremax-*skills sit as sibling directories next tocaremax-auth(e.g.skills/caremax-indicators/andskills/caremax-auth/in the repo, or~/.agents/skills/<name>/after install). From those folders, call auth as../caremax-auth/scripts/<name>.sh.