Token导航 LogoToken导航TokenDH.com
研究检索执行命令github未标认证来源可访问许可证需确认审计通过

creating-claude-commandscreating Claude commands 搜索

Agent Skill

creating-claude-commands 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

321

周安装

13

GitHub Stars

106

下载量

101
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:creating-claude-commands(creating Claude commands 搜索)
来源仓库:https://github.com/pr-pm/prpm
仓库路径:skills/creating-claude-commands
安装命令:
npx skills add https://github.com/pr-pm/prpm --skill creating-claude-commands
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/pr-pm/prpm --skill creating-claude-commands

简介

该技能指导创建 Claude Code 斜杠命令,提供快速触发式操作入口。

  • 适用于封装常用任务为 /command 形式,提升交互效率与用户体验。
  • 支持参数传递与返回值处理,需定义 name、description 等 frontmatter 字段。
  • 安装方式:GitHub 仓库,使用 npx 命令添加;注意命令注册与事件绑定机制。
  • creating-claude-commands 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Creating Claude Code Slash Commands

Expert guidance for creating Claude Code slash commands - quick actions triggered by /command-name.

When to Use This Skill

Activate this skill when:

  • User wants to create a new slash command
  • User needs to understand slash command structure
  • User asks about frontmatter fields for commands
  • User wants validation guidance for commands
  • User needs examples of command patterns

Quick Reference

FieldRequiredTypeDescription
descriptionNostringBrief description shown in autocomplete
allowed-toolsNostringComma-separated list of tools (inherits if not specified)
argument-hintNostringExpected arguments (e.g., `add [tagId] \remove [tagId] \list`)
modelNostringSpecific model (sonnet, opus, haiku, inherit)
disable-model-invocationNobooleanPrevent SlashCommand tool from calling this
commandTypeNostringSet to "slash-command" for round-trip conversion

Special Features

File Referencing with @

Reference files directly in command prompts using @ prefix:

Review the implementation in @src/utils/helpers.js
Compare @src/old-version.js with @src/new-version.js

Bash Execution with !

Execute bash commands inline using ! prefix (requires Bash in allowed-tools):

---
allowed-tools: Bash(git *)
---

Current git status: !`git status`
Last 5 commits: !`git log --oneline -5`

Arguments

  • $ARGUMENTS - All arguments passed to command
  • $1, $2, $3... $9 - Individual positional arguments

Namespacing

  • Use subdirectories in .claude/commands/ to organize commands
  • Commands appear as /subdirectory.command-name
  • Example: .claude/commands/git/quick-commit.md/git.quick-commit

File Location

Slash commands must be saved as Markdown files:

Project commands (shared with team):

.claude/commands/command-name.md

Personal commands (individual use):

~/.claude/commands/command-name.md

Format Requirements

Basic Structure

---
description: Generate documentation for code
allowed-tools: Read, Edit
model: sonnet
---

# 📝 Documentation Generator

Generate comprehensive documentation for the selected code.

## Instructions

- Analyze code structure and purpose
- Generate clear, concise documentation
- Include parameter descriptions
- Add usage examples
- Follow JSDoc/TSDoc format for TypeScript

With Arguments

---
description: Manage tags for files
argument-hint: add [tagId] | remove [tagId] | list
allowed-tools: Read, Write
---

# Tag Manager

Manage tags for project files.

## Usage

- `/tags add <tagId>` - Add a tag (use $1 for tagId)
- `/tags remove <tagId>` - Remove a tag (use $1 for tagId)
- `/tags list` - List all tags

## Implementation

Action: $1
Tag ID: $2
All arguments: $ARGUMENTS

With File References

---
description: Compare two files and suggest improvements
allowed-tools: Read, Edit
argument-hint: <file1> <file2>
---

# File Comparator

Compare @$1 with @$2 and identify:
- Differences in approach
- Which implementation is better
- Suggested improvements

With Bash Execution

---
description: Create commit with git status context
argument-hint: <commit-message>
allowed-tools: Bash(git *)
---

# Smart Git Commit

## Current Status
!`git status --short`

## Recent Changes
!`git diff --stat`

Create a commit with message: $ARGUMENTS

Ensure the commit message follows conventional commit format.

Minimal Command

---
description: Quick code review
---

Review the current file for:
- Code quality issues
- Security vulnerabilities
- Performance bottlenecks
- Best practice violations

Frontmatter Fields

description (optional)

Brief description of what the command does. Shown in autocomplete. Defaults to first line from prompt if not specified.

---
description: Generate comprehensive documentation for selected code
---

allowed-tools (optional)

Comma-separated string of tools the command can use. Inherits from conversation if not specified.

Valid tools: Read, Write, Edit, Grep, Glob, Bash, WebSearch, WebFetch, Task, Skill, SlashCommand, TodoWrite, AskUserQuestion

