create-cmd-instruct

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

A skill that reshapes your previous message according to extra instructions and saves the result as a reusable slash command. It supports project-wide or system-wide command scopes.

In plain words
What is it for?
Use it to turn the previous request into a named command, optionally specifying how the request should be modified and where the command should be saved.
Why use it?
It saves time when you want to reuse an existing prompt but first need to change its format, output, or behavior.

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-instruct
Any agent
npx skills add fayis672/slash-IT --skill create-cmd-instruct
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-instruct

README.md
[![agentmods](https://agentmods.dev/badge/skills/fayis672/slash-it/create-cmd-instruct.svg)](https://agentmods.dev/skills/fayis672/slash-it/create-cmd-instruct)
Your own site
<a href="https://agentmods.dev/skills/fayis672/slash-it/create-cmd-instruct"><img src="https://agentmods.dev/badge/skills/fayis672/slash-it/create-cmd-instruct.svg" alt="Measured on agentmods" height="20"></a>
Per session 17 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 629 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.00017 $0.00629
Opus 5 $0.00009 $0.00315
Sonnet 5 $0.00003 $0.00126
Haiku 4.5 $0.00002 $0.00063

Measured 3d ago against content hash 52840d68ad83, 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-instruct 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-instruct/SKILL.md · 44 lines

What it actually says

The user wants to take their previous message — the most recent user turn in this conversation before this invocation — modify it according to extra instructions they provide here, and save the result as a reusable custom slash command.

Raw arguments: $ARGUMENTS

The arguments contain a command name and instructions for how to change the prompt, separated by a | pipe. An optional scope flag may appear in the name part. Example: /slash-it:create-cmd-instruct daily-report --project | output a markdown table and ask for the date

Do this:

  1. Split $ARGUMENTS on the first |.
    • Left side = the command name (and optional scope flag).
    • Right side = the user's instructions for reshaping the prompt. If there is no |, treat the first token as the name and the rest as instructions.
  2. From the left side, extract the name and any scope flag:
    • --global / -g / global -> system-wide. --project / -p / project -> this project.
  3. If the name is empty, STOP and ask for it (required). If the instructions are empty, ask what changes the user wants.
  4. 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.
  5. Normalize the name: lowercase, kebab-case, strip any leading / and .md.
  6. Find the user's previous prompt (the message right before this call).
  7. Produce a new prompt = the previous prompt transformed according to the instructions, plus light optimisation (clarity, structure, grammar) while honoring the original intent. Parameterize with $ARGUMENTS/$1/$2 where it makes the command reusable.
  8. Briefly show the user the resulting prompt so they can see what was saved.
  9. Add YAML frontmatter with a one-line description and an argument-hint if parameters exist.
  10. Write the file to <chosen path>/<name>.md.
  11. If that file already exists, show its current contents and ask before overwriting.
  12. 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 · 44 lines · 17 tokens per session scan A 52840d68ad83

Subscribe to this mod's changes

create-cmd-instruct is a skill published in the GitHub repository fayis672/slash-IT (2 stars, last pushed 2mo ago), licensed MIT. It adds 17 tokens to every session and 629 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.

Related

Other skills, from other repositories