amterp/rad/skill
Claude Code and agent skill by amterp/rad
- community
Checking that the SKILL.md file is still in the repository.
Write and debug Rad scripts. Use when asked to: create new Rad scripts, modify existing Rad code, debug Rad syntax errors, write argument parsing with args blocks, use shell commands with dollar-backtick syntax, create display/rad blocks for JSON processing, or follow Rad style conventions. Read this skill in its entirety - it is short and holds only gotchas and style, so do not grep it. All reference material (function signatures, syntax, guides) comes from running the `rad docs` CLI command.
Install
npx vskill@latest install amterp/rad/skillSKILL.md
Rad Scripting
Rad is a scripting language for writing CLI tools - Python-like syntax with CLI essentials (declarative args, shell integration, JSON/HTTP, tables) built in. Reach for it instead of Bash whenever a script needs arguments, structured data, or would otherwise grow into unreadable Bash.
Read the docs from the binary
Read this file in its entirety rather than grepping it - it intentionally contains no reference material, only gotchas and style. The installed rad ships its own documentation, always matching its version. Before writing or modifying Rad code, pull what you need with `rad docs`:
Do NOT guess function names or signatures - prefer rad docs <function> (e.g. rad docs len) to look up a single built-in quickly, or rad docs reference/functions for the full list. When in doubt about syntax, rad docs all loads everything in one shot (pipe it - output is raw markdown when not a TTY).
If rad docs is unavailable (an older Rad without it), fall back to https://amterp.dev/rad/ and its function reference.
Minimal script shape
rad docs guide/args and rad docs guide/getting-started cover the rest.
Gotchas (where Rad differs from Python/Bash intuition)
- Logic/negation are keywords:
not,and,or- never!,&&,||. - Comments are
//in the body (#is only for arg help text). - Shell commands use
$+ backticks (`$cmd`) and are *critical by
default*: a non-zero exit propagates as an error unless you add a catch:. Capture forms: code = $cmd`, code, stdout = $cmd`, plus stderr.
- Errors:
x = risky() ?? fallbackfor a default, or acatch:block for
richer handling.
- Arg names use underscores (
dry_run); Rad exposes them hyphenated
(--dry-run) automatically.
- UFCS: prefer
text.trim().upper()overupper(trim(text)).
Style
- snake_case for variables and arg names.
- Prefer dollar-backtick shell syntax over wrapping
bash -c. - Align arg
#comments two spaces past the longest arg. - Lean on UFCS chains for readability.
CLI Design Patterns
Two ways to structure a script's interface (judgment, not syntax):
Command pattern
Mutually exclusive verbs, each with its own args - like git, docker.
Usage: ./script build or ./script test (pick one).
Composable flags
Additive boolean flags that combine freely; each enables an independent step.
Usage: ./script -bf (build + frontend), ./script -bft (all three).
When to use which
- Command pattern: actions are conceptually distinct or mutually exclusive.
- Composable flags: actions are steps users may want to combine. Prefer
this for dev-automation scripts (build/test/run/deploy).
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingextras/skill/SKILL.md
Popularity
- Repository stars
- 302
- Repository forks
- 4
- 7-day trend score
- 29
Stars and forks are for the whole GitHub repository, not this skill alone. 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
[](https://verified-skill.com/skills/amterp/rad/skill)