This walks you through building slash commands for Claude Code with the right structure and agent-optimized instructions. It auto-detects whether you're in a git repo to suggest project-level versus global commands, shows you the four main patterns (workflow automation, iterative fixing, agent delegation, simple execution), then prompts you for the essentials: command name in kebab-case, arguments if needed, and the specific steps. The bundled references include real examples like submit-stack and ensure-ci, plus a quality checklist for writing instructions that agents can actually execute autonomously. If you keep running the same multi-step workflow manually, this helps you turn it into something you can invoke with a slash.

skills.sh installs
282
GitHub stars
33.2K
last updated
Aug 21, 2026

Install

$ npx -y skills add davila7/claude-code-templates --skill command-creator --agent claude-code

Installs into .claude/skills of the current project.

Files

Command Creator

This skill guides the creation of Claude Code slash commands - reusable workflows that can be invoked with /command-name in Claude Code conversations.

About Slash Commands

Slash commands are markdown files stored in .claude/commands/ (project-level) or ~/.claude/commands/ (global/user-level) that get expanded into prompts when invoked. They're ideal for:

  • Repetitive workflows (code review, PR submission, CI fixing)
  • Multi-step processes that need consistency
  • Agent delegation patterns
  • Project-specific automation

When to Use This Skill

Invoke this skill when users:

  • Ask to "create a command" or "make a slash command"
  • Want to automate a repetitive workflow
  • Need to document a consistent process for reuse
  • Say "I keep doing X, can we make a command for it?"
  • Want to create project-specific or global commands

Bundled Resources

This skill includes reference documentation for detailed guidance:

Sponsors

Details

Repository
github.com/davila7/claude-code-templates
Categories
AI & Agent Building, Automation & Workflows
First seen
Jun 3, 2026

More from davila7/claude-code-templates

All 618
1rysweet avatarknowledge-extractorrysweet/amplihackExtracts key learnings from conversations, debugging sessions, and failed attempts. Use at session end or after solving complex problems to capture insights. St281skills.sh installs
2octagonai avatarsec-10k-analysisoctagonai/skillsAnalyze 10-K annual filings for public companies using Octagon MCP. Use when extracting key financial metrics, risk factors, business overview, management discu279skills.sh installs
3posthog avatarposthog-debuggerposthog/skillsDebug and inspect PostHog implementations on any website. Use this skill when a user wants to understand how PostHog is implemented on a page, troubleshoot trac278skills.sh installs
4davila7 avatarpytdcdavila7/claude-code-templatesTherapeutics Data Commons. AI-ready drug discovery datasets (ADME, toxicity, DTI), benchmarks, scaffold splits, molecular oracles, for therapeutic ML and pharma275skills.sh installs
5hiveminderbot avatarontologyhiveminderbot/ontologyTyped knowledge graph for structured agent memory and composable skills. Use when creating/querying entities (Person, Project, Task, Event, Document), linking r274skills.sh installs
6davila7 avatarsimpo-trainingdavila7/claude-code-templatesSimple Preference Optimization for LLM alignment. Reference-free alternative to DPO with better performance (+6.4 points on AlpacaEval 2.0). No reference model 273skills.sh installs