create-cmd-instruct

create-cmd-instruct is a skill for Claude Code 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 Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool; positional $N argument.

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

Good fit 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.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fayis672/slash-it/create-cmd-instruct
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 fayis672/slash-IT --skill create-cmd-instruct
Clone the repo
git clone --depth 1 https://github.com/fayis672/slash-IT

Made for: Claude Code.

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/github.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/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 create-cmd-instruct

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00017 $0.00629
Opus 5.5 $0.00007 $0.00252
Sonnet 5.5 $0.00003 $0.00126
Haiku 4.5 $0.00002 $0.00063

Measured 1mo ago against content hash 52840d68ad83, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 1mo 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. 1mo 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 3mo ago), licensed MIT. It adds 17 tokens to every session and 629 once invoked, about $0.0001 per session on Opus 5.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

dispatching-parallel-agents

Use when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies.

SoftMissT/tudo-sobre-vibe-coding · 26 tokens

whats-next

Suggest what to work on next based on recent activity and current context. Use when the user is between tasks, at a decision point, wants direction on where to focus, or asks what to do next.

autographical/claude-code-plugins · 41 tokens

coaching-mode

Use when the user wants to coach someone — a report, peer, or mentee — through a problem rather than solve it for them. Trigger phrases include "coach me through how to talk to [report]", "I want to help [name] figure out X without telling them what to do", "let me practice a coaching conversation", "GROW conversation…

shwetank/bettersense · 0 tokens

manage-glue-workers

Use when managing engineers who naturally gravitate toward glue work (onboarding, documentation, unblocking, process improvement) and need protection from burnout, visibility for their impact, and career development that doesn't force them off the IC track. Trigger phrases include "my report does too much glue", "how…

shwetank/bettersense · 122 tokens

user-profile

Use to create or update the user's anchor profile — a single private file (/bettersense-work-reflections/profile.md) that captures who the user is, what they do, what context other skills need to know about them. Read automatically by other skills in the bundle when present, so the user doesn't re-explain themselves…

shwetank/bettersense · 131 tokens

wins-log

Use when the user wants to capture a "win at work" — something they shipped, judgment they exercised, someone they mentored, a fire they put out, a hard decision they got right. Trigger phrases include "I just shipped X", "log this win", "add to my brag doc", "I want to remember what I did this week", "I had a good…

shwetank/bettersense · 149 tokens