claudeers.
// Productivity

claudefiles

Volodymyr Agafonkin's personal Claude Code efficiency kit

// Productivity[ cli ][ api ][ claude ]#claude#ai#hooks#llm#productivityMIT$open-sourceupdated about 19 hours ago

Install with your AI

Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.

Install and set up claudefiles (git-clone project) into my current project.
Found on https://claudeers.com/claudefiles
Repo: https://github.com/mourner/claudefiles
Homepage/docs: —
Detected install method: git-clone → git clone https://github.com/mourner/claudefiles
Category: productivity. Platforms: cli, api.
Read the repo's README for exact setup and env vars, then install it and wire it into my project.

Claudeers Health Verdict:
unknown; community-verified: false. Confirm the source before running anything.
// or clone
git clone https://github.com/mourner/claudefiles

claudefiles

A few small Claude Code efficiency tools:

  • statusline — a cost & context-efficiency status line, a standalone bash script.
  • guard — a PreToolUse hook that blocks context-wasting tool calls and nudges toward scoped alternatives.
  • js-perf-notes — a skill: a reference of transferable JavaScript/V8 performance optimization principles, auto-consulted when profiling or optimizing hot code.

The guard and skill ship as the installable claudefiles plugin (with more tooling to come); statusline installs via a one-line settings snippet, since plugins can't ship a statusLine.

statusline

statusline/statusline-command.sh — a custom status line for efficiency-conscious sessions. Example:

Fable 1M medium 3x | 5h:16% ↺2h | 7d:2% ↺3d | Δ10¢ Σ$14.90 | 169k ❄4m | claudefiles

Reading left to right:

GroupSegmentMeaning
modelFable 1Mmodel, with context-window size
mediumeffort level
3xroughly how much this model+effort costs per prompt, relative to Opus at low effort (the 1x baseline)
limits5h:16% ↺2h5-hour rate limit: used, and time until it resets (only when the account reports it)
7d:2% ↺3dweekly rate limit: used, and time until it resets
⚠1.4xburn-rate pace — appears next to a limit only when you're spending too fast to last until its reset (see below)
costΔ10¢this turn's cost — starts at zero each prompt and climbs as the turn runs
Σ$14.90session cost so far
context169kcontext tokens in use
❄4mtime left before the prompt cache expires — past it, the next turn pays full price to rebuild it instead of the 0.1x cached read
cwdclaudefilesworking directory

Costs come from the session transcript at public API list prices — on a flat-rate seat the dollar figures are notional, not what you're billed. They still track the relative weight of what you're doing — which turns are expensive, what a model or effort change costs — so they work as an efficiency signal even with no money on the line. The prompt-cache TTL is detected from actual usage.

Burn-rate pace (⚠1.4x) is used% ÷ elapsed% for a limit's window: 1.0x is dead on a linear budget line, so 1.4x means you'll hit the wall before reset if you keep the pace. Each limit gets its own badge, and it stays hidden unless worth acting on — only above 1.1x, and never in a window's first 10% (PACE_WARN / PACE_FLOOR in the script).

Colors run green → cyan → orange → red across segments, signaling fine → worth a glance. The cost multiplier, rate limits, tokens, cache TTL, and pace badge each carry their own thresholds, so a red anywhere is the one thing to look at.

Requires bash and jq.

Install

Add to settings.json:

{
  "statusLine": {
    "type": "command",
    "command": "bash ~/path/to/claudefiles/statusline/statusline-command.sh",
    "refreshInterval": 5
  }
}

guard

A single hooks/guard.mjs that runs before every Read, Bash, WebFetch, and LSP call. When it recognizes a pattern that needlessly burns context, it blocks the call and returns a one-line reason pointing at the better tool.

It only blocks patterns it's sure about. Anything it can't parse, a file it can't read, or an unexpected error all let the call through — the guard never blocks a call it doesn't understand, so a bug in it can't bring your work to a halt.

What it blocks

