create-cmd-args

create-cmd-args is a skill for Claude Code, Codex from fayis672/slash-IT. It costs 18 tokens per session (548 once invoked), scanned A, original, MIT.

A command-making tool that turns your previous message into a reusable slash command with replaceable `$ARGUMENTS` parts.

In plain words
What is it for?
Use it to create a global or project-specific command from the last request, with a normalized kebab-case name.
Why use it?
It saves repeated instructions as a command while leaving changing details available as arguments.

Skill for Claude CodeCodex

Part of the slash-it plugin — 5 skills shipped together

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.

agentmods
npx agentmods add skills/fayis672/slash-it/create-cmd-args
Any agent
npx skills add fayis672/slash-IT --skill create-cmd-args
Clone the repo
git clone --depth 1 https://github.com/fayis672/slash-IT

Made for: Claude Code, Codex.

Or install slash-it, the plugin that ships this one along with the rest of its 5 skills.

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 create-cmd-args

README.md
[![agentmods](https://agentmods.dev/badge/skills/fayis672/slash-it/create-cmd-args.svg)](https://agentmods.dev/skills/fayis672/slash-it/create-cmd-args)
Your own site
<a href="https://agentmods.dev/skills/fayis672/slash-it/create-cmd-args"><img src="https://agentmods.dev/badge/skills/fayis672/slash-it/create-cmd-args.svg" alt="Measured on agentmods" height="20"></a>
Per session 18 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 548 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00018 $0.00548
Opus 5 $0.00009 $0.00274
Sonnet 5 $0.00004 $0.00110
Haiku 4.5 $0.00002 $0.00055

Measured 3d ago against content hash 3e1c67be010c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-cmd-args 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 3d 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.

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.

skills/create-cmd-args/SKILL.md · 41 lines

What it actually says

The user wants to take their previous message — the most recent user turn in this conversation before this invocation — and save it as a reusable custom slash command that is parameterized, so the variable parts become arguments.

Raw arguments: $ARGUMENTS

Do this:

  1. Parse $ARGUMENTS into a name and an optional scope flag:
    • --global / -g / global -> system-wide.
    • --project / -p / project -> current project.
    • Everything else is the command name.
  2. If no name is given, STOP and ask for one. A name is required.
  3. Determine where to save (scope):
    • If a scope flag was given, use it.
    • Otherwise ASK with AskUserQuestion: "Where should /<name> be saved?" -> Global or Project.
    • Global path: ~/.claude/commands/
    • Project path: <current working directory>/.claude/commands/ — create if missing; fall back to Global if not in a project and say so.
  4. Normalize the name: lowercase, kebab-case, strip any leading / and .md.
  5. Find the user's previous prompt (the message right before this call).
  6. Identify the parts of the prompt that are specific values likely to change each run — a filename, a topic, a function/variable name, a language, a count, etc. Replace them with placeholders:
    • One variable -> $ARGUMENTS.
    • Multiple variables -> $1, $2, $3 in the order they should be passed. Keep the fixed instructions intact.
  7. Add YAML frontmatter with a one-line description and an argument-hint listing the placeholders in order, e.g. argument-hint: <filename> <language>.
  8. Show the user the parameterized prompt and how to call it (e.g. /<name> utils.js python).
  9. Write the file to <chosen path>/<name>.md.
  10. If that file already exists, show its current contents and ask before overwriting.
  11. Confirm: print the saved file path, the scope, and that /<name> is now available.
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. 3d ago First seen · 41 lines · 18 tokens per session scan A 3e1c67be010c

Subscribe to this mod's changes

create-cmd-args is a skill published in the GitHub repository fayis672/slash-IT (2 stars, last pushed 2mo ago), licensed MIT. It adds 18 tokens to every session and 548 once invoked, about $0.0001 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-31.