一键导入
token-economy
Apply token optimization when writing docs, changelogs, MCP tasks. Quality
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Apply token optimization when writing docs, changelogs, MCP tasks. Quality
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
Spawn an agent team using the Proxy Pattern. Team lead fetches agent configs from MCP and injects them into teammate prompts (since team agents cannot access MCP tools).
Update CHANGELOG.md and TEST-CHANGELOG.md with new entries following Keep a Changelog format and token optimization principles. Use when adding changes to the changelog, documenting new features, fixes, or optimizations.
Use safe-rm command to safely 'remove' files by renaming them to .obsolete instead of permanent deletion. Reversible, collision-safe, hook-compliant.
Systematically identify and remove unused imports, variables, and dead code from TypeScript/React projects using --noUnusedLocals and --noUnusedParameters compiler flags
基于 SOC 职业分类
| name | token-economy |
| description | Apply token optimization when writing docs, changelogs, MCP tasks. Quality |
Optimize text for AI context: docs, changelogs, MCP tasks, subtasks.
Principle: Quality first. Never sacrifice essential info.
| # | Technique | Use | Example |
|---|---|---|---|
| 1 | Tables over prose | Comparisons | Function params → table |
| 2 | Bullets with pipes | Multi-part | Part1 | Part2 | Part3 |
| 3 | Numbered steps | Workflows | 1. Step → 2. Step |
| 4 | One example | Code samples | Keep best, remove rest |
| 5 | Pattern statements | Repetition | **Pattern**: All X do Y |
| 6 | Add "Why" | Decisions | **Why**: [reason] |
| 7 | Concrete errors | Debugging | **Error**: \exact message`` |
| 8 | No fluff | Decorations | Remove ASCII art, emojis |
| 9 | Scannable | Structure | Headers, bullets, tables |
| 10 | Consolidate | Duplicates | Merge similar sections |
| 11 | Compact code | Examples | 3-5 key lines only |
| 12 | Quick lists | Reference | Command/param tables |
| 13 | Inverted pyramid | Info order | Critical → Details → Context |
| 14 | Conditional verbosity | Complexity | High for complex, low for simple |
| 15 | No teaching | Reference | State facts, skip basics |
Task:
Requirements: [WHAT] | Files: [PATH:LINES] (action) | Acceptance: [CRITERIA] | Why: [CONTEXT]
progress_notes: [ACTION] [WHAT]. [NEXT]
completion_summary: [DONE]. [TECH]. Files: [PATHS]. [IMPACT]
Before (prose):
This function validates user input. Takes string input_text, returns bool.
If valid returns true, otherwise false. Checks empty, special chars, length ≤100.
After (compact):
**validate_input(input_text: str) → bool**: True if valid (non-empty, no special chars, ≤100)
Before (ASCII art - 180 tokens):
┌─────────┐
│ Auth? │
└────┬────┘
▼
┌─────────┐
│ Valid? │
└──┬───┬──┘
Y N
After (numbered - 36 tokens):
1. Check auth
2. Valid → YES: Process | NO: Reject
| Issue | Fix |
|---|---|
| Multiple examples | Keep 1 (#4) |
| Prose comparison | Table (#1) |
| Teaching | Facts only (#15) |
| ASCII art | Numbered (#3) |
| No "why" | Add context (#6) |
See TEMPLATES.md for copy-paste templates.