llm-context-capacity-planner
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "llm-context-capacity-planner" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-285cf680637c8fefcd155e053ab94e19051d631986189388b4bf258428b58acd. Verify the upstream source and version against https://skillhub.cn/skills/user_b26bd65e/llm-context-capacity-planner-b26bd65e before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Plan safe LLM context allocation by reserving space for system instructions, conversation history, retrieved content, tool calls, files, and outputs. Suitable for long-context applications, RAG (retrieval-augmented generation), code agents, truncation strategies, context overflow events, or prompt-token capacity design.
Introduction source: third_party · user_b26bd65e · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Plan safe LLM context allocation across system instructions, conversation history, retrieval, tools, files, and output reserve. Use for long-context applications, RAG, coding agents, truncation policies, context overflow incidents, or prompt-token capacity design.
- Inputs and outputs
- Return a token-budget table whose allocations sum to the usable limit, an overflow decision tree, observability fields, and acceptance tests. Distinguish character counts from tokens and label tokenizer estimates.
- Testing
- Not tested
Browse files
Frontmatter
name: llm-context-capacity-planner
description: Plan safe LLM context allocation across system instructions, conversation history, retrieval, tools, files, and output reserve. Use for long-context applications, RAG, coding agents, truncation policies, context overflow incidents, or prompt-token capacity design.
slug: llm-context-capacity-planner-b26bd65e
displayName: LLM 上下文容量规划器
version: 1.0.1
summary: 规划系统提示、历史记录、检索内容、工具结果与输出预留,避免上下文溢出和静默截断。
license: MITLLM Context Capacity Planner
Design against the smallest effective provider limit, not only the advertised model maximum.
Workflow
- Confirm input context, maximum output, provider caps, tokenizer, and tool/schema overhead.
- Reserve output tokens first, then safety headroom of at least 10% unless measured data supports less.
- Allocate the remaining input budget across system policy, user request, conversation, retrieval, files, and tool results.
- Rank content by authority, relevance, recency, and replaceability.
- Define deterministic overflow behavior: reject, summarize, retrieve, chunk, or truncate low-priority content.
- Never truncate safety policy, user intent, required schemas, citations, or unresolved tool state silently.
- Test P50, P95, and worst-case token loads with multilingual and code-heavy examples.
Output
Return a token-budget table whose allocations sum to the usable limit, an overflow decision tree, observability fields, and acceptance tests. Distinguish character counts from tokens and label tokenizer estimates.
Current listing version
1.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 针对 LLM 上下文溢出与截断这一明确技术痛点,适用于 RAG、编码代理等高频刚需场景
- 提供端到端工作流与输出规范,具有高实用价值
Highlights
- 触发词精准完整,覆盖长上下文、RAG、编码代理等多种变体,边界清晰
Areas to improve
-
缺少 When to Use/示例章节 Reported severity: Minor
文档缺少显式的 When to Use 章节和端到端完整示例,仅有抽象工作流描述
Recommendation: 补充 When to Use 显式章节和至少一个端到端完整示例,提升可读性与实用性
Highlights
- 结构清晰,含 Workflow 步骤划分与输出说明
- frontmatter 完整,文档长度适中
Areas to improve
-
缺少用户确认机制说明 Reported severity: Minor
未显式说明不可逆操作(如拒绝请求)时是否提示用户确认
Recommendation: 补充不可逆操作的确认机制说明,提升执行安全性
Highlights
- 工具来源为通用 LLM 上下文管理逻辑,参数建议合理
- 覆盖主要异常(溢出行为定义),具备良好可靠性
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.