Initialize YPM data directory and configuration
Initializes YPM by creating configuration directory and interactive project monitoring setup.
/plugin marketplace add signalcompose/ypm/plugin install signalcompose-ypm-2@signalcompose/ypmSet up YPM for global usage. This command creates the data directory and configuration file.
~/.ypm/ directory for YPM data~/.ypm/config.yml with your settings (interactive)~/.claude/commands/ for prefix-free accessls -la ~/.ypm/config.yml 2>/dev/null && echo "EXISTS" || echo "NOT_FOUND"
If EXISTS: Ask user if they want to reconfigure or skip setup.
If NOT_FOUND: Proceed to STEP 2.
mkdir -p ~/.ypm
Report to user:
Created ~/.ypm/ directory for YPM data.
Use AskUserQuestion to collect configuration:
Question:
Which directories contain your projects?
Enter absolute paths, one per line or comma-separated.
Examples:
- /Users/yourname/Projects
- /Users/yourname/Work
- ~/Src (will be expanded)
Collect: List of directories to monitor
Question:
How are your projects organized within these directories?
Select patterns that match your structure:
Options (multiSelect: true):
Question:
How do you want to classify project activity?
Options:
Use Write tool to create ~/.ypm/config.yml:
# YPM Configuration
# Generated by /ypm:setup
monitor:
# Directories containing your projects
directories:
- /path/to/your/projects
# Add more directories as needed
# Patterns to detect projects within directories
patterns:
- "*" # Direct children
# - "*/*" # One level deep
# - "proj_*/*" # Prefixed directories
# Exclusion patterns
# Specify as relative path or partial match
# Examples:
exclude: []
# - "node_modules"
# - ".archived"
# - "tmp"
# Projects to hide from /ypm:open (but still scanned)
ignore_in_open: []
# Editor configuration
editor:
default: code # code, cursor, zed, terminal
# Activity classification thresholds
classification:
active_days: 7 # Updated within N days = active
inactive_days: 30 # No updates for N days = inactive
cat ~/.ypm/config.yml
Display configuration and confirm:
YPM Setup Complete!
Configuration: ~/.ypm/config.yml
Data file: ~/.ypm/PROJECT_STATUS.md (will be created on first update)
Next steps:
1. Review your configuration: cat ~/.ypm/config.yml
2. Run your first scan: /ypm:update
Your projects will be scanned from:
- /path/to/your/projects
- ...
To reconfigure YPM, run this command again. It will detect the existing configuration and ask if you want to update it.
To remove YPM data:
rm -rf ~/.ypm
Always confirm successful setup with the user.