[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M788HV2HF7VZKVB31N3FPEYW":3,"skill-same:01M788HV2HF7VZKVB31N3FPEYW":53},{"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":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M788HV2HF7VZKVB31N3FPEYW","upload-parity-experiments",null,"Create or reuse Hugging Face dataset PRs for `harborframework\u002Fparity-experiments` and upload Harbor parity\u002Foracle result folders efficiently with sparse checkout, raw git pushes, and Git LFS.","zli12321\u002FLHTB","zli12321","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F60415163?v=4","01M788H6V643Y6C3JWXEFAG8YC","Li Kid","01M788H6W0VK4SG0M81GYV1TYP",568,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Fupload-parity-experiments\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: upload-parity-experiments\ndescription: Create or reuse Hugging Face dataset PRs for `harborframework\u002Fparity-experiments` and upload Harbor parity\u002Foracle result folders efficiently with sparse checkout, raw git pushes, and Git LFS.\n---\n\n# Upload Parity Experiments\n\nUse this skill to publish Harbor parity experiment outputs to the shared Hugging Face dataset and capture the resulting discussion URL for the adapter's `parity_pr` field.\n\n## Why This Skill Exists\n\n- `hf upload-large-folder` can be slow or unreliable for large parity bundles because it pushes through the Hub API commit loop.\n- A normal git clone of `harborframework\u002Fparity-experiments` is too expensive because the dataset is very large.\n- Hugging Face dataset PR refs are different from GitHub PR refs and are easy to misuse.\n- Files larger than 10 MiB must be Git LFS-tracked before pushing.\n\nThis skill avoids the full clone by fetching only the target PR ref with `--depth 1 --filter=blob:none` and checking out only the paths needed for the current adapter.\n\n## Prereqs\n\n- Ensure Hugging Face authentication is available with discussion-write permission. Either a classic `write` token or a fine-grained token with global `discussion.write` enabled at \u003Chttps:\u002F\u002Fhuggingface.co\u002Fsettings\u002Ftokens>. A read-only or narrowly-scoped token will cause `create_pr.py` to fail with HTTP 403.\n- Keep the target dataset fixed to `harborframework\u002Fparity-experiments` unless the user explicitly asks for another repo.\n- Accept any local upload source that already contains the final files the user wants to publish.\n\n## Preferred Workflow\n\n1. Create or reuse a dataset PR.\n2. Prepare a sparse local worktree for that PR ref.\n3. Copy the local parity results into the sparse checkout.\n4. Ensure every file larger than 10 MiB is Git LFS-tracked before committing.\n5. Push directly to the PR ref with raw `git push`.\n6. Share the discussion URL and record it as the adapter's `parity_pr`.\n\nFor large parity bundles, prefer raw git over `hf upload-large-folder`. The raw git path is materially faster and more reliable because it avoids the API-side commit loop and does not require cloning the entire parity dataset.\n\n## 1. Create Or Reuse A Dataset PR\n\nIf the user already has a parity PR number, reuse it.\n\nOtherwise, create one with the bundled helper:\n\n```bash\nuv run python scripts\u002Fcreate_pr.py create-pr \\\n  --title \"Add parity experiments for \u003Cadapter_name>\" \\\n  --description-file \u002Fpath\u002Fto\u002Fpr-description.md\n```\n\nThe script prints JSON including:\n\n- `pr_number`\n- `discussion_url`\n- `repo_id`\n\n## 2. Prepare A Sparse PR Checkout\n\n```bash\nmkdir -p \u002Ftmp\u002Fparity-experiments-pr\u003Cnumber>\ncd \u002Ftmp\u002Fparity-experiments-pr\u003Cnumber>\n\ngit init\ngit remote add origin git@hf.co:datasets\u002Fharborframework\u002Fparity-experiments\ngit config core.sparseCheckout true\ngit sparse-checkout init --cone\ngit sparse-checkout set adapters\u002F\u003Cadapter_name>\n\ngit fetch --depth 1 --filter=blob:none origin refs\u002Fpr\u002F\u003Cnumber>:pr\u002F\u003Cnumber>\ngit checkout pr\u002F\u003Cnumber>\n```\n\nThis fetches only the PR ref and the requested paths instead of cloning the full dataset repo.\n\n## 3. Copy The Local Results\n\nIf the local folder already contains the final repo-root layout, copy it as-is.\n\nIf the local folder only contains the adapter subtree, copy it into `adapters\u002F\u003Cadapter_name>\u002F`:\n\n```bash\nrsync -a --delete \\\n  --exclude '.git' \\\n  --exclude '.cache' \\\n  --exclude '.DS_Store' \\\n  \u002Fpath\u002Fto\u002Flocal-folder\u002F \\\n  adapters\u002F\u003Cadapter_name>\u002F\n```\n\n## 4. Ensure Large Files Use Git LFS\n\nThe repo-root `.gitattributes` already LFS-tracks common binary, model, archive, and media extensions (`*.bin`, `*.parquet`, `*.safetensors`, images, audio, video, `*.log`, `*.txt`, etc.). Most parity outputs are covered automatically and need no manual action. Scan the sparse checkout for files larger than 10 MiB to catch anything that slipped through:\n\n```bash\npython - \u003C\u003C'PY'\nfrom pathlib import Path\n\nfor path in sorted(Path(\".\").rglob(\"*\")):\n    if path.is_file() and \".git\" not in path.parts and path.stat().st_size > 10 * 1024 * 1024:\n        print(path)\nPY\n```\n\nIf any file is flagged and is not already covered by root, write the LFS rule to `adapters\u002F\u003Cadapter_name>\u002F.gitattributes` — never to the repo-root `.gitattributes`, which is a shared merge-conflict hotspot. Run `git lfs track` inside the adapter directory so the rule is written with a relative pattern:\n\n```bash\n(cd adapters\u002F\u003Cadapter_name> && git lfs track \"\u003Cpattern>\")\ngit add adapters\u002F\u003Cadapter_name>\u002F.gitattributes\n```\n\nGit LFS honors nested `.gitattributes` files, so rules added this way apply only to that adapter and never collide with other in-flight parity PRs.\n\n## 5. Commit And Push\n\n```bash\nfind . -name .DS_Store -delete\ngit add adapters\u002F\u003Cadapter_name>\ngit commit -m \"Add parity experiment artifacts for \u003Cadapter_name>\"\nGIT_SSH_COMMAND='ssh -o ServerAliveInterval=30 -o ServerAliveCountMax=10' \\\n  git push origin pr\u002F\u003Cnumber>:refs\u002Fpr\u002F\u003Cnumber>\n```\n\n## 6. Record The Discussion URL\n\nUse this discussion URL in `parity_experiment.json`:\n\n```text\nhttps:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fharborframework\u002Fparity-experiments\u002Fdiscussions\u002F\u003Cnumber>\n```\n\n## Monitoring And Retry\n\nWhen raw `git push` is running, check the live output first. Large pushes often spend a long time in:\n\n- `git-lfs pre-push`\n- single-object LFS uploads\n- packfile compression\n\nUseful checks:\n\n```bash\ngit ls-remote git@hf.co:datasets\u002Fharborframework\u002Fparity-experiments refs\u002Fpr\u002F\u003Cnumber>\n```\n\n```bash\nps -p \u003Cpid> -o pid=,etime=,command=\n```\n\nIf the push exits early:\n\n- rerun the exact same `git push` command first\n- if Hugging Face rejects a file larger than 10 MiB, add the needed `git lfs track` rules, re-add the file, and retry\n- if the connection broke mid-push, rerun the same push command before changing anything else\n\n## Fallback\n\nUse `hf upload-large-folder` only as a fallback when raw git is unavailable or the user explicitly asks for it.\n\nYou can still create the PR with the bundled helper and upload to the PR revision:\n\n```bash\nhf upload-large-folder harborframework\u002Fparity-experiments \\\n  \u003Clocal-folder> \\\n  --repo-type dataset \\\n  --revision refs\u002Fpr\u002F\u003Cpr-number> \\\n  --exclude \".DS_Store\" \\\n  --exclude \"**\u002F.DS_Store\" \\\n  --num-workers 8\n```\n\n## Guardrails\n\n- Do not upload the Harbor repo itself by accident. Upload only the intended local results folder.\n- Do not fall back to a full clone of `harborframework\u002Fparity-experiments`.\n- Do not modify the repo-root `.gitattributes`. Put any adapter-specific LFS rules in `adapters\u002F\u003Cadapter_name>\u002F.gitattributes` instead.\n- Always remove or exclude `.DS_Store`.\n- Before pushing, make sure every file larger than 10 MiB is LFS-tracked.\n- If the user already has a parity PR number, reuse it instead of creating another one.\n","# Upload Parity Experiments\n\nUse this skill to publish Harbor parity experiment outputs to the shared Hugging Face dataset and capture the resulting discussion URL for the adapter's `parity_pr` field.\n\n## Why This Skill Exists\n\n- `hf upload-large-folder` can be slow or unreliable for large parity bundles because it pushes through the Hub API commit loop.\n- A normal git clone of `harborframework\u002Fparity-experiments` is too expensive because the dataset is very large.\n- Hugging Face dataset PR refs are different from GitHub PR refs and are easy to misuse.\n- Files larger than 10 MiB must be Git LFS-tracked before pushing.\n\nThis skill avoids the full clone by fetching only the target PR ref with `--depth 1 --filter=blob:none` and checking out only the paths needed for the current adapter.\n\n## Prereqs\n\n- Ensure Hugging Face authentication is available with discussion-write permission. Either a classic `write` token or a fine-grained token with global `discussion.write` enabled at \u003Chttps:\u002F\u002Fhuggingface.co\u002Fsettings\u002Ftokens>. A read-only or narrowly-scoped token will cause `create_pr.py` to fail with HTTP 403.\n- Keep the target dataset fixed to `harborframework\u002Fparity-experiments` unless the user explicitly asks for another repo.\n- Accept any local upload source that already contains the final files the user wants to publish.\n\n## Preferred Workflow\n\n1. Create or reuse a dataset PR.\n2. Prepare a sparse local worktree for that PR ref.\n3. Copy the local parity results into the sparse checkout.\n4. Ensure every file larger than 10 MiB is Git LFS-tracked before committing.\n5. Push directly to the PR ref with raw `git push`.\n6. Share the discussion URL and record it as the adapter's `parity_pr`.\n\nFor large parity bundles, prefer raw git over `hf upload-large-folder`. The raw git path is materially faster and more reliable because it avoids the API-side commit loop and does not require cloning the entire parity dataset.\n\n## 1. Create Or Reuse A Dataset PR\n\nIf the user already has a parity PR number, reuse it.\n\nOtherwise, create one with the bundled helper:\n\n```bash\nuv run python scripts\u002Fcreate_pr.py create-pr \\\n  --title \"Add parity experiments for \u003Cadapter_name>\" \\\n  --description-file \u002Fpath\u002Fto\u002Fpr-description.md\n```\n\nThe script prints JSON including:\n\n- `pr_number`\n- `discussion_url`\n- `repo_id`\n\n## 2. Prepare A Sparse PR Checkout\n\n```bash\nmkdir -p \u002Ftmp\u002Fparity-experiments-pr\u003Cnumber>\ncd \u002Ftmp\u002Fparity-experiments-pr\u003Cnumber>\n\ngit init\ngit remote add origin git@hf.co:datasets\u002Fharborframework\u002Fparity-experiments\ngit config core.sparseCheckout true\ngit sparse-checkout init --cone\ngit sparse-checkout set adapters\u002F\u003Cadapter_name>\n\ngit fetch --depth 1 --filter=blob:none origin refs\u002Fpr\u002F\u003Cnumber>:pr\u002F\u003Cnumber>\ngit checkout pr\u002F\u003Cnumber>\n```\n\nThis fetches only the PR ref and the requested paths instead of cloning the full dataset repo.\n\n## 3. Copy The Local Results\n\nIf the local folder already contains the final repo-root layout, copy it as-is.\n\nIf the local folder only contains the adapter subtree, copy it into `adapters\u002F\u003Cadapter_name>\u002F`:\n\n```bash\nrsync -a --delete \\\n  --exclude '.git' \\\n  --exclude '.cache' \\\n  --exclude '.DS_Store' \\\n  \u002Fpath\u002Fto\u002Flocal-folder\u002F \\\n  adapters\u002F\u003Cadapter_name>\u002F\n```\n\n## 4. Ensure Large Files Use Git LFS\n\nThe repo-root `.gitattributes` already LFS-tracks common binary, model, archive, and media extensions (`*.bin`, `*.parquet`, `*.safetensors`, images, audio, video, `*.log`, `*.txt`, etc.). Most parity outputs are covered automatically and need no manual action. Scan the sparse checkout for files larger than 10 MiB to catch anything that slipped through:\n\n```bash\npython - \u003C\u003C'PY'\nfrom pathlib import Path\n\nfor path in sorted(Path(\".\").rglob(\"*\")):\n    if path.is_file() and \".git\" not in path.parts and path.stat().st_size > 10 * 1024 * 1024:\n        print(path)\nPY\n```\n\nIf any file is flagged and is not already covered by root, write the LFS rule to `adapters\u002F\u003Cadapter_name>\u002F.gitattributes` — never to the repo-root `.gitattributes`, which is a shared merge-conflict hotspot. Run `git lfs track` inside the adapter directory so the rule is written with a relative pattern:\n\n```bash\n(cd adapters\u002F\u003Cadapter_name> && git lfs track \"\u003Cpattern>\")\ngit add adapters\u002F\u003Cadapter_name>\u002F.gitattributes\n```\n\nGit LFS honors nested `.gitattributes` files, so rules added this way apply only to that adapter and never collide with other in-flight parity PRs.\n\n## 5. Commit And Push\n\n```bash\nfind . -name .DS_Store -delete\ngit add adapters\u002F\u003Cadapter_name>\ngit commit -m \"Add parity experiment artifacts for \u003Cadapter_name>\"\nGIT_SSH_COMMAND='ssh -o ServerAliveInterval=30 -o ServerAliveCountMax=10' \\\n  git push origin pr\u002F\u003Cnumber>:refs\u002Fpr\u002F\u003Cnumber>\n```\n\n## 6. Record The Discussion URL\n\nUse this discussion URL in `parity_experiment.json`:\n\n```text\nhttps:\u002F\u002Fhuggingface.co\u002Fdatasets\u002Fharborframework\u002Fparity-experiments\u002Fdiscussions\u002F\u003Cnumber>\n```\n\n## Monitoring And Retry\n\nWhen raw `git push` is running, check the live output first. Large pushes often spend a long time in:\n\n- `git-lfs pre-push`\n- single-object LFS uploads\n- packfile compression\n\nUseful checks:\n\n```bash\ngit ls-remote git@hf.co:datasets\u002Fharborframework\u002Fparity-experiments refs\u002Fpr\u002F\u003Cnumber>\n```\n\n```bash\nps -p \u003Cpid> -o pid=,etime=,command=\n```\n\nIf the push exits early:\n\n- rerun the exact same `git push` command first\n- if Hugging Face rejects a file larger than 10 MiB, add the needed `git lfs track` rules, re-add the file, and retry\n- if the connection broke mid-push, rerun the same push command before changing anything else\n\n## Fallback\n\nUse `hf upload-large-folder` only as a fallback when raw git is unavailable or the user explicitly asks for it.\n\nYou can still create the PR with the bundled helper and upload to the PR revision:\n\n```bash\nhf upload-large-folder harborframework\u002Fparity-experiments \\\n  \u003Clocal-folder> \\\n  --repo-type dataset \\\n  --revision refs\u002Fpr\u002F\u003Cpr-number> \\\n  --exclude \".DS_Store\" \\\n  --exclude \"**\u002F.DS_Store\" \\\n  --num-workers 8\n```\n\n## Guardrails\n\n- Do not upload the Harbor repo itself by accident. Upload only the intended local results folder.\n- Do not fall back to a full clone of `harborframework\u002Fparity-experiments`.\n- Do not modify the repo-root `.gitattributes`. Put any adapter-specific LFS rules in `adapters\u002F\u003Cadapter_name>\u002F.gitattributes` instead.\n- Always remove or exclude `.DS_Store`.\n- Before pushing, make sure every file larger than 10 MiB is LFS-tracked.\n- If the user already has a parity PR number, reuse it instead of creating another one.\n",{"name":5,"description":7},"main","7ca0cacea9bf6a0694eaad7306bed794eaaaabce","harbor\u002Fskills\u002Fupload-parity-experiments",35,"https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB","https:\u002F\u002Fgithub.com\u002Fzli12321","https:\u002F\u002Fzli12321.github.io","Researcher Cooking Agent, Multimodal, LLM, RL.","2026-11-05 01:09:21",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add zli12321\u002FLHTB --skill upload-parity-experiments",{"tool":39,"command":40},"bunx","bunx skills add zli12321\u002FLHTB --skill upload-parity-experiments",{"tool":42,"command":43},"pnpm","pnpm dlx skills add zli12321\u002FLHTB --skill upload-parity-experiments","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Fupload-parity-experiments\u002FSKILL.md",true,[47],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"scripts\u002Fcreate_pr.py","SCRIPT","脚本",2171,"https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Fupload-parity-experiments\u002Fscripts\u002Fcreate_pr.py",[54,61,68,75,82],{"skillNo":55,"name":56,"nameZh":6,"description":57,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":58,"categories":59,"keywords":60,"publishedAt":19},"01M788HR1JN22D7C45A43MA0C9","rewardkit","Write Harbor task verifiers using Reward Kit. Use when creating or editing a task's tests\u002F directory, adding grading criteria, setting up LLM\u002Fagent judges, or designing verifiers that produce a reward score.","https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Frewardkit\u002FSKILL.md",[],[],{"skillNo":62,"name":63,"nameZh":6,"description":64,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":65,"categories":66,"keywords":67,"publishedAt":19},"01M788HMP13MQEJP5PQNGQW9ZM","publish","Publish a Harbor task or dataset to the registry. Use when the user wants to upload, publish, or share tasks or datasets\u002Fbenchmarks on the Harbor registry.","https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Fpublish\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"nameZh":6,"description":71,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":19},"01M788HFT21RFZHRH3SKVM462S","create-task","Create a new Harbor task for evaluating agents. Use when the user wants to scaffold, build, or design a new task, benchmark problem, or eval. Guides through instruction writing, environment setup, verifier design (pytest vs Reward Kit vs custom), and solution scripting.","https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Fcreate-task\u002FSKILL.md",[],[],{"skillNo":76,"name":77,"nameZh":6,"description":78,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M788HCW28DGX5HKFX47GAM94","create-adapter","Scaffold a new Harbor benchmark adapter by running `harbor adapter init` and then guide implementation using the Adapters Agent Guide as the authoritative spec.","https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fskills\u002Fcreate-adapter\u002FSKILL.md",[],[],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":19},"01M788HB46TNMYJN3TMXRHKMW6","generate-greeting","Generate a greeting message and write it to a file.","https:\u002F\u002Fgithub.com\u002Fzli12321\u002FLHTB\u002Fblob\u002Fmain\u002Fharbor\u002Fexamples\u002Ftasks\u002Fhello-skills\u002Fenvironment\u002Fskills\u002Fgenerate-greeting\u002FSKILL.md",[],[]]