[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7AHCPY17M9BQEXRPG8R71NB":3,"skill-same:01M7AHCPY17M9BQEXRPG8R71NB":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":31,"install":32,"resources":44},"01M7AHCPY17M9BQEXRPG8R71NB","sync-to-hub",null,"Promote project-side `.claude\u002F` improvements (skills, agents, hooks, rules) into the sam-cc-setup plugin in the hub repo. Sync is project -> hub, ADDITIVE ONLY. Each new or changed file is offered with a 3-way prompt (sync now \u002F defer \u002F never) so trial-only experiments do not pollute the curated hub. Use after a session in which you used or refined a tool worth keeping across future projects. NOT for mid-session use, uncommitted project work, or deleting anything from the hub (edit the hub directly for that).","SamyakJhaveri\u002Floam","SamyakJhaveri","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F39847642?v=4","01M7AH87180VZDSRHE20JD1S32","Samyak Jhaveri","01M7AH871WNGEHDVNXJM2B520R",0,"MIT","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fcultivation\u002Fparked\u002Fsam-cc-setup\u002Fskills\u002Fsync-to-hub\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: sync-to-hub\ndescription: >\n  Promote project-side `.claude\u002F` improvements (skills, agents, hooks, rules) into\n  the sam-cc-setup plugin in the hub repo. Sync is project -> hub, ADDITIVE ONLY.\n  Each new or changed file is offered with a 3-way prompt (sync now \u002F defer \u002F\n  never) so trial-only experiments do not pollute the curated hub. Use after a\n  session in which you used or refined a tool worth keeping across future\n  projects. NOT for mid-session use, uncommitted project work, or deleting\n  anything from the hub (edit the hub directly for that).\ndisable-model-invocation: true\n---\n\n# \u002Fsync-to-hub\n\nPromote `.claude\u002F` work from a project repo into the sam-cc-setup plugin inside the hub repo, at `\u003Chub>\u002Fcultivation\u002Fmarketplace\u002Fsam-cc-setup\u002F`.\n\n> **Prerequisite:** the hub repo must be cloned locally. Its location comes from `SAM_CC_HUB_REPO` (default `$HOME\u002FDesktop\u002Floam`). It is not present on every box; `sync.sh` exits 1 with a hint if missing.\n\n## Direction\n\n**Project -> hub. ADDITIVE ONLY.**\n\nThe hub is the curated master set you bootstrap new projects from (via `claude plugin install sam-cc-setup@seed-skills`, or the Copier template for full renders). For generic assets in a template-*rendered* project, the template's own `template-sync promote` into `seed\u002F` is the native path; it requires `.copier-answers.yml` or `template-manifest.json`, so in a repo without those this skill is the only promote path. A project may be a subset of the hub, or extend the hub with experiments. This skill promotes useful project-side experiments INTO the hub; it never deletes from the hub based on what a project lacks.\n\n## Iron law\n\n```\nNO HUB MUTATION WITHOUT PER-FILE USER APPROVAL\n```\n\nEach new or changed file is presented to you with a 3-way prompt:\n\n- `y` \u002F `yes` \u002F `sync` - sync this file to hub now\n- empty \u002F `d` \u002F `defer` - skip this run; ask again after the threshold (default)\n- `n` \u002F `never` - skip permanently (until state cleared manually)\n\nDefault = defer. Pressing Enter on every prompt syncs nothing. Sync is opt-in.\n\n## State persistence\n\nDecisions are recorded in `\u003Chub>\u002F.sync-state` (gitignored, per-hub-clone). Each `\u002Fsync-to-hub` invocation increments a session counter. Three decision types:\n\n- **Defer:** the file is silently skipped (no prompt) until session count reaches the recorded `ask_again_at` value. Defer threshold defaults to 4 sessions; override via env `SAM_CC_DEFER_SESSIONS=N` (3-6 is the recommended range).\n- **Never:** the file is silently skipped on every future run. To re-enable, edit `.sync-state` and remove the `never:\u003Cpath>` line.\n- **Synced:** records when the file was last promoted to hub.\n\nState file format (flat KV, no jq dependency):\n\n```\nsession=12\ndefer:skills\u002Ffoo\u002FSKILL.md:16\nnever:skills\u002Fbar\u002FSKILL.md\nsynced:skills\u002Fbaz\u002FSKILL.md:8\n```\n\nTo reset all state: `rm \u003Chub>\u002F.sync-state`.\n\n## Invocation\n\n```\n\u002Fsync-to-hub\n```\n\nOptionally override the hub location via env var `SAM_CC_HUB_REPO=\u002Fpath\u002Fto\u002Fhub`.\n\n## Workflow\n\n1. Resolve `SAM_CC_HUB_REPO` (default `$HOME\u002FDesktop\u002Floam`). Verify it exists and is a git repo.\n2. Verify the project's `.claude\u002F` has no uncommitted changes. If dirty, refuse - commit or stash first.\n3. Verify the hub's working tree is clean. If dirty, warn and ask to continue.\n4. Compute the additive diff (`rsync --dry-run -a --itemize-changes ...`). Hub-only files are ignored. Standard exclusions: `audit.log`, `settings.local.json`, `*.local.*`.\n5. Print summary: `X new files, Y changed files`.\n6. For each ADDED file: prompt `Add \u003Cfile> to hub? [y\u002Fd\u002Fn]`. Default defer.\n7. For each CHANGED file: prompt `Update \u003Cfile> in hub? [y\u002Fd\u002Fn]`. Default defer.\n8. If nothing approved: exit 0 with `\"Nothing approved - exiting.\"`.\n9. Apply approved files via `rsync --files-from=\u003Capproved>`.\n10. Show the resulting `git status` in the hub.\n11. Prompt `Commit synced files? [Y\u002Fn]`. Default Y.\n12. On Y: commit with message `sync: from \u003Cproject> on \u003CYYYY-MM-DD>`, then a separate\n    default-NO prompt asks before pushing (pushes are outward-facing).\n13. On push failure: report the error and instruct a manual `cd \u003Chub> && git pull --rebase && git push`.\n\n## Record why the change traveled\n\nAfter a sync batch promotes anything, add one line to the hub's `cultivation\u002Fmarketplace\u002FUPGRADING.md`.\nState WHAT changed and WHY it traveled: a model change, a paper, a blog post, an incident.\nLink the source when one exists.\nThe hub's provenance rule (top of that file) is the authority; this is a nudge, not a gate.\nAfter a promotion commits, the scan prints a stderr reminder if the batch left `UPGRADING.md` untouched; it is advisory and never blocks.\n\n## Implementation\n\nThe deterministic logic lives in `sync.sh`, bundled next to this SKILL.md. It is a\nthin wrapper that execs the canonical scan engine in the hub\n(`\u003Chub>\u002Fbin\u002Fagent-sync.sh scan`), so the apply path has no LLM in it. Approvals come\nfrom interactive prompts on stdin, so the script can be driven by a human typist OR\nby piped stdin (for testing or scripted approval flows).\n\n**Direct invocation (recommended):**\n\n```bash\ncd \u003Cyour-project>\nbash \u003Cpath-to-this-skill>\u002Fsync.sh\n```\n\n**Scripted invocation:**\n\n```bash\n# Approve all additions, accept default-Y commit\u002Fpush:\nyes y | bash \u003Cpath-to-this-skill>\u002Fsync.sh\n# Decline everything:\nyes 'n' | bash \u003Cpath-to-this-skill>\u002Fsync.sh\n```\n\nPassing `--prune` forwards to the engine's `prune` subcommand instead of `scan`.\n\n## Multi-level dependency chains need one rerun per level\n\nThe hub-presence guard withholds a consumer until every dependency in its transitive closure already exists in the hub's committed HEAD, so a chain three levels deep - a hook that sources a helper, which in turn sources a lower-level helper - syncs bottom-up: approve the deepest helper first, let the run commit it, rerun, approve the level above it, and so on. A withheld consumer with a \"sync the dependency first, then rerun\" message is this flow working, not a bug.\n\n## When NOT to use\n\n- During a live debugging session - your `.claude\u002F` may have transient experimental tweaks you have not yet decided to keep. Sync at session end, not mid-session.\n- When you have not yet committed your project work - the dirty-check refuses to sync until the project's `.claude\u002F` is committed.\n- For removing a skill from the hub - this skill cannot delete from the hub. Edit the hub directly and commit there.\n\n## Interaction from inside Claude Code\n\nIf you invoke `\u002Fsync-to-hub` from a Claude Code session, the recommended flow is:\n\n1. Claude opens a Bash tool call: `bash \u003Cpath-to-this-skill>\u002Fsync.sh`\n2. The interactive prompts appear in the Bash tool output. Claude relays them to you.\n3. You answer through Claude's conversation; Claude pipes your answers via stdin.\n\nYou may instead run `sync.sh` directly in a separate terminal - the prompts work natively in any TTY.\n","# \u002Fsync-to-hub\n\nPromote `.claude\u002F` work from a project repo into the sam-cc-setup plugin inside the hub repo, at `\u003Chub>\u002Fcultivation\u002Fmarketplace\u002Fsam-cc-setup\u002F`.\n\n> **Prerequisite:** the hub repo must be cloned locally. Its location comes from `SAM_CC_HUB_REPO` (default `$HOME\u002FDesktop\u002Floam`). It is not present on every box; `sync.sh` exits 1 with a hint if missing.\n\n## Direction\n\n**Project -> hub. ADDITIVE ONLY.**\n\nThe hub is the curated master set you bootstrap new projects from (via `claude plugin install sam-cc-setup@seed-skills`, or the Copier template for full renders). For generic assets in a template-*rendered* project, the template's own `template-sync promote` into `seed\u002F` is the native path; it requires `.copier-answers.yml` or `template-manifest.json`, so in a repo without those this skill is the only promote path. A project may be a subset of the hub, or extend the hub with experiments. This skill promotes useful project-side experiments INTO the hub; it never deletes from the hub based on what a project lacks.\n\n## Iron law\n\n```\nNO HUB MUTATION WITHOUT PER-FILE USER APPROVAL\n```\n\nEach new or changed file is presented to you with a 3-way prompt:\n\n- `y` \u002F `yes` \u002F `sync` - sync this file to hub now\n- empty \u002F `d` \u002F `defer` - skip this run; ask again after the threshold (default)\n- `n` \u002F `never` - skip permanently (until state cleared manually)\n\nDefault = defer. Pressing Enter on every prompt syncs nothing. Sync is opt-in.\n\n## State persistence\n\nDecisions are recorded in `\u003Chub>\u002F.sync-state` (gitignored, per-hub-clone). Each `\u002Fsync-to-hub` invocation increments a session counter. Three decision types:\n\n- **Defer:** the file is silently skipped (no prompt) until session count reaches the recorded `ask_again_at` value. Defer threshold defaults to 4 sessions; override via env `SAM_CC_DEFER_SESSIONS=N` (3-6 is the recommended range).\n- **Never:** the file is silently skipped on every future run. To re-enable, edit `.sync-state` and remove the `never:\u003Cpath>` line.\n- **Synced:** records when the file was last promoted to hub.\n\nState file format (flat KV, no jq dependency):\n\n```\nsession=12\ndefer:skills\u002Ffoo\u002FSKILL.md:16\nnever:skills\u002Fbar\u002FSKILL.md\nsynced:skills\u002Fbaz\u002FSKILL.md:8\n```\n\nTo reset all state: `rm \u003Chub>\u002F.sync-state`.\n\n## Invocation\n\n```\n\u002Fsync-to-hub\n```\n\nOptionally override the hub location via env var `SAM_CC_HUB_REPO=\u002Fpath\u002Fto\u002Fhub`.\n\n## Workflow\n\n1. Resolve `SAM_CC_HUB_REPO` (default `$HOME\u002FDesktop\u002Floam`). Verify it exists and is a git repo.\n2. Verify the project's `.claude\u002F` has no uncommitted changes. If dirty, refuse - commit or stash first.\n3. Verify the hub's working tree is clean. If dirty, warn and ask to continue.\n4. Compute the additive diff (`rsync --dry-run -a --itemize-changes ...`). Hub-only files are ignored. Standard exclusions: `audit.log`, `settings.local.json`, `*.local.*`.\n5. Print summary: `X new files, Y changed files`.\n6. For each ADDED file: prompt `Add \u003Cfile> to hub? [y\u002Fd\u002Fn]`. Default defer.\n7. For each CHANGED file: prompt `Update \u003Cfile> in hub? [y\u002Fd\u002Fn]`. Default defer.\n8. If nothing approved: exit 0 with `\"Nothing approved - exiting.\"`.\n9. Apply approved files via `rsync --files-from=\u003Capproved>`.\n10. Show the resulting `git status` in the hub.\n11. Prompt `Commit synced files? [Y\u002Fn]`. Default Y.\n12. On Y: commit with message `sync: from \u003Cproject> on \u003CYYYY-MM-DD>`, then a separate\n    default-NO prompt asks before pushing (pushes are outward-facing).\n13. On push failure: report the error and instruct a manual `cd \u003Chub> && git pull --rebase && git push`.\n\n## Record why the change traveled\n\nAfter a sync batch promotes anything, add one line to the hub's `cultivation\u002Fmarketplace\u002FUPGRADING.md`.\nState WHAT changed and WHY it traveled: a model change, a paper, a blog post, an incident.\nLink the source when one exists.\nThe hub's provenance rule (top of that file) is the authority; this is a nudge, not a gate.\nAfter a promotion commits, the scan prints a stderr reminder if the batch left `UPGRADING.md` untouched; it is advisory and never blocks.\n\n## Implementation\n\nThe deterministic logic lives in `sync.sh`, bundled next to this SKILL.md. It is a\nthin wrapper that execs the canonical scan engine in the hub\n(`\u003Chub>\u002Fbin\u002Fagent-sync.sh scan`), so the apply path has no LLM in it. Approvals come\nfrom interactive prompts on stdin, so the script can be driven by a human typist OR\nby piped stdin (for testing or scripted approval flows).\n\n**Direct invocation (recommended):**\n\n```bash\ncd \u003Cyour-project>\nbash \u003Cpath-to-this-skill>\u002Fsync.sh\n```\n\n**Scripted invocation:**\n\n```bash\n# Approve all additions, accept default-Y commit\u002Fpush:\nyes y | bash \u003Cpath-to-this-skill>\u002Fsync.sh\n# Decline everything:\nyes 'n' | bash \u003Cpath-to-this-skill>\u002Fsync.sh\n```\n\nPassing `--prune` forwards to the engine's `prune` subcommand instead of `scan`.\n\n## Multi-level dependency chains need one rerun per level\n\nThe hub-presence guard withholds a consumer until every dependency in its transitive closure already exists in the hub's committed HEAD, so a chain three levels deep - a hook that sources a helper, which in turn sources a lower-level helper - syncs bottom-up: approve the deepest helper first, let the run commit it, rerun, approve the level above it, and so on. A withheld consumer with a \"sync the dependency first, then rerun\" message is this flow working, not a bug.\n\n## When NOT to use\n\n- During a live debugging session - your `.claude\u002F` may have transient experimental tweaks you have not yet decided to keep. Sync at session end, not mid-session.\n- When you have not yet committed your project work - the dirty-check refuses to sync until the project's `.claude\u002F` is committed.\n- For removing a skill from the hub - this skill cannot delete from the hub. Edit the hub directly and commit there.\n\n## Interaction from inside Claude Code\n\nIf you invoke `\u002Fsync-to-hub` from a Claude Code session, the recommended flow is:\n\n1. Claude opens a Bash tool call: `bash \u003Cpath-to-this-skill>\u002Fsync.sh`\n2. The interactive prompts appear in the Bash tool output. Claude relays them to you.\n3. You answer through Claude's conversation; Claude pipes your answers via stdin.\n\nYou may instead run `sync.sh` directly in a separate terminal - the prompts work natively in any TTY.\n",{"name":5,"description":24,"disable-model-invocation":25},"Promote project-side `.claude\u002F` improvements (skills, agents, hooks, rules) into the sam-cc-setup plugin in the hub repo. Sync is project -> hub, ADDITIVE ONLY. Each new or changed file is offered with a 3-way prompt (sync now \u002F defer \u002F never) so trial-only experiments do not pollute the curated hub. Use after a session in which you used or refined a tool worth keeping across future projects. NOT for mid-session use, uncommitted project work, or deleting anything from the hub (edit the hub directly for that).\n",true,"main","85a41de587b98bb440cccf78f081a6bee67fe90e","cultivation\u002Fparked\u002Fsam-cc-setup\u002Fskills\u002Fsync-to-hub","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri","2026-11-15 04:06:30",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":25},[34,37,40],{"tool":35,"command":36},"npx","npx skills add SamyakJhaveri\u002Floam --skill sync-to-hub",{"tool":38,"command":39},"bunx","bunx skills add SamyakJhaveri\u002Floam --skill sync-to-hub",{"tool":41,"command":42},"pnpm","pnpm dlx skills add SamyakJhaveri\u002Floam --skill sync-to-hub","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fcultivation\u002Fparked\u002Fsam-cc-setup\u002Fskills\u002Fsync-to-hub\u002FSKILL.md",[45],{"path":46,"resourceType":47,"resourceTypeDesc":48,"sizeBytes":49,"sourceHtmlUrl":50},"sync.sh","SCRIPT","脚本",692,"https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fcultivation\u002Fparked\u002Fsam-cc-setup\u002Fskills\u002Fsync-to-hub\u002Fsync.sh",[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M7AHGVPTGK3JGQ9XYG5XJ6PR","verify-loam","Prove a Loam change in a real rendered project: copier-render this checkout, then drive headless and interactive Claude Code sessions, stubbed Codex runs and copier updates in the render and capture hook, memory, deny-rule, update and check evidence. Use before shipping any seed, hook, settings or copier.yml change.","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fseed\u002F.claude\u002Fskills\u002Fverify-loam\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M7AHGEDXX7GWJ32S9BZAEWAJ","hypothesis-tree","Persistent hypothesis tree for multi-step, multi-session investigations. Use when a \"why does X fail\" question branches into sub-hypotheses that must survive across sessions, or when falsifiable claims need tracking with dated, linked evidence. Maintains one markdown file with add, update, review, and prune subcommands, each gated on verifying the cited evidence file exists and supports the claim. NOT for a single-session bug hunt, a one-command question, or general note-taking.","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fseed\u002F.agents\u002Fskills\u002Fhypothesis-tree\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M7AHGADA1CX9M0B0QSFJYGW5","fable-prompting","Which Claude Fable 5.2 guide sections you can act on from a session, and which Claude Code already injects. Use before writing a Fable session prompt or brief.","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fseed\u002F.agents\u002Fskills\u002Ffable-prompting\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M7AHG7AGBSQ6HH04C70TSM8H","catchup","Read-only session bootstrap briefing of git state, commits, handoff, tasks and red flags. Use when resuming work, starting a fresh session, or unsure of project state.","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fseed\u002F.agents\u002Fskills\u002Fcatchup\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M7AHG52XX2N7AT7JNHS6MN1S","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fdocs\u002Farchive\u002Farchitecture-working\u002Ftooling\u002Fmattpocock-skills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M7AHG00SXGAGJA7C6XA193J6","wizard","Generate an interactive bash wizard that walks a human through steps only they can perform. Use when provisioning infrastructure, setting up credentials or CI secrets, walking an unfamiliar third-party dashboard, or running a one-off migration or cutover. Don't invoke this for steps the agent can perform itself.","https:\u002F\u002Fgithub.com\u002FSamyakJhaveri\u002Floam\u002Fblob\u002Fmain\u002Fdocs\u002Farchive\u002Farchitecture-working\u002Ftooling\u002Fmattpocock-skills\u002Fwizard\u002FSKILL.md",[],[]]