[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6KJAWYAJY0BJMNBYAVM1XQT":3,"skill-same:01M6KJAWYAJY0BJMNBYAVM1XQT":51},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":25,"linkOnly":26,"markdownContent":27,"markdownBody":28,"frontMatter":29,"refName":30,"commitSha":31,"skillDirectory":32,"forksCount":13,"repositoryHtmlUrl":33,"repositoryHomepageUrl":6,"ownerHtmlUrl":34,"ownerBlogUrl":6,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M6KJAWYAJY0BJMNBYAVM1XQT","context-compressor",null,"Strategies for compressing context to maximize token efficiency","nposadaa\u002Fwa_trm_notifier","nposadaa","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F57275210?v=4","01M6KJ95HX8AHGQ83PJKSD5HTE","01M6KJ95NTKE2PHAY9Z88HFXYS",0,"MIT","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fcontext-compressor\u002FSKILL.md",[],[18,19,20,21,22,23,24],"context","context compressor","efficiency","strategies","token","for","token efficiency","2026-11-10 10:12:30",false,"---\nname: context-compressor\ndescription: Strategies for compressing context to maximize token efficiency\n---\n\n# Context Compressor Skill\n\n\u003Crole>\nYou are a context compression specialist. Your job is to maintain rich understanding while using minimal tokens.\n\n**Core principle:** Compress aggressively, decompress only when needed.\n\u003C\u002Frole>\n\n---\n\n## Compression Strategies\n\n### Strategy 1: Summary Mode\n\n**When:** You've fully understood a file and may need to reference it later.\n\n**How:**\n```markdown\n## File Summary: src\u002Fauth\u002Flogin.ts\n\n**Purpose:** Handles user login via email\u002Fpassword\n**Key functions:**\n- handleLogin(req, res) → Validates credentials, returns JWT\n- validateCredentials(email, password) → Checks against DB\n**Dependencies:** bcrypt, jose, database\n**Tokens saved:** ~400 (95 lines not reloaded)\n```\n\n**Use instead of:** Re-reading the full file\n\n---\n\n### Strategy 2: Outline Mode\n\n**When:** You need to understand a file's structure but not implementation details.\n\n**How:**\n```markdown\n## Outline: src\u002Fservices\u002Fpayment.ts (127 lines)\n\n- L1-15: Imports and types\n- L17-35: PaymentService class\n  - L20: constructor(config)\n  - L25: processPayment(amount, method)\n  - L45: refund(transactionId)\n  - L67: getHistory(userId)\n- L90-127: Helper functions\n```\n\n**Tokens:** ~50 vs ~500 for full file\n\n---\n\n### Strategy 3: Diff-Only Mode\n\n**When:** You've already seen a file and need to understand changes.\n\n**How:**\n```markdown\n## Changes to: src\u002Fconfig.ts\n\nAdded:\n- L45: TOKEN_BUDGET_THRESHOLD = 0.5\n- L46: COMPRESSION_ENABLED = true\n\nModified:\n- L12: MAX_CONTEXT → increased from 100000 to 150000\n```\n\n**Use for:** Reviewing modifications, understanding updates\n\n---\n\n### Strategy 4: Reference Mode\n\n**When:** You need to track a file without loading it.\n\n**How:**\n```markdown\n## References\n\n| File | Last Seen | Summary | Load If |\n|------|-----------|---------|---------|\n| auth.ts | Task 2 | Login handling | Auth bugs |\n| db.ts | Task 1 | Postgres client | DB errors |\n| utils.ts | Never | Utility funcs | Helper needed |\n```\n\n**Cost:** ~10 tokens vs ~200+ per file\n\n---\n\n### Strategy 5: Progressive Disclosure\n\n**When:** Unsure how much detail is needed.\n\n**Process:**\n1. Start with outline (Level 1)\n2. If insufficient, load key functions (Level 2)\n3. If still stuck, load related code (Level 3)\n4. Full file only as last resort (Level 4)\n\n```\nL1: Outline → \"I see handleLogin at L25\"\nL2: Function → \"handleLogin validates then calls createToken\"\nL3: Related → \"createToken uses jose.sign with HS256\"\nL4: Full → Only for complex debugging\n```\n\n---\n\n## Compression Triggers\n\n### Automatic Compression Points\n\n| Trigger | Action |\n|---------|--------|\n| After understanding a file | Create summary |\n| Switching tasks | Compress previous context |\n| Budget at 50% | Aggressive outline mode |\n| Budget at 70% | Summary-only mode |\n| End of wave | Full compression pass |\n\n---\n\n## Decompression Protocol\n\nWhen you need details from compressed context:\n\n1. **Check summary first** — Often sufficient\n2. **Load specific section** — If summary incomplete\n3. **Full load as last resort** — And re-compress after\n\n```markdown\n## Decompression Log\n\n| File | Reason | Level | Tokens |\n|------|--------|-------|--------|\n| auth.ts | Debug login | L2 (func) | +150 |\n| db.ts | Check query | L3 (snippet) | +50 |\n```\n\n---\n\n## Compression Format Templates\n\n### Summary Template\n\n```markdown\n## ? [filename]\n**Purpose:** [one line]\n**Key exports:** [list]\n**Dependencies:** [list]\n**Patterns:** [notable patterns used]\n**Watch for:** [gotchas or edge cases]\n```\n\n### Outline Template\n\n```markdown\n## ? [filename] (N lines)\n- L[start]-[end]: [section name]\n  - L[n]: [key item]\n  - L[n]: [key item]\n```\n\n### Diff Template\n\n```markdown\n## Δ [filename]\n**+** [additions]\n**-** [removals]\n**~** [modifications]\n```\n\n---\n\n## Integration\n\nWorks with:\n- `token-budget` — Triggers compression at thresholds\n- `context-fetch` — Provides input for compression\n- `context-health-monitor` — Monitors compression effectiveness\n\n---\n\n## Anti-Patterns\n\n❌ **Keeping full files in mental context** — Compress after understanding\n❌ **Re-reading instead of referencing** — Use summaries\n❌ **Loading full file for one function** — Use outline + target\n❌ **Skipping compression \"to save time\"** — Costs more later\n\n---\n\n*Part of GSD v1.6 Token Optimization. See docs\u002Ftoken-optimization-guide.md for examples.*\n","# Context Compressor Skill\n\n\u003Crole>\nYou are a context compression specialist. Your job is to maintain rich understanding while using minimal tokens.\n\n**Core principle:** Compress aggressively, decompress only when needed.\n\u003C\u002Frole>\n\n---\n\n## Compression Strategies\n\n### Strategy 1: Summary Mode\n\n**When:** You've fully understood a file and may need to reference it later.\n\n**How:**\n```markdown\n## File Summary: src\u002Fauth\u002Flogin.ts\n\n**Purpose:** Handles user login via email\u002Fpassword\n**Key functions:**\n- handleLogin(req, res) → Validates credentials, returns JWT\n- validateCredentials(email, password) → Checks against DB\n**Dependencies:** bcrypt, jose, database\n**Tokens saved:** ~400 (95 lines not reloaded)\n```\n\n**Use instead of:** Re-reading the full file\n\n---\n\n### Strategy 2: Outline Mode\n\n**When:** You need to understand a file's structure but not implementation details.\n\n**How:**\n```markdown\n## Outline: src\u002Fservices\u002Fpayment.ts (127 lines)\n\n- L1-15: Imports and types\n- L17-35: PaymentService class\n  - L20: constructor(config)\n  - L25: processPayment(amount, method)\n  - L45: refund(transactionId)\n  - L67: getHistory(userId)\n- L90-127: Helper functions\n```\n\n**Tokens:** ~50 vs ~500 for full file\n\n---\n\n### Strategy 3: Diff-Only Mode\n\n**When:** You've already seen a file and need to understand changes.\n\n**How:**\n```markdown\n## Changes to: src\u002Fconfig.ts\n\nAdded:\n- L45: TOKEN_BUDGET_THRESHOLD = 0.5\n- L46: COMPRESSION_ENABLED = true\n\nModified:\n- L12: MAX_CONTEXT → increased from 100000 to 150000\n```\n\n**Use for:** Reviewing modifications, understanding updates\n\n---\n\n### Strategy 4: Reference Mode\n\n**When:** You need to track a file without loading it.\n\n**How:**\n```markdown\n## References\n\n| File | Last Seen | Summary | Load If |\n|------|-----------|---------|---------|\n| auth.ts | Task 2 | Login handling | Auth bugs |\n| db.ts | Task 1 | Postgres client | DB errors |\n| utils.ts | Never | Utility funcs | Helper needed |\n```\n\n**Cost:** ~10 tokens vs ~200+ per file\n\n---\n\n### Strategy 5: Progressive Disclosure\n\n**When:** Unsure how much detail is needed.\n\n**Process:**\n1. Start with outline (Level 1)\n2. If insufficient, load key functions (Level 2)\n3. If still stuck, load related code (Level 3)\n4. Full file only as last resort (Level 4)\n\n```\nL1: Outline → \"I see handleLogin at L25\"\nL2: Function → \"handleLogin validates then calls createToken\"\nL3: Related → \"createToken uses jose.sign with HS256\"\nL4: Full → Only for complex debugging\n```\n\n---\n\n## Compression Triggers\n\n### Automatic Compression Points\n\n| Trigger | Action |\n|---------|--------|\n| After understanding a file | Create summary |\n| Switching tasks | Compress previous context |\n| Budget at 50% | Aggressive outline mode |\n| Budget at 70% | Summary-only mode |\n| End of wave | Full compression pass |\n\n---\n\n## Decompression Protocol\n\nWhen you need details from compressed context:\n\n1. **Check summary first** — Often sufficient\n2. **Load specific section** — If summary incomplete\n3. **Full load as last resort** — And re-compress after\n\n```markdown\n## Decompression Log\n\n| File | Reason | Level | Tokens |\n|------|--------|-------|--------|\n| auth.ts | Debug login | L2 (func) | +150 |\n| db.ts | Check query | L3 (snippet) | +50 |\n```\n\n---\n\n## Compression Format Templates\n\n### Summary Template\n\n```markdown\n## ? [filename]\n**Purpose:** [one line]\n**Key exports:** [list]\n**Dependencies:** [list]\n**Patterns:** [notable patterns used]\n**Watch for:** [gotchas or edge cases]\n```\n\n### Outline Template\n\n```markdown\n## ? [filename] (N lines)\n- L[start]-[end]: [section name]\n  - L[n]: [key item]\n  - L[n]: [key item]\n```\n\n### Diff Template\n\n```markdown\n## Δ [filename]\n**+** [additions]\n**-** [removals]\n**~** [modifications]\n```\n\n---\n\n## Integration\n\nWorks with:\n- `token-budget` — Triggers compression at thresholds\n- `context-fetch` — Provides input for compression\n- `context-health-monitor` — Monitors compression effectiveness\n\n---\n\n## Anti-Patterns\n\n❌ **Keeping full files in mental context** — Compress after understanding\n❌ **Re-reading instead of referencing** — Use summaries\n❌ **Loading full file for one function** — Use outline + target\n❌ **Skipping compression \"to save time\"** — Costs more later\n\n---\n\n*Part of GSD v1.6 Token Optimization. See docs\u002Ftoken-optimization-guide.md for examples.*\n",{"name":5,"description":7},"master","afd8a0f0dcb9b77a6380674baf34aac507e69d70",".agents\u002Fskills\u002Fcontext-compressor","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier","https:\u002F\u002Fgithub.com\u002Fnposadaa","Fun = Nerdism + Technology","2026-11-05 00:20:35",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add nposadaa\u002Fwa_trm_notifier --skill context-compressor",{"tool":43,"command":44},"bunx","bunx skills add nposadaa\u002Fwa_trm_notifier --skill context-compressor",{"tool":46,"command":47},"pnpm","pnpm dlx skills add nposadaa\u002Fwa_trm_notifier --skill context-compressor","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fcontext-compressor\u002FSKILL.md",true,[],[52,65,81,95,107,121],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":25},"01M6KJD0BT88C4KVQ7RJJTPT7Y","verifier","Validates implemented work against spec requirements with empirical evidence","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fverifier\u002FSKILL.md",[],[54,59,60,61,62,63,64],"spec","work","evidence","requirements","spec requirements","with",{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":76,"publishedAt":25},"01M6KJCTEPAAPV3YE6GXFC1RQ4","token-budget","Manages token budget estimation and tracking to prevent context overflow","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Ftoken-budget\u002FSKILL.md",[71],{"categoryNo":72,"categoryName":73,"taxonomyType":74,"taxonomyTypeDesc":75},"01JBSEEDCAT000000000000040","财务","PROFESSION","适用职业",[77,22,78,18,79,80],"token budget","Budget","tracking","estimation",{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":25},"01M6KJCN162BN1C6P66K52TZVP","planner","Creates executable phase plans with task breakdown, dependency analysis, and goal-backward verification","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fplanner\u002FSKILL.md",[],[83,88,89,64,90,91,92,93,94],"task","plans","dependency analysis","goal","verification","analysis","dependency",{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":25},"01M6KJCHHQ3HNHDH8DAEJN3JDC","plan-checker","Validates plans before execution to catch issues early","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fplan-checker\u002FSKILL.md",[],[102,103,104,105,106,89],"checker","plan checker","plan","execution","issues",{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":25},"01M6KJCDQS4C0DSVZ52CW053MJ","status","Show MemPalace status — room counts, storage usage, and palace health.","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fmempalace\u002F.codex-plugin\u002Fskills\u002Fstatus\u002FSKILL.md",[],[109,114,115,116,117,118,119,120],"health","Bash","read","show","mempalace","usage","storage",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":25},"01M6KJCA2PFKKNEFZWMMTE3XHM","search","Search your MemPalace — semantic search across all mined memories, projects, and conversations.","https:\u002F\u002Fgithub.com\u002Fnposadaa\u002Fwa_trm_notifier\u002Fblob\u002Fmaster\u002F.agents\u002Fskills\u002Fmempalace\u002F.codex-plugin\u002Fskills\u002Fsearch\u002FSKILL.md",[],[123,128,116,115,129,130,131,118,132,133],"projects","semantic search","conversations","semantic","memories","across"]