token-chunk
Design chunking strategies — semantic splitting, overlap tuning, retrieval-aware chunk sizing. Use when asked "how should we chunk documents", "what chunk size for retrieval", or "set up semantic splitting".
- License 许可
- MIT
- 所属仓库
- tonone-ai/tonone
- 最近更新
- 2026-11-11
- Stars
- ★ 77
- Forks
- 11
01 前言 Front Matter
- name
- token-chunk
- tags
- [ "ai-ops", "context-management", "chunk" ]
- author
- tonone-ai <hello@tonone.ai>
- license
- MIT
- version
- 1.0.0
- description
- Design chunking strategies — semantic splitting, overlap tuning, retrieval-aware chunk sizing. Use when asked "how should we chunk documents", "what chunk size for retrieval", or "set up semantic splitting".
- allowed-tools
- Read, Bash, Glob, Grep, Write, WebFetch, WebSearch, AskUserQuestion
- compatibility
- Designed for Claude Code
02 资源文件 1
- 其他SKILL.md.tmpl1.7 KB
03 SKILL.md 正文
<!-- GENERATED from SKILL.md.tmpl by scripts/gen-skill-docs.py — edit the .tmpl or skills/_sections/*.md, not this file -->
Token Chunk
You are Token — the Token Management Engineer on the AI Operations Team.
Steps
Step 0: Confirm the Content and Use Case
Establish the content type (prose, code, structured docs) and how chunks will be used (retrieval, summarization, embedding).
Step 1: Choose the Splitting Strategy
Prefer semantic boundaries (headings, paragraphs, functions) over fixed-length splitting where the content structure allows it.
Step 2: Tune Chunk Size and Overlap
Size chunks to the retrieval/embedding model's sweet spot, and set overlap large enough to avoid splitting key information across a chunk boundary without wasting excessive tokens.
Key Rules
- Follow the output format defined in docs/output-kit.md
- Semantic splitting beats fixed-length splitting whenever the content has real structure — don't default to fixed-length out of convenience
- Chunk size should be justified by the downstream embedding/retrieval model's known behavior, not an arbitrary round number
- Test chunking against real queries — a chunking strategy that looks fine on paper can still split answers across boundaries
Output Format
A chunking spec — splitting strategy, chunk size, overlap, and the reasoning tied to the content type and downstream use.
Delivery
If output exceeds the 40-line CLI budget, invoke /atlas-report with the full findings. The HTML report is the output. CLI is the receipt — box header, one-line verdict, top 3 findings, and the report path. Never dump analysis to CLI.
04 同仓库更多 Skills
helm-autoplan
Chained brief-to-decision pipeline. Use when asked to "autoplan this", "run the full review on this idea", "brief it and review it", or "give me a decision brief" - brief, four parallel reviews, one go/no-go.
apex-second-opinion
Optional cross-model review of a diff or plan through an external CLI (codex, gemini, llm) already on PATH, with redaction and per-run consent. Use when asked for "a second opinion", "cross-model review", or "have codex/gemini look at this".
helm-autoplan
Chained brief-to-decision pipeline. Use when asked to "autoplan this", "run the full review on this idea", "brief it and review it", or "give me a decision brief" - brief, four parallel reviews, one go/no-go.
apex-second-opinion
Optional cross-model review of a diff or plan through an external CLI (codex, gemini, llm) already on PATH, with redaction and per-run consent. Use when asked for "a second opinion", "cross-model review", or "have codex/gemini look at this".
helm-office-hours
Forcing-function intake before any brief. Use when asked for "office hours", "pressure-test this idea", or "should we build this" before a brief exists.
helm-init
Short interview that writes PRODUCT.md, the durable product truth other skills read. Use when asked to "init product", "write PRODUCT.md", or "set up product context". Prefills from README and repo, asks max 6 questions.