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.
Files changed (2) hide show
  1. package/lib/cli.js +11 -4
  2. 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 use
388
- // skeleton defaults. Phase files are created by /onboard based
389
- // on the project interview, not copied as generic templates.
390
- const isSkill = tmpl.startsWith('skills/') && !tmpl.startsWith('skills/perspectives');
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-claude-rails",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Claude on Rails — opinionated process scaffolding for Claude Code projects",
5
5
  "bin": {
6
6
  "create-claude-rails": "bin/create-claude-rails.js"