/research-system:fix-scheduled-scriptsfrom research-system
Fixes broken scheduled scripts when plugin directory location changes by creating a stable symlink and replacing hardcoded paths in crontab entries.
Ships in research-system. Installing the plugin adds it to Claude Code.
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 scriptsWhat the command file sets; muted values are Claude Code's defaults
cron, symlink, crontab, plugin-path, scheduled-scripts, automation-fix
7-day visitors to each command page
13 commands in this plugin
/aboutAbout Research SystemShow plugin documentation and usage/check-logsCheck recent log entries from fetch_papers and monitor_sources scripts to diagnose issues/configure-topicsWalk through each research topic to set its arXiv categories, mode and Claude brief; splits a topic whose categories mix small and large volumes; converts a pre-0.4 keywords file to the new format/fetch-papersManually run the paper fetching script to retrieve new papers from arXiv and Google Scholar/filter-research-digestFilter research digests by business relevance using configurable filter criteria to remove irrelevant papers/generate-research-digestGenerate summaries for new research PDFs and create today's research digest file with links to papers and summariesresearch-system@teresa-torres-plugins is listed by ttorres33/teresa-torres-plugins — review the source before installing
npx claudepluginhub ttorres33/teresa-torres-plugins --plugin research-systemOther plugins' commands for the same job