with-scripts

with-scripts is a skill for Claude Code, Codex from fuzhengwei/xfg-skills-template. It costs 39 tokens per session (254 once invoked), scanned A, original, Apache-2.0.

A skill template for repeatable automation scripts. It shows how to place scripts in a `scripts/` folder and call them from the skill’s instructions.

In plain words
What is it for?
Use it to build skills that run scripts with command-line inputs, provide help text, return structured results, and keep normal output separate from diagnostic messages.
Why use it?
It makes file conversion, data processing, and batch work consistent and reusable instead of requiring the agent to recreate commands each time. The template also defines practical script conventions.

Skill for Claude CodeCodex

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

Good fit Use it to build skills that run scripts with command-line inputs, provide help text, return structured results, and keep normal output separate from diagnostic messages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fuzhengwei/xfg-skills-template/with-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 fuzhengwei/xfg-skills-template --skill with-scripts
Clone the repo
git clone --depth 1 https://github.com/fuzhengwei/xfg-skills-template

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/fuzhengwei/xfg-skills-template/with-scripts"><img src="https://agentmods.dev/badge/skills/fuzhengwei/xfg-skills-template/with-scripts.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 254 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00039 $0.00254
Opus 5 $0.00019 $0.00127
Sonnet 5 $0.00008 $0.00051
Haiku 4.5 $0.00004 $0.00025

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

Security

Grade A, and why

with-scripts scanned grade A with 0 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 10d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/example.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/with-scripts/SKILL.md · 36 lines

What it actually says

带脚本的技能模板

本模板展示了如何在技能中集成可执行脚本,遵循 Agent Skills 开放标准。

使用方法

  1. 将你的脚本放入 scripts/ 目录
  2. 在 SKILL.md 中用相对路径引用脚本
  3. Agent 按需执行脚本

可用脚本

  • scripts/example.py — 示例数据处理脚本

工作流

  1. 准备输入数据
  2. 运行处理脚本:
    python3 scripts/example.py --input data.csv
    
  3. 检查输出结果

脚本编写规范

  • ✅ 使用 PEP 723 声明依赖(Python)
  • ✅ 提供 --help 输出
  • ✅ 避免交互式提示
  • ✅ 使用结构化输出(JSON)
  • ✅ 数据输出到 stdout,诊断信息到 stderr
Files

What ships with it

1 file 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. 10d ago First seen · 36 lines · 39 tokens per session scan A e90b3e17b3eb

Subscribe to this mod's changes

with-scripts is a skill published in the GitHub repository fuzhengwei/xfg-skills-template (11 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 39 tokens to every session and 254 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.