Skip to content

Conversation

@pybe
Copy link

@pybe pybe commented Jan 22, 2026

Summary

Fixes a path bug in the PAIUpgrade skill's Anthropic.ts tool that prevents it from running.

Fixes #468

Problem

The SKILL_DIR constant was pointing to .claude/skills/Upgrade instead of .claude/skills/PAIUpgrade, causing ENOENT errors when the tool tried to:

  • Load sources.json
  • Save state to last-check.json

Error Output

❌ Failed to load sources.json: ENOENT: no such file or directory, 
open '/home/user/.claude/skills/Upgrade/sources.json'

Solution

Updated line 82 in Releases/v2.3/.claude/skills/PAIUpgrade/Tools/Anthropic.ts:

// Before
const SKILL_DIR = join(HOME, '.claude', 'skills', 'Upgrade');

// After  
const SKILL_DIR = join(HOME, '.claude', 'skills', 'PAIUpgrade');

Testing

After this fix:

  • Tool successfully loads sources.json
  • Successfully monitors 30+ Anthropic sources
  • Generates comprehensive upgrade reports
  • Creates State directory and saves state files

Impact

  • Files changed: 1
  • Lines changed: 1
  • Breaking changes: None
  • Backward compatibility: Full

This is a critical bug fix for anyone trying to use the PAIUpgrade skill to monitor Anthropic ecosystem updates.

The Anthropic.ts tool was using an incorrect directory name 'Upgrade'
instead of 'PAIUpgrade', causing ENOENT errors when trying to load
sources.json and save state files.

This fix updates the SKILL_DIR constant to use the correct path that
matches the actual skill directory name.

Fixes:
- Failed to load sources.json (ENOENT)
- Failed to save state to last-check.json (ENOENT)
- Tool now runs successfully and monitors 30+ Anthropic sources
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] PAIUpgrade skill fails with ENOENT: incorrect SKILL_DIR path

1 participant