orchestr8 2.2.1 → 2.3.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/init.js +17 -10
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "orchestr8",
3
- "version": "2.2.1",
3
+ "version": "2.3.0",
4
4
  "description": "Multi-agent workflow framework for automated feature development",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/init.js CHANGED
@@ -1,6 +1,7 @@
1
1
  const fs = require('fs');
2
2
  const path = require('path');
3
3
  const readline = require('readline');
4
+ const { addSkills } = require('./skills');
4
5
 
5
6
  const PACKAGE_ROOT = path.resolve(__dirname, '..');
6
7
  const TARGET_DIR = process.cwd();
@@ -63,7 +64,8 @@ async function init() {
63
64
  const businessContextSrc = path.join(PACKAGE_ROOT, '.business_context');
64
65
  const businessContextDest = path.join(TARGET_DIR, '.business_context');
65
66
  const skillSrc = path.join(PACKAGE_ROOT, 'SKILL.md');
66
- const skillDest = path.join(TARGET_DIR, 'SKILL.md');
67
+ const claudeCommandsDir = path.join(TARGET_DIR, '.claude', 'commands');
68
+ const skillCommandDest = path.join(claudeCommandsDir, 'implement-feature.md');
67
69
 
68
70
  // Check if .blueprint already exists
69
71
  if (fs.existsSync(blueprintDest)) {
@@ -75,18 +77,19 @@ async function init() {
75
77
  fs.rmSync(blueprintDest, { recursive: true });
76
78
  }
77
79
 
78
- // Check if SKILL.md already exists
79
- if (fs.existsSync(skillDest)) {
80
- const answer = await prompt('SKILL.md already exists. Overwrite? (y/N): ');
80
+ // Copy skill to .claude/commands/ for Claude Code discovery
81
+ fs.mkdirSync(claudeCommandsDir, { recursive: true });
82
+ if (fs.existsSync(skillCommandDest)) {
83
+ const answer = await prompt('.claude/commands/implement-feature.md already exists. Overwrite? (y/N): ');
81
84
  if (answer !== 'y' && answer !== 'yes') {
82
- console.log('Skipping SKILL.md');
85
+ console.log('Skipping skill command');
83
86
  } else {
84
- fs.copyFileSync(skillSrc, skillDest);
85
- console.log('Copied SKILL.md');
87
+ fs.copyFileSync(skillSrc, skillCommandDest);
88
+ console.log('Copied skill to .claude/commands/implement-feature.md');
86
89
  }
87
90
  } else {
88
- fs.copyFileSync(skillSrc, skillDest);
89
- console.log('Copied SKILL.md');
91
+ fs.copyFileSync(skillSrc, skillCommandDest);
92
+ console.log('Copied skill to .claude/commands/implement-feature.md');
90
93
  }
91
94
 
92
95
  // Copy .blueprint directory
@@ -106,8 +109,12 @@ async function init() {
106
109
  // Update .gitignore
107
110
  updateGitignore();
108
111
 
112
+ // Install agent skills
113
+ console.log('\nInstalling agent skills...');
114
+ await addSkills('all');
115
+
109
116
  console.log(`
110
- agent-workflow initialized successfully!
117
+ orchestr8 initialized successfully!
111
118
 
112
119
  Next steps:
113
120
  1. Add business context documents to .business_context/