@ruyfranca/myskills 1.0.11 → 1.0.13

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 (3) hide show
  1. package/README.md +3 -0
  2. package/index.js +22 -1
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -239,6 +239,9 @@ npx @ruyfranca/myskills list
239
239
  # (Cria automaticamente a pasta .claude/skills/nome-da-skill/)
240
240
  npx @ruyfranca/myskills add <nome-da-skill>
241
241
 
242
+ # 3. Instalar TODAS as 40+ skills de uma vez
243
+ npx @ruyfranca/myskills add --all
244
+
242
245
  # Exemplo prático:
243
246
  npx @ruyfranca/myskills add pptx
244
247
  ```
package/index.js CHANGED
@@ -35,11 +35,32 @@ program
35
35
  .command('add')
36
36
  .description('Adiciona uma skill ao projeto atual')
37
37
  .argument('[skill]', 'Nome da skill para adicionar')
38
- .action(async (skillName) => {
38
+ .option('-a, --all', 'Adiciona todas as skills disponíveis')
39
+ .action(async (skillName, options) => {
39
40
  const skills = (await fs.readdir(SKILLS_DIR)).filter(s =>
40
41
  fs.statSync(path.join(SKILLS_DIR, s)).isDirectory()
41
42
  );
42
43
 
44
+ if (options.all) {
45
+ console.log(chalk.cyan(`\n📦 Instalando todas as ${skills.length} skills...\n`));
46
+
47
+ for (const s of skills) {
48
+ const sourceDir = path.join(SKILLS_DIR, s);
49
+ const destDir = path.join(process.cwd(), '.claude', 'skills', s);
50
+
51
+ try {
52
+ await fs.ensureDir(path.dirname(destDir));
53
+ await fs.copy(sourceDir, destDir);
54
+ console.log(` - ${chalk.green(s)}: ${chalk.gray('OK')}`);
55
+ } catch (err) {
56
+ console.error(chalk.red(` - ${s}: Erro - ${err.message}`));
57
+ }
58
+ }
59
+
60
+ console.log(chalk.green.bold('\n✅ Todas as skills foram instaladas com sucesso!\n'));
61
+ return;
62
+ }
63
+
43
64
  if (!skillName) {
44
65
  const answers = await inquirer.prompt([
45
66
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ruyfranca/myskills",
3
- "version": "1.0.11",
3
+ "version": "1.0.13",
4
4
  "description": "Biblioteca de skills customizadas para Antigravity / Claude Code",
5
5
  "main": "index.js",
6
6
  "bin": {