@patricio0312rev/skillset 0.1.0 → 0.1.1

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patricio0312rev/skillset",
3
3
  "displayName": "Skillset",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "CLI tool to import production-ready development skills for Claude Code, Cursor, GitHub Copilot, and other AI coding assistants",
6
6
  "main": "src/index.js",
7
7
  "bin": {
@@ -123,7 +123,9 @@ async function generateSkillFile(domain, skill, domainDir, config) {
123
123
  await fs.ensureDir(targetSkillDir);
124
124
 
125
125
  // Check if template exists
126
- if (await fs.pathExists(sourceFile)) {
126
+ const templateExists = await fs.pathExists(sourceFile);
127
+
128
+ if (templateExists) {
127
129
  let content = await fs.readFile(sourceFile, "utf8");
128
130
 
129
131
  // Process content based on tool (e.g., rename SKILL.md to RULE.md for Cursor)
@@ -150,11 +152,22 @@ async function generateSkillFile(domain, skill, domainDir, config) {
150
152
 
151
153
  return targetFile;
152
154
  } else {
153
- console.warn(`Warning: Template not found for ${domain}/${skill}`);
154
- return null;
155
+ console.warn(`⚠️ Warning: Template not found for ${domain}/${skill}`);
156
+ console.warn(` Expected at: ${sourceFile}`);
157
+ console.warn(` Creating placeholder skill file...`);
158
+
159
+ // Create a basic placeholder so the folder isn't empty
160
+ const placeholderContent = `# ${skill}\n\nThis skill template is not yet available.\n\nDomain: ${domain}`;
161
+ await fs.writeFile(targetFile, placeholderContent);
162
+ console.log(` ✓ Created placeholder file: ${targetFile}`);
163
+
164
+ return targetFile;
155
165
  }
156
166
  } catch (error) {
157
- console.error(`Error generating skill ${skill}:`, error.message);
167
+ console.error(`❌ Error generating skill ${skill}:`, error.message);
168
+ console.error(` Source: ${sourceFile}`);
169
+ console.error(` Target: ${targetFile}`);
170
+ console.error(` Full error:`, error);
158
171
  return null;
159
172
  }
160
173
  }