Help us improve
Share bugs, ideas, or general feedback.
From research-system
Creates/updates stable symlink to current plugin directory and updates crontab entries to replace hardcoded paths, fixing broken scheduled scripts.
npx claudepluginhub ttorres33/teresa-torres-plugins --plugin research-systemHow this command is triggered — by the user, by Claude, or both
Slash command
/research-system:fix-scheduled-scriptsThis command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Fix Scheduled Scripts Command
Repair scheduled scripts (cron jobs) when the plugin directory location changes. This command:
1. Creates/updates a stable symlink pointing to the current plugin location
2. Scans crontab for hardcoded plugin paths and replaces them with symlink paths
## Step 1: Create/Update Stable Symlink
1. **Define paths:**
- Symlink location: `~/.claude/research-system-config/plugin` (stable, never changes)
- Target: `${CLAUDE_PLUGIN_ROOT}` (actual plugin location, may change)
2. **Check config directory:**
- Run: `test -d ~/.claude/research-system-config &&.../schedule-claudeSets up scheduled Claude Code jobs on macOS using launchd for the specified task, creates wrapper script and plist, and tests the schedule.
/create-cronCreates and installs a cron job script with scheduling verification, error handling, locking, logging, timeouts, notifications, and health checks using crontab or systemd timer.
/update-all-pluginsUpdates all installed Claude Code plugins from configured marketplaces, syncs memory palace knowledge if installed, tends garden and palaces, reports results.
/update-pluginUpdates plugins from the marketplace interactively with version detection, automatic backup, verification, and rollback on failure. Supports --check-only, --yes, --json, and other flags.
/automation-runParses crontab for jleechanorg-pr-monitor jobs, executes each PR monitoring/fix/codex task with timeout, captures output, and verifies success via exit codes and logs.
/update-pluginsAudits plugin.json registrations against disk contents to detect missing or stale skills, commands, agents, hooks. Runs validation, modernization audits, and quality reviews; supports dry-run and auto-fix.
Share bugs, ideas, or general feedback.
Repair scheduled scripts (cron jobs) when the plugin directory location changes. This command:
Define paths:
~/.claude/research-system-config/plugin (stable, never changes)${CLAUDE_PLUGIN_ROOT} (actual plugin location, may change)Check config directory:
test -d ~/.claude/research-system-config && echo "EXISTS" || echo "NOT_FOUND"mkdir -p ~/.claude/research-system-configCheck if symlink exists:
ls -la ~/.claude/research-system-config/plugin 2>/dev/null || echo "NOT_FOUND"Handle existing path:
Create/update symlink:
ln -sfn "${CLAUDE_PLUGIN_ROOT}" ~/.claude/research-system-config/pluginls -la ~/.claude/research-system-config/pluginGet current crontab:
crontab -l 2>/dev/null || echo "NO_CRONTAB"Identify research-system related entries:
fetch_papers.pymonitor_sources.pyresearch-systemCheck for hardcoded paths:
~/.claude/research-system-config/plugin/ but references research-system scripts~/.claude/plugins/cache/research-system/~/.claude/plugins/research-system//research-system/scripts/~/.claude/research-system/ (if we used that previously)For each hardcoded path found:
~/.claude/research-system-config/plugin/0 6 * * * cd ~/.claude/plugins/cache/research-system/scripts/automation && python3 fetch_papers.py0 6 * * * cd ~/.claude/research-system-config/plugin/scripts/automation && python3 fetch_papers.pyCreate updated crontab:
Apply updated crontab:
echo "[new_crontab_content]" | crontab -crontab -l | grep research-systemProvide summary:
Fix Scheduled Scripts Complete
Symlink Status:
- ~/.claude/research-system-config/plugin -> [actual plugin path]
- Status: [Created/Updated/Already correct]
Crontab Updates:
- Entries scanned: [N]
- Entries updated: [N]
- [List each updated entry if any]
Scheduled Scripts:
- fetch_papers.py: [Found at HH:MM daily / Not scheduled]
- monitor_sources.py: [Found at HH:MM daily / Not scheduled]
All scheduled scripts are now using stable paths.
If no crontab exists:
Fix Scheduled Scripts Complete
Symlink Status:
- ~/.claude/research-system-config/plugin -> [actual plugin path]
- Status: Created
Crontab Updates:
- No crontab found. Run /setup-research-automation to configure scheduled scripts.
Run this command when:
~/.research-data/*.log shows "file not found" errors for Python scripts