skiller 0.9.1 → 0.9.2
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/dist/cli/commands.js +42 -35
- package/package.json +1 -1
package/dist/cli/commands.js
CHANGED
|
@@ -16,6 +16,42 @@ function skillsArgsBuilder(y) {
|
|
|
16
16
|
description: 'Arguments passed through to the local skills CLI',
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
|
+
function migrateClaudePluginsArgsBuilder(y) {
|
|
20
|
+
return y
|
|
21
|
+
.option('project-root', {
|
|
22
|
+
type: 'string',
|
|
23
|
+
description: 'Project root directory',
|
|
24
|
+
default: process.cwd(),
|
|
25
|
+
})
|
|
26
|
+
.option('execute', {
|
|
27
|
+
type: 'boolean',
|
|
28
|
+
description: 'Actually install the resolved repos through the local skills CLI',
|
|
29
|
+
default: false,
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
function migrateRulesToSkillsArgsBuilder(y) {
|
|
33
|
+
return y
|
|
34
|
+
.option('project-root', {
|
|
35
|
+
type: 'string',
|
|
36
|
+
description: 'Project root directory',
|
|
37
|
+
default: process.cwd(),
|
|
38
|
+
})
|
|
39
|
+
.option('execute', {
|
|
40
|
+
type: 'boolean',
|
|
41
|
+
description: 'Actually replace selected local rules after detection',
|
|
42
|
+
default: false,
|
|
43
|
+
})
|
|
44
|
+
.option('yes', {
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
description: 'Auto-replace only unambiguous exact matches without prompting',
|
|
47
|
+
default: false,
|
|
48
|
+
})
|
|
49
|
+
.positional('rules', {
|
|
50
|
+
type: 'string',
|
|
51
|
+
array: true,
|
|
52
|
+
description: 'Specific rule names or .mdc files to check (default: all .agents/rules/*.mdc)',
|
|
53
|
+
});
|
|
54
|
+
}
|
|
19
55
|
/**
|
|
20
56
|
* Sets up and parses CLI commands.
|
|
21
57
|
*/
|
|
@@ -110,42 +146,13 @@ async function run() {
|
|
|
110
146
|
default: false,
|
|
111
147
|
});
|
|
112
148
|
}, handlers_1.initHandler)
|
|
113
|
-
.command('migrate
|
|
114
|
-
return y
|
|
115
|
-
.option('project-root', {
|
|
116
|
-
type: 'string',
|
|
117
|
-
description: 'Project root directory',
|
|
118
|
-
default: process.cwd(),
|
|
119
|
-
})
|
|
120
|
-
.option('execute', {
|
|
121
|
-
type: 'boolean',
|
|
122
|
-
description: 'Actually install the resolved repos through the local skills CLI',
|
|
123
|
-
default: false,
|
|
124
|
-
});
|
|
125
|
-
}, handlers_1.migrateClaudePluginsHandler)
|
|
126
|
-
.command('migrate rules-to-skills [rules..]', 'Detect local .agents/rules .mdc files that already exist on skills.sh and optionally replace them', (y) => {
|
|
149
|
+
.command('migrate', 'Migration utilities', (y) => {
|
|
127
150
|
return y
|
|
128
|
-
.
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
.option('execute', {
|
|
134
|
-
type: 'boolean',
|
|
135
|
-
description: 'Actually replace selected local rules after detection',
|
|
136
|
-
default: false,
|
|
137
|
-
})
|
|
138
|
-
.option('yes', {
|
|
139
|
-
type: 'boolean',
|
|
140
|
-
description: 'Auto-replace only unambiguous exact matches without prompting',
|
|
141
|
-
default: false,
|
|
142
|
-
})
|
|
143
|
-
.positional('rules', {
|
|
144
|
-
type: 'string',
|
|
145
|
-
array: true,
|
|
146
|
-
description: 'Specific rule names or .mdc files to check (default: all .agents/rules/*.mdc)',
|
|
147
|
-
});
|
|
148
|
-
}, handlers_1.migrateRulesToSkillsHandler)
|
|
151
|
+
.command('claude-plugins', 'Plan or execute a one-shot migration from legacy Claude plugins to skills installs', migrateClaudePluginsArgsBuilder, handlers_1.migrateClaudePluginsHandler)
|
|
152
|
+
.command('rules-to-skills [rules..]', 'Detect local .agents/rules .mdc files that already exist on skills.sh and optionally replace them', migrateRulesToSkillsArgsBuilder, handlers_1.migrateRulesToSkillsHandler)
|
|
153
|
+
.demandCommand(1, 'You need to specify a migrate subcommand')
|
|
154
|
+
.strict();
|
|
155
|
+
}, () => undefined)
|
|
149
156
|
.command('revert', 'Revert skiller configurations from supported AI agents', (y) => {
|
|
150
157
|
return y
|
|
151
158
|
.option('project-root', {
|