Repository Analysis

JuliusBrussee/caveman

🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman

11.7 Low AI signal View on GitHub
11.7
Adjusted Score
11.7
Raw Score
100%
Time Factor
2026-05-20
Last Push
66,502
Stars
JavaScript
Language
12,730
Lines of Code
124
Files
84
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 0MEDIUM 33LOW 51

Pattern Findings

84 matches across 8 categories. Click a row to expand file-level details.

Decorative Section Separators32 hits · 96 pts
SeverityFileLineSnippet
MEDIUMbin/install.js45// ── Argv ───────────────────────────────────────────────────────────────────
MEDIUMbin/install.js112// ── Color helpers ──────────────────────────────────────────────────────────
MEDIUMbin/install.js122// ── Env guards ─────────────────────────────────────────────────────────────
MEDIUMbin/install.js146// ── Provider matrix ────────────────────────────────────────────────────────
MEDIUMbin/install.js217// ── Detection ─────────────────────────────────────────────────────────────
MEDIUMbin/install.js327// ── Repo root resolution ───────────────────────────────────────────────────
MEDIUMbin/install.js340// ── Run helpers ────────────────────────────────────────────────────────────
MEDIUMbin/install.js381// ── Per-provider installers ────────────────────────────────────────────────
MEDIUMbin/install.js459// ── opencode native install ───────────────────────────────────────────────
MEDIUMbin/install.js657// ── OpenClaw native install ───────────────────────────────────────────────
MEDIUMbin/install.js688// ── Hooks installer ────────────────────────────────────────────────────────
MEDIUMbin/install.js787// ── MCP shrink wiring ─────────────────────────────────────────────────────
MEDIUMbin/install.js813// ── Init writers (per-repo rule files) ────────────────────────────────────
MEDIUMbin/install.js841// ── HTTPS download via stdlib ─────────────────────────────────────────────
MEDIUMbin/install.js867// ── Uninstall ─────────────────────────────────────────────────────────────
MEDIUMbin/install.js1029// ── Interactive prompt (TTY-only) ─────────────────────────────────────────
MEDIUMbin/install.js1047// ── --list ─────────────────────────────────────────────────────────────────
MEDIUMbin/install.js1064// ── Help ───────────────────────────────────────────────────────────────────
MEDIUMbin/install.js1109// ── Main ───────────────────────────────────────────────────────────────────
MEDIUMbin/lib/openclaw.js44// ── Frontmatter helpers ───────────────────────────────────────────────────
MEDIUMbin/lib/openclaw.js81// ── Bootstrap snippet load ────────────────────────────────────────────────
MEDIUMbin/lib/openclaw.js118// ── SOUL.md marker-block append/strip ─────────────────────────────────────
MEDIUMbin/lib/openclaw.js157// ── Public API ────────────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js25// ── stripJsonComments ──────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js65// ── readSettings ───────────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js86// ── writeSettings ──────────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js96// ── validateHookFields ────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js126// ── Idempotency probe ──────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js136// ── addCommandHook ────────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js152// ── removeCavemanHooks ────────────────────────────────────────────────────
MEDIUMbin/lib/settings.js176// ── rewriteLegacyManagedHookCommands ──────────────────────────────────────
MEDIUMbin/lib/settings.js210// ── claudeConfigDir ───────────────────────────────────────────────────────
Hyper-Verbose Identifiers14 hits · 16 pts
SeverityFileLineSnippet
LOWbin/lib/settings.js188function rewriteLegacyManagedHookCommands(settings, absoluteNode) {
LOWtests/verify_repo.py104def verify_skill_frontmatter_upload_compatibility() -> None:
LOWtests/verify_repo.py157def verify_manifests_and_syntax() -> None:
LOWtests/test_hooks.py26 def test_install_upgrades_old_two_file_install(self):
LOWtests/test_hooks.py44 def test_install_reconfigures_missing_statusline(self):
LOWtests/test_hooks.py88 def test_uninstall_preserves_custom_statusline(self):
LOWtests/test_hooks.py137 def test_activate_does_not_nudge_when_custom_statusline_exists(self):
LOWtests/test_compress_safety.py39 def test_empty_compressed_output_does_not_touch_disk(self):
LOWtests/test_compress_safety.py49 def test_whitespace_only_compressed_output_does_not_touch_disk(self):
LOWtests/test_compress_safety.py59 def test_identical_compressed_output_does_not_touch_disk(self):
LOWtests/test_compress_safety.py69 def test_real_compression_writes_backup_and_target(self):
LOWtests/test_validate_inline.py18 def test_fenced_blocks_excluded(self):
LOWtests/test_validate_inline.py75 def test_validate_inline_codes_wired(self):
LOWsrc/mcp-servers/caveman-shrink/compress.js102function compressDescriptionsInPlace(obj, fieldNames) {
Over-Commented Block14 hits · 14 pts
SeverityFileLineSnippet
LOWinstall.sh1#!/usr/bin/env bash
LOWbin/install.js1#!/usr/bin/env node
LOWbin/install.js141function checkNodeVersion() {
LOWbin/lib/openclaw.js1// caveman → OpenClaw install / uninstall helper.
LOWbin/lib/settings.js1// caveman — JSONC-tolerant settings.json read/write + defensive hook validation.
LOWsrc/tools/caveman-init.js1#!/usr/bin/env node
LOWsrc/plugins/opencode/plugin.js1// caveman — opencode plugin
LOWsrc/hooks/caveman-mode-tracker.js101 // Detect deactivation — natural language and slash commands
LOWsrc/hooks/caveman-stats.js1#!/usr/bin/env node
LOWsrc/hooks/caveman-statusline.sh1#!/bin/bash
LOWsrc/hooks/caveman-config.js61// Symlink-safe flag file write.
LOWsrc/hooks/caveman-config.js141 fs.renameSync(tempPath, realFlagPath);
LOWsrc/mcp-servers/caveman-shrink/index.js1#!/usr/bin/env node
LOWsrc/mcp-servers/caveman-shrink/compress.js1// caveman-shrink — pure-Node prose compressor for MCP tool descriptions
Excessive Try-Catch Wrapping6 hits · 7 pts
SeverityFileLineSnippet
LOWevals/llm_run.py60 except Exception:
MEDIUMevals/llm_run.py54def claude_version() -> str:
LOWplugins/caveman/skills/caveman-compress/scripts/cli.py19 except Exception:
LOWplugins/caveman/skills/caveman-compress/scripts/cli.py79 except Exception as e:
LOWskills/caveman-compress/scripts/cli.py19 except Exception:
LOWskills/caveman-compress/scripts/cli.py79 except Exception as e:
Unused Imports6 hits · 6 pts
SeverityFileLineSnippet
LOWevals/measure.py17
LOWevals/plot.py12
LOWevals/llm_run.py27
LOWtests/verify_repo.py4
LOWtests/verify_repo.py211
LOWtests/verify_repo.py213
Redundant / Tautological Comments5 hits · 6 pts
SeverityFileLineSnippet
LOWplugins/caveman/skills/caveman-compress/scripts/cli.py55 # Check if compressible
LOW…ns/caveman/skills/caveman-compress/scripts/compress.py189 # Check if backup already exists to prevent accidental overwriting
LOWskills/caveman-compress/scripts/cli.py55 # Check if compressible
LOWskills/caveman-compress/scripts/compress.py189 # Check if backup already exists to prevent accidental overwriting
LOWsrc/hooks/install.sh48# Check if already installed (unless --force). Older installs only had two hook
Deep Nesting3 hits · 3 pts
SeverityFileLineSnippet
LOW…gins/caveman/skills/caveman-compress/scripts/detect.py46
LOWtests/verify_repo.py70
LOWskills/caveman-compress/scripts/detect.py46
Verbosity Indicators4 hits · 2 pts
SeverityFileLineSnippet
LOW…ns/caveman/skills/caveman-compress/scripts/compress.py196 # Step 1: Compress
LOW…ns/caveman/skills/caveman-compress/scripts/compress.py227 # Step 2: Validate + Retry
LOWskills/caveman-compress/scripts/compress.py196 # Step 1: Compress
LOWskills/caveman-compress/scripts/compress.py227 # Step 2: Validate + Retry