[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M78CXKHTKY64XE48X7A0M0ZB":3,"skill-same:01M78CXKHTKY64XE48X7A0M0ZB":60},{"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":33,"commitSha":34,"skillDirectory":35,"forksCount":36,"repositoryHtmlUrl":37,"repositoryHomepageUrl":38,"ownerHtmlUrl":39,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":40,"install":41,"resources":53},"01M78CXKHTKY64XE48X7A0M0ZB","context-optimization",null,"Use this skill when a task spans 3+ files or crosses repo boundaries and context usage must be managed. Don't use it for single-file edits or read-only queries.","atretyak1985\u002Fswarmery","atretyak1985","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F1436737?v=4","01M78CTSX57YH0EYY9YGH0TWKX","Andrii Tretiak","01M78CTSXRPJPYQ7GNPMP45TYX",8,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Fcontext-optimization\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: context-optimization\nversion: \"1.0.0\"\nowner: \"swarmery-core\"\ndescription: \"Use this skill when a task spans 3+ files or crosses repo boundaries and context usage must be managed. Don't use it for single-file edits or read-only queries.\"\ndisable-model-invocation: true\nallowed-tools: Read, Grep, Glob\ncolor: teal\ndocs:\n  status: reviewed\n  source_sha: 9d0a19d62c88\n  updated: 2026-08-06\n---\n\n# Purpose\n\nPlan what to read before reading it. On a task spanning several files or repos,\nturn \"open everything and hope\" into a short ordered context plan: which files,\nwhich line ranges, in which phase, and where to `\u002Fclear` between them. It changes\nno code — it governs loading so the skills that do the work keep room to think.\n\n# Rules (never violate)\n\n1. Run `codebase-retrieval` before any full-file read; discovery precedes loading.\n2. Read with offset\u002Flimit — never whole files when one function is the target.\n3. Keep files loaded ≤ 3× files actually edited; record the ratio in the plan.\n4. Suggest `\u002Fclear` at every repo switch and at every phase boundary that frees files.\n5. At ≥40% window usage, delegate any isolatable read (one whose product is a\n   digest) to a **leaf** subagent at depth-1 — never leaf → leaf.\n6. Confidence LOW after discovery means stop and ask, not a plan you half-trust.\n\n# Resources\n\n- Read `resources\u002Fplanning-procedure.md` before planning: the 7-step procedure,\n  the repo\u002Fglob map, the step-7 delegation decision table (40% \u002F 60% thresholds),\n  the plan template, self-check, escalation triggers, failure modes, and a worked\n  two-phase example.\n\n# How to use\n\n## What it does\n\nProduces a context plan: targeted reads in phases, `\u002Fclear` decisions with\nreasons, and a loaded-versus-edited budget with a confidence rating. It runs\ndiscovery first, so the plan names real files rather than guesses.\n\n## When to use it\n\n- The task touches 3 or more files, in one repo or across several.\n- The task crosses a repo boundary — `apps\u002F\u003CmainApp>` plus `\u003Cdevice>`, say.\n- Your window is already past 40% and more reads are coming.\n- You are about to load a large module tree just to extract a verdict or a list.\n\nNot for: single-file edits (just make them); a read-only question about one\nfunction (`code-search`); or work already running inside a scoped subagent — that\nisolation is what this skill would have bought you.\n\n## How to invoke\n\n```\nSkill(skill: \"core:context-optimization\")\nTask: fix telemetry latency between the device\u002Fedge repo and the main app\nRepos: apps\u002F\u003CmainApp>, \u003Cdevice>\n```\n\nInvoke it at the start, before any full-file reads. `task_description` is\nrequired; `repos_involved` is inferred from the task and `.claude\u002Fproject.json`\nwhen omitted.\n\n## Worked example\n\nThe invocation above returns a two-phase plan of at most 30 lines. Phase 1 reads\ntwo main-app files by line range — the WebSocket reconnect logic and the SSE\nendpoint handler — then marks `\u002Fclear before Phase 2: yes`, because the work\nswitches repos. Phase 2 reads one range in the device sender. Budget: 3 files\nloaded, 1 edited, ratio 3:1, confidence HIGH. Had confidence come back LOW, it\nwould have asked you to narrow the scope instead.\n\n## Related\n\n- `code-search` — when you already know the identifier and want every reference.\n- `code-quality` — run it after this skill has narrowed the review set.\n- `api-integration` — compose when the task turns on API flows across repos.\n","# Purpose\n\nPlan what to read before reading it. On a task spanning several files or repos,\nturn \"open everything and hope\" into a short ordered context plan: which files,\nwhich line ranges, in which phase, and where to `\u002Fclear` between them. It changes\nno code — it governs loading so the skills that do the work keep room to think.\n\n# Rules (never violate)\n\n1. Run `codebase-retrieval` before any full-file read; discovery precedes loading.\n2. Read with offset\u002Flimit — never whole files when one function is the target.\n3. Keep files loaded ≤ 3× files actually edited; record the ratio in the plan.\n4. Suggest `\u002Fclear` at every repo switch and at every phase boundary that frees files.\n5. At ≥40% window usage, delegate any isolatable read (one whose product is a\n   digest) to a **leaf** subagent at depth-1 — never leaf → leaf.\n6. Confidence LOW after discovery means stop and ask, not a plan you half-trust.\n\n# Resources\n\n- Read `resources\u002Fplanning-procedure.md` before planning: the 7-step procedure,\n  the repo\u002Fglob map, the step-7 delegation decision table (40% \u002F 60% thresholds),\n  the plan template, self-check, escalation triggers, failure modes, and a worked\n  two-phase example.\n\n# How to use\n\n## What it does\n\nProduces a context plan: targeted reads in phases, `\u002Fclear` decisions with\nreasons, and a loaded-versus-edited budget with a confidence rating. It runs\ndiscovery first, so the plan names real files rather than guesses.\n\n## When to use it\n\n- The task touches 3 or more files, in one repo or across several.\n- The task crosses a repo boundary — `apps\u002F\u003CmainApp>` plus `\u003Cdevice>`, say.\n- Your window is already past 40% and more reads are coming.\n- You are about to load a large module tree just to extract a verdict or a list.\n\nNot for: single-file edits (just make them); a read-only question about one\nfunction (`code-search`); or work already running inside a scoped subagent — that\nisolation is what this skill would have bought you.\n\n## How to invoke\n\n```\nSkill(skill: \"core:context-optimization\")\nTask: fix telemetry latency between the device\u002Fedge repo and the main app\nRepos: apps\u002F\u003CmainApp>, \u003Cdevice>\n```\n\nInvoke it at the start, before any full-file reads. `task_description` is\nrequired; `repos_involved` is inferred from the task and `.claude\u002Fproject.json`\nwhen omitted.\n\n## Worked example\n\nThe invocation above returns a two-phase plan of at most 30 lines. Phase 1 reads\ntwo main-app files by line range — the WebSocket reconnect logic and the SSE\nendpoint handler — then marks `\u002Fclear before Phase 2: yes`, because the work\nswitches repos. Phase 2 reads one range in the device sender. Budget: 3 files\nloaded, 1 edited, ratio 3:1, confidence HIGH. Had confidence come back LOW, it\nwould have asked you to narrow the scope instead.\n\n## Related\n\n- `code-search` — when you already know the identifier and want every reference.\n- `code-quality` — run it after this skill has narrowed the review set.\n- `api-integration` — compose when the task turns on API flows across repos.\n",{"docs":24,"name":5,"color":28,"owner":29,"version":30,"description":7,"allowed-tools":31,"disable-model-invocation":32},{"status":25,"updated":26,"source_sha":27},"reviewed",1785974400000,"9d0a19d62c88","teal","swarmery-core","1.0.0","Read, Grep, Glob",true,"main","2d9e918cc79c9b17b59356780ff0a3da38a3e98a","plugins\u002Fcore\u002Fskills\u002Fcontext-optimization",5,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery","https:\u002F\u002Fatretyak1985.github.io\u002Fswarmery\u002F","https:\u002F\u002Fgithub.com\u002Fatretyak1985","2026-11-11 04:29:12",{"source":8,"skillName":5,"commands":42,"prompt":52,"zipAvailable":32},[43,46,49],{"tool":44,"command":45},"npx","npx skills add atretyak1985\u002Fswarmery --skill context-optimization",{"tool":47,"command":48},"bunx","bunx skills add atretyak1985\u002Fswarmery --skill context-optimization",{"tool":50,"command":51},"pnpm","pnpm dlx skills add atretyak1985\u002Fswarmery --skill context-optimization","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Fcontext-optimization\u002FSKILL.md",[54],{"path":55,"resourceType":56,"resourceTypeDesc":57,"sizeBytes":58,"sourceHtmlUrl":59},"resources\u002Fplanning-procedure.md","REFERENCE","参考文档",7634,"https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Fplugins\u002Fcore\u002Fskills\u002Fcontext-optimization\u002Fresources\u002Fplanning-procedure.md",[61,68,74,81,88,95],{"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},"01M78D4T1FFWFW19Z44AHH5BSY","short-desc","Too short.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fshort-desc\u002FSKILL.md",[],[],{"skillNo":69,"name":70,"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":71,"categories":72,"keywords":73,"publishedAt":19},"01M78D4S0TWT42WXFJHC1DBN0R","no-frontmatter","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fno-frontmatter\u002FSKILL.md",[],[],{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M78D4Q14P8DJ4W78N62F3EG2","global-skill","Fixture global skill (minimal user-scope shape, format doc §2.3).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fglobal-skill\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M78D4N1JHGQJQ7EZ43KY5SV3","documented-skill","Fixture skill whose usage guide deliberately omits the Worked example subsection.","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fskills\u002Fdocumented-skill\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":19},"01M78D4KVNZ03GBKGDFJZWW5FJ","z","NOT auto-discovered — only skills\u002F is scanned for plugins (§2.2).","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fworkflow-skills\u002Fz\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":19},"01M78D4JMBRZWK51HFE5RZJGHC","y","Plugin skill y from toolpack — stored as \"toolpack:y\".","https:\u002F\u002Fgithub.com\u002Fatretyak1985\u002Fswarmery\u002Fblob\u002Fmain\u002Ftools\u002Fswarmery\u002Ftestdata\u002Fsysconfig\u002Fclaude\u002Fplugins\u002Fcache\u002Fmkt\u002Ftoolpack\u002F1.0.0\u002Fskills\u002Fy\u002FSKILL.md",[],[]]