agentleFS
selamy-labsselamy-labs/agent-skills/skills/command-creator/SKILL.md

command-creator

Skill0 starsChanged 5 months agoMITView on GitHub

Use when turning a repeated workflow into a Claude Code slash command. Structure the command markdown, choose argument handling and allowed tools, and write agent-executable steps so the workflow runs consistently instead of being re-explained every time.

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

1 rule. 0 are common, 1 is distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 1

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    One workflow per command: If it branches into unrelated jobs, split it.

    line 48

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Command Creator

A slash command is a markdown file in .claude/commands/ (project) or ~/.claude/commands/ (user) that expands into a prompt when you type /name. It turns a workflow you keep re-explaining into one consistent, invocable unit. The skill is writing it so an agent executes it the same way every time — not so a human reads it.

When to make one

  • A multi-step process you repeat (review, PR submission, fixing CI).
  • A workflow that must run consistently regardless of who/when.
  • An agent-delegation pattern worth standardizing.
  • The tell: "I keep doing X — can we make that a command?"

Structure

---
description: One line shown in the command list
argument-hint: <pr-number>
allowed-tools: Bash, Read, Edit
---

Steps for the agent to execute, using $ARGUMENTS (or $1, $2) where the
invocation's text is substituted in.
  • description — concise; it's how the command is discovered.
  • argument-hint — what to type after the command.
  • allowed-tools — scope tightly to what the workflow needs; don't grant broad access a command doesn't use.
  • Body — imperative, agent-executable steps. $ARGUMENTS injects the invocation text.

Write it for an executor, not a reader

  • Be imperative and specific — "run the tests, then open a PR with the template" beats "you might want to test." The model follows steps; it doesn't infer intent from prose.
  • State preconditions and the done condition — what must be true to start, and what "finished" looks like, so the command is verifiable.
  • One workflow per command. If it branches into unrelated jobs, split it.
  • Push detail to references — keep the command lean; link patterns/examples it can load when needed rather than inlining everything.

Quality check before shipping

Invoke it on a real case and confirm it runs end-to-end without you narrating the missing steps. A command that needs live coaching to work isn't done — that coaching is the spec it's still missing.


Adapted from the MIT-licensed softaworks/agent-toolkit command-creator skill.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.