repo-sudo

repo-sudo is a skill for Claude Code, Codex from rjwalters/kicad-tools. It costs 50 tokens per session (5,575 once invoked), scanned D, original, MIT.

A machine setup tool that configures password-free sudo for the current user. Sudo lets a user run commands with administrator privileges.

In plain words
What is it for?
It can inspect, install, or remove a sudo configuration file, with confirmation and a displayed preview before changes are made.
Why use it?
Remote coding agents may be unable to answer a password prompt, leaving administrator-level tasks unfinished.

Skill for Claude CodeCodex

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

Good fit It can inspect, install, or remove a sudo configuration file, with confirmation and a displayed preview before changes are made.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/rjwalters/kicad-tools/repo-sudo
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-sudo
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-sudo

README.md
[![agentmods](https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-sudo/github.svg)](https://agentmods.dev/skills/rjwalters/kicad-tools/repo-sudo)
Your own site
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-sudo"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-sudo/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-sudo

Your own site · 80×15
<a href="https://agentmods.dev/skills/rjwalters/kicad-tools/repo-sudo"><img src="https://agentmods.dev/badge/skills/rjwalters/kicad-tools/repo-sudo.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 5,575 The whole file, excluding the scripts and references it only reads on demand.
Security scan D 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.00050 $0.05575
Opus 5.5 $0.00020 $0.02230
Sonnet 5.5 $0.00010 $0.01115
Haiku 4.5 $0.00005 $0.00558

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

Security

Grade D, and why

repo-sudo scanned grade D 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 rootmediumPrivilege escalation

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

name: repo-sudo description: "Opt-in passwordless sudo for a dev machine — install a visudo-validated /etc/sudoers.d drop-in (ALL or a scoped command list) so an agent over SSH isn't blocked on password prompts, always c

Recursive force deletehighDestructive command

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

commands (`rm -rf /`, force-push to `main`, cloud destruction, …). Granting
.agents/skills/repo-sudo/SKILL.md · 422 lines

How it starts

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

Codex form of the /repo:sudo 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-sudo — Passwordless-sudo setup for dev machines

Install (or inspect, or remove) a NOPASSWD: sudoers drop-in for the current user on this machine, so an agent driving the box over SSH isn't stopped dead by a sudo password prompt it can't answer. A non-interactive SSH session has no TTY to type a password into, so every root-level remediation — launchctl bootout, killing a runaway root process, spctl, renice — stalls until a human runs the command by hand. This command installs the standard fix once, safely, so agent-driven remote sessions can finish end-to-end.

This is machine-global, consequential setup: the drop-in grants anyone holding the user's SSH key effective root on this box. It is therefore in the same always-confirm-first class as $repo-remote, $repo-followups, and $repo-update-tools — it shows the exact file contents it will write and never applies silently, even without --ask. There is nothing to opt into; confirmation is the only mode. The reasonable trade this makes — passwordless root for personal dev machines on a private tailnet — is a deliberate operator choice, so the operator makes it explicitly every time a scope changes.

Touch ID is the better answer for local, interactive use — enabling pam_tid.so in /etc/pam.d/sudo lets a Mac authorize sudo with a fingerprint. But Touch ID does not work over SSH (there is no local fingerprint reader on the remote end), which is exactly why a NOPASSWD: drop-in is the right tool for agent sessions and this command exists.

The destructive-command guard still applies on top. Passwordless sudo removes the password gate, not the guard's ask/block gates on risky commands (rm -rf /, force-push to main, cloud destruction, …). Granting passwordless root does not weaken any of those checks.

Run this from a host session, not from inside a Loom-managed repo session. $repo-sudo configures the machine, not this repository's contents, and its write step (step 5) is deliberately built around mktemp — a path this repo's worktree-write-confinement guard can never resolve, so it is denied fail-closed whenever a managed worktree exists here. That denial is expected and must not be worked around: invoke $repo-sudo from a session outside a Loom-managed checkout, or have the operator run step 5's commands by hand in a plain shell/SSH login. Full explanation, and why the temp file must stay mktemp-created, is in the guard note in step 5.

Read the full file on GitHub · 422 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 · 422 lines · 50 tokens per session scan D 59f55c5cc521

Subscribe to this mod's changes

repo-sudo is a skill published in the GitHub repository rjwalters/kicad-tools (73 stars, last pushed yesterday), licensed MIT. It adds 50 tokens to every session and 5,575 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it D 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-sudo compared with skills from other repositories

repo-sudo next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
repo-sudorjwalters/kicad-toolsSkill73yesterdayMITD50Claude 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