ud-scripts

ud-scripts is a skill for Claude Code, Codex from Unique-Divine/jiyuu. It costs 86 tokens per session (1,377 once invoked), scanned A, original, MIT.

A set of guidelines for writing repository scripts in Python, Bun TypeScript, or short Bash glue. It includes advice for choosing a language and making scripts testable.

In plain words
What is it for?
It helps write or convert repository, shell, CI, release, install, and justfile scripts, including tests and choices between Python and Bun TypeScript.
Why use it?
It reduces the risk of large, hard-to-test Bash scripts and helps match a script's language to the repository and execution environment. TDD means writing tests as part of development; these guidelines include testing patterns without requiring that method.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It helps write or convert repository, shell, CI, release, install, and justfile scripts, including tests and choices between Python and Bun TypeScript.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/unique-divine/jiyuu/ud-scripts
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 Unique-Divine/jiyuu --skill ud-scripts
Clone the repo
git clone --depth 1 https://github.com/Unique-Divine/jiyuu

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 ud-scripts

README.md
[![agentmods](https://agentmods.dev/badge/skills/unique-divine/jiyuu/ud-scripts/github.svg)](https://agentmods.dev/skills/unique-divine/jiyuu/ud-scripts)
Your own site
<a href="https://agentmods.dev/skills/unique-divine/jiyuu/ud-scripts"><img src="https://agentmods.dev/badge/skills/unique-divine/jiyuu/ud-scripts/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 ud-scripts

Your own site · 80×15
<a href="https://agentmods.dev/skills/unique-divine/jiyuu/ud-scripts"><img src="https://agentmods.dev/badge/skills/unique-divine/jiyuu/ud-scripts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,377 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 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.00086 $0.01377
Opus 5.5 $0.00034 $0.00551
Sonnet 5.5 $0.00017 $0.00275
Haiku 4.5 $0.00009 $0.00138

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

Security

Grade A, and why

ud-scripts scanned grade A 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 19d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

`pathlib`, `subprocess`, `sqlite3`, `tomllib`, and `urllib`. Type hints

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

- **Prefer argument lists.** `subprocess.run(["gh", "pr", "list"])` and
ai-skills/ud-scripts/SKILL.md · 100 lines

How it starts

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

UD Scripts

Write repo scripts in Python or Bun TypeScript. Keep Bash for short glue. This applies to new scripts and to existing Bash scripts when they next need real changes. The pages below are preferences and patterns that have worked well, not a checklist. Fit them to the script.

  • To make a script testable (plans, injected runners, behavior and golden tests, fake tools on PATH), read testable-scripts.md.
  • For Bash you keep or write, read bash.md.

Pick the Language

Neither Python nor Bun is the default. Choose per script:

  • Bun TypeScript when the repo already uses Bun or TypeScript, when the script shares types or code with the app, or when it parses a lot of JSON. Bun's built-ins cover most needs: fetch, Bun.file, Bun.spawn, bun:sqlite, Bun.Glob, and bun test. Typecheck with bun check.
  • Python when the script runs where only system tools exist (a VM, a GitHub-hosted runner, or a fresh machine). python3 ships on macOS, most Linux distros, and those runners, but not on slim or Alpine container images. The standard library covers most needs: argparse, json, pathlib, subprocess, sqlite3, tomllib, and urllib. Type hints need a separate checker (pyright, mypy, or ty).
  • Bash for a few lines that run commands in order, with no loops over data, no JSON, and little branching. Justfile recipes count. Once a script needs an if with real logic, a data loop, or JSON, Python or Bun is usually the better home.

Habits

  • Few dependencies. Prefer the standard library or Bun built-ins. A small package the repo already uses (an argument parser such as commander, or @uniquedivine/bash) is fine. Ask before adding a new one.
  • Prefer argument lists. subprocess.run(["gh", "pr", "list"]) and Bun.spawnSync(["gh", "pr", "list"]) start one process. shell=True and ["bash", "-c", "..."] start a shell and then the command, which doubles the cost and lets a filename with spaces or ; be read as shell syntax. A shell string is fine for a real pipe, a glob, or a command sent over ssh.
  • Fail loudly. Check exit codes (check=True in Python; test exitCode in Bun, since Bun.spawnSync does not throw) and exit non-zero with a message that names the step.
  • Keep tests next to the script for any non-trivial logic, named with a test suffix: foo.test.ts with bun test, or foo_test.py with pytest. See Python Tests With pytest.
  • Wrap it in a justfile recipe when people run it often, and keep the logic in the script, not the recipe.

Read the full file on GitHub · 100 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 19d ago First seen · 100 lines · 86 tokens per session scan A e07706f3fdaf

Subscribe to this mod's changes

ud-scripts is a skill published in the GitHub repository Unique-Divine/jiyuu (7 stars, last pushed today), licensed MIT. It adds 86 tokens to every session and 1,377 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 2 findings (makes network calls, runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-11.

Related

ud-scripts compared with skills from other repositories

ud-scripts next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
ud-scriptsUnique-Divine/jiyuuSkill7todayMITA86Claude Code, Codex
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
functions-developmentCrowdStrike/foundry-skillsSkill389d agoMITA195Claude Code
effect-v4ComposioHQ/composioSkill31ktodayMITA159Claude Code, Codex
stripe-projectse2b-dev/E2BSkill15kyesterdayApache-2.0A51Claude Code, Codex
migrating-vercel-ai-sdk-and-eve-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA107Codex
migrating-mastra-to-pydantic-aipydantic/pydantic-aiSkill21ktodayMITA73Codex