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.
npx skills add Unique-Divine/jiyuu --skill ud-scriptsgit clone --depth 1 https://github.com/Unique-Divine/jiyuuWrote 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.
[](https://agentmods.dev/skills/unique-divine/jiyuu/ud-scripts)<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.
<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>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.
| Model | Per session | Once 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 |
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 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, andbun test. Typecheck withbun check. - Python when the script runs where only system tools exist (a VM, a
GitHub-hosted runner, or a fresh machine).
python3ships 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, andurllib. 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
ifwith 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"])andBun.spawnSync(["gh", "pr", "list"])start one process.shell=Trueand["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 overssh. - Fail loudly. Check exit codes (
check=Truein Python; testexitCodein Bun, sinceBun.spawnSyncdoes 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
testsuffix:foo.test.tswithbun test, orfoo_test.pywith 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.
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.
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.
- 19d ago First seen · 100 lines · 86 tokens per session scan A e07706f3fdaf
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.
ud-scripts compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ud-scriptsUnique-Divine/jiyuu | Skill | 7 | today | MIT | A | 86 | Claude Code, Codex |
| dd-code-generationDataDog/pup | Skill | 1.0k | today | Apache-2.0 | A | 16 | Claude Code |
| functions-developmentCrowdStrike/foundry-skills | Skill | 38 | 9d ago | MIT | A | 195 | Claude Code |
| effect-v4ComposioHQ/composio | Skill | 31k | today | MIT | A | 159 | Claude Code, Codex |
| stripe-projectse2b-dev/E2B | Skill | 15k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |
| migrating-vercel-ai-sdk-and-eve-to-pydantic-aipydantic/pydantic-ai | Skill | 21k | today | MIT | A | 107 | Codex |
| migrating-mastra-to-pydantic-aipydantic/pydantic-ai | Skill | 21k | today | MIT | A | 73 | Codex |