create-claude-rails 0.3.0 → 0.3.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/lib/cli.js +11 -4
- package/package.json +1 -1
package/lib/cli.js
CHANGED
|
@@ -384,10 +384,17 @@ async function run() {
|
|
|
384
384
|
|
|
385
385
|
const stat = fs.statSync(srcPath);
|
|
386
386
|
if (stat.isDirectory()) {
|
|
387
|
-
// For skill directories, skip phases/ — absent phase files
|
|
388
|
-
// skeleton defaults. Phase files are created by /onboard
|
|
389
|
-
// on the project interview, not copied as generic templates.
|
|
390
|
-
|
|
387
|
+
// For most skill directories, skip phases/ — absent phase files
|
|
388
|
+
// use skeleton defaults. Phase files are created by /onboard
|
|
389
|
+
// based on the project interview, not copied as generic templates.
|
|
390
|
+
// Exception: perspectives (always copied), and skills whose phase
|
|
391
|
+
// files ARE the instructions (onboard, seed, cor-upgrade, publish,
|
|
392
|
+
// extract) — these need their phases to function.
|
|
393
|
+
const alwaysCopyPhases = [
|
|
394
|
+
'skills/perspectives', 'skills/onboard', 'skills/seed',
|
|
395
|
+
'skills/cor-upgrade', 'skills/publish', 'skills/extract',
|
|
396
|
+
];
|
|
397
|
+
const isSkill = tmpl.startsWith('skills/') && !alwaysCopyPhases.some(p => tmpl.startsWith(p));
|
|
391
398
|
const results = await copyTemplates(srcPath, destPath, {
|
|
392
399
|
dryRun: flags.dryRun,
|
|
393
400
|
skipConflicts: flags.yes,
|