Skip to content

Conversation

@khali
Copy link

@khali khali commented Dec 29, 2025

Problem:
The Art skill's help command crashed with 'ReferenceError: PAI_DIR is not defined' when using template literals like ${PAI_DIR} without defining the variable.

Root Cause:
The help text used ${PAI_DIR} in template literals (lines 196-197) but the variable was never defined in the TypeScript code.

Solution:
Added const PAI_DIR definition that reads from process.env.PAI_DIR with a fallback to resolve(process.env.HOME!, '.claude').

Testing:

  • Verified --help now displays correctly with proper paths
  • Confirmed all image generation functionality still works
  • Tested with nano-banana-pro model successfully

Impact:

  • Fixes issue where users couldn't access built-in help documentation
  • No breaking changes to existing functionality
  • Works with both environment variable and fallback path

**Problem:**
The Art skill's help command crashed with 'ReferenceError: PAI_DIR is not defined'
when using template literals like ${PAI_DIR} without defining the variable.

**Root Cause:**
The help text used ${PAI_DIR} in template literals (lines 196-197) but the
variable was never defined in the TypeScript code.

**Solution:**
Added const PAI_DIR definition that reads from process.env.PAI_DIR with a
fallback to resolve(process.env.HOME!, '.claude').

**Testing:**
- Verified --help now displays correctly with proper paths
- Confirmed all image generation functionality still works
- Tested with nano-banana-pro model successfully

**Impact:**
- Fixes issue where users couldn't access built-in help documentation
- No breaking changes to existing functionality
- Works with both environment variable and fallback path
@danielmiessler
Copy link
Owner

We have migrated to version 2. Please check the new system.

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.

2 participants