@justinnadz/skill 1.0.2 → 1.0.4
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/index.js +5 -4
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
const fs = require('fs');
|
|
3
3
|
const path = require('path');
|
|
4
4
|
|
|
5
|
+
console.log(`📁 Current working directory: ${process.cwd()}`);
|
|
6
|
+
|
|
5
7
|
const projectRoot = process.cwd();
|
|
6
8
|
const agentsFolder = path.join(projectRoot, 'agents');
|
|
7
9
|
const tasksFolder = path.join(agentsFolder, 'tasks');
|
|
@@ -63,7 +65,6 @@ const workflowContent = `# Workflow Orchestration
|
|
|
63
65
|
|
|
64
66
|
const readmeFile = path.join(agentsFolder, 'README.md');
|
|
65
67
|
|
|
66
|
-
// Helper to create folder if not exists
|
|
67
68
|
function ensureFolder(folder) {
|
|
68
69
|
if (!fs.existsSync(folder)) {
|
|
69
70
|
fs.mkdirSync(folder, { recursive: true });
|
|
@@ -71,12 +72,12 @@ function ensureFolder(folder) {
|
|
|
71
72
|
}
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
// Create
|
|
75
|
+
// Create folders
|
|
75
76
|
ensureFolder(agentsFolder);
|
|
76
77
|
ensureFolder(tasksFolder);
|
|
77
78
|
ensureFolder(lessonsFolder);
|
|
78
79
|
|
|
79
|
-
// Create README.md
|
|
80
|
+
// Create README.md
|
|
80
81
|
if (!fs.existsSync(readmeFile)) {
|
|
81
82
|
fs.writeFileSync(readmeFile, workflowContent, 'utf-8');
|
|
82
83
|
console.log('✅ Created README.md with workflow content');
|