@mallardbay/cursor-rules 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -50,23 +50,47 @@ copy_rules() {
50
50
 
51
51
  copy_skills() {
52
52
  local DIR="$1"
53
+ echo "DEBUG: Checking skills directory: $DIR"
53
54
  if [ -d "$DIR" ]; then
54
55
  echo "Copying skills from: $DIR"
55
56
  # Ensure target directories exist
56
57
  mkdir -p "$PROJECT_DIR/.cursor/skills" "$PROJECT_DIR/.claude/skills" "$PROJECT_DIR/.codex/skills"
57
58
  # Copy each skill directory to all three locations for cross-platform compatibility
59
+ local skill_count=0
58
60
  for skill_dir in "$DIR"/*; do
59
61
  if [ -d "$skill_dir" ] && [ -f "$skill_dir/SKILL.md" ]; then
60
62
  skill_name=$(basename "$skill_dir")
61
63
  echo " - Copying skill: $skill_name"
64
+ skill_count=$((skill_count + 1))
62
65
  # Copy to Cursor, Claude, and Codex skill directories
63
- cp -r "$skill_dir" "$PROJECT_DIR/.cursor/skills/" && echo " ✓ Copied to .cursor/skills/"
64
- cp -r "$skill_dir" "$PROJECT_DIR/.claude/skills/" && echo " ✓ Copied to .claude/skills/"
65
- cp -r "$skill_dir" "$PROJECT_DIR/.codex/skills/" && echo " ✓ Copied to .codex/skills/"
66
+ if cp -r "$skill_dir" "$PROJECT_DIR/.cursor/skills/"; then
67
+ echo " ✓ Copied to .cursor/skills/"
68
+ else
69
+ echo " ✗ Failed to copy to .cursor/skills/"
70
+ fi
71
+ if cp -r "$skill_dir" "$PROJECT_DIR/.claude/skills/"; then
72
+ echo " ✓ Copied to .claude/skills/"
73
+ else
74
+ echo " ✗ Failed to copy to .claude/skills/"
75
+ fi
76
+ if cp -r "$skill_dir" "$PROJECT_DIR/.codex/skills/"; then
77
+ echo " ✓ Copied to .codex/skills/"
78
+ else
79
+ echo " ✗ Failed to copy to .codex/skills/"
80
+ fi
81
+ else
82
+ echo " - Skipping (not a valid skill): $(basename "$skill_dir")"
66
83
  fi
67
84
  done
85
+ if [ $skill_count -eq 0 ]; then
86
+ echo " Warning: No skills found in $DIR"
87
+ echo " Contents of $DIR:"
88
+ ls -la "$DIR" || echo " (directory listing failed)"
89
+ fi
68
90
  else
69
91
  echo "Warning: Skills directory not found: $DIR"
92
+ echo "DEBUG: SRC_DIR=$SRC_DIR"
93
+ echo "DEBUG: SHARED_SKILLS_DIR=$SHARED_SKILLS_DIR"
70
94
  fi
71
95
  }
72
96
 
@@ -98,6 +122,8 @@ copy_rules "$SHARED_DIR"
98
122
  append_to_claude_md "$SHARED_DIR"
99
123
 
100
124
  # Always include shared skills
125
+ echo "DEBUG: SRC_DIR=$SRC_DIR"
126
+ echo "DEBUG: SHARED_SKILLS_DIR=$SHARED_SKILLS_DIR"
101
127
  copy_skills "$SHARED_SKILLS_DIR"
102
128
 
103
129
  # Inheritance handling
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mallardbay/cursor-rules",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "Mallard Bay shared cursor rules",
5
5
  "main": "bin/setup-cursor.sh",
6
6
  "repository": "git@github.com:mallardbay/cursor-rules.git",