@ruyfranca/myskills 1.0.26 → 1.0.28
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/README.md +41 -20
- package/index.js +53 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# mySkills
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Biblioteca de skills, agents e workflows especializados para o **Antigravity**.
|
|
4
|
+
|
|
5
|
+
## ⚡ Quick Start
|
|
6
|
+
|
|
7
|
+
> Execute esses dois comandos em qualquer projeto para ativar o kit completo:
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx @ruyfranca/myskills init && npx @ruyfranca/myskills install-global
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
- `init` → instala a pasta `.agent/` (skills, agents, workflows) no projeto atual
|
|
14
|
+
- `install-global` → instala os workflows em `~/.gemini/antigravity/global_workflows/` para o menu `/` do Antigravity
|
|
15
|
+
|
|
16
|
+
> **Após rodar, feche e reabra o Antigravity.** Os comandos `/brainstorm`, `/debug`, `/plan` e todos os outros estarão disponíveis.
|
|
17
|
+
|
|
18
|
+
---
|
|
4
19
|
|
|
5
20
|
## 🚀 Skills Disponíveis
|
|
6
21
|
|
|
@@ -301,42 +316,48 @@ Toolkit para sistemas de design e consistência visual:
|
|
|
301
316
|
|
|
302
317
|
## 📦 Instalação e Uso via NPX
|
|
303
318
|
|
|
304
|
-
Esta biblioteca
|
|
319
|
+
Esta biblioteca pode ser usada em qualquer projeto sem clonar o repositório.
|
|
305
320
|
|
|
306
|
-
###
|
|
321
|
+
### 🏁 Primeiros Passos (Recomendado)
|
|
307
322
|
|
|
308
323
|
```bash
|
|
309
|
-
#
|
|
324
|
+
# Instala o kit completo + ativa o menu / no Antigravity
|
|
325
|
+
npx @ruyfranca/myskills init && npx @ruyfranca/myskills install-global
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
Após executar, **feche e reabra o Antigravity**. Os slash commands (`/brainstorm`, `/debug`, `/plan`, etc.) estarão disponíveis em qualquer projeto.
|
|
329
|
+
|
|
330
|
+
### Todos os Comandos
|
|
331
|
+
|
|
332
|
+
```bash
|
|
333
|
+
# Listar skills disponíveis
|
|
310
334
|
npx @ruyfranca/myskills list
|
|
311
335
|
|
|
312
|
-
#
|
|
336
|
+
# Listar agents disponíveis
|
|
313
337
|
npx @ruyfranca/myskills list-agents
|
|
314
338
|
|
|
315
|
-
#
|
|
316
|
-
# (Instala a pasta .agent completa com skills, agents e workflows)
|
|
339
|
+
# Inicializar kit completo no projeto atual (.agent/ com skills, agents, workflows)
|
|
317
340
|
npx @ruyfranca/myskills init
|
|
318
341
|
|
|
319
|
-
#
|
|
342
|
+
# 🌐 Ativar o menu / do Antigravity com todos os workflows (roda uma vez por máquina)
|
|
343
|
+
npx @ruyfranca/myskills install-global
|
|
344
|
+
|
|
345
|
+
# Instalar uma skill individual
|
|
320
346
|
npx @ruyfranca/myskills add <nome-da-skill>
|
|
321
347
|
|
|
322
|
-
#
|
|
348
|
+
# Instalar um agent individual
|
|
323
349
|
npx @ruyfranca/myskills add <nome-do-agent> --agent
|
|
324
350
|
|
|
325
|
-
#
|
|
351
|
+
# Instalar todas as 40+ skills
|
|
326
352
|
npx @ruyfranca/myskills add --all
|
|
327
353
|
|
|
328
|
-
#
|
|
354
|
+
# Atualizar o kit no projeto atual (skills + agents + workflows + global_workflows)
|
|
329
355
|
npx @ruyfranca/myskills update
|
|
330
356
|
|
|
331
|
-
#
|
|
332
|
-
npx @ruyfranca/myskills update --skills
|
|
333
|
-
npx @ruyfranca/myskills update --agents
|
|
334
|
-
npx @ruyfranca/myskills update --workflows
|
|
335
|
-
|
|
336
|
-
# Exemplo prático:
|
|
337
|
-
npx @ruyfranca/myskills init
|
|
338
|
-
npx @ruyfranca/myskills add frontend-developer --agent
|
|
339
|
-
npx @ruyfranca/myskills update # mantém o projeto atualizado
|
|
357
|
+
# Atualizar apenas um componente específico:
|
|
358
|
+
npx @ruyfranca/myskills update --skills
|
|
359
|
+
npx @ruyfranca/myskills update --agents
|
|
360
|
+
npx @ruyfranca/myskills update --workflows
|
|
340
361
|
```
|
|
341
362
|
|
|
342
363
|
---
|
package/index.js
CHANGED
|
@@ -257,10 +257,62 @@ program
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
+
// Instalar workflows globalmente para aparecerem no / do Antigravity
|
|
261
|
+
if (updateAll || options.workflows) {
|
|
262
|
+
const homeDir = process.env.HOME || process.env.USERPROFILE || '';
|
|
263
|
+
const globalWorkflowsDir = path.join(homeDir, '.gemini', 'antigravity', 'global_workflows');
|
|
264
|
+
const workflowsSrc = path.join(srcRoot, '.agent', 'workflows');
|
|
265
|
+
|
|
266
|
+
if (await fs.pathExists(workflowsSrc)) {
|
|
267
|
+
try {
|
|
268
|
+
await fs.ensureDir(globalWorkflowsDir);
|
|
269
|
+
const files = await fs.readdir(workflowsSrc);
|
|
270
|
+
let copied = 0;
|
|
271
|
+
for (const file of files) {
|
|
272
|
+
if (file.endsWith('.md')) {
|
|
273
|
+
await fs.copy(path.join(workflowsSrc, file), path.join(globalWorkflowsDir, file), { overwrite: true });
|
|
274
|
+
copied++;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
console.log(chalk.green(` ✅ global_workflows: ${copied} workflow(s) instalados em ~/.gemini/antigravity/global_workflows/`));
|
|
278
|
+
} catch (err) {
|
|
279
|
+
console.log(chalk.yellow(` ⚠️ global_workflows: ${err.message}`));
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
260
284
|
console.log(chalk.cyan.bold('\n✨ Atualização concluída!\n'));
|
|
261
|
-
console.log(chalk.gray('💡 Dica: reinicie o Antigravity para
|
|
285
|
+
console.log(chalk.gray('💡 Dica: reinicie o Antigravity para que o / exiba os workflows.\n'));
|
|
286
|
+
});
|
|
287
|
+
|
|
288
|
+
program
|
|
289
|
+
.command('install-global')
|
|
290
|
+
.description('Instala os workflows globalmente para aparecerem no / em qualquer projeto do Antigravity')
|
|
291
|
+
.action(async () => {
|
|
292
|
+
const homeDir = process.env.HOME || process.env.USERPROFILE || '';
|
|
293
|
+
const globalWorkflowsDir = path.join(homeDir, '.gemini', 'antigravity', 'global_workflows');
|
|
294
|
+
const workflowsSrc = path.join(__dirname, '.agent', 'workflows');
|
|
295
|
+
|
|
296
|
+
console.log(chalk.cyan('\n🌐 Instalando workflows globalmente...\n'));
|
|
297
|
+
|
|
298
|
+
try {
|
|
299
|
+
await fs.ensureDir(globalWorkflowsDir);
|
|
300
|
+
const files = await fs.readdir(workflowsSrc);
|
|
301
|
+
let copied = 0;
|
|
302
|
+
for (const file of files) {
|
|
303
|
+
if (file.endsWith('.md')) {
|
|
304
|
+
await fs.copy(path.join(workflowsSrc, file), path.join(globalWorkflowsDir, file), { overwrite: true });
|
|
305
|
+
copied++;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
console.log(chalk.green(` ✅ ${copied} workflows instalados em ${globalWorkflowsDir}`));
|
|
309
|
+
console.log(chalk.cyan.bold('\n✨ Feito! Reinicie o Antigravity e use / para ver os workflows.\n'));
|
|
310
|
+
} catch (err) {
|
|
311
|
+
console.error(chalk.red(` ❌ Erro: ${err.message}`));
|
|
312
|
+
}
|
|
262
313
|
});
|
|
263
314
|
|
|
264
315
|
|
|
316
|
+
|
|
265
317
|
program.parse();
|
|
266
318
|
|