AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Create Cmd Args

skill-fayis672-slash-it-create-cmd-args · by fayis672

Turn my PREVIOUS message into a PARAMETERIZED slash command with $ARGUMENTS slots

No reviews yet
0 installs
15 views
0.0% view→install

Install

$ agentstack add skill-fayis672-slash-it-create-cmd-args

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-fayis672-slash-it-create-cmd-args)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
1mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Create Cmd Args? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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.
  1. If no name is given, STOP and ask for one. A name is required.
  2. Determine where to save (scope):
  • If a scope flag was given, use it.
  • Otherwise ASK with AskUserQuestion: "Where should / be saved?" -> Global or

Project.

  • Global path: ~/.claude/commands/
  • Project path: /.claude/commands/ — create if missing; fall back

to Global if not in a project and say so.

  1. Normalize the name: lowercase, kebab-case, strip any leading / and .md.
  2. Find the user's previous prompt (the message right before this call).
  3. 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.

  1. Add YAML frontmatter with a one-line description and an argument-hint listing the

placeholders in order, e.g. argument-hint: .

  1. Show the user the parameterized prompt and how to call it (e.g. / utils.js python).
  2. Write the file to /.md.
  3. If that file already exists, show its current contents and ask before overwriting.
  4. Confirm: print the saved file path, the scope, and that / is now available.

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.