🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
84 matches across 8 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | bin/install.js | 45 | // ── Argv ─────────────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 112 | // ── Color helpers ────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 122 | // ── Env guards ───────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 146 | // ── Provider matrix ──────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 217 | // ── Detection ───────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 327 | // ── Repo root resolution ─────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 340 | // ── Run helpers ──────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 381 | // ── Per-provider installers ──────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 459 | // ── opencode native install ─────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 657 | // ── OpenClaw native install ─────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 688 | // ── Hooks installer ──────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 787 | // ── MCP shrink wiring ───────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 813 | // ── Init writers (per-repo rule files) ──────────────────────────────────── |
| MEDIUM | bin/install.js | 841 | // ── HTTPS download via stdlib ───────────────────────────────────────────── |
| MEDIUM | bin/install.js | 867 | // ── Uninstall ───────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 1029 | // ── Interactive prompt (TTY-only) ───────────────────────────────────────── |
| MEDIUM | bin/install.js | 1047 | // ── --list ───────────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 1064 | // ── Help ─────────────────────────────────────────────────────────────────── |
| MEDIUM | bin/install.js | 1109 | // ── Main ─────────────────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/openclaw.js | 44 | // ── Frontmatter helpers ─────────────────────────────────────────────────── |
| MEDIUM | bin/lib/openclaw.js | 81 | // ── Bootstrap snippet load ──────────────────────────────────────────────── |
| MEDIUM | bin/lib/openclaw.js | 118 | // ── SOUL.md marker-block append/strip ───────────────────────────────────── |
| MEDIUM | bin/lib/openclaw.js | 157 | // ── Public API ──────────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 25 | // ── stripJsonComments ────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 65 | // ── readSettings ─────────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 86 | // ── writeSettings ────────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 96 | // ── validateHookFields ──────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 126 | // ── Idempotency probe ────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 136 | // ── addCommandHook ──────────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 152 | // ── removeCavemanHooks ──────────────────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 176 | // ── rewriteLegacyManagedHookCommands ────────────────────────────────────── |
| MEDIUM | bin/lib/settings.js | 210 | // ── claudeConfigDir ─────────────────────────────────────────────────────── |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | bin/lib/settings.js | 188 | function rewriteLegacyManagedHookCommands(settings, absoluteNode) { |
| LOW | tests/verify_repo.py | 104 | def verify_skill_frontmatter_upload_compatibility() -> None: |
| LOW | tests/verify_repo.py | 157 | def verify_manifests_and_syntax() -> None: |
| LOW | tests/test_hooks.py | 26 | def test_install_upgrades_old_two_file_install(self): |
| LOW | tests/test_hooks.py | 44 | def test_install_reconfigures_missing_statusline(self): |
| LOW | tests/test_hooks.py | 88 | def test_uninstall_preserves_custom_statusline(self): |
| LOW | tests/test_hooks.py | 137 | def test_activate_does_not_nudge_when_custom_statusline_exists(self): |
| LOW | tests/test_compress_safety.py | 39 | def test_empty_compressed_output_does_not_touch_disk(self): |
| LOW | tests/test_compress_safety.py | 49 | def test_whitespace_only_compressed_output_does_not_touch_disk(self): |
| LOW | tests/test_compress_safety.py | 59 | def test_identical_compressed_output_does_not_touch_disk(self): |
| LOW | tests/test_compress_safety.py | 69 | def test_real_compression_writes_backup_and_target(self): |
| LOW | tests/test_validate_inline.py | 18 | def test_fenced_blocks_excluded(self): |
| LOW | tests/test_validate_inline.py | 75 | def test_validate_inline_codes_wired(self): |
| LOW | src/mcp-servers/caveman-shrink/compress.js | 102 | function compressDescriptionsInPlace(obj, fieldNames) { |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | install.sh | 1 | #!/usr/bin/env bash |
| LOW | bin/install.js | 1 | #!/usr/bin/env node |
| LOW | bin/install.js | 141 | function checkNodeVersion() { |
| LOW | bin/lib/openclaw.js | 1 | // caveman → OpenClaw install / uninstall helper. |
| LOW | bin/lib/settings.js | 1 | // caveman — JSONC-tolerant settings.json read/write + defensive hook validation. |
| LOW | src/tools/caveman-init.js | 1 | #!/usr/bin/env node |
| LOW | src/plugins/opencode/plugin.js | 1 | // caveman — opencode plugin |
| LOW | src/hooks/caveman-mode-tracker.js | 101 | // Detect deactivation — natural language and slash commands |
| LOW | src/hooks/caveman-stats.js | 1 | #!/usr/bin/env node |
| LOW | src/hooks/caveman-statusline.sh | 1 | #!/bin/bash |
| LOW | src/hooks/caveman-config.js | 61 | // Symlink-safe flag file write. |
| LOW | src/hooks/caveman-config.js | 141 | fs.renameSync(tempPath, realFlagPath); |
| LOW | src/mcp-servers/caveman-shrink/index.js | 1 | #!/usr/bin/env node |
| LOW | src/mcp-servers/caveman-shrink/compress.js | 1 | // caveman-shrink — pure-Node prose compressor for MCP tool descriptions |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | evals/llm_run.py | 60 | except Exception: |
| MEDIUM | evals/llm_run.py | 54 | def claude_version() -> str: |
| LOW | plugins/caveman/skills/caveman-compress/scripts/cli.py | 19 | except Exception: |
| LOW | plugins/caveman/skills/caveman-compress/scripts/cli.py | 79 | except Exception as e: |
| LOW | skills/caveman-compress/scripts/cli.py | 19 | except Exception: |
| LOW | skills/caveman-compress/scripts/cli.py | 79 | except Exception as e: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | evals/measure.py | 17 | |
| LOW | evals/plot.py | 12 | |
| LOW | evals/llm_run.py | 27 | |
| LOW | tests/verify_repo.py | 4 | |
| LOW | tests/verify_repo.py | 211 | |
| LOW | tests/verify_repo.py | 213 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | plugins/caveman/skills/caveman-compress/scripts/cli.py | 55 | # Check if compressible |
| LOW | …ns/caveman/skills/caveman-compress/scripts/compress.py | 189 | # Check if backup already exists to prevent accidental overwriting |
| LOW | skills/caveman-compress/scripts/cli.py | 55 | # Check if compressible |
| LOW | skills/caveman-compress/scripts/compress.py | 189 | # Check if backup already exists to prevent accidental overwriting |
| LOW | src/hooks/install.sh | 48 | # Check if already installed (unless --force). Older installs only had two hook |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …gins/caveman/skills/caveman-compress/scripts/detect.py | 46 | |
| LOW | tests/verify_repo.py | 70 | |
| LOW | skills/caveman-compress/scripts/detect.py | 46 |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | …ns/caveman/skills/caveman-compress/scripts/compress.py | 196 | # Step 1: Compress |
| LOW | …ns/caveman/skills/caveman-compress/scripts/compress.py | 227 | # Step 2: Validate + Retry |
| LOW | skills/caveman-compress/scripts/compress.py | 196 | # Step 1: Compress |
| LOW | skills/caveman-compress/scripts/compress.py | 227 | # Step 2: Validate + Retry |