create-slash-commands

create-slash-commands is a skill for Claude Code from marcusgoll/Spec-Flow. It costs 35 tokens per session (3,781 once invoked), scanned A, a copy of create-slash-commands, MIT.

Guidance for creating custom slash commands in Claude Code, which are shortcuts that expand into instructions for the coding assistant.

In plain words
What is it for?
Use it to create, structure, and configure commands such as an optimization command, including their YAML settings and XML-based instructions.
Why use it?
It provides a consistent command structure and clear success checks, reducing guesswork when defining reusable assistant workflows.

Skill for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: reads .claude/ paths; positional $N argument; mentions Claude Code.

Good fit Use it to create, structure, and configure commands such as an optimization command, including their YAML settings and XML-based instructions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/marcusgoll/spec-flow/create-slash-commands
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 marcusgoll/Spec-Flow --skill create-slash-commands
Clone the repo
git clone --depth 1 https://github.com/marcusgoll/Spec-Flow

Made for: Claude Code.

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-slash-commands

README.md
[![agentmods](https://agentmods.dev/badge/skills/marcusgoll/spec-flow/create-slash-commands.svg)](https://agentmods.dev/skills/marcusgoll/spec-flow/create-slash-commands)
Your own site
<a href="https://agentmods.dev/skills/marcusgoll/spec-flow/create-slash-commands"><img src="https://agentmods.dev/badge/skills/marcusgoll/spec-flow/create-slash-commands.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,781 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 100% copy Near-identical to another mod 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.00035 $0.03781
Opus 5 $0.00017 $0.01891
Sonnet 5 $0.00007 $0.00756
Haiku 4.5 $0.00003 $0.00378

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

Security

Grade A, and why

create-slash-commands 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 8d 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.

Origin

This is a copy

100% identical to create-slash-commands — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

.claude/skills/create-slash-commands/SKILL.md · 631 lines

How it starts

The opening of the file, as written. The whole thing — 631 lines — stays where its author put it; the contents beside it link to each section on GitHub.

<quick_start>

---
description: Analyze this code for performance issues and suggest optimizations
---

Analyze the performance of this code and suggest three specific optimizations:

Usage: /optimize

Claude receives the expanded prompt and analyzes the code in context. </quick_start>

<xml_structure> All generated slash commands should use XML tags in the body (after YAML frontmatter) for clarity and consistency.

<required_tags>

<objective> - What the command does and why it matters

<objective>
What needs to happen and why this matters.
Context about who uses this and what it accomplishes.
</objective>

<process> or <steps> - How to execute the command

<process>
Sequential steps to accomplish the objective:
1. First step
2. Second step
3. Final step
</process>

<success_criteria> - How to know the command succeeded

<success_criteria>
Clear, measurable criteria for successful completion.
</success_criteria>

</required_tags>

<conditional_tags>

<context> - When loading dynamic state or files

<context>
Current state: ! `git status`
Relevant files: @ package.json
</context>

(Note: Remove the space after @ in actual usage)

<verification> - When producing artifacts that need checking

<verification>
Before completing, verify:
- Specific test or check to perform
- How to confirm it works
</verification>

<testing> - When running tests is part of the workflow

<testing>
Run tests: ! `npm test`
Check linting: ! `npm run lint`
</testing>

<output> - When creating/modifying specific files

<output>
Files created/modified:
- `./path/to/file.ext` - Description
</output>

</conditional_tags>

<structure_example>

---
name: example-command
description: Does something useful
argument-hint: [input]
---

<objective>
Process $ARGUMENTS to accomplish [goal].

This helps [who] achieve [outcome].
</objective>

<context>
Current state: ! `relevant command`
Files: @ relevant/files
</context>

<process>
1. Parse $ARGUMENTS
2. Execute operation
3. Verify results
</process>

<success_criteria>
- Operation completed without errors
- Output matches expected format
</success_criteria>

</structure_example>

<intelligence_rules>

Simple commands (single operation, no artifacts):

  • Required: <objective>, <process>, <success_criteria>
  • Example: /check-todos, /first-principles

Complex commands (multi-step, produces artifacts):

  • Required: <objective>, <process>, <success_criteria>
  • Add: <context> (if loading state), <verification> (if creating files), <output> (what gets created)
  • Example: /commit, /create-prompt, /run-prompt

Commands with dynamic arguments:

  • Use $ARGUMENTS in <objective> or <process> tags
  • Include argument-hint in frontmatter
  • Make it clear what the arguments are for

Commands that produce files:

  • Always include <output> tag specifying what gets created
  • Always include <verification> tag with checks to perform

Commands that run tests/builds:

  • Include <testing> tag with specific commands
  • Include pass/fail criteria in <success_criteria> </intelligence_rules> </xml_structure>

Read the full file on GitHub · 631 lines

Files

What ships with it

3 files 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. 8d ago First seen · 631 lines · 35 tokens per session scan A fcdd5660ce07

Subscribe to this mod's changes

create-slash-commands is a skill published in the GitHub repository marcusgoll/Spec-Flow (92 stars, last pushed 4mo ago), licensed MIT. It adds 35 tokens to every session and 3,781 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 100% identical to create-slash-commands, differing in 0 lines, and is treated as a copy.