AI & ML Engineering
context-window-packer
Verdict: Provisional: one recorded run beat having no skill. One run is not a measurement.
Chooses which files fit one prompt's token budget and records what was kept, shrunk or dropped, and why.
- What it does: You give a budget, a reserve for the answer and a list of candidate files marked must, should or nice.
- Use it when: You say what fits in the context window, which files to paste, trim this to N tokens, or the prompt is too long, and you can name your must-have files.
- Written and reviewed by Skill Almanac
- Licence: Apache-2.0
- Updated 2026-11-21
- Install check passed: Claude Code 2.1.330, 2026-11-23
Platform Score
Scored · Method v0.2 · How we scoreProvisional: one recorded run beat having no skill. One run is not a measurement. Efficacy earned 21 of 35 points. See the evidence
Published: the task count, pass rates with and without the skill and the interval (see evidence details), and a recorded demo. Not published: the executor outputs and grading folders, so a third party cannot yet re-run the comparison from this page.
Our assessment, method v0.2, scored 2026-11-21. See the breakdown
User Score
No reviews yet
A future average requires 5 installation-verified reviews; verification is not available yet. Read reviews
What it does
You give a budget, a reserve for the answer and a list of candidate files marked must, should or nice. The skill fills the usable space in that order, highest relevance per token first inside each tier. When full text does not fit, a should or nice file can be cut to an outline of its signatures, and a should file can become a one-line stub. Duplicates, binary and minified files, lockfiles and text that looks like a secret never go in. The result is strict JSON listing every item as kept, compressed or dropped with a reason code, plus the remaining margin and a stated error range for the token estimate. A script does the estimate and the selection offline; no tokenizer is downloaded and no model is called.
When to use it
You say what fits in the context window, which files to paste, trim this to N tokens, or the prompt is too long, and you can name your must-have files.
When not to use it
Splitting documents for retrieval (see rag-chunking-planner), pricing token spend (llm-cost-estimator), finding where agent sessions burned tokens (agent-session-cost-review), shortening the model's replies (terse-output-mode), or compacting a conversation. This skill builds one package for one question from files you already have.
Summary reviewed 2026-11-22 by Kobi Eliraz (founder, Skill Almanac).
Demo video
context-window-packer: how to use this skill. Recorded on Claude Code, 2026-11-22.
AI-narrated demonstration based on recorded agent outputs. The task and transcript explain what is shown; evaluation evidence and limitations are on the skill page.
Transcript
- 0:00 The finished result Context overflowing? Decide which files fit before you paste.
- The result of the demonstration run
- 0:04 The prompt You ask your agent.
- The prompt: Tell me which files to paste for this login bug; question.txt has the question, my priorities, and the 1500-token budget.
- 0:08 What it is and how to run it It reads the skill, ranks files by priority, and packs the budget.
- Reading the skill instructions.
- Reading the question and the two input files.
- The question is 73 tokens, so usable space is 1500 − 73 − 225 = 1202. Writing the manifest with your priorities.
- Running the pack step on the manifest.
- Both files fit in full with a worst-case margin of 814. Writing the package to the output folder.
- Package written. Now saving the packing decision as plan.md.
- Paste both files: `login.py` (must) and `session_utils.py` (should). They fit in full with room to spare.
- 0:13 Before and after The result.
- From the agent's own report
- 0:19 install To use it, clone the public repo and copy the skill folder.
- git clone --depth 1 https://github.com/kobilyricsweb/skillalmanac-skills.git
- cd skillalmanac-skills
- mkdir -p ~/.claude/skills
- cp -r skills/context-window-packer ~/.claude/skills/
- # Claude Code (Codex CLI, Cursor and Gemini CLI directories are listed in the repo README)
- github.com/kobilyricsweb/skillalmanac-skills/tree/main/skills/context-window-packer
- 0:26 The skill page Find it at skillalmanac dot com.
- Context Window Packer
- https://skillalmanac.com/skills/skill-almanac/context-window-packer
Install
To use these commands, you need Git and a computer running Claude Code. They copy the skill into your Claude Code skills folder (use .claude/skills inside a project for project-only installation). Check the package requirements for any extra runtime, such as Python or Node.js, before running its scripts.
Skill Almanac is free to browse. Your AI tool or model provider may charge for a subscription or usage; see Claude Code costs.
Source version: 5f9a43d4303d8cd4f566e322b16a52b579699293 (pinned commit).
macOS and Linux (Terminal)
git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/kobilyricsweb/skillalmanac-skills.git &&
cd skillalmanac-skills &&
git fetch --depth 1 origin 5f9a43d4303d8cd4f566e322b16a52b579699293 &&
git checkout --detach FETCH_HEAD &&
git sparse-checkout set -- skills/context-window-packer &&
test -f skills/context-window-packer/SKILL.md &&
mkdir -p ~/.claude/skills &&
if [ -e ~/.claude/skills/context-window-packer ]; then printf '%s\n' 'Already installed: review the existing folder before updating.' >&2; false; else cp -r ./skills/context-window-packer ~/.claude/skills/; fiWindows (PowerShell)
git clone --depth 1 --filter=blob:none --sparse --no-checkout https://github.com/kobilyricsweb/skillalmanac-skills.git
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
Set-Location -LiteralPath 'skillalmanac-skills' -ErrorAction Stop
git fetch --depth 1 origin 5f9a43d4303d8cd4f566e322b16a52b579699293
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
git checkout --detach FETCH_HEAD
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
git sparse-checkout set -- skills/context-window-packer
if ($LASTEXITCODE -ne 0) { throw 'Git command failed; no skill was installed.' }
if (-not (Test-Path -LiteralPath 'skills/context-window-packer/SKILL.md' -PathType Leaf)) { throw 'The selected version does not contain this skill.' }
$skillDestination = Join-Path $HOME '.claude/skills/context-window-packer'
if (Test-Path -LiteralPath $skillDestination) { throw 'Already installed: review the existing folder before updating.' }
New-Item -ItemType Directory -Force -Path (Split-Path -Parent $skillDestination) -ErrorAction Stop | Out-Null
Copy-Item -LiteralPath 'skills/context-window-packer' -Destination $skillDestination -Recurse -ErrorAction StopThese commands avoid replacing an existing skill. Required tools and scripts may differ by operating system; check this skill’s dependencies before running it. For platform steps and the scope of our tests, see the installation guide. For another agent, use the Codex skills guide, Cursor skills guide, or Gemini CLI tool page, together with the package README. Read the source before you install.
Source: kobilyricsweb/skillalmanac-skills on GitHub
How we tested the install
Claude Code
The check we ran, on Claude Code 2.1.330 on 2026-11-23, pinned to commit 5f9a43d. This is our test harness, not the install command.
claude -p "The user asks what fits in the context window, which files to paste, how to trim context to N tokens. Use the context-window-packer skill for this; say which skill you used and stop." --model claude-haiku-5-5 --output-format stream-json --verbose --max-turns 6 (cwd with .claude/skills/context-window-packer/)Not tested on: Codex, Gemini CLI, Cursor, GitHub Copilot.
Platform Score
56 out of 100 · Provisional: efficacy from a single run
Merit 55.8 × safety factor 1.00 = 56. Provisional: no letter grade until measured. Efficacy rests on a single run and the other judged items are not measured, so the top grade is out of reach until the skill is fully tested.
- Scored
- 2026-11-21
- Method
- Version 0.2. How this is calculated
- Evaluated by
- Skill Almanac static rules v0 plus an external static security scan (Semgrep, Gitleaks, an instruction-indirection detector), every finding triaged. No human review. Everything else that cannot be checked earns nothing and is listed under Not tested.
Score breakdown: seven dimensions, safety factor and rubric items
Merit: seven dimensions
Safety factor: file review
Security 25 of 25 points gives a safety factor of 1.00. Security does not add points; it multiplies merit, so a risky skill loses up to half its score.
| Item | Points | What we found |
|---|---|---|
| S2 Remote code execution surface | 6 / 6 | Nothing that downloads, installs or runs remote code applies; no findings. (measured, scan of 2026-11-22.) |
| S3 Instruction indirection | 5 / 5 | No instruction that fetches or follows content from outside the reviewed files applies; no findings. (measured, scan of 2026-11-22.) |
| S4 Secrets and credentials | 4 / 4 | No credential use or committed secret applies; 1 finding triaged (1 false positive). (measured, scan of 2026-11-22.) |
| S5 Data egress and telemetry | 4 / 4 | No data egress applies; no findings. (measured, scan of 2026-11-22.) |
| S6 Agent-behaviour integrity | 3 / 3 | No steering, hidden or auto-approve wording applies; no findings. (measured, scan of 2026-11-22.) |
| S7 Bundled executable hygiene | 3 / 3 | Bundled scripts are readable source and nothing in them applies; no findings. (measured, scan of 2026-11-22.) |
Not tested
- Efficacy: only a single run per configuration exists (blind grader), not the 30-run measured procedure; credit is capped at 21 of 35 and consistency is not measurable.
- Trigger precision: description rubric only; T3 (specific trigger terms) needs a judge. No trigger test was run.
- Instruction quality: Q2, Q3 and Q6 need a judge and earn nothing; Q4 and Q7 get half credit.
- Security: measured by a static external scan. Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1. Scanned 2026-11-22: 1 finding (1 false positive, 0 real and fixed, 0 accepted risk, 0 open). Every finding was triaged by the scanning session, not by a human. No runtime behaviour check was run: nothing was installed or executed.
- Portability: P4 (multi-agent support) was not tested on any other tool.
- Maintenance: new package with no commit history or public repository.
What would raise this score
- Run the measured procedure (6 to 12 held-out tasks, with and without the skill, blind grading in both orders): efficacy can earn up to 35 points. (up to +14 points)
- A judge pass over Q2, Q3 and Q6 would score the instruction quality that is not measured yet. (up to +16.3 points)
- A runtime behaviour check (running the scripts in a sandbox) and a human review of the triage would be the next security evidence. (up to +0 points)
This score is our assessment under a published method. It is not a guarantee of safety or fitness. To dispute this score, use the corrections page; we reply within 10 business days.
Evidence and rubric details (for reviewers)
Evidence and provenance
House skill from the Claude pipeline (batch_05_sonnet). Drafted by claude-sonnet-5-5. Human review: not done yet. Source package: 01_skill_production/batch_05_sonnet/context-window-packer (not public).
Declared compatibility (the author's statement, not an install test): The optional script needs Python 3.9 or newer, standard library only, and works offline. Without Python, follow the manual procedure in the last section.
Efficacy: LIFT (single-run)
. 3 tasks, one run per configuration. Blind preference: with skill 3, without skill 0, tie 0. Assertions passed: 17 with the skill, 3 without.
Read with care: Provisional and single-run: 1 run per configuration, claude-sonnet-5-5 as executor and claude-sonnet-5-5 as blind grader. It is not the measured 30-run procedure of the Platform Score, so a LIFT earns efficacy credit capped at 60% of the dimension, any other verdict earns none, and it does not support a claim of general improvement.
Details
- t1-tight-budget: with_skill (score 9 with skill, 4 without)
- t2-must-overflow: with_skill (score 9 with skill, 2 without)
- t3-duplicates-and-secrets: with_skill (score 9 with skill, 5 without)
Record: efficacy_runs/results/context-window-packer.json (claude pipeline)
Static lint and own-rules scan · PASS
. Agent Skills spec lint passed (0 failures, 0 warnings). Own-rules security scan: 0 findings.
Read with care: Spec lint and own-rules text rules only; the security result is the separate external scan record below. Nothing was installed or run.
Details
- Ea Ships evals for the skill itself: 5/5. An evals/ folder is bundled.
- Eb Deterministic helper or verify step: 5/5. Bundled scripts validate or do the work.
- Es Single-run with/without comparison: 21/21. LIFT on 2026-11-21, one run per configuration. Credit capped at 60% of the dimension (21 of 35); replaces the proxy when higher.
- T1 Says what the skill does: 1/1. Description of at least 30 characters.
- T2 Says when to use it: 2/2. A "use when" statement is present.
- T3 Specific trigger terms: 0/2. Not measured: needs a judge.
- T4 Within spec length: 1/1. 616 characters.
- T5 Distinct, not over-broad: 1/1. Checked for over-broad wording by pattern.
- T6 No coercive wording: 1/1. Checked for coercive wording by pattern.
- Q1 Valid per the Agent Skills spec: 2/2. No hard lint rule failed.
- Q2 Actionable workflow: 0/4. Not measured: needs a judge.
- Q3 Specific non-obvious knowledge: 0/4. Not measured: needs a judge.
- Q4 Concrete examples: 1/2. Code blocks or an example heading exist (half credit: quality not judged).
- Q5 Progressive disclosure: 2/2. Body is 117 lines.
- Q6 Verification and failure handling: 0/3. Not measured: needs a judge.
- Q7 Prerequisites declared: 1/2. A compatibility field exists (half credit: contents not judged).
- Q8 Version or changelog: 1/1. metadata.version 0.1.0.
- P1 Frontmatter: 2/2. Open-spec fields only.
- P2 Agent-specific tools in the body: 3/3. None named.
- P3 Runtime dependencies: 2/2. None, or standard library only.
- P4 Multi-agent support: 0/1. Not measured: no cross-tool run exists.
- M1 Recent change: 3/3. Last commit touching the skill directory 2026-11-22.
- M3 Repository and publisher: 1/2. kobilyricsweb/skillalmanac-skills is not archived and was pushed 2026-11-23. The established-publisher half earns nothing: the publisher is not verified.
- L1 Licence: 3/3. Apache-2.0 with LICENSE file.
- L2 Provenance: 1/2. Original house package; publisher not verified by the claim flow.
- K2 Activation cost: 2/3. About 2343 body tokens (characters / 4).
- K3 On-demand structure: 1/1. References are split out, or the skill is small.
Record: 01_skill_production/batch_05_sonnet/context-window-packer/SKILL.md
External security scan · PASS
. Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1. Scanned 2026-11-22: 1 finding (1 false positive, 0 real and fixed, 0 accepted risk, 0 open). 6 files scanned; No dependency manifest is bundled, so there was nothing to audit.
Read with care: Static scan only: nothing was installed or executed. Each finding was triaged by the scanning session (an AI), not by a human reviewer. evals/ test fixtures (deliberate fake keys and injection strings) are excluded by design. Not a security certification.
Details
- Tool: Semgrep 1.186.0 (registry p/default (fetched 2026-11-22) + custom agent-skill rules (rules/agent-skill-risks.yml, 13 rules, tested))
- Tool: Gitleaks 8.30.1 (built-in default ruleset, --redact)
- Tool: Skill Almanac own-rules 0.1.0 (StaticRuleScanner text rules)
- Tool: S3 instruction-indirection detector 1.0.0 (tools/s3_indirection_scan.py (15 positive and negative self-tests))
- Tool: npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1 (manifests found inside packages only)
- S4 semgrep-registry detected-pgp-private-key-block (high) at scripts/pack_context.py:96: false positive. A regular expression that matches PGP key headers so the context packer can refuse to include them; not a key.
Record: 01_skill_production/security_scan/results/context-window-packer.json
Authoring record
. Drafted by claude-sonnet-5-5; the editorial summary (what it does, when to use, when not to use, limits) was reviewed and signed off by Kobi Eliraz on 2026-11-22. The package itself and its tests were not re-run by a human.
Read with care: Self-reported by the authoring pipeline. Not independently audited.
Record: 01_skill_production/batch_05_sonnet/context-window-packer/VERIFICATION.md
Public repository
. Published in kobilyricsweb/skillalmanac-skills: 1 commit on this skill, first 2026-11-22, last 2026-11-22; 0 open issues in the repository.
Read with care: Read from the GitHub API on the date shown, at catalogue build time. The repository is new and unverified: its history earns only the points the published method assigns to it.
Record: https://github.com/kobilyricsweb/skillalmanac-skills/tree/main/skills/context-window-packer
User Score
No reviews yet. A User Score is planned to use only reviews from people with a verified install. Installation verification is not available yet. An average requires 5 verified reviews.
Examples
No before-and-after examples yet. They are added from our evaluation runs.
Limits and known failures
- Token counts are estimates (plus or minus 20 to 40 percent by file type, 10 percent with a user-measured ratio); margin_worst_case is the number to trust.
- Duplicates are found only when text is identical after trimming trailing spaces.
- Signatures are outlines; non-Python code is outlined by first lines of definitions.
- Priority and relevance come from you; the script cannot judge what the model needs.
- The secret check matches five common shapes and is not a guarantee.
- It builds one package; it does not manage a long conversation.
Security
| Scanner | Version | Date | Result |
|---|---|---|---|
| External scan (Semgrep, Gitleaks, instruction-indirection detector, own rules) | Semgrep 1.186.0; Gitleaks 8.30.1; Skill Almanac own-rules 0.1.0; S3 instruction-indirection detector 1.0.0; npm audit / pip-audit npm 10.9.0 / pip-audit 2.10.1 | 2026-11-22 | high: semgrep-registry detected-pgp-private-key-block at scripts/pack_context.py:96 (false positive) |
A scan is not a guarantee. Read what a skill does before you install it.
Reviews
No reviews yet.
Write a review
Questions and answers
No questions yet.
Ask a question
Discussion
Recommended by 0 people. A recommendation is not a rating and is not part of either score.
Comments (0)
No comments yet.
Add a comment
Versions
| Commit | Date | Change | Platform Score |
|---|---|---|---|
5f9a43d | 2026-11-22 | First and only published version: the package as committed to kobilyricsweb/skillalmanac-skills. No later change has been made, so there is no change log yet. Scored and scanned as source package 6575fa37406a; the published folder omits internal metadata and VERIFICATION.md. | 56 (current) |
Licence
Apache-2.0
Apache-2.0, declared in the skill frontmatter and shipped as a LICENSE file in the package.
Publisher
- Name
- Skill Almanac
- Verification
- Not verified. Nobody has claimed this listing yet.
- Profile
- No public profile yet
Other skills from this publisher
- cited-deep-research 62/100 · grade CScored · Method v0.2 · How we score
- coding-agent-guardrails 60/100 · grade CScored · Method v0.2 · How we score
- notes-vault-organizer 67/100 · grade CScored · Method v0.2 · How we score
- session-handoff-notes 63/100 · grade CScored · Method v0.2 · How we score
- word-document-builder 62/100 · grade CScored · Method v0.2 · How we score
- agency-client-onboarding-checklist 50/100 · grade DScored · Method v0.2 · How we score
- bank-statement-reconcile 54/100 · grade DScored · Method v0.2 · How we score
- candidate-scorecard-builder 63/100 · grade CScored · Method v0.2 · How we score
Similar skills
- room-redesign-brief by Skill Almanac 43/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- content-strategy by Corey Haines 36/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- seo-content by Agricidaniel 30/100 · Provisional, not yet measuredScored · Method v0.2 · How we score
- youtube-content-kit by Skill Almanac 59/100 · grade CScored · Method v0.2 · How we score
Category: AI & ML Engineering (assignment not yet confirmed by an editor)
Learn: What Is an LLM? The Facts Agent Users Need · Caveman skill for Claude Code: what it does, how to install it and what it saves
Terms this skill is an example of
This item is a worked example in the AI glossary for:
Common questions
What is the Platform Score of context-window-packer?
56 out of 100 under method v0.2, scored on 2026-11-21. It is provisional because efficacy rests on a single run, not the full measured procedure.
Has context-window-packer been tested for effectiveness?
Partly. One with/without comparison (one run per configuration, blind grader) is on record; read its date and caveat in the evidence section. It is not the full measured procedure.
Which tools has the install been checked on?
Install check passed on: Claude Code 2.1.330, 2026-11-23. It says the files install, not that the skill works.
What licence does it use?
Apache-2.0, declared in the skill frontmatter and shipped as a LICENSE file in the package.
When was this page last updated?
2026-11-21.
Cite this entry
Skill Almanac. context-window-packer. Updated 2026-11-21. Platform Score 56/100 (provisional, method v0.2), scored 2026-11-21. https://skillalmanac.com/skills/skill-almanac/context-window-packer
This citation identifies our entry and assessment. The original skill belongs to its publisher.
SKILL.md
The skill text is not mirrored here. Read it in the source repository.
Report or claim this listing
Report a problem with this listing (malicious content, wrong licence, impersonation, copyright). Publishers can add their own skills through Submit a skill; claiming an existing listing is not available yet.
Index status: not offered to search engines yet. Markdown version of this page
Why this page is not offered to search engines yet
- This page is not in the first set of pages offered to search engines.
What to do next
- Install it with the pinned command above, then try it on one real task.
- Compare other AI & ML Engineering skills, ranked by Platform Score.
- Read What Is an LLM? The Facts Agent Users Need.
- Compare it with another skill.
- Unsure what a score means? How we score.