ewgdg/dotfiles/privileged-commands

Claude Code and agent skill by ewgdg/dotfiles

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Use only when plain sudo may fail because normal prompting is unavailable. Decide which fallback approach is appropriate.

Install

npx vskill@latest install ewgdg/dotfiles/privileged-commands

SKILL.md

The same SKILL.md was published earlier as ewgdg/dotfiles/privileged-commands.

Use this skill only when normal sudo prompting may be unreachable, such as inside an agent/TUI harness.

Prefer plain sudo when interactive prompting works.

If sudo works but terminal prompting may be unreachable, run the skill-local helper:

sh
./scripts/agent-sudo --reason REASON [--] COMMAND [ARG...]

Path is relative to the skill root; run it from there or resolve it first. Do not assume agent-sudo is on $PATH.

The helper runs the command with sudo -A, forcing askpass instead of terminal prompting. Let sudo decide policy for the actual command; avoid preflight checks.

Use pkexec only as a secondary fallback when sudo/askpass is unsuitable and a polkit authentication agent is available, usually in a desktop session. Prefer full program paths and simple argv commands:

sh
pkexec --disable-internal-agent --keep-cwd /usr/bin/apt install -y shellcheck

--disable-internal-agent prevents pkexec from falling back to an unreachable text prompt inside an agent/TUI. pkexec sanitizes the environment and may change working directory without --keep-cwd; do not expect shell aliases, PATH, redirection, or GUI environment variables to survive. Use sh -c only when truly needed, and quote deliberately.

Always pass a short, concrete reason when invoking the helper so the password popup tells the human why elevation is needed:

sh
./scripts/agent-sudo --reason "Install build dependency required by tests" apt install -y shellcheck

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ewgdg/dotfiles/privileged-commands/badge)](https://verified-skill.com/skills/ewgdg/dotfiles/privileged-commands)

Something wrong with this skill or its page? Tell us.