repo-host-optimize

repo-host-optimize is a skill for Claude Code, Codex from rjwalters/kicad-tools. It costs 35 tokens per session (5,673 once invoked), scanned B, original, MIT.

A host-maintenance audit for a Mac or Linux machine used for large agent and software builds. It finds system settings and background processes that can interfere with build work, then applies safe fixes and asks before consequential ones.

In plain words
What is it for?
Use it to inspect and prepare a build machine before heavy or concurrent builds, including checking build-directory clutter and system-level interference.
Why use it?
A machine can become slow or unusable when security scanning, backup software, and leftover build files compete with several builds. Checking the host addresses problems that repository cleanup cannot see.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions Claude Code; installed under .agents/ (shared by several agents); mentions Codex.

Good fit Use it to inspect and prepare a build machine before heavy or concurrent builds, including checking build-directory clutter and system-level interference.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjwalters/kicad-tools/repo-host-optimize
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add rjwalters/kicad-tools --skill repo-host-optimize
Clone the repo
git clone --depth 1 https://github.com/rjwalters/kicad-tools

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for repo-host-optimize

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-host-optimize/github.svg)](https://agentmods.dev/skills/rjwalters/kicad-tools/repo-host-optimize)
Your own site
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-host-optimize"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-host-optimize/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for repo-host-optimize

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-host-optimize"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-host-optimize.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,673 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00035 $0.05673
Opus 5.5 $0.00014 $0.02269
Sonnet 5.5 $0.00007 $0.01135
Haiku 4.5 $0.00003 $0.00567

Measured 8d ago against content hash 39734499b529, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

repo-host-optimize scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootlowPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

— build-tree bloat, Loom concurrency vs core count, sudo posture, cache infra,

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

`.loom/worktrees/` whose worktree git no longer lists, `rm -rf` it (these are

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.agents/skills/repo-host-optimize/SKILL.md · 466 lines

How it starts

The opening of the file, as written. The whole thing — 466 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Codex form of the /repo:host-optimize command. Other commands appear as $repo-<verb> skills. Helper scripts and .claude/ paths below are relative to the repository root and exist when the Claude Code surface is installed alongside this one.

$repo-host-optimize — Prepare a Build Host

Audit the host a machine presents to heavy Loom/agent build workloads, then apply the safe fixes and gate the consequential ones. This is host preparation, not repo hygiene: nothing here is discoverable from inside a repo, and none of it is fixed by [[tidy]] or [[audit]]. It exists because a Mac Studio running six concurrent release-build worktrees melted down — load average 118, VNC unusable, a multi-hour remediation — and every root cause was host configuration: syspolicyd burning 14+ CPU-hours a day re-scanning target/ trees on every Gatekeeper cache miss, a backup agent churning build dirs at 98% CPU, no passwordless sudo, an empty Developer Tools exemption list, and ~10 GB of dead worktree target/ dirs the scanner kept re-walking.

Follows the pack's inventory → categorize by consequence → report → apply shape (the same shape as [[tidy]] and [[branches]]). Audit checks are always report-only and safe. Fixes are split into three consequence tiers: safe / default-on, confirm-first, and documented-but-manual (printed only, never executed).

macOS-first, Linux-aware. The Gatekeeper / SIP / Spotlight / Time Machine material is macOS-only and is gated behind a uname check. The portable subset — build-tree bloat, Loom concurrency vs core count, sudo posture, cache infra, remote access — still runs and reports on Linux.

Usage

$repo-host-optimize            # Audit, apply safe fixes, report; confirm-first items prompt
$repo-host-optimize --ask      # Review every finding and confirm before applying anything
$repo-host-optimize --audit    # Audit and report only — apply nothing (like $repo-audit)

Read the full file on GitHub · 466 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 466 lines · 35 tokens per session scan B 39734499b529

Subscribe to this mod's changes

repo-host-optimize is a skill published in the GitHub repository rjwalters/kicad-tools (73 stars, last pushed yesterday), licensed MIT. It adds 35 tokens to every session and 5,673 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (asks for root, recursive force delete). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-01.

Related

repo-host-optimize compared with skills from other repositories

repo-host-optimize next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-host-optimizerjwalters/kicad-toolsSkill73yesterdayMITB35Claude Code, Codex
imagegenopenai/codexSkill134ktodayApache-2.0A113Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill79k2d agoMITA200Claude Code, Codex
playwright-climicrosoft/playwrightSkill100ktodayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill394ktodayMITA36Claude Code
systematic-debuggingobra/superpowersSkill315k5d agoMITA21Claude Code
next-cache-components-adoptionvercel/next.jsSkill143kyesterdayMITA95Claude Code