/tinycloud:tc-appsfrom TinyCloud
Keep the owner's personal records (weight, workouts, goals, todos, anything they track) in their own TinyCloud storage, organised into apps you create and extend as they go. Use when the owner asks you to log, record, track, add, look up, list or sum up something about their life, even if they don't mention TinyCloud. The owner approves each app once, on OpenKey, from a link and code you show them, or from a command you give them to run in their own terminal.
Ships in TinyCloud. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Install rule: never run npm install -g, npm i -g or sudo, and never pipe a download into a shell. The only installs are the two npm install --prefix steps on the setup page. If you're about to install anything else, stop and tell the owner.
What is and isn't secret: a permission slip (a delegation or a grant file) and the code OpenKey shows after you approve are fine to paste, share and store. Private keys, session keys, the files in ~/.tinycloud, API keys and secret values, and the part of a share link after # stay private. Full list: https://agents.tinycloud.xyz/agent#what-is-and-isnt-secret.
Meal, food, calorie, body-weight and recipe requests: catalog first. If the owner asks to log or look up something in a catalog app's domain (TINY-APPS.md §1 lists them: meals, food, calories, body weight, recipes), STOP. Do not start any other sign-in or access request, including the per-app sign-in in §4. Read the catalog now and follow it:
for f in "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/tc-apps/TINY-APPS.md" "$HOME/.agents/skills/tc-apps/TINY-APPS.md"; do if [ -f "$f" ]; then cat "$f"; break; fi; done
Sections 1 to 9 below apply only to a request that no catalog app owns (TINY-APPS.md §2). Which layout an app uses is decided by §1a.
For any request about the owner's data, read the catalog first. Read whichever path exists:
for f in "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/tc-apps/TINY-APPS.md" "$HOME/.agents/skills/tc-apps/TINY-APPS.md"; do if [ -f "$f" ]; then cat "$f"; break; fi; done
If a catalog app owns the domain, follow its fast path in that file: it checks the saved grant first, and no approval screen opens while the grant is live. Don't start the per-app sign-in (§3, §4 below) for that request. Don't run a tc from the PATH; use the TC_BIN that §1 prints.
An app is in one of two layouts, and §1a decides which, per app. New layout: the records are in the owner's applications space, one app per area of life (fitness, todos, …), each under its own key root, xyz.tinycloud.tinyapps.<app>/, with its own CLI profile, tinyapp-<app>, and its own approval: the owner approves one app at a time, for 30 days, from an OpenKey link and code you show them, and the approval covers only that app's folder. A catalog inside each app describes it, and a small discovery entry for each app lets any agent in any conversation find what exists. An optional SQL index answers questions over many records of one app at once (§7). Legacy mode: the app's records are in the default space under xyz.tinycloud.agent-data/, written by an earlier version of this skill. It keeps working exactly as before, through LEGACY.md, until the owner moves the app (§9) and the move is verified. You never move records yourself and never delete them.
Operator-set, never change or unset:
TC_BIN: absolute path to the TinyCloud CLI (tinycloud), CLI 1.3.4 or newer, used for Health Log, Recipes and legacy mode. Optional: without it, §1 finds ~/.local/share/tc-apps/tinycloud (or an earlier install's tc in the same folder), the script that the setup at agents.tinycloud.xyz/apps installs to run its private CLI and retry dropped connections. Never use command -v tc: it can resolve to /usr/sbin/tc or to another tool's tc.TC_BETA_BIN: absolute path to TinyCloud CLI 1.5.0-beta.2 or newer, used only for the new layout (§3 to §9 and SQL.md), because the create-only write and the browser sign-in of the new layout need it. Optional: without it, §1a finds the copy the setup installs in ~/.local/share/tc-apps/cli-beta. It has no retry script: if a command fails with NETWORK_ERROR, run it once more.TC_HOME: the CLI profile store. Optional.TC_APPS_STATE: this skill's state folder. Default $HOME/.local/state/tc-apps.How to run the blocks:
'<…>' values. Keep the single quotes. <APP> is the app's name: lowercase a-z, 0-9 and -, starting with a letter, such as fitness.<TC_BIN> and <STATE> are the first two lines §1 prints, copied exactly; <TC_BETA> is the line §1a prints. Don't put $TC_BIN back, and keep the assignments first, before umask 077: Claude Code can remember an approval only for commands whose paths it can work out from the block itself. Blocks of the new layout start TC_BIN='<TC_BETA>'; blocks of LEGACY.md start TC_BIN='<TC_BIN>'. Never mix them for one app.xargs -P 8) takes about as long as one. Wait up to 60 s.tinycloud commands that aren't here.The catalog in TINY-APPS.md (read first, per the top of this file) decides the target for any request about the owner's data: if a catalog app owns the domain, its routing there decides, and you log and show the result as it says. Use this skill's §1 to §9 only for a domain no catalog app owns. The owner's profile is never yours to read or use.
{ [ -n "${TC_BIN:-}" ] && echo "$TC_BIN"; } || ls "$HOME/.local/share/tc-apps/tinycloud" 2>/dev/null || ls "$HOME/.local/share/tc-apps/tc" 2>/dev/null || echo 'TC_BIN is unset'
{ [ -n "${TC_APPS_STATE:-}" ] && echo "$TC_APPS_STATE"; } || echo "$HOME/.local/state/tc-apps"
date +%Y-%m-%dT%H:%M%z | sed 's/..$/:&/'
date -u +%FT%TZ
It prints <TC_BIN>, <STATE>, <NOW> and <UTC>, one per line.
<NOW> is this computer's local date, time and UTC offset, e.g. 2026-10-06T18:30+02:00. Use it for "today", and for the time in an id.<UTC> is the clock's time in UTC, from date -u +%FT%TZ, e.g. 2026-10-06T16:30:12Z. It is what a record's at holds when the record is about right now. Never write a time from memory or an estimate: a time you didn't read from the clock or get from the owner is wrong. An id uses the local <NOW> and a "now" at uses UTC, on purpose: near local midnight the id's date and the at date can differ, and that is correct.TC_BIN is unset → the setup hasn't run on this computer, or ran before it installed ~/.local/share/tc-apps/tinycloud: stop, and ask the owner to send their request again with the setup link.Do this first for every app you are about to read or write, once per conversation. <APP> is the app's name. It prints one word and creates no profile, grant or record:
for d in "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/tc-apps" "$HOME/.agents/skills/tc-apps"; do if [ -f "$d/layout.sh" ]; then sh "$d/layout.sh" '<APP>'; break; fi; done
{ [ -n "${TC_BETA_BIN:-}" ] && echo "$TC_BETA_BIN"; } || ls "$HOME/.local/share/tc-apps/cli-beta/node_modules/.bin/tinycloud" 2>/dev/null || echo 'TC_BETA is unset'
The first line is the layout, the second is <TC_BETA>.
legacy → the app has records in default and no verified move exists on this computer. Keep reading and writing the old layout exactly as before: read LEGACY.md in full and follow its §2 to §8, with <TC_BIN>. Request no new approval, create no new profile, and don't use §3 to §9 for this app. Once per conversation, tell the owner: "This app can move to its own folder: say "move my records" when you want it (nothing is deleted)." When the owner says it, follow §9. Until the move is verified, nothing about this app changes.new → either a verified move exists on this computer (§9), or the old place holds no records for this app. Use §2 to §8 below, with <TC_BETA>.ask → this computer can't see the old place (no earlier sign-in, or it expired). The owner answers one question: "Did you keep with an earlier version of this skill, in your TinyCloud?" If yes or not sure, treat the app as legacy and sign in as LEGACY.md §4 says; if its catalog then lacks the app, it's new. If no, it's new. How to get the answer:
agents.tinycloud.xyz/apps) ran in this conversation, or the request is setup only → don't stop to ask first. Treat the app as new up to its approval: run §3, then §4a, and end §4a's message with this line: "If you kept with an earlier version of this skill, don't approve: tell me, and I'll use those records instead." A code from the owner is a no: finish with §4b. A yes or not sure is legacy: don't use that link (the tinyapp-<APP> profile it made stays unused), and sign in as LEGACY.md §4 says. Write nothing for this app until the owner has answered one way or the other.check-failed → the old place couldn't be checked (for example the network). Tell the owner in one line, write nothing, and try again on the next request.TC_BETA is unset, or jq is needed on stderr (exit 3) → jq isn't installed on this computer. Tell the owner in one line to install jq, write nothing for this app, and run §1a again after they say it's done. migrate.sh needs jq too.TC_BETA is unset → in the new case, the setup hasn't installed it: stop, and ask the owner to send their request again with the setup link.Only a verified receipt switches an app: never switch because you moved, or think you moved, records yourself.
Pick the app first: <APP> is its name, <ID> is xyz.tinycloud.tinyapps.<APP>, and every key of that app starts with <ID>/. The app names catalog, index-stale, healthlog and recipes are reserved, and a kind is never named catalog or index-stale.
Key (in the applications space) | Holds |
|---|---|
<ID>/catalog | the app's catalog record |
<ID>/catalog/<kind> | a catalog record for each kind of thing the app holds |
<ID>/<kind>/<YYYY-MM>/<id> | records of a log kind: things that happen, such as a weigh-in or a run |
<ID>/<kind>/<state>/<id> | records of an item kind: things with a status, such as a todo or a goal |
xyz.tinycloud.tinyapps.catalog/<APP>/entry | the app's discovery entry: its name and title, no records |
Names and keys.
a-z, 0-9 and -. An app name starts with a letter.a-z, 0-9 and _.due and done mean the same in every kind: the date something is due, and the date it was done, both YYYY-MM-DD. A month counts as its last day: "by December" is 2026-12-31./-._~:+@=,. Never a space, ?, # or a non-ASCII letter: a ? cuts the key short without an error and overwrites another record.Which per a log kind gets.
per: day → a measurement taken at most once a day, such as body weight, sleep or steps.per: time → anything the owner does, which can happen twice in a day: a workout, a run, a meal, a payment.Ids.
per: day: the owner's local date, e.g. 2026-10-06. A new value for that day replaces the record.per: time: local date and time, then a slug of the main subject: 2026-10-06T1830-bench-press.
0800, afternoon 1500, evening or tonight 2000.<NOW>'s time for today, and 1200 for another day.-2, -3.2026-10-06-renew-passport. The onboarding default todos/todo/open/try-my-personal-apps uses a fixed id so it stays unique across reruns; it counts as present if it exists in open/ or done/.<YYYY-MM> is the month of a log id's date.A record is one line of JSON: {"v":1,"at":"2026-10-06T18:30+02:00","data":{"exercise":"bench press","sets":3,"reps":8,"kg":60},"by":"claude-code"}.
v: the kind's v from its catalog record.at: when it happened, not when you saved it.
<NOW>: 2026-10-06T08:00+02:00."2026-10-06".<UTC>, e.g. "2026-10-06T16:30:12Z". If §1 ran more than 5 minutes before you write (a sign-in wait counts), run date -u +%FT%TZ again first and use that.data: the fields the kind lists. Leave out what the owner didn't say. Times belong in at and the id, never in a field.by: your client: claude-code, codex or opencode.An app record: {"app":"fitness","title":"Fitness","about":"Body weight, fitness goals and training.","created":"2026-10-06","by":"claude-code"}
A discovery entry: {"v":1,"app":"fitness","id":"xyz.tinycloud.tinyapps.fitness","title":"Fitness"}. It holds only these four fields, with the title from the app record.
A kind record: {"app":"fitness","kind":"lift","about":"Strength training: one record per exercise per workout.","shape":"log","per":"time","v":1,"fields":{"exercise":"text: lowercase name, e.g. bench press","sets":"integer","reps":"integer: reps per set","kg":"number: load in kilograms"},"notes":"Volume = sets x reps x kg. The id ends with the exercise slug.","created":"2026-10-06","by":"claude-code"}
shape: log, with per (day or time), or item, with states. New items start in the first state, e.g. ["open","done"].fields: name → "type: meaning". A field with a unit names it: kg, km, minutes.notes (how to read or sum up the records), history (how to read records with an older v), updated.Rules:
about, and keep kinds broad.
session with a sport field, not run and bouldering. The next sport is then a new value, not a new kind.session (sport, minutes, km); strength exercises with sets, reps and kg are their own kind, like lift above.books app." or "I added a goal kind to fitness." A new app needs its own approval first (§4), and only after §3 found no entry and no old records.fields with "(added )", then use it. Older records simply lack it.kg), and say so. If a kind truly has to change shape, raise its v and describe the old version under history; never rewrite old records to match."data" of kv get's output). A string there means it was written as text, not through §6: report it.Run this for an app that §1a says is new, once per conversation. It checks the app's own sign-in, then looks for the app's discovery entry.
TC_BIN='<TC_BETA>'; umask 077
"$TC_BIN" --version
"$TC_BIN" kv get 'xyz.tinycloud.tinyapps.catalog/<APP>/entry' --space applications --json --profile tinyapp-<APP>
"$TC_BIN" kv list --prefix 'xyz.tinycloud.tinyapps.<APP>/catalog/' --space applications --all --json --profile tinyapp-<APP>
"$TC_BIN" context --json --profile tinyapp-<APP>-sql 2>&1 | grep -oE '"state": "[a-z]+"|PROFILE_NOT_FOUND'
1.5.0-beta.2 or newer. Otherwise stop and tell the owner that <TC_BETA> must be TinyCloud CLI 1.5.0-beta.2 or newer: for the setup's own copy, they send their request with the setup link again, which installs it; a TC_BETA_BIN they set themselves, they update.PROFILE_NOT_FOUND, AUTH_REQUIRED, AUTH_EXPIRED, AUTH_UNAUTHORIZED or PERMISSION_DENIED from the entry read, or ERROR with "persisted SIWE is expired" (the 30 days are over) → §4 for this app, then run this block again."keys" → the app exists in applications: use it. The keys are the app's kind records, <ID>/catalog/<kind>; "keys": [] means no kinds yet. Read the app record <ID>/catalog and the kind records you need with §5's blocks. For "what do you keep for me?", list the entries under xyz.tinycloud.tinyapps.catalog/ with any app's profile ("$TC_BIN" profile list names them: tinyapp-<app>), then read each app's catalog records the same way; also list the old catalog (LEGACY.md §3) for apps still in legacy mode.NOT_FOUND → this app has no entry in applications yet: a new app (§1a found no old records, or the owner's move is verified and the entry is being read for the first time). Continue with §4 (its approval) if the sign-in is missing, then rule 1 and rule 2 of §2. If a verified receipt exists for this app but the entry is missing, write nothing and tell the owner.SPACE_NOT_HOSTED → a new account's space is still being set up in the background after sign-in. Tell the owner "Your TinyCloud is still being set up…", then rerun only the command that failed, after 5, 10, 20, 40 and 60 seconds (about 2¼ minutes in all), stopping as soon as it succeeds. If it still fails, tell the owner plainly that their TinyCloud space isn't ready yet and to try again in a few minutes, and stop. Never make up a /delegate link, a second or more powerful sign-in, --replace-session or tc space host."state": "present" → the fast copy is signed in."state": "expired" → it exists, but needs a new approval.PROFILE_NOT_FOUND → there's no fast copy yet. That's normal, not an error.Do this when §3 or §8 sends you here, once per app. The block writes this app's request, creates its profile if it doesn't exist yet (PROFILE_NOT_FOUND), and asks OpenKey for approval through the browser sign-in with a pasted code. It prints a link and returns; the owner approves on OpenKey and sends you the code OpenKey shows (4b).
4a. Get the approval link. <Title> is the app's title: letters, digits and spaces only.
TC_BIN='<TC_BETA>'; STATE='<STATE>'; umask 077
mkdir -p "$STATE"
printf '%s\n' '{"manifest_version":1,"app_id":"xyz.tinycloud.tinyapps.<APP>","name":"<Title> (tiny app)","space":"applications","defaults":false,"permissions":[{"service":"tinycloud.kv","path":"xyz.tinycloud.tinyapps.<APP>/","skipPrefix":true,"actions":["get","put","list","del"]},{"service":"tinycloud.kv","path":"xyz.tinycloud.tinyapps.catalog/","skipPrefix":true,"actions":["get","list"]},{"service":"tinycloud.kv","path":"xyz.tinycloud.tinyapps.catalog/<APP>/","skipPrefix":true,"actions":["put"]}]}' > "$STATE/tinyapp-<APP>.json"
"$TC_BIN" context --json --profile tinyapp-<APP> 2>&1 | grep -q PROFILE_NOT_FOUND && "$TC_BIN" init --name tinyapp-<APP> --key-only > /dev/null
"$TC_BIN" --profile tinyapp-<APP> auth login --method openkey --paste --manifest "$STATE/tinyapp-<APP>.json" --expiry 30d < /dev/null 2> "$STATE/tinyapp-<APP>-login.err"
grep -o 'https*://[^ ]*/delegate?[^ ]*' "$STATE/tinyapp-<APP>-login.err" | head -n 1; grep -q '"PASTE_CODE_MISSING"' "$STATE/tinyapp-<APP>-login.err" && echo 'waiting for the code' || grep -o '"code": "[A-Z_]*"' "$STATE/tinyapp-<APP>-login.err"
The link, then waiting for the code → expected. Send the owner this message, with the link, and end your turn:
Open and sign in to OpenKey. You will see "Update application data"; open "Advanced details" to see the folder
xyz.tinycloud.tinyapps.<APP>/in yourapplicationsspace and the permissions: key-value access to that folder for 30 days, reading the list of tiny apps and writing this app's entry in it, and a read of your permissions, which doesn't read your data. Approve, then paste here the code OpenKey shows.
Any other code → §8; SESSION_IN_USE means this app is already signed in.
Don't open the link yourself, and run 4a only once per approval. Each app has its own approval: never ask for one that covers several apps, and never ask for access to the whole applications space.
4b. Finish with the owner's code. The code belongs to this app's own profile, so the owner can send it to you in the chat. The CLI reads only the first non-blank line, so the code must go on one line: remove any code fence, quotes or spaces around it, and join line breaks, before the heredoc. A quoted heredoc keeps every character of the code as it is; <MARK> is a new random hex value for each block, from node -e 'console.log(require("crypto").randomBytes(16).toString("hex"))', used on both marker lines.
TC_BIN='<TC_BETA>'; STATE='<STATE>'; umask 077
"$TC_BIN" --profile tinyapp-<APP> auth login --method openkey --paste --manifest "$STATE/tinyapp-<APP>.json" --expiry 30d <<'CODE_<MARK>'
<the code, on one line>
CODE_<MARK>
When the command exits, its output ends with JSON:
"authenticated": true and "declined": [] → run §3 again, then carry on with the request."declined" lists xyz.tinycloud.tinyapps.<APP>/ → the owner unchecked it, so nothing can be read or saved. Tell them, and stop.OPENKEY_PROOF_INVALID, or the code was cut short → ask for the whole code again.Run one sign-in at a time, and never retry in a loop. If a tool result says a step was denied, stop. Tell the owner what the step does and ask them to reply naming it, for example "Go ahead: get the approval link for my fitness app." Then wait. Don't edit their settings files or suggest changing them, and don't run it another way.
Read fresh for every question about a record, even one you read earlier in the conversation: another agent may have changed it since.
One record:
TC_BIN='<TC_BETA>'; umask 077
"$TC_BIN" kv get '<key>' --space applications --json --profile tinyapp-<APP>
It prints {"key": …, "data": <record>, …}. NOT_FOUND → there's no record at that key.
What's in one or more folders, side by side:
TC_BIN='<TC_BETA>'; umask 077
printf '%s\n' '<prefix>' '<prefix>' | xargs -P 8 -I{} "$TC_BIN" kv list --prefix {} --space applications --all --json --profile tinyapp-<APP>
A prefix ends with /: a month folder (<ID>/lift/2026-10/), a whole kind (<ID>/lift/), or an item state (<ID>/todo/open/). Each prints {"keys": […], "count": …, "prefix": …}.
Several records, side by side:
TC_BIN='<TC_BETA>'; umask 077
printf '%s\n' '<key>' '<key>' | xargs -P 8 -I{} "$TC_BIN" kv get {} --space applications --json --profile tinyapp-<APP>
It prints one JSON object per key, in any order, so match them by "key". A key you asked for that's missing from the output failed, and its error is printed instead:
NOT_FOUND → the record is gone.To answer a question:
per: time kinds, whose slug matches. Then read only those.present, answer from it (§7).One record, in the app's own folder. The same block writes catalog records. Use --if-none-match '*' whenever the key must be new: a catalog record, a per: time record, an item. If the key exists, the CLI writes nothing and exits 5 with KV_ALREADY_EXISTS. Leave the flag out only when the owner's new value should replace the record: a per: day record, or a change to a catalog record you read fresh (§2 rule 7).
TC_BIN='<TC_BETA>'; umask 077
"$TC_BIN" kv put '<key>' --stdin --space applications --if-none-match '*' --json --profile tinyapp-<APP> <<'EOF'
<record>
EOF
"$TC_BIN" kv get '<key>' --space applications --json --profile tinyapp-<APP>
--stdin like this. Never pass it as an argument: it would be stored as text and read back as a string.kv put command with its own EOF lines inside the block. Then add one kv get line for each key you wrote, after the last EOF.KV_ALREADY_EXISTS → the key is taken. For a per: time id, add -2, -3. For a catalog record, another agent wrote it: read it fresh and extend it (§2 rule 7). For an item, read it before changing anything.xyz.tinycloud.tinyapps.catalog/<APP>/entry (§2), after the app record and the first kind record, with the same --if-none-match '*' block.per: day record is what the owner asked for. Write it without asking and without the flag, and tell them it replaced the earlier record. Change other existing records only when the owner asks.An item's status changes (a todo is done, a goal is reached): write the record under the new state, with any new fields such as "done":"2026-10-07", then delete the old key.
TC_BIN='<TC_BETA>'; umask 077
"$TC_BIN" kv put '<new key>' --stdin --space applications --if-none-match '*' --json --profile tinyapp-<APP> <<'EOF' &&
<record>
EOF
"$TC_BIN" kv get '<new key>' --space applications --json --profile tinyapp-<APP> &&
"$TC_BIN" kv delete '<old key>' --space applications --json --profile tinyapp-<APP>
The old key is deleted only after the new record was written and read back. If the block stops before the delete, the old record is still there: report the error and don't delete it some other way. If the new key already exists (KV_ALREADY_EXISTS), the item is already in that state: read the new key, and delete the old one only when the new record is the one you meant to write.
If an id shows up under two states, the later state in the kind's states wins; delete the other. Delete any other record only when the owner asks, with kv delete as above.
If §3 showed the app's tinyapp-<APP>-sql profile, present or expired, follow SQL.md §3 after every write, status change and delete.
An app's index keeps a copy of every record of that app in a SQLite database, xyz.tinycloud.tinyapps.<APP>/index, so a question over many records takes one query, not minutes of reads. The KV records stay the truth: the index can always be rebuilt from them. It is optional, per app, and needs its own approval, on OpenKey's approval page. The owner approves there, then sends you the code OpenKey shows (SQL.md §1b finishes the sign-in with it), or runs the sign-in command in their own terminal and pastes the code there.
The owner never has to ask for it, or know the words. You ask for its permission yourself, once per conversation, the first time an answer needed more than about 40 records while §3 showed no index (PROFILE_NOT_FOUND) or an expired one:
SQL.md §1a, and put its message after the answer, in the same reply.When talking to the owner, call it "a fast, searchable copy of your records". Never say "index", "SQL" or "database"; OpenKey's "Advanced details" name it, and the message tells them what they'll see there. If they don't approve, carry on without it: everything still works, only slower.
Read SQL.md in full, at the install path shown below, when:
ABCD-EFGH, or the full code, a long block of letters and digits that starts with eyJ;present or expired) and you write, move or delete a record;present and a question needs more than about 40 records.For example:
cat "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/tc-apps/SQL.md".cat "$HOME/.agents/skills/tc-apps/SQL.md".The CLI prints {"error":{"code":…}} on stderr. Branch on the code:
NOT_FOUND (exit 4) on get → there's no record there.KV_ALREADY_EXISTS (exit 5) on a write with --if-none-match '*' → §6.PROFILE_NOT_FOUND, AUTH_REQUIRED, AUTH_EXPIRED or PERMISSION_DENIED → §4 for the app.ERROR with "persisted SIWE is expired": the 30 days are over. For profile tinyapp-<APP> → §4; for tinyapp-<APP>-sql → SQL.md §7.AUTH_UNAUTHORIZED → if the key starts with xyz.tinycloud.tinyapps.<APP>/ and has no ?, #, space or non-ASCII letter, the sign-in has expired or lost its scope: §4. Otherwise fix the key.NETWORK_ERROR → TinyCloud didn't answer, even after <TC_BIN>'s own retries. Run the command once more. If it fails again, tell the owner that TinyCloud isn't reachable right now. Ignore the error's hint to switch profiles: the profiles are right.OPENKEY_OWNER_MISMATCH → they approved with a different account or key than this profile's. Ask them to use the same one as before, and run §4 again when they're ready.SPACE_NOT_HOSTED → handle it as in §3.STORAGE_QUOTA_EXCEEDED or STORAGE_LIMIT_REACHED (exit 10) → nothing was saved. Tell the owner their TinyCloud storage is full, their records are still readable, and they can upgrade at https://account.tinycloud.xyz/storage. Don't retry, and don't delete records to make room.SESSION_IN_USE → ask the owner. Never pass --replace-session.An app in legacy mode (§1a) keeps working in the old layout until the owner moves it. Offer the move once per conversation, as §1a says; start it only when the owner says it, for example "move my fitness records". The old records stay in default until the owner asks for them to be deleted, and you never delete them.
The order is fixed, and no step is skipped:
applications, creating each key only if it doesn't exist yet.<STATE>/migration/<APP>.receipt.json, says "verified": true. Until both exist, layout.sh prints legacy and the app stays in the old layout.Any mismatch, collision, refusal or error means: do not switch, do not delete. The app stays in legacy mode. Tell the owner in one line what the script printed, and stop. The owner runs the script, in their own terminal, and it only reads the old place: you never run it, never read the owner's profile, and never change the old place on your own.
What you do:
<TC_BETA>) first: the copy writes with that profile. This is the only new grant, and you ask for it only now. If <TC_BETA> is unset, stop and ask the owner to send their request again with the setup link.agent-data sign-in to read the old place. If that has expired, or this computer never had it, add --source-profile default to use the owner's own sign-in:for d in "${CLAUDE_CONFIG_DIR:-$HOME/.claude}/skills/tc-apps" "$HOME/.agents/skills/tc-apps"; do if [ -f "$d/migrate.sh" ]; then sh "$d/migrate.sh" --dry-run '<APP>'; break; fi; done
--dry-run. It copies, reads back, compares, re-checks the old place, and only then writes the discovery entry and the receipt, with the counts and a digest. It leaves the old records untouched. It can be run again after a failure: keys that already hold the same content are recognised.new; §3 shows the entry; the receipt says "verified": true; listing <ID>/ (§5, with --all) gives counts.total keys. Read one record. Only then use the app in applications (§2 to §8), and tell the owner the old records are still in default and can be deleted only when they ask.<STATE>/migration/) before using the app there. It holds counts and a digest, no keys. Until it is there, that computer keeps the old layout, and records it writes there are not in the new folder.Going back is the owner's decision. Stop writing the app, and tell the owner that records written in applications since the move exist only there. Copying them to the old place is a separate step the owner approves: create-only, each record read back before the old place is used again. Then the owner removes the receipt file, and layout.sh prints legacy again. If a key differs between the two places, keep both and ask the owner which is right; never overwrite either.
LEGACY-SQL.md (opens in a new tab)LEGACY.md (opens in a new tab)QUICKSTART.md (opens in a new tab)SHA256SUMS (opens in a new tab)SQL.md (opens in a new tab)TINY-APPS.md (opens in a new tab)announce.sh (opens in a new tab)layout.sh (opens in a new tab)migrate.sh (opens in a new tab)owner-grant.sh (opens in a new tab)owner-undo.sh (opens in a new tab)tc-wrapper.sh (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub tinycloudlabs/claude-code-plugins --plugin tinycloud2 skills in this plugin
Other plugins' skills for the same job