---allowed-tools: Bash(./scripts/gh.sh:*),Bash(./scripts/edit-issue-labels.sh:*)description: Triage GitHub issues by analyzing and applying labels---You're an issue triage assistant. Analyze the issue and manage labels.IMPORTANT: Don't post any comments or messages to the issue. Your only actions are adding or removing labels.Context:$ARGUMENTSTOOLS:- `./scripts/gh.sh label list` — fetch all available labels- `./scripts/gh.sh issue view 123` — read issue details- `./scripts/gh.sh issue view 123 --comments` — read conversation- `./scripts/gh.sh search issues "query"` — find similar issues- `./scripts/edit-issue-labels.sh --issue NUMBER --add-label LABEL`TASK:1. Run `./scripts/gh.sh label list` to fetch available labels2. Run `./scripts/gh.sh issue view ISSUE_NUMBER` to read issue3. Analyze and apply appropriate category labels4. Check for duplicates before marking as duplicate5. Apply lifecycle labels only when clearly warranted
---allowed-tools: Bash(git checkout --branch:*), Bash(git add:*), Bash(git status:*), Bash(git push:*), Bash(git commit:*), Bash(gh pr create:*)description: Commit, push, and open a PR---## Context- Current git status: !\`git status\`- Current git diff (staged and unstaged changes): !\`git diff HEAD\`- Current branch: !\`git branch --show-current\`## Your taskBased on the above changes:1. Create a new branch if on main2. Create a single commit with an appropriate message3. Push the branch to origin4. Create a pull request using `gh pr create`5. You have the capability to call multiple tools in a single response. You MUST do all of the above in a single message.
Usage:
/commit-push-pr
Notice the use of !\…“ for inline command execution to gather context.
---allowed-tools: Bash(./scripts/gh.sh:*), Bash(./scripts/comment-on-duplicates.sh:*)description: Find duplicate GitHub issues---Find up to 3 likely duplicate issues for a given GitHub issue.To do this, follow these steps precisely:1. Use an agent to check if the Github issue (a) is closed, (b) does not need to be deduped, or (c) already has a duplicates comment. If so, do not proceed.2. Use an agent to view a Github issue and return a summary3. Launch 5 parallel agents to search Github for duplicates using diverse keywords and search approaches4. Feed the results into another agent to filter out false positives5. Finally, use the comment script to post duplicates: ```bash ./scripts/comment-on-duplicates.sh --base-issue ISSUE_NUMBER \ --potential-duplicates DUP1 DUP2 DUP3
# Only specific git commandsallowed-tools: Bash(git status:*), Bash(git diff:*), Bash(git log:*)# Only npm commands allowed-tools: Bash(npm:*)# Only specific scriptallowed-tools: Bash(./scripts/deploy.sh:*)# Multiple specific scriptsallowed-tools: Bash(./scripts/gh.sh:*), Bash(./scripts/edit-labels.sh:*)
---description: Deploy to environment---Deploy the application to: $ARGUMENTSSteps:1. Build the application2. Run tests3. Deploy to specified environment
/deploy production# Claude receives: "Deploy the application to: production"
## Task1. First, analyze the codebase structure2. Then, identify test files3. Finally, run tests and report resultsDo NOT modify any files without asking first.
---description: Deploy to production# This command requires:# - ./scripts/deploy.sh to exist# - Valid AWS credentials# - Production environment configuredallowed-tools: Bash(./scripts/deploy.sh:*)---
Test with different arguments
Test your commands with:
No arguments
Single argument
Multiple arguments
Edge cases (special characters, paths with spaces)
Use descriptive file names
Command file names become the command name:✅ Good: review-pr.md → /review-pr❌ Bad: rpr.md → /rpr
---description: Comprehensive code reviewallowed-tools: Bash(gh:*), Read, Grep---Perform a comprehensive review by launching specialized agents:1. Use the `code-reviewer` agent to analyze code quality2. Use the `test-analyzer` agent to review test coverage3. Use the `security-scanner` agent to check for vulnerabilities4. Aggregate results and provide summaryPR: $ARGUMENTS
---description: Smart deployment---Deploy to: $ARGUMENTSIf deploying to production:- Run full test suite- Require manual approval- Create git tag- Notify teamIf deploying to staging:- Run smoke tests only- Auto-deploy on success