Find and resolve prompt files in ./prompts/ directory. Use when user asks to find a prompt, list available prompts, locate prompt by number or name, or check what prompts exist.
View on GitHubSelect agents to install to:
npx add-skill https://github.com/cruzanstx/daplug/blob/main/skills/prompt-finder/SKILL.md -a claude-code --skill prompt-finderInstallation paths:
.claude/skills/prompt-finder/# Prompt File Finder
Locate and resolve prompt files using the prompt-manager skill.
## Setup
All operations use prompt-manager for consistent git root detection:
```bash
PLUGIN_ROOT=$(jq -r '.plugins."daplug@cruzanstx"[0].installPath' ~/.claude/plugins/installed_plugins.json)
PROMPT_MANAGER="$PLUGIN_ROOT/skills/prompt-manager/scripts/manager.py"
```
## When to Use This Skill
- User asks "find prompt 42" or "which prompt is about auth?"
- User wants to "list available prompts" or "show prompts"
- User asks "what's the latest prompt?" or "most recent prompt"
- Before executing a prompt, to resolve the exact file path
- User wants to search prompts by keyword
## Core Operations
### List All Prompts
```bash
# List all prompts (active and completed)
python3 "$PROMPT_MANAGER" list
# Output:
# [ ] 006 - backup-server
# [ ] 007 - deploy-k8s
# [✓] 001 - initial-setup
# [✓] 002 - add-authentication
# As JSON
python3 "$PROMPT_MANAGER" list --json
# Active only
python3 "$PROMPT_MANAGER" list --active
# Completed only
python3 "$PROMPT_MANAGER" list --completed
```
### Find Prompt by Number
```bash
# Returns path to prompt file
python3 "$PROMPT_MANAGER" find 42
# Output: /path/to/repo/prompts/042-my-prompt.md
# As JSON with full info
python3 "$PROMPT_MANAGER" find 42 --json
# {
# "number": "042",
# "name": "my-prompt",
# "filename": "042-my-prompt.md",
# "path": "/path/to/repo/prompts/042-my-prompt.md",
# "status": "active"
# }
```
### Read Prompt Content
```bash
python3 "$PROMPT_MANAGER" read 42
# Outputs the full content of the prompt
```
### Show Prompt Preview
```bash
# Read first 30 lines
python3 "$PROMPT_MANAGER" read 42 | head -30
```
### Get Prompts Directory Info
```bash
python3 "$PROMPT_MANAGER" info
# Repository root: /path/to/repo
# Prompts directory: /path/to/repo/prompts
# Completed directory: /path/to/repo/prompts/completed
# Next number: 008
# Active prompts: 2
# Completed prompts: 5
# Total prompts: 7
# As JSON
python3 "$PROMPT_M