---
allowed-tools: Read, Edit, Grep
---

With Bash restrictions:

---
allowed-tools: Bash(git status:*), Bash(git diff:*), Read
---

argument-hint (optional)

Expected arguments for the command. Shown when auto-completing.

---
argument-hint: [file-path]
---
---
argument-hint: add [tagId] | remove [tagId] | list
---

model (optional)

Specific model to use for this command. Inherits from conversation if not specified.

Valid values:

  • sonnet - General purpose (Claude Sonnet 3.5)
  • haiku - Fast, simple tasks (Claude Haiku 3.5)
  • opus - Complex reasoning (Claude Opus 4)
  • inherit - Use conversation model (default)
---
model: sonnet
---

disable-model-invocation (optional)

Set to true to prevent Claude from automatically invoking this command via the SlashCommand tool.

---
disable-model-invocation: true
---

commandType (optional)

Set to "slash-command" for explicit type preservation in round-trip conversion (PRPM extension).

---
commandType: slash-command
---

Content Format

The content after frontmatter contains the command prompt and instructions.

H1 Title (optional)

Can include emoji icon for visual identification:

# 📝 Documentation Generator
# 🔍 Code Reviewer

Instructions

Clear, actionable guidance for what the command should do:

## Instructions

- Analyze code structure and purpose
- Generate clear, concise documentation
- Include parameter descriptions
- Add usage examples

Output Format

Specify expected output format:

## Output Format

Return formatted documentation ready to paste above the code:

/**
 * Function description
 * @param {string} name - Parameter description
 * @returns {Promise<User>} Return value description
 */

Examples

Show Claude what good output looks like:

## Example Output

