@ruyfranca/myskills 1.0.28 → 1.0.30
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/.agent/rules/AGENTS.md +273 -0
- package/.agent/skills/cqrs-implementation/SKILL.md +107 -0
- package/.agent/skills/ddd-strategic-design/SKILL.md +70 -0
- package/.agent/skills/ddd-tactical-patterns/SKILL.md +70 -0
- package/.agent/skills/elixir-pro/SKILL.md +89 -0
- package/.agent/skills/event-sourcing-architect/SKILL.md +66 -0
- package/.agent/skills/golang-pro/SKILL.md +121 -0
- package/.agent/skills/kotlin-coroutines-expert/SKILL.md +99 -0
- package/.agent/skills/modern-javascript-patterns/SKILL.md +131 -0
- package/.agent/skills/monorepo-architect/SKILL.md +91 -0
- package/.agent/skills/nextjs-react-expert/SKILL.md +94 -247
- package/.agent/skills/react-patterns/SKILL.md +200 -0
- package/.agent/skills/react-state-management/SKILL.md +147 -0
- package/.agent/skills/ruby-pro/SKILL.md +105 -0
- package/.agent/skills/zod-validation-expert/SKILL.md +132 -0
- package/AGENTS.md +273 -0
- package/index.js +42 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -54,18 +54,33 @@ program
|
|
|
54
54
|
.command('init')
|
|
55
55
|
.description('Inicializa o Antigravity no projeto atual (instala todas as skills, agents, workflows, rules e scripts)')
|
|
56
56
|
.action(async () => {
|
|
57
|
-
const
|
|
58
|
-
const
|
|
57
|
+
const destRoot = process.cwd();
|
|
58
|
+
const sourceAgentDir = path.join(__dirname, '.agent');
|
|
59
|
+
const destAgentDir = path.join(destRoot, '.agent');
|
|
59
60
|
|
|
60
61
|
console.log(chalk.cyan('\n🚀 Inicializando kit completo do Antigravity...\n'));
|
|
61
62
|
|
|
62
63
|
try {
|
|
63
|
-
|
|
64
|
-
await fs.
|
|
65
|
-
|
|
66
|
-
console.log(chalk.
|
|
64
|
+
// Copy .agent/ folder (skills, agents, workflows, rules, scripts)
|
|
65
|
+
await fs.ensureDir(destAgentDir);
|
|
66
|
+
await fs.copy(sourceAgentDir, destAgentDir);
|
|
67
|
+
console.log(chalk.green(' ✅ Pasta .agent instalada!'));
|
|
68
|
+
|
|
69
|
+
// Copy root rule files so Antigravity picks them up automatically
|
|
70
|
+
const rootRuleFiles = ['AGENTS.md', 'GEMINI.md'];
|
|
71
|
+
for (const ruleFile of rootRuleFiles) {
|
|
72
|
+
const src = path.join(__dirname, ruleFile);
|
|
73
|
+
const dest = path.join(destRoot, ruleFile);
|
|
74
|
+
if (await fs.pathExists(src)) {
|
|
75
|
+
await fs.copy(src, dest, { overwrite: true });
|
|
76
|
+
console.log(chalk.green(` ✅ ${ruleFile} instalado na raiz!`));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
console.log(chalk.green.bold('\n✅ Kit inicializado com sucesso!\n'));
|
|
81
|
+
console.log(chalk.gray('Inclui: skills, agents, workflows, rules, scripts e AGENTS.md na raiz.\n'));
|
|
67
82
|
} catch (err) {
|
|
68
|
-
console.error(chalk.red(`\n❌ Erro ao inicializar
|
|
83
|
+
console.error(chalk.red(`\n❌ Erro ao inicializar: ${err.message}\n`));
|
|
69
84
|
}
|
|
70
85
|
});
|
|
71
86
|
|
|
@@ -169,12 +184,13 @@ program
|
|
|
169
184
|
|
|
170
185
|
program
|
|
171
186
|
.command('update')
|
|
172
|
-
.description('Atualiza skills, agents e
|
|
187
|
+
.description('Atualiza skills, agents, workflows e rules do projeto atual com a versão mais recente do kit')
|
|
173
188
|
.option('-s, --skills', 'Atualiza apenas as skills')
|
|
174
189
|
.option('-a, --agents', 'Atualiza apenas os agents')
|
|
175
190
|
.option('-w, --workflows', 'Atualiza apenas os workflows')
|
|
191
|
+
.option('-r, --rules', 'Atualiza apenas os arquivos de rules (AGENTS.md, GEMINI.md)')
|
|
176
192
|
.action(async (options) => {
|
|
177
|
-
const updateAll = !options.skills && !options.agents && !options.workflows;
|
|
193
|
+
const updateAll = !options.skills && !options.agents && !options.workflows && !options.rules;
|
|
178
194
|
const destRoot = process.cwd();
|
|
179
195
|
const srcRoot = __dirname;
|
|
180
196
|
|
|
@@ -257,6 +273,23 @@ program
|
|
|
257
273
|
}
|
|
258
274
|
}
|
|
259
275
|
|
|
276
|
+
// Update root rule files (AGENTS.md, GEMINI.md)
|
|
277
|
+
if (updateAll || options.rules) {
|
|
278
|
+
const rootRuleFiles = ['AGENTS.md', 'GEMINI.md'];
|
|
279
|
+
for (const ruleFile of rootRuleFiles) {
|
|
280
|
+
const src = path.join(srcRoot, ruleFile);
|
|
281
|
+
const dest = path.join(destRoot, ruleFile);
|
|
282
|
+
if (await fs.pathExists(src)) {
|
|
283
|
+
try {
|
|
284
|
+
await fs.copy(src, dest, { overwrite: true });
|
|
285
|
+
console.log(chalk.green(` ✅ ${ruleFile}: atualizado na raiz`));
|
|
286
|
+
} catch (err) {
|
|
287
|
+
console.error(chalk.red(` ❌ ${ruleFile}: ${err.message}`));
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
260
293
|
// Instalar workflows globalmente para aparecerem no / do Antigravity
|
|
261
294
|
if (updateAll || options.workflows) {
|
|
262
295
|
const homeDir = process.env.HOME || process.env.USERPROFILE || '';
|