ToolPattern blockedWhy / what to do instead
Bashtree-wide grep/rg for a symbol-looking patternScans the whole tree. Scope it: grep -n foo src/.
Bashcat/sed/awk/head/tail of a code/JSON fileUse the Read tool — Edit needs a prior Read, so a cat only forces a duplicate read later.
Basha grep/read at a path that doesn't existA blind guess. find/ls to locate it first.
Bashfind … -exec cat {}Dumps every matched file whole. Read the ones you need.
Bashreading gated files in a for/while loopDumps each matched file whole. Read the ones you need.
Bashgit show <ref>:<path> of a large fileDumps the whole file. Read the part you need.
Bashtwo-dot git diff A..BCompares endpoints, folding in unrelated changes. Use three-dot A...B (from the merge-base).
Reada code/JSON file over 16 KB, with no limitPulls the whole file. Pass a limit to scope the read.
WebFetcha GitHub issue/PR/blob pageNoisy rendered HTML. Use the gh CLI or raw.githubusercontent.com.
LSPworkspaceSymbol, or documentSymbol on a large fileDumps the whole symbol table/tree. Use grep/findReferences. (Dormant unless an LSP plugin is enabled.)

The 16 KB size gate and the list of gated extensions are constants at the top of hooks/guard.mjs — edit them there if your codebase wants different limits.

Install (plugin)

/plugin marketplace add mourner/claudefiles
/plugin install claudefiles@mourner

Install (manual hook)

If you'd rather not use the plugin, point a PreToolUse hook at the script directly in ~/.claude/settings.json:

{
  "hooks": {
    "PreToolUse": [
      {
        "matcher": "Read|Bash|WebFetch|LSP",
        "hooks": [
          { "type": "command", "command": "node \"$HOME/path/to/claudefiles/hooks/guard.mjs\"" }
        ]
      }
    ]
  }
}

This machine-wide guard stacks with any per-repo .claude/hooks/guard.mjs: Claude Code runs every matching hook on a call and blocks it if any one of them does.

js-perf-notes (skill)

skills/js-perf-notes/SKILL.md — a distilled, project-agnostic reference of JavaScript/V8 performance-optimization principles: a profiling loop, headless tooling (flamebearer, --trace-deopt), benchmarking against noise, and honest reporting. Bottleneck-specific V8 techniques (inlining budgets, SMI range, hidden classes, cache/memory layout) live in on-demand files under skills/js-perf-notes/techniques/. It's a reference to consult, not a workflow to run — Claude pulls it in on its own when a task is about profiling or optimizing hot code.

Install (plugin)

Ships with the claudefiles plugin (see the guard install above) — no extra step.

If you'd rather not use the plugin, symlink the skill into your personal skills directory:

mkdir -p ~/.claude/skills
ln -s ~/path/to/claudefiles/skills/js-perf-notes ~/.claude/skills/js-perf-notes

// compatibility

Platformscli, api
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguageJavaScript

// faq

What is claudefiles?

Volodymyr Agafonkin's personal Claude Code efficiency kit. It is open-source on GitHub.

Is claudefiles free to use?

claudefiles is open-source under the MIT license, so it is free to use.

What category does claudefiles belong to?

claudefiles is listed under productivity in the Claudeers registry of Claude-compatible tools.

0 views
10 stars
unclaimed
updated about 19 hours ago

// embed badge

claudefiles on Claudeers
[![Claudeers](https://claudeers.com/api/badge/claudefiles.svg)](https://claudeers.com/claudefiles)

// retro hit counter

claudefiles hit counter
[![Hits](https://claudeers.com/api/counter/claudefiles.svg)](https://claudeers.com/claudefiles)

// reviews

// guestbook

0/500

// related in Productivity

🔓

Agent skills for Obsidian. Teach your agent to use Obsidian CLI and open formats including Markdown, Bases, JSON Canvas.

// productivitykepano/40,030MIT[ claude ]
🔓

Garry's Opinionated OpenClaw/Hermes Agent Brain

// productivitygarrytan/TypeScript25,386MIT[ claude ]
🔓

Open source repository of plugins primarily intended for knowledge workers to use in Claude Cowork

// productivityanthropics/Python22,498Apache-2.0[ claude ]
🔓

An open-source alternative to Claude Cowork (powered by opencode)

// productivitydifferent-ai/TypeScript16,671NOASSERTION[ claude ]
→ see how claudefiles connects across the ecosystem