ClaudeCodeSlashPrompts banner
SerjoschDuering SerjoschDuering

ClaudeCodeSlashPrompts

AI community

Description

Ready-to-use prompt templates for creating custom Claude Code slash commands. Connect to Gemini AI and n8n workflows in minutes.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Claude Code Slash Command Templates

What This Repository Provides

This repository contains **3 ready-to-use prompt templates** that help you create custom slash commands for Claude Code. Each template is a complete prompt you can customize and paste into Claude Code to generate working integrations.

**The three templates:**

  1. Gemini via Google API - Analyze your codebase using Google's Gemini AI directly
  2. Gemini via n8n - Route AI analysis through your n8n automation workflows
  3. Generic n8n Webhook - Connect any n8n workflow to Claude Code as a slash command

![Claude Code Slash Commands](./header.jpg)


What Are Slash Commands?

Slash commands are shortcuts you create for Claude Code. You write a simple markdown file that tells Claude Code what to do when you type `/your-command`.

For example:

  • Type /gemini-analyze src/ → Claude collects your source files and sends them to Gemini AI for analysis
  • Type /deploy staging → Claude triggers your deployment workflow via n8n
  • Type /quality-check → Claude runs your tests and posts results to Slack

**How they work:**

  • You create two files: a command definition (.md) and a shell script (.sh)
  • The markdown file describes the command and its arguments
  • The shell script does the actual work (API calls, file collection, etc.)
  • Files go in ~/.claude/commands/ and ~/.claude/scripts/

**Slash commands vs MCP servers:**

  • Slash commands are local shell scripts. Simple, fast, you control them completely.
  • MCP servers are background processes that extend Claude's capabilities. More powerful but more complex.

Use slash commands for repetitive tasks you want to automate.


![Claude Code Slash Commands](./header.jpg)


Usage Examples

**Analyze your codebase:**

# Single directory
/gemini-analyze src/components 5 session1 -- Review the React components for common issues

# Multiple directories and files
/gemini-analyze src/components,src/hooks,package.json