Hook Development for Claude Code Plugins
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
A skill your agent uses when creating, improving, or troubleshooting Claude Code slash commands.
$ npx skills add pr-pm/prpm --skill slash-command-builder -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install pr-pm/prpm slash-command-builder --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/pr-pm/prpm.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.claude/skills/slash-command-builder .claude/skills/slash-command-builder && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "slash-command-builder" agent skill from https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder into .claude/skills/slash-command-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "slash-command-builder", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builderType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add pr-pm/prpm --skill slash-command-builder -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install pr-pm/prpm slash-command-builder --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pr-pm/prpm.git skills-src && mkdir -p .agents/skills && cp -r skills-src/.claude/skills/slash-command-builder .agents/skills/slash-command-builder && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "slash-command-builder" agent skill from https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder into .agents/skills/slash-command-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "slash-command-builder", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pr-pm/prpm --skill slash-command-builder -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install pr-pm/prpm slash-command-builder --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pr-pm/prpm.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/.claude/skills/slash-command-builder .cursor/skills/slash-command-builder && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "slash-command-builder" agent skill from https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder into .cursor/skills/slash-command-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "slash-command-builder", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/pr-pm/prpm.git --path .claude/skills/slash-command-builder--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add pr-pm/prpm --skill slash-command-builder -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install pr-pm/prpm slash-command-builder --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pr-pm/prpm.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/.claude/skills/slash-command-builder .gemini/skills/slash-command-builder && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "slash-command-builder" agent skill from https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder into .gemini/skills/slash-command-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "slash-command-builder", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install pr-pm/prpm slash-command-builderInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add pr-pm/prpm --skill slash-command-builder -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/pr-pm/prpm.git skills-src && mkdir -p .github/skills && cp -r skills-src/.claude/skills/slash-command-builder .github/skills/slash-command-builder && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "slash-command-builder" agent skill from https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder into .github/skills/slash-command-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "slash-command-builder", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add pr-pm/prpm --skill slash-command-builder -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install pr-pm/prpm slash-command-builder --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/pr-pm/prpm.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/.claude/skills/slash-command-builder .opencode/skills/slash-command-builder && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "slash-command-builder" agent skill from https://github.com/pr-pm/prpm/tree/main/.claude/skills/slash-command-builder into .opencode/skills/slash-command-builder/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "slash-command-builder", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
slash-command-builderA skill your agent uses when creating, improving, or troubleshooting Claude Code slash commands.
Slash Command Builder is an agent skill from pr-pm/prpm. Use when creating, improving, or troubleshooting Claude Code slash commands. Expert guidance on command structure, arguments, frontmatter, tool permissions, and best practices for building effective custom commands.
Its SKILL.md is about 2.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 3 other files (for example `EXAMPLES.md`, `FRONTMATTER.md` and `PATTERNS.md`).
It sits in Agent Workflows, covering Hooks and plugins. The repository describes itself as: The universal registry for AI coding tools. The licence is MIT.
12 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 5f993e6. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are markdown and yaml).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Slash Command Builder loads about 2.7k tokens when it runs. Until then it costs about 59 tokens; SKILL.md has 771 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from pr-pm/prpm at commit 5f993e6, republished under its MIT licence (© pr-pm). 771 words, ~2,700 tokens.
.claude/skills/slash-command-builder/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.Use this skill when creating, improving, or troubleshooting Claude Code slash commands. Provides expert guidance on command structure, syntax, frontmatter configuration, and best practices.
Activate this skill when:
---
description: Brief description shown in autocomplete
argument-hint: [arg1] [arg2] <optional-arg>
allowed-tools: Bash(git *), Read, Write
model: claude-sonnet-4-6
disable-model-invocation: false
---
Your command prompt here with $ARGUMENTS or $1, $2, etc.
Use !`command` for bash execution
Use @file.txt for file referencesProject commands (shared with team):
.claude/commands/my-command.mdPersonal commands (individual use):
~/.claude/commands/my-command.mdOrganized commands (namespaced):
.claude/commands/frontend/component.md → /component (project:frontend)Good candidates for slash commands:
NOT good for slash commands (use Skills instead):
Best practices:
/review-pr, /optimize-codeExamples:
/review-pr - Clear, concise/fix-lint - Action-oriented/review-pull-request-thoroughly - Too verbose/rpr - Too crypticSimple command (no arguments):
---
description: Analyze code for performance bottlenecks
---
Analyze the current file for performance issues:
1. Identify O(n²) or worse algorithms
2. Find unnecessary re-renders or computations
3. Check for memory leaks
4. Suggest optimizations with code examplesCommand with all arguments:
---
description: Generate component boilerplate
argument-hint: <component-name> <type>
---
Create a $ARGUMENTS component following our style guide:
- Use TypeScript with strict types
- Include prop interfaces
- Add JSDoc comments
- Export as defaultCommand with positional arguments:
---
description: Review pull request
argument-hint: [pr-number] [reviewer]
---
Review PR #$1 and assign to @$2:
1. Check code quality and style
2. Verify tests are included
3. Look for security issues
4. Suggest improvements
5. Add comments in GitHubSee FRONTMATTER.md in this skill directory for complete frontmatter options.
Minimal frontmatter:
---
description: What this command does
---Full-featured frontmatter:
---
description: Complete command with all options
argument-hint: [required] <optional>
allowed-tools: Bash(git *), Read(**/*.ts), Write
model: claude-sonnet-4-6
disable-model-invocation: false
---.claude/commands//command-nameallowed-toolsExecute shell commands inline with ! prefix:
---
description: Show git status
allowed-tools: Bash(git status:*)
---
Current repository status:
!`git status`
Recent commits:
!`git log --oneline -5`Include file contents with @ prefix:
---
description: Review specific file
argument-hint: <file-path>
---
Review this file for code quality:
@$1
Focus on:
- Type safety
- Error handling
- Performance
- MaintainabilityRestrict which tools Claude can use:
---
description: Safe git status check
allowed-tools: Bash(git status:*), Bash(git diff:*)
---
Show current changes:
!`git status`
!`git diff --stat`Tool permission syntax:
Bash(command:*) - Allow specific command with any argsRead(path/to/*.ts) - Allow reading TypeScript files in pathWrite - Allow writing any fileGlob, Grep, Edit - Other available toolsOverride default model for specific commands:
---
description: Quick syntax fix
model: claude-haiku-4-5-20251001
---
Fix syntax errors in the current file quickly.When to use different models:
claude-haiku-4-5-20251001 - Fast, simple tasksclaude-sonnet-4-6 - General purpose (default)claude-opus-4-8 - Complex reasoningPrevent Claude from calling command automatically:
---
description: Destructive operation
disable-model-invocation: true
---
!`rm -rf node_modules`
!`npm install`---
description: Review code changes
argument-hint: [file-or-pr]
allowed-tools: Bash(git *), Read, Grep
---
Review $ARGUMENTS for:
1. **Code Quality**
- Clean, readable code
- Proper naming conventions
- DRY principle
2. **Security**
- Input validation
- SQL injection risks
- XSS vulnerabilities
3. **Performance**
- Inefficient algorithms
- Unnecessary computations
- Memory leaks
4. **Tests**
- Unit test coverage
- Edge cases handled
- Integration tests
Provide specific file:line references for all issues.---
description: Create feature branch
argument-hint: <feature-name>
allowed-tools: Bash(git *)
---
Create and switch to feature branch:
!`git checkout -b feature/$1`
!`git push -u origin feature/$1`
Branch feature/$1 created and pushed to origin.---
description: Generate API docs
argument-hint: <file-path>
allowed-tools: Read
---
Generate comprehensive API documentation for:
@$1
Include:
- Function signatures with types
- Parameter descriptions
- Return value documentation
- Usage examples
- Error cases---
description: Generate test cases
argument-hint: <file-to-test>
allowed-tools: Read, Write
---
Generate test cases for:
@$1
Create tests covering:
- Happy path scenarios
- Edge cases
- Error conditions
- Boundary values
Use the existing test framework style.Problem: /my-command doesn't autocomplete
Solutions:
.claude/commands/ or ~/.claude/commands/.claude/commands/my-command.md)Problem: $1 appears literally instead of being replaced
Solutions:
/command arg1 arg2$1, $2 (not ${1})$ARGUMENTS insteadargument-hint frontmatter is correctProblem: Command can't execute bash or read files
Solutions:
allowed-tools frontmatterBash(git *)Bash, not bash)Read(**/*.ts)Problem: Claude calls command when you don't want it to
Solutions:
disable-model-invocation: true to frontmatterdescription is specific to avoid false triggersExample:
/review-pr - Quick PR review promptcode-reviewer - Comprehensive review framework with security.md, performance.md, style.md, and scriptsEach command should do ONE thing well. Don't create Swiss Army knife commands.
argument-hint: [required] <optional> [choices: a|b|c]Tell Claude what format you want:
Generate a JSON response with this structure:
{
"issues": [],
"suggestions": []
}Show Claude what good output looks like:
Example output:
## Security Issues
- **SQL Injection** (file.ts:42) - Use parameterized queriesDon't use allowed-tools: Bash - use allowed-tools: Bash(git *)
Store .claude/commands/ in git for team collaboration
Use subdirectories for related commands:
.claude/commands/
├── git/
│ ├── feature.md
│ ├── fix.md
│ └── release.md
└── testing/
├── unit.md
└── e2e.mdBefore finalizing a slash command:
Remember: Great slash commands are simple, focused, and make frequent tasks effortless. If you find yourself adding complexity, consider creating a Skill instead.
© pr-pm, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 3 other files in .claude/skills/slash-command-builder of pr-pm/prpm.
Open the folder on GitHubat commit 5f993e6
Slash Command Builder next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Slash Command Builder this skillpr-pm/prpm | 122 | — | ~2.7k | Automated safety check: Pass | MIT | |
| Hook Development for Claude Code Pluginsanthropics/claude-plugins-official | 37k | 11 repos | ~4.1k | Automated safety check: Notes | Apache-2.0 | |
| Claude Code Agent Developmentanthropics/claude-plugins-official | 37k | 8 repos | ~2.8k | Automated safety check: Pass | Apache-2.0 | |
| Claude Code Skill Developer Guidediet103/claude-code-infrastructure-showcase | 10k | 10 repos | ~3.5k | Automated safety check: Pass | MIT | |
| Plugin Settings Patternanthropics/claude-plugins-official | 37k | 7 repos | ~3k | Automated safety check: Pass | Apache-2.0 | |
| MCP Integration for Pluginsanthropics/claude-plugins-official | 37k | 11 repos | ~3.1k | Automated safety check: Pass | Apache-2.0 |
anthropics/claude-plugins-official
Explains how to write Claude Code plugin hooks, both prompt-based checks and bash commands, for events such as PreToolUse, Stop and SessionStart.
anthropics/claude-plugins-official
Explains how to write agents for Claude Code plugins: the markdown file with YAML frontmatter, trigger descriptions, model and color settings, and system prompt design.
diet103/claude-code-infrastructure-showcase
A guide to creating and managing Claude Code skills with auto-activation: skill-rules.json triggers, hooks, enforcement levels, YAML frontmatter and progressive disclosure.
anthropics/claude-plugins-official
Shows how Claude Code plugins keep per-project settings and state in .claude/plugin-name.local.md files with YAML frontmatter and a markdown body.
anthropics/claude-plugins-official
Explains how to bundle Model Context Protocol servers in a Claude Code plugin, covering config files, stdio, SSE, HTTP and WebSocket server types, and authentication.
anthropics/claude-plugins-official
Explains how to write Claude Code slash commands: Markdown files with YAML frontmatter, arguments, file references, bash context and interactive prompts.
pr-pm/prpm
Reference for writing Claude Code agent files: location, frontmatter fields, validation limits, tool and model choices, and the required content format.
pr-pm/prpm
Covers how to build, configure and publish Claude Code hooks: event types, exit codes, JSON I/O, and PRPM packaging.
pr-pm/prpm
Shows how to write .claude/rules/ files correctly: paths frontmatter instead of globs, quoted glob patterns, global rules and conversion of Cursor rules.
pr-pm/prpm
Reference for writing portable Agent Skills packages, covering SKILL.md frontmatter limits, name rules, directory layout and where Codex CLI, GitHub Copilot and Amp look for skills.
pr-pm/prpm
A skill your agent uses when building custom Kiro AI agents or when user asks for agent configurations - provides JSON structure, tool configuration, prompt patterns, and security best practices for…
pr-pm/prpm
A skill your agent uses when creating OpenCode agents - provides markdown format with YAML frontmatter, mode/tools/permission configuration, and best practices for specialized AI assistants
Categories
A skill your agent uses when creating, improving, or troubleshooting Claude Code slash commands. Slash Command Builder is an agent skill from pr-pm/prpm. Use when creating, improving, or troubleshooting Claude Code slash commands.
Slash Command Builder fits situations like: troubleshooting Claude Code slash commands; tasks that involve Hooks and plugins.
Run `npx skills add pr-pm/prpm --skill slash-command-builder -a claude-code`. Or copy the skill folder (.claude/skills/slash-command-builder in pr-pm/prpm) into .claude/skills/slash-command-builder in your project. Claude Code loads it when a task matches its description.
Run `npx skills add pr-pm/prpm --skill slash-command-builder -a codex`. Or copy the skill folder (.claude/skills/slash-command-builder in pr-pm/prpm) into .agents/skills/slash-command-builder in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add pr-pm/prpm --skill slash-command-builder -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/slash-command-builder, .gemini/skills/slash-command-builder, .github/skills/slash-command-builder and .opencode/skills/slash-command-builder in your project.
SKILL.md names no scripts, command-line tools or credentials: Slash Command Builder is instructions for the agent only. Our summary lists: Node.js.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Slash Command Builder is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 2.7k tokens (SKILL.md is roughly 11k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Slash Command Builder: Hook Development for Claude Code Plugins (anthropics/claude-plugins-official, 37k stars), Claude Code Agent Development (anthropics/claude-plugins-official, 37k stars), Claude Code Skill Developer Guide (diet103/claude-code-infrastructure-showcase, 10k stars) and Plugin Settings Pattern (anthropics/claude-plugins-official, 37k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
pr-pm (a GitHub organization) maintains it in pr-pm/prpm, which has 122 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 6, 2026.
Source: pr-pm/prpm on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.