[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7F0QBN1VNASYBY80HCT103Y":3,"skill-same:01M7F0QBN1VNASYBY80HCT103Y":47},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":31,"updatedAt":32,"install":33,"resources":46},"01M7F0QBN1VNASYBY80HCT103Y","turborepo-caching",null,"Configure Turborepo 2 for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, writing turbo.json tasks, debugging cache misses, or wiring a remote cache into CI.","shotcowboystyle\u002Fag-skills","shotcowboystyle","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F62471?v=4","01M7EZTCFCZJ6K3MYW8BPM4X6R","Curtis Blanton","01M7EZTCG1S5M04J90A931X9BX",0,"MIT","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fturborepo-caching\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: turborepo-caching\ndescription: Configure Turborepo 2 for efficient monorepo builds with local and remote caching. Use when setting up Turborepo, writing turbo.json tasks, debugging cache misses, or wiring a remote cache into CI.\nlast_verified: 2026-10-27\n---\n\n# Turborepo Caching\n\nPatterns for Turborepo 2.x (`turbo` 2.11 at last check). Monorepo layout and\npnpm workspaces are covered by the `monorepo-management` skill.\n\n## When to Use This Skill\n\n- Writing or migrating `turbo.json`\n- Enabling remote caching locally and in CI\n- Running only affected packages in CI\n- Debugging cache misses\n\n## Turborepo 1.x → 2.x\n\nTurborepo 2 renamed the top-level `pipeline` key to `tasks` and rejects a\n`turbo.json` that still uses `pipeline`. Environment variables run in strict\nmode by default: a task only sees variables listed in `env`, `globalEnv` or\n`passThroughEnv`. Upgrade a 1.x repo with:\n\n```bash\nnpx @turbo\u002Fcodemod migrate\n```\n\n## Task Options\n\n| Option           | Meaning                                                        |\n| ---------------- | -------------------------------------------------------------- |\n| `dependsOn`      | `^build` = build dependencies first; `build` = same package    |\n| `outputs`        | Files to cache. Omit for tasks that only produce logs          |\n| `inputs`         | Files that affect the hash. `$TURBO_DEFAULT$` = git-tracked    |\n| `env`            | Env vars that affect the hash and are passed to the task       |\n| `cache`          | `false` for tasks with side effects (deploy, db push)          |\n| `persistent`     | Long-running task (dev server); nothing can depend on it       |\n\n## Root turbo.json\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fturborepo.dev\u002Fschema.json\",\n  \"globalDependencies\": [\".env\"],\n  \"globalEnv\": [\"NODE_ENV\"],\n  \"tasks\": {\n    \"build\": {\n      \"dependsOn\": [\"^build\"],\n      \"inputs\": [\"$TURBO_DEFAULT$\", \"!**\u002F*.md\", \"!**\u002F*.test.*\"],\n      \"outputs\": [\"dist\u002F**\", \".next\u002F**\", \"!.next\u002Fcache\u002F**\"],\n      \"env\": [\"API_URL\", \"NEXT_PUBLIC_*\"]\n    },\n    \"test\": {\n      \"dependsOn\": [\"^build\"],\n      \"outputs\": [\"coverage\u002F**\"],\n      \"env\": [\"CI\"]\n    },\n    \"lint\": {},\n    \"typecheck\": {\n      \"dependsOn\": [\"^build\"]\n    },\n    \"db:generate\": {\n      \"cache\": false\n    },\n    \"@repo\u002Fweb#build\": {\n      \"dependsOn\": [\"^build\", \"@repo\u002Fdb#db:generate\"]\n    },\n    \"deploy\": {\n      \"dependsOn\": [\"build\", \"test\", \"lint\"],\n      \"cache\": false\n    },\n    \"dev\": {\n      \"cache\": false,\n      \"persistent\": true\n    }\n  }\n}\n```\n\n## Package Configuration\n\nA `turbo.json` inside a package overrides the root for that package only.\n`extends` must start with `\"\u002F\u002F\"` (the root).\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fturborepo.dev\u002Fschema.json\",\n  \"extends\": [\"\u002F\u002F\"],\n  \"tasks\": {\n    \"build\": {\n      \"outputs\": [\".next\u002F**\", \"!.next\u002Fcache\u002F**\"],\n      \"env\": [\"NEXT_PUBLIC_API_URL\"]\n    }\n  }\n}\n```\n\n## Remote Caching\n\n### Vercel Remote Cache\n\n```bash\nnpx turbo login\nnpx turbo link\n```\n\nIn CI, set `TURBO_TOKEN` (secret) and `TURBO_TEAM` (team slug). Control cache\nsources with `--cache` (default `local:rw,remote:rw`); `--remote-only` is\ndeprecated.\n\n```bash\n# CI that reads the remote cache but never writes it (e.g. fork PRs)\nturbo run build --cache=local:rw,remote:r\n\n# Skip the local cache, use only the remote cache\nturbo run build --cache=remote:rw\n```\n\n### Self-hosted Remote Cache\n\nTurborepo talks to any server that implements its Remote Cache HTTP API. Run a\nmaintained implementation (for example `ducktors\u002Fturborepo-remote-cache`) rather\nthan writing one: a cache server stores executable build output, so it needs\nauthentication, path validation and access control. Point Turborepo at it:\n\n```bash\nexport TURBO_API=\"https:\u002F\u002Fturbo-cache.internal.example.com\"\nexport TURBO_TOKEN=\"$CACHE_TOKEN\"   # bearer token the server checks\nexport TURBO_TEAM=\"my-team\"\nturbo run build\n```\n\nOr set `remoteCache.apiUrl` in `turbo.json`. Enable artifact signing so\ncorrupted or partial uploads are rejected:\n\n```json\n{\n  \"remoteCache\": { \"signature\": true }\n}\n```\n\nWith `signature: true`, Turborepo signs uploads with HMAC-SHA256 using\n`TURBO_REMOTE_CACHE_SIGNATURE_KEY` (use at least 32 bytes) and rejects artifacts\nwith a missing or bad signature. This checks integrity; it does not replace\nserver authentication.\n\n## CI (GitHub Actions)\n\n```yaml\nname: CI\non:\n  push:\n    branches: [main]\n  pull_request:\n\nenv:\n  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n  TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v7\n        with:\n          fetch-depth: 0 # --affected needs history back to the base branch\n      - uses: pnpm\u002Faction-setup@v6\n      - uses: actions\u002Fsetup-node@v7\n        with:\n          node-version: 22\n          cache: pnpm\n      - run: pnpm install --frozen-lockfile\n      - run: pnpm turbo run build test lint --affected\n```\n\n`--affected` equals `--filter=...[main...HEAD]`. Override the base with\n`TURBO_SCM_BASE`. A shallow checkout makes every package look changed.\n\n## Filtering\n\n```bash\nturbo run build --filter=@repo\u002Fweb        # one package\nturbo run build --filter=@repo\u002Fweb...     # package and its dependencies\nturbo run build --filter=...@repo\u002Fui      # package and its dependents\nturbo run build --filter='.\u002Fapps\u002F*'       # by directory\nturbo run build --filter='!@repo\u002Fdocs'    # exclude\nturbo run build --filter='...[HEAD^1]'    # changed since a commit, plus dependents\n```\n\n## Debugging Cache Misses\n\n```bash\nturbo run build --dry=json        # hashes and inputs without running\nturbo run build --summarize       # writes .turbo\u002Fruns\u002F\u003Cid>.json; diff two runs\nturbo run build --graph=graph.svg # task graph (svg, html, mermaid, dot)\nturbo run build --force           # ignore cache reads\nturbo run build -vv               # debug logging\n```\n\nCommon causes: an env var missing from `env` (strict mode hides it and it\ndoesn't affect the hash), a generated file inside `inputs`, `outputs` that\ndon't match where the tool writes, and lockfile changes (which affect every\npackage that depends on the changed entries).\n\n## Best Practices\n\n- Declare every env var a task reads in `env` or `globalEnv`.\n- Give tasks that write nothing no `outputs`; give side-effect tasks `cache: false`.\n- Use `workspace:*` for internal dependencies so the graph is correct.\n- Read-only remote cache for untrusted PRs; write from trusted branches only.\n- Never commit `TURBO_TOKEN` or the signature key.\n","# Turborepo Caching\n\nPatterns for Turborepo 2.x (`turbo` 2.11 at last check). Monorepo layout and\npnpm workspaces are covered by the `monorepo-management` skill.\n\n## When to Use This Skill\n\n- Writing or migrating `turbo.json`\n- Enabling remote caching locally and in CI\n- Running only affected packages in CI\n- Debugging cache misses\n\n## Turborepo 1.x → 2.x\n\nTurborepo 2 renamed the top-level `pipeline` key to `tasks` and rejects a\n`turbo.json` that still uses `pipeline`. Environment variables run in strict\nmode by default: a task only sees variables listed in `env`, `globalEnv` or\n`passThroughEnv`. Upgrade a 1.x repo with:\n\n```bash\nnpx @turbo\u002Fcodemod migrate\n```\n\n## Task Options\n\n| Option           | Meaning                                                        |\n| ---------------- | -------------------------------------------------------------- |\n| `dependsOn`      | `^build` = build dependencies first; `build` = same package    |\n| `outputs`        | Files to cache. Omit for tasks that only produce logs          |\n| `inputs`         | Files that affect the hash. `$TURBO_DEFAULT$` = git-tracked    |\n| `env`            | Env vars that affect the hash and are passed to the task       |\n| `cache`          | `false` for tasks with side effects (deploy, db push)          |\n| `persistent`     | Long-running task (dev server); nothing can depend on it       |\n\n## Root turbo.json\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fturborepo.dev\u002Fschema.json\",\n  \"globalDependencies\": [\".env\"],\n  \"globalEnv\": [\"NODE_ENV\"],\n  \"tasks\": {\n    \"build\": {\n      \"dependsOn\": [\"^build\"],\n      \"inputs\": [\"$TURBO_DEFAULT$\", \"!**\u002F*.md\", \"!**\u002F*.test.*\"],\n      \"outputs\": [\"dist\u002F**\", \".next\u002F**\", \"!.next\u002Fcache\u002F**\"],\n      \"env\": [\"API_URL\", \"NEXT_PUBLIC_*\"]\n    },\n    \"test\": {\n      \"dependsOn\": [\"^build\"],\n      \"outputs\": [\"coverage\u002F**\"],\n      \"env\": [\"CI\"]\n    },\n    \"lint\": {},\n    \"typecheck\": {\n      \"dependsOn\": [\"^build\"]\n    },\n    \"db:generate\": {\n      \"cache\": false\n    },\n    \"@repo\u002Fweb#build\": {\n      \"dependsOn\": [\"^build\", \"@repo\u002Fdb#db:generate\"]\n    },\n    \"deploy\": {\n      \"dependsOn\": [\"build\", \"test\", \"lint\"],\n      \"cache\": false\n    },\n    \"dev\": {\n      \"cache\": false,\n      \"persistent\": true\n    }\n  }\n}\n```\n\n## Package Configuration\n\nA `turbo.json` inside a package overrides the root for that package only.\n`extends` must start with `\"\u002F\u002F\"` (the root).\n\n```json\n{\n  \"$schema\": \"https:\u002F\u002Fturborepo.dev\u002Fschema.json\",\n  \"extends\": [\"\u002F\u002F\"],\n  \"tasks\": {\n    \"build\": {\n      \"outputs\": [\".next\u002F**\", \"!.next\u002Fcache\u002F**\"],\n      \"env\": [\"NEXT_PUBLIC_API_URL\"]\n    }\n  }\n}\n```\n\n## Remote Caching\n\n### Vercel Remote Cache\n\n```bash\nnpx turbo login\nnpx turbo link\n```\n\nIn CI, set `TURBO_TOKEN` (secret) and `TURBO_TEAM` (team slug). Control cache\nsources with `--cache` (default `local:rw,remote:rw`); `--remote-only` is\ndeprecated.\n\n```bash\n# CI that reads the remote cache but never writes it (e.g. fork PRs)\nturbo run build --cache=local:rw,remote:r\n\n# Skip the local cache, use only the remote cache\nturbo run build --cache=remote:rw\n```\n\n### Self-hosted Remote Cache\n\nTurborepo talks to any server that implements its Remote Cache HTTP API. Run a\nmaintained implementation (for example `ducktors\u002Fturborepo-remote-cache`) rather\nthan writing one: a cache server stores executable build output, so it needs\nauthentication, path validation and access control. Point Turborepo at it:\n\n```bash\nexport TURBO_API=\"https:\u002F\u002Fturbo-cache.internal.example.com\"\nexport TURBO_TOKEN=\"$CACHE_TOKEN\"   # bearer token the server checks\nexport TURBO_TEAM=\"my-team\"\nturbo run build\n```\n\nOr set `remoteCache.apiUrl` in `turbo.json`. Enable artifact signing so\ncorrupted or partial uploads are rejected:\n\n```json\n{\n  \"remoteCache\": { \"signature\": true }\n}\n```\n\nWith `signature: true`, Turborepo signs uploads with HMAC-SHA256 using\n`TURBO_REMOTE_CACHE_SIGNATURE_KEY` (use at least 32 bytes) and rejects artifacts\nwith a missing or bad signature. This checks integrity; it does not replace\nserver authentication.\n\n## CI (GitHub Actions)\n\n```yaml\nname: CI\non:\n  push:\n    branches: [main]\n  pull_request:\n\nenv:\n  TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}\n  TURBO_TEAM: ${{ vars.TURBO_TEAM }}\n\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v7\n        with:\n          fetch-depth: 0 # --affected needs history back to the base branch\n      - uses: pnpm\u002Faction-setup@v6\n      - uses: actions\u002Fsetup-node@v7\n        with:\n          node-version: 22\n          cache: pnpm\n      - run: pnpm install --frozen-lockfile\n      - run: pnpm turbo run build test lint --affected\n```\n\n`--affected` equals `--filter=...[main...HEAD]`. Override the base with\n`TURBO_SCM_BASE`. A shallow checkout makes every package look changed.\n\n## Filtering\n\n```bash\nturbo run build --filter=@repo\u002Fweb        # one package\nturbo run build --filter=@repo\u002Fweb...     # package and its dependencies\nturbo run build --filter=...@repo\u002Fui      # package and its dependents\nturbo run build --filter='.\u002Fapps\u002F*'       # by directory\nturbo run build --filter='!@repo\u002Fdocs'    # exclude\nturbo run build --filter='...[HEAD^1]'    # changed since a commit, plus dependents\n```\n\n## Debugging Cache Misses\n\n```bash\nturbo run build --dry=json        # hashes and inputs without running\nturbo run build --summarize       # writes .turbo\u002Fruns\u002F\u003Cid>.json; diff two runs\nturbo run build --graph=graph.svg # task graph (svg, html, mermaid, dot)\nturbo run build --force           # ignore cache reads\nturbo run build -vv               # debug logging\n```\n\nCommon causes: an env var missing from `env` (strict mode hides it and it\ndoesn't affect the hash), a generated file inside `inputs`, `outputs` that\ndon't match where the tool writes, and lockfile changes (which affect every\npackage that depends on the changed entries).\n\n## Best Practices\n\n- Declare every env var a task reads in `env` or `globalEnv`.\n- Give tasks that write nothing no `outputs`; give side-effect tasks `cache: false`.\n- Use `workspace:*` for internal dependencies so the graph is correct.\n- Read-only remote cache for untrusted PRs; write from trusted branches only.\n- Never commit `TURBO_TOKEN` or the signature key.\n",{"name":5,"description":7,"last_verified":24},1793059200000,"main","f846d9a97082ff30d613b55a085cef425d822473","plugins\u002Fdeveloper-essentials\u002Fskills\u002Fturborepo-caching","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle","https:\u002F\u002Fshotcowboystyle.github.io","Building smarter with AI, automation & modern tools. Exploring how far one person can go without a big team using today’s AI.","2026-11-10 04:58:27",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add shotcowboystyle\u002Fag-skills --skill turborepo-caching",{"tool":39,"command":40},"bunx","bunx skills add shotcowboystyle\u002Fag-skills --skill turborepo-caching",{"tool":42,"command":43},"pnpm","pnpm dlx skills add shotcowboystyle\u002Fag-skills --skill turborepo-caching","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Fdeveloper-essentials\u002Fskills\u002Fturborepo-caching\u002FSKILL.md",true,[],[48,54,61,68,75,82],{"skillNo":49,"name":50,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":51,"categories":52,"keywords":53,"publishedAt":19},"01M7F1YRY5S5QRJ1V0BJS130QX","no-description","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fno-description\u002FSKILL.md",[],[],{"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},"01M7F1Y9BV2FJNQJ3NB32JS5CM","good-skill","Fixture skill that satisfies every rule.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fgood-skill\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},"01M7F1XXBQ3NQRXZSS0KAGAR9V","broken-link","Links to a reference file that does not exist.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbroken-link\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},"01M7F1XBX4R46NR9W0HXQ7XCDX","Bad_Name","Name violates the kebab-case rule and does not match the directory.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fbad-name\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},"01M7F1WNAF8WNEQ7S5HKT5VK0D","skill-authoring","Write, review, and validate portable agent skills in SKILL.md format. Use when creating a new skill, editing an existing one, or asked whether a skill follows the Agent Skills spec.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fskills\u002Fskill-authoring\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},"01M7F1W30TC0XFNSF7YBRGETK2","weigh-bags","Record scale readings for each bag — empty (tare), outbound, current, final — and reconcile them against the itemised inventory to find unaccounted weight. Use when the user gives a bag weight, says how heavy something is, weighs their luggage, or asks how close to the limit they are. Appends to bags.yaml and runs scripts\u002Freconcile.py.","https:\u002F\u002Fgithub.com\u002Fshotcowboystyle\u002Fag-skills\u002Fblob\u002Fmain\u002Fplugins\u002Ftravel-packing-assistant\u002Fskills\u002Fweigh-bags\u002FSKILL.md",[],[]]