[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AD7FCEJ472SH1Y9BEHKVHE":3,"skill-same:01M6AD7FCEJ472SH1Y9BEHKVHE":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":43,"linkOnly":44,"markdownContent":45,"markdownBody":46,"frontMatter":47,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":51,"repositoryHtmlUrl":52,"repositoryHomepageUrl":53,"ownerHtmlUrl":54,"ownerBlogUrl":55,"ownerDescription":56,"updatedAt":57,"install":58,"resources":71},"01M6AD7FCEJ472SH1Y9BEHKVHE","prompt-token-efficiency","提示词 Token 精简优化","Rewrite prompts for minimal tokens, maximal clarity, and low ambiguity for LLM consumption.","重写提示词，使其 token 用量最少、清晰度最高、歧义最低，供 LLM 使用。","github\u002Fgh-aw","github","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F9919?v=4","01M6AC83DS133TPXFSP1DHNCC6","GitHub","01M6AD3VCZ4WKQSFSRTPN7N9DN",5636,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fprompt-token-efficiency\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C7GF33QZZR2SXBJQHRAFNN","提示词工程与优化","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42],"prompt token efficiency","token efficiency","prompt","efficiency","token","for","tokens","minimal","rewrite","clarity","prompts","ambiguity","2026-11-10 10:12:30",false,"---\nname: prompt-token-efficiency\ndescription: Rewrite prompts for minimal tokens, maximal clarity, and low ambiguity for LLM consumption.\n---\n\n# Prompt Token Efficiency\n\nUse when writing or revising prompts, instructions, skills, or their generators.\nOptimize agent comprehension and useful information per byte without changing\nintent, safety, output contracts, or failure behavior.\n\n## Prefix contract\n\nCopilot CLI prompt-file queries may return only the first **8,000 UTF-8 bytes**.\nCount bytes from the start of the file, including frontmatter, whitespace, links,\nand multibyte characters; line and character counts are not substitutes.\n\n1. Fit a complete execution contract within **7,500 bytes**, leaving 500 bytes of headroom.\n2. Order it: objective\u002Factivation, mandatory constraints, task-to-reference routes,\n   procedure, verification\u002Foutput contract, failure\u002Fstop conditions.\n3. Keep safety gates and required completion steps before examples. Put only\n   optional explanations, extended examples, and specialized detail afterward.\n4. Link required detail before the cutoff with an explicit condition for loading\n   it. Never rely on a later table of contents or on instructions to read a tail\n   that the agent cannot discover.\n5. Prefer a file under 7,500 bytes. If longer, mark the end of its self-contained\n   contract with `\u003C!-- instruction-prefix-end -->` on a separate line by byte\n   7,500. Close frontmatter, fences, lists and tables before that marker.\n6. Run `python3 scripts\u002Fcheck-instruction-prefixes.py PATH...` in this repository.\n   The checker measures structure\u002Fbytes, not semantic completeness. Read the\n   exact first 8,000 bytes separately and verify every required decision is\n   actionable, or routes to a named reference. Report unavailable checks.\n\nFor comparison, evaluate the same task against full guidance and its exact\n8,000-byte prefix. Record missing rules, routes, outputs and stop conditions;\nnever accept lower cost or fewer bytes as proof of equivalent behavior.\n\n## Goals\n\n1. Minimize token count\n2. Maximize clarity\n3. Minimize ambiguity\n4. Optimize for LLM execution, not human prose style\n\n## Core Rules\n\n- Keep task-critical information; move optional detail behind explicit routes.\n- Remove pleasantries, repetition, and narrative framing.\n- Prefer short, concrete instructions over descriptive paragraphs.\n- Use explicit constraints and output format requirements.\n- Use stable terminology (one term per concept).\n- Use short grammatical imperatives, not cryptic fragments or undefined shorthand.\n- State actor, condition and action; keep negation and exceptions next to the rule.\n- Preserve exact field names, commands, thresholds, compatibility and auth boundaries.\n- Replace vague words (`appropriate`, `some`, `better`) with measurable criteria.\n- Put required context before optional context.\n- Avoid conflicting instructions.\n\n## Prose Compression Pattern\n\nRewrite prose to be direct and compact:\n\n1. Start with the objective in one short sentence.\n2. Keep only facts needed to complete the task.\n3. Replace long qualifiers with concrete limits.\n4. Remove filler words that do not change behavior.\n5. End with explicit success criteria.\n\n## LLM-Optimized Writing Style\n\n- Use imperative statements.\n- Prefer bullets over long prose.\n- Keep each instruction atomic.\n- Avoid examples unless needed to prevent failure.\n- If examples are required, include one minimal example.\n\n## Ambiguity Checks\n\nBefore finalizing a prompt, verify:\n\n- Any undefined noun is resolved.\n- Any pronoun has a clear antecedent.\n- Scope limits are explicit (time range, file range, quantity limits).\n- Success criteria are testable.\n- Output format is unambiguous.\n\n## Prose Rewrite Checks\n\nWhen rewriting, ensure the final prompt:\n\n- Uses fewer words than the original.\n- Packs more actionable guidance into the first 8,000 bytes; record before\u002Fafter\n  total bytes, contract-end byte, and any required detail moved behind a link.\n- Preserves all required constraints.\n- Uses concrete nouns instead of pronouns where possible.\n- Avoids optional wording unless options are actually allowed.\n- States required output and any length bound in plain language.\n","# Prompt Token Efficiency\n\nUse when writing or revising prompts, instructions, skills, or their generators.\nOptimize agent comprehension and useful information per byte without changing\nintent, safety, output contracts, or failure behavior.\n\n## Prefix contract\n\nCopilot CLI prompt-file queries may return only the first **8,000 UTF-8 bytes**.\nCount bytes from the start of the file, including frontmatter, whitespace, links,\nand multibyte characters; line and character counts are not substitutes.\n\n1. Fit a complete execution contract within **7,500 bytes**, leaving 500 bytes of headroom.\n2. Order it: objective\u002Factivation, mandatory constraints, task-to-reference routes,\n   procedure, verification\u002Foutput contract, failure\u002Fstop conditions.\n3. Keep safety gates and required completion steps before examples. Put only\n   optional explanations, extended examples, and specialized detail afterward.\n4. Link required detail before the cutoff with an explicit condition for loading\n   it. Never rely on a later table of contents or on instructions to read a tail\n   that the agent cannot discover.\n5. Prefer a file under 7,500 bytes. If longer, mark the end of its self-contained\n   contract with `\u003C!-- instruction-prefix-end -->` on a separate line by byte\n   7,500. Close frontmatter, fences, lists and tables before that marker.\n6. Run `python3 scripts\u002Fcheck-instruction-prefixes.py PATH...` in this repository.\n   The checker measures structure\u002Fbytes, not semantic completeness. Read the\n   exact first 8,000 bytes separately and verify every required decision is\n   actionable, or routes to a named reference. Report unavailable checks.\n\nFor comparison, evaluate the same task against full guidance and its exact\n8,000-byte prefix. Record missing rules, routes, outputs and stop conditions;\nnever accept lower cost or fewer bytes as proof of equivalent behavior.\n\n## Goals\n\n1. Minimize token count\n2. Maximize clarity\n3. Minimize ambiguity\n4. Optimize for LLM execution, not human prose style\n\n## Core Rules\n\n- Keep task-critical information; move optional detail behind explicit routes.\n- Remove pleasantries, repetition, and narrative framing.\n- Prefer short, concrete instructions over descriptive paragraphs.\n- Use explicit constraints and output format requirements.\n- Use stable terminology (one term per concept).\n- Use short grammatical imperatives, not cryptic fragments or undefined shorthand.\n- State actor, condition and action; keep negation and exceptions next to the rule.\n- Preserve exact field names, commands, thresholds, compatibility and auth boundaries.\n- Replace vague words (`appropriate`, `some`, `better`) with measurable criteria.\n- Put required context before optional context.\n- Avoid conflicting instructions.\n\n## Prose Compression Pattern\n\nRewrite prose to be direct and compact:\n\n1. Start with the objective in one short sentence.\n2. Keep only facts needed to complete the task.\n3. Replace long qualifiers with concrete limits.\n4. Remove filler words that do not change behavior.\n5. End with explicit success criteria.\n\n## LLM-Optimized Writing Style\n\n- Use imperative statements.\n- Prefer bullets over long prose.\n- Keep each instruction atomic.\n- Avoid examples unless needed to prevent failure.\n- If examples are required, include one minimal example.\n\n## Ambiguity Checks\n\nBefore finalizing a prompt, verify:\n\n- Any undefined noun is resolved.\n- Any pronoun has a clear antecedent.\n- Scope limits are explicit (time range, file range, quantity limits).\n- Success criteria are testable.\n- Output format is unambiguous.\n\n## Prose Rewrite Checks\n\nWhen rewriting, ensure the final prompt:\n\n- Uses fewer words than the original.\n- Packs more actionable guidance into the first 8,000 bytes; record before\u002Fafter\n  total bytes, contract-end byte, and any required detail moved behind a link.\n- Preserves all required constraints.\n- Uses concrete nouns instead of pronouns where possible.\n- Avoids optional wording unless options are actually allowed.\n- States required output and any length bound in plain language.\n",{"name":5,"description":7},"main","474b83b35119e716a2dac92b9e07c147fd69285c",".github\u002Fskills\u002Fprompt-token-efficiency",626,"https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw","https:\u002F\u002Fgh.io\u002Fgh-aw","https:\u002F\u002Fgithub.com\u002Fgithub","https:\u002F\u002Fgithub.com\u002Fabout","How people build software.","2026-11-15 06:45:15",{"source":9,"skillName":5,"commands":59,"prompt":69,"zipAvailable":70},[60,63,66],{"tool":61,"command":62},"npx","npx skills add github\u002Fgh-aw --skill prompt-token-efficiency",{"tool":64,"command":65},"bunx","bunx skills add github\u002Fgh-aw --skill prompt-token-efficiency",{"tool":67,"command":68},"pnpm","pnpm dlx skills add github\u002Fgh-aw --skill prompt-token-efficiency","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fprompt-token-efficiency\u002FSKILL.md",true,[],[73,81,89,117,141,174],{"skillNo":74,"name":75,"nameZh":17,"description":76,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":80},"01M7DQYVZ9W9DDXKQ9452SNP8J","cracktro","Edit, preview, and verify the standalone interactive talk deck in docs\u002Fpublic\u002Fcracktro (slides, SVG diagrams, transitions, WebAudio sound).","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcracktro\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":82,"name":83,"nameZh":17,"description":84,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":88},"01M7612HQ4378TK8QZ5HPAF4KR","create-connector","Create or extend a declaration-only third-party connector, with narrow reads, separate safe outputs, optional protected triggers, and offline conformance evidence.","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcreate-connector\u002FSKILL.md",[],[],"2026-11-12 13:55:43",{"skillNo":90,"name":91,"nameZh":92,"description":93,"descriptionZh":94,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":95,"categories":96,"keywords":103,"publishedAt":43},"01M6ADC942STTXHFV410J4DH0X","GitHub Agentic Workflows","GitHub 智能体工作流","GitHub Agentic Workflows (`gh-aw`) is a GitHub CLI extension for writing Agentic Workflows in markdown and compiling them to GitHub Actions.","GitHub Agentic Workflows（`gh-aw`）是一个 GitHub CLI 扩展，用于以 Markdown 编写 Agentic Workflows（智能体工作流）并将其编译为 GitHub Actions。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002FSKILL.md",[97,100],{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSAA4FBTWZP6X98STEHG99","智能体开发",[10,104,105,106,107,108,109,110,111,112,36,113,114,115,116],"github agentic workflows","agentic workflows","workflows","agentic","extension","markdown","github cli","cli","gh","compiling","writing","github actions","actions",{"skillNo":118,"name":119,"nameZh":120,"description":121,"descriptionZh":122,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":123,"categories":124,"keywords":129,"publishedAt":43},"01M6ADC6ZXSA46N9XD6VNAP1MS","windows-compatibility","Windows 跨平台兼容处理","Cross-platform path handling and command patterns","跨平台路径处理和命令模式。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fwindows-compatibility\u002FSKILL.md",[125,126],{"categoryNo":98,"categoryName":99,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":127,"categoryName":128,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSTR9G4A4GZ0VB2DFN9490","开发环境与工具链管理",[130,131,132,133,134,135,136,137,138,139,140],"windows","windows compatibility","compatibility","command","git","bugs","platform","high","patterns","cross-platform","path",{"skillNo":142,"name":143,"nameZh":144,"description":145,"descriptionZh":146,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":147,"categories":148,"keywords":155,"publishedAt":43},"01M6ADC44957SVQF96R5YY247P","versioning-policy","Squad SDK 语义化版本规范","Semver versioning rules for Squad SDK and CLI — prevents prerelease version incidents","Squad SDK 和 CLI 的 Semver（语义化版本）版本规则——防止预发布版本事故。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Fversioning-policy\u002FSKILL.md",[149,152],{"categoryNo":150,"categoryName":151,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理",{"categoryNo":153,"categoryName":154,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8C78XMS93X21V52649FP9VH","发布经理",[156,157,158,159,160,111,161,162,163,164,165,166,167,168,36,169,170,171,172,173],"versioning","policy","versioning policy","gate","implementation","workspace","pr","sdk","release","ci","npm","semver","squad","incident","incidents","Rules","version","resolution",{"skillNo":175,"name":176,"nameZh":177,"description":178,"descriptionZh":179,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":180,"categories":181,"keywords":184,"publishedAt":43},"01M6ADC1PHMEAEVR87F8PDR89X","tiered-memory","智能体分层记忆管理","Three-tier agent memory model (hot\u002Fcold\u002Fwiki) for context reduction per spawn","三层智能体记忆模型（热\u002F冷\u002F维基），用于减少每次生成（spawn）时的上下文。","https:\u002F\u002Fgithub.com\u002Fgithub\u002Fgh-aw\u002Fblob\u002Fmain\u002F.squad\u002Ftemplates\u002Fskills\u002Ftiered-memory\u002FSKILL.md",[182,183],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":101,"categoryName":102,"taxonomyType":28,"taxonomyTypeDesc":29},[185,186,187,188,189,190,191,192,193,194,195,196,197,36,198,199],"tiered memory","memory","performance","design","agent memory","proposal","cold","model","wiki","spawn","memory-management","context","three","runtime","management"]