/** * Creates a new user with the provided data * @param {UserData} userData - User information (email, name) * @returns {Promise<User>} Created user with ID * @throws {ValidationError} If email format is invalid */ async function createUser(userData: UserData): Promise<User> { // ... }

Schema Validation

Commands are validated against the JSON Schema:

Schema Location: https://github.com/pr-pm/prpm/blob/main/packages/converters/schemas/claude-slash-command.schema.json

Required structure:

{
  "frontmatter": {
    "description": "string (optional)",
    "allowed-tools": "string (optional)",
    "argument-hint": "string (optional)",
    "model": "string (optional)",
    "disable-model-invocation": "boolean (optional)",
    "commandType": "slash-command (optional)"
  },
  "content": "string (markdown content)"
}

Common Mistakes

MistakeProblemSolution
Using array for toolsallowed-tools: [Read, Write]Use string: allowed-tools: Read, Write
Wrong field namestools:, arguments:Use allowed-tools, argument-hint
Missing frontmatter delimitersFrontmatter not parsedUse --- before and after YAML
Invalid tool namesbash, grep (lowercase)Use capitalized: Bash, Grep
Invalid model values3.5-sonnet, claude-opusUse: sonnet, opus, haiku, inherit
Icons in frontmattericon: 📝Put icon in H1: # 📝 Title
No descriptionAutocomplete shows filenameAdd description field

Best Practices

1. Keep Commands Focused

Each command should do ONE thing well:

Good:

---
description: Generate JSDoc comments for functions
---

Bad:

---
description: Generate docs, fix linting, add tests, refactor code
---

2. Use Clear Descriptions

Make descriptions specific and actionable:

Good:

description: Generate comprehensive JSDoc documentation for selected code

Bad:

description: Make docs

3. Specify Tool Permissions

Only request tools actually needed:

Good:

allowed-tools: Read, Edit

Bad:

allowed-tools: Read, Write, Edit, Grep, Glob, Bash, WebSearch

4. Document Expected Arguments

Use argument-hint to show expected arguments:

argument-hint: [file-path]
argument-hint: <feature-name>
argument-hint: add [item] | remove [item] | list

5. Include Usage Examples

Show users how to invoke the command:

## Usage

- `/generate-docs path/to/file.ts` - Generate docs for specific file
- `/generate-docs` - Generate docs for current selection

6. Specify Output Format

Tell Claude what format you want:

## Output Format

Generate TypeScript interfaces with JSDoc comments:

/** * User account information */ interface User { /** Unique identifier */ id: string; /** User email address */ email: string; }

7. Add Examples to Prompt

Show Claude examples of good output:

## Example

Good documentation:

/** * Calculates total price with tax * @param price - Base price before tax * @param taxRate - Tax rate as decimal (e.g., 0.08 for 8%) * @returns Total price including tax */ function calculateTotal(price: number, taxRate: number): number { return price * (1 + taxRate); }

8. Use Icons for Visual Identification

Add emoji to H1 heading for quick recognition:

# 📝 Documentation Generator
# 🔍 Code Reviewer
# 🧪 Test Generator
# 🔧 Refactoring Assistant
# 🐛 Bug Finder

Namespaced Commands

Organize related commands using subdirectories:

File: .claude/commands/git/status.md

---
description: Show enhanced git status
allowed-tools: Bash(git *)
---

# Git Status

!`git status`

Branch: !`git branch --show-current`
Recent commits: !`git log --oneline -3`

Invoke with: /git.status

File: .claude/commands/git/quick-commit.md

---
description: Quick commit with conventional format
argument-hint: <type> <message>
allowed-tools: Bash(git *)
---

# Quick Commit

Create conventional commit: $1($2): $ARGUMENTS

!`git add -A && git commit -m "$1: $ARGUMENTS"`

Invoke with: /git.quick-commit feat "add user auth"

Common Patterns

Code Review Command

---
description: Review code for quality, security, and performance issues
allowed-tools: Read, Grep
---

# 🔍 Code Reviewer

Review the selected code or current file for:

## Code Quality
- Clean, readable code
- Proper naming conventions
- DRY principle adherence
- SOLID principles

## Security
- Input validation
- SQL injection risks
- XSS vulnerabilities
- Authentication/authorization

## Performance
- Inefficient algorithms
- Unnecessary computations
- Memory leaks
- Database query optimization

## Output Format

Provide specific file:line references for all issues:

**[Issue Type]** (file.ts:42) - Issue description and suggested fix

Documentation Generator

---
description: Generate comprehensive documentation for selected code
allowed-tools: Read, Edit
model: sonnet
---

# 📝 Documentation Generator

Generate comprehensive documentation for the selected code.

## Instructions

- Analyze code structure and purpose
- Generate clear, concise documentation
- Include parameter descriptions with types
- Add usage examples
- Follow JSDoc/TSDoc format for TypeScript
- Document error conditions and edge cases

## Output Format

Return formatted documentation ready to paste above the code.

For TypeScript/JavaScript:

/** * Function description * @param {Type} paramName - Parameter description * @returns {ReturnType} Return value description * @throws {ErrorType} Error conditions */

Test Generator

---
description: Generate test cases for selected code
allowed-tools: Read, Write
---

# 🧪 Test Generator

Generate comprehensive test cases for the selected code.

## Test Coverage

Create tests covering:
- Happy path scenarios
- Edge cases
- Error conditions
- Boundary values
- Invalid input handling

## Structure

Follow the project's testing conventions:
- Use existing test framework (Jest, Mocha, etc.)
- Match naming patterns
- Follow setup/teardown patterns
- Use appropriate matchers

## Example

describe('calculateTotal', () => { it('should calculate total with valid inputs', () => { const result = calculateTotal(100, 0.08); expect(result).toBe(108); });

it('should handle zero tax rate', () => { const result = calculateTotal(100, 0); expect(result).toBe(100); });

it('should throw for negative price', () => { expect(() => calculateTotal(-100, 0.08)).toThrow(); }); });

Git Workflow Command

---
description: Create and push feature branch
argument-hint: <feature-name>
allowed-tools: Bash(git *)
---

# 🌿 Feature Branch Creator

Create and push a new feature branch.

## Process

1. Create branch: `feature/$1`
2. Switch to new branch
3. Push to origin with upstream tracking

## Usage

/feature user-authentication /feature api-optimization


## Implementation

git checkout -b feature/$1 git push -u origin feature/$1

Refactoring Command

---
description: Refactor code while preserving behavior
allowed-tools: Read, Edit, Bash
---

# 🔧 Refactoring Assistant

Refactor the selected code while maintaining functionality.

## Guidelines

- Preserve existing behavior exactly
- Improve code structure and readability
- Extract reusable functions
- Reduce complexity
- Follow project conventions
- Update related tests

## Process

1. Read and understand current implementation
2. Identify refactoring opportunities
3. Propose changes with explanations
4. Update code with improvements
5. Verify tests still pass
6. Update documentation if needed

## Safety

- Run tests after refactoring
- Commit changes incrementally
- Keep changes focused and atomic

Validation Checklist

Before finalizing a slash command:

  • Command name is clear and concise
  • Description is specific and actionable
  • Argument hints provided if arguments expected
  • Tool permissions are minimal and specific
  • Model selection appropriate for task complexity
  • Frontmatter uses correct field names
  • Frontmatter values match allowed types
  • allowed-tools is comma-separated string, not array
  • H1 title includes icon (optional but recommended)
  • Instructions are clear and actionable
  • Expected output format is specified
  • Examples included in prompt
  • File saved to .claude/commands/*.md
  • Command tested and working

Related Documentation

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

35.72%
按下载量换算36

Claude

30.07%
按下载量换算30

Cursor

18.52%
按下载量换算19

Gemini CLI

10.43%
按下载量换算11

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/pr-pm/prpm --skill creating-claude-commands 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills