CRUD operations for prompt files. Centralizes all prompt management logic to avoid shell parsing issues and provide consistent behavior across commands.
Manages prompt files in `{repo_root}/prompts/` with CRUD operations. Used when you need to create, list, read, complete, or delete prompts without shell parsing issues.
/plugin marketplace add cruzanstx/daplug/plugin install daplug@cruzanstxThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/manager.pyCRUD operations for prompt files. Centralizes all prompt management logic to avoid shell parsing issues and provide consistent behavior across commands.
Manages prompt files in {repo_root}/prompts/ with support for:
Use this skill when you need to:
tools:
- Bash(python3:*)
- Bash(PROMPT_MANAGER=:*)
PROMPT_MANAGER=$(jq -r '.plugins."daplug@cruzanstx"[0].installPath' ~/.claude/plugins/installed_plugins.json)/skills/prompt-manager/scripts/manager.py
python3 "$PROMPT_MANAGER" next-number
Output: 006 (next available 3-digit number)
# List all prompts
python3 "$PROMPT_MANAGER" list
# List as JSON
python3 "$PROMPT_MANAGER" list --json
# Active only
python3 "$PROMPT_MANAGER" list --active
# Completed only
python3 "$PROMPT_MANAGER" list --completed
# Returns path to prompt file
python3 "$PROMPT_MANAGER" find 6
# Output: /path/to/repo/prompts/006-my-prompt.md
# As JSON
python3 "$PROMPT_MANAGER" find 6 --json
python3 "$PROMPT_MANAGER" read 6
# Outputs the full content of the prompt
# From content argument
python3 "$PROMPT_MANAGER" create "backup-server" --content "Prompt content here"
# From file
python3 "$PROMPT_MANAGER" create "backup-server" --content-file /tmp/prompt.md
# From stdin
cat prompt.md | python3 "$PROMPT_MANAGER" create "backup-server"
# With specific number
python3 "$PROMPT_MANAGER" create "backup-server" --number 010 --content "..."
# JSON output
python3 "$PROMPT_MANAGER" create "backup-server" --content "..." --json
python3 "$PROMPT_MANAGER" complete 6
# Output: Completed: /path/to/repo/prompts/completed/006-my-prompt.md
python3 "$PROMPT_MANAGER" delete 6
# Output: Deleted: 006-my-prompt.md
python3 "$PROMPT_MANAGER" info
# Output:
# Repository root: /path/to/repo
# Prompts directory: /path/to/repo/prompts
# Completed directory: /path/to/repo/prompts/completed
# Next number: 006
# Active prompts: 2
# Completed prompts: 5
# Total prompts: 7
# As JSON
python3 "$PROMPT_MANAGER" info --json
# Get plugin path
PLUGIN_ROOT=$(jq -r '.plugins."daplug@cruzanstx"[0].installPath' ~/.claude/plugins/installed_plugins.json)
PROMPT_MANAGER="$PLUGIN_ROOT/skills/prompt-manager/scripts/manager.py"
# Get next number
NEXT_NUM=$(python3 "$PROMPT_MANAGER" next-number)
echo "Next prompt will be: $NEXT_NUM"
# Create the prompt
python3 "$PROMPT_MANAGER" create "my-task-name" --content "$PROMPT_CONTENT" --json
# Find prompt path
PROMPT_PATH=$(python3 "$PROMPT_MANAGER" find 6)
if [ -z "$PROMPT_PATH" ]; then
echo "Prompt 6 not found"
exit 1
fi
# Read content
CONTENT=$(python3 "$PROMPT_MANAGER" read 6)
All errors are written to stderr with exit code 1:
$ python3 "$PROMPT_MANAGER" find 999
Error: Prompt 999 not found
$ python3 "$PROMPT_MANAGER" complete 6 # already completed
Error: Prompt 006 is already completed
$ python3 "$PROMPT_MANAGER" create "test" --number 5 # exists
Error: Prompt 005 already exists: /path/to/prompts/005-test.md
{
"number": "006",
"name": "backup-server",
"filename": "006-backup-server.md",
"path": "/path/to/repo/prompts/006-backup-server.md",
"status": "active"
}
{
"repo_root": "/path/to/repo",
"prompts_dir": "/path/to/repo/prompts",
"completed_dir": "/path/to/repo/prompts/completed",
"next_number": "007",
"active_count": 2,
"completed_count": 5,
"total_count": 7
}
This skill should be used when the user asks to "create a slash command", "add a command", "write a custom command", "define command arguments", "use command frontmatter", "organize commands", "create command with file references", "interactive command", "use AskUserQuestion in command", or needs guidance on slash command structure, YAML frontmatter fields, dynamic arguments, bash execution in commands, user interaction patterns, or command development best practices for Claude Code.
This skill should be used when the user asks to "create an agent", "add an agent", "write a subagent", "agent frontmatter", "when to use description", "agent examples", "agent tools", "agent colors", "autonomous agent", or needs guidance on agent structure, system prompts, triggering conditions, or agent development best practices for Claude Code plugins.
This skill should be used when the user asks to "create a hook", "add a PreToolUse/PostToolUse/Stop hook", "validate tool use", "implement prompt-based hooks", "use ${CLAUDE_PLUGIN_ROOT}", "set up event-driven automation", "block dangerous commands", or mentions hook events (PreToolUse, PostToolUse, Stop, SubagentStop, SessionStart, SessionEnd, UserPromptSubmit, PreCompact, Notification). Provides comprehensive guidance for creating and implementing Claude Code plugin hooks with focus on advanced prompt-based hooks API.