claude-everything-workflow 0.2.12 → 0.2.14
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/AGENTS.md +1 -1
- package/README.md +1 -2
- package/README.zh-CN.md +1 -2
- package/docs/plugins.md +2 -3
- package/harness/manifest.json +36 -18
- package/package.json +1 -2
- package/rules/common/performance.md +3 -1
- package/scripts/cleanup-retired-skills.js +63 -19
- package/scripts/install-antigravity.js +230 -97
- package/scripts/install.ps1 +0 -1
- package/scripts/install.sh +0 -1
- package/scripts/retired-skill-files.json +38 -0
- package/scripts/verify/core.js +0 -1
- package/scripts/verify/install-rules.test.js +173 -23
- package/scripts/verify/metadata-checks.js +14 -9
- package/scripts/verify/skill-invocation.test.js +4 -0
- package/scripts/verify/skill-manifest-checks.js +1 -1
- package/scripts/verify/skill-manifest-checks.test.js +53 -0
- package/scripts/verify/workflow-checks.js +91 -1
- package/skills/feature-acceptance/SKILL.md +1 -1
- package/skills/spec-gate/SKILL.md +1 -1
- package/skills/using-superpowers/SKILL.md +1 -0
- package/agents/database-reviewer.md +0 -41
- package/agents/e2e-runner.md +0 -21
- package/agents/refactor-cleaner.md +0 -54
- package/agents/security-reviewer.md +0 -47
- package/references/agents/refactor-cleaner.md +0 -75
- package/references/agents/security-reviewer.md +0 -542
|
@@ -18,27 +18,8 @@ const {
|
|
|
18
18
|
const PLUGIN_NAME = "claude-everything-workflow";
|
|
19
19
|
const PLUGIN_SUBPATH = path.posix.join(".gemini/config/plugins", PLUGIN_NAME);
|
|
20
20
|
const PLUGIN_HOME_REF = `~/.gemini/config/plugins/${PLUGIN_NAME}`;
|
|
21
|
-
|
|
22
|
-
const
|
|
23
|
-
"read_file",
|
|
24
|
-
"edit_file",
|
|
25
|
-
"write_file",
|
|
26
|
-
"run_command",
|
|
27
|
-
"manage_task",
|
|
28
|
-
"search_web",
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
const TOOL_MAP = {
|
|
32
|
-
Read: ["read_file"],
|
|
33
|
-
Glob: ["read_file"],
|
|
34
|
-
Grep: ["read_file"],
|
|
35
|
-
Edit: ["edit_file"],
|
|
36
|
-
MultiEdit: ["edit_file"],
|
|
37
|
-
Write: ["write_file"],
|
|
38
|
-
Bash: ["run_command", "manage_task"],
|
|
39
|
-
WebSearch: ["search_web"],
|
|
40
|
-
WebFetch: ["search_web"],
|
|
41
|
-
};
|
|
21
|
+
const ANTIGRAVITY_SKIP_COMMAND_SKILLS = new Set(["to-spec"]);
|
|
22
|
+
const ANTIGRAVITY_RELOCATED_SKILL_OVERRIDES = new Set(["continuous-learning-v2"]);
|
|
42
23
|
|
|
43
24
|
function lstatIfExists(target) {
|
|
44
25
|
try {
|
|
@@ -168,30 +149,6 @@ function parseFrontmatter(text) {
|
|
|
168
149
|
return { data, body: match[2] };
|
|
169
150
|
}
|
|
170
151
|
|
|
171
|
-
function mapTools(rawTools, agentFile = "agent") {
|
|
172
|
-
if (rawTools === undefined) {
|
|
173
|
-
return [...DEFAULT_ANTIGRAVITY_TOOLS];
|
|
174
|
-
}
|
|
175
|
-
if (!Array.isArray(rawTools)) {
|
|
176
|
-
throw new Error(`agents/${agentFile} declares invalid tools field`);
|
|
177
|
-
}
|
|
178
|
-
const mapped = [];
|
|
179
|
-
const seen = new Set();
|
|
180
|
-
for (const tool of rawTools) {
|
|
181
|
-
const targets = TOOL_MAP[tool] || (DEFAULT_ANTIGRAVITY_TOOLS.includes(tool) ? [tool] : []);
|
|
182
|
-
for (const target of targets) {
|
|
183
|
-
if (!seen.has(target)) {
|
|
184
|
-
seen.add(target);
|
|
185
|
-
mapped.push(target);
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
if (mapped.length === 0) {
|
|
190
|
-
throw new Error(`agents/${agentFile} declares no supported Antigravity tools`);
|
|
191
|
-
}
|
|
192
|
-
return mapped;
|
|
193
|
-
}
|
|
194
|
-
|
|
195
152
|
function normalizeRepoUrl(repo) {
|
|
196
153
|
const raw = typeof repo === "string" ? repo : repo?.url;
|
|
197
154
|
if (typeof raw !== "string" || !raw.trim()) {
|
|
@@ -246,16 +203,52 @@ function buildHooksConfig() {
|
|
|
246
203
|
);
|
|
247
204
|
}
|
|
248
205
|
|
|
249
|
-
function
|
|
206
|
+
function escapeRegExp(value) {
|
|
207
|
+
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
function rewriteAntigravityReferences(
|
|
211
|
+
relative,
|
|
212
|
+
text,
|
|
213
|
+
relocatedSkillNames = [...ANTIGRAVITY_RELOCATED_SKILL_OVERRIDES, "implement"],
|
|
214
|
+
) {
|
|
250
215
|
let updated = text
|
|
251
|
-
.replace(
|
|
252
|
-
|
|
253
|
-
|
|
216
|
+
.replace(
|
|
217
|
+
/`commands\/(pr|verify|learn)\.md`/g,
|
|
218
|
+
(_, cmd) => `\`${PLUGIN_HOME_REF}/skills/${cmd}/SKILL.md\``,
|
|
219
|
+
)
|
|
220
|
+
.replace(
|
|
221
|
+
/`commands\/to-spec\.md`/g,
|
|
222
|
+
`\`${PLUGIN_HOME_REF}/skills/spec-gate/SKILL.md\``,
|
|
223
|
+
)
|
|
224
|
+
.replace(
|
|
225
|
+
/`commands\/code-review\.md`/g,
|
|
226
|
+
`\`${PLUGIN_HOME_REF}/skills/code-review/SKILL.md\``,
|
|
227
|
+
);
|
|
228
|
+
const relocatedAlternation = [...new Set(relocatedSkillNames)].map(escapeRegExp).join("|");
|
|
229
|
+
if (relocatedAlternation) {
|
|
230
|
+
const relocatedPattern = new RegExp(
|
|
231
|
+
`(?<![A-Za-z0-9_./-])skills\\/(${relocatedAlternation})\\/([A-Za-z0-9_/-]+(?:\\.[A-Za-z0-9_-]+)*)`,
|
|
232
|
+
"g",
|
|
233
|
+
);
|
|
234
|
+
updated = updated.replace(
|
|
235
|
+
relocatedPattern,
|
|
236
|
+
(_, skill, rest) => `${PLUGIN_HOME_REF}/references/skills/${skill}/${rest}`,
|
|
237
|
+
);
|
|
238
|
+
}
|
|
239
|
+
if (relative === "references/skills/continuous-learning-v2/SKILL.md") {
|
|
254
240
|
updated = updated.replace(/`commands\/`/g, `\`${PLUGIN_HOME_REF}/skills/learn/SKILL.md\``);
|
|
255
241
|
}
|
|
256
242
|
return updated;
|
|
257
243
|
}
|
|
258
244
|
|
|
245
|
+
function rewriteRelocatedSkillScript(text) {
|
|
246
|
+
return text.replace(
|
|
247
|
+
/require\(\s*(['"])(\.\.\/(?:(?:\.\.\/)+)scripts\/[^'"]+)\1\s*\)/g,
|
|
248
|
+
(_, quote, target) => `require(${quote}../${target}${quote})`,
|
|
249
|
+
);
|
|
250
|
+
}
|
|
251
|
+
|
|
259
252
|
function writeManagedFile({ pluginRoot, relative, content, mode, backupId, dryRun, log }) {
|
|
260
253
|
const target = checkedPath(pluginRoot, relative);
|
|
261
254
|
const next = Buffer.isBuffer(content) ? content : Buffer.from(content, "utf8");
|
|
@@ -298,13 +291,21 @@ function collectDirectoryFiles(sourceDir, relativePrefix = "") {
|
|
|
298
291
|
return entries;
|
|
299
292
|
}
|
|
300
293
|
|
|
301
|
-
function buildCommandSkills(
|
|
294
|
+
function buildCommandSkills(
|
|
295
|
+
sourceRoot,
|
|
296
|
+
skippedCommandSkills = ANTIGRAVITY_SKIP_COMMAND_SKILLS,
|
|
297
|
+
relocatedSkillNames = [...ANTIGRAVITY_RELOCATED_SKILL_OVERRIDES, "implement"],
|
|
298
|
+
) {
|
|
302
299
|
const commandsDir = path.join(sourceRoot, "commands");
|
|
303
300
|
if (!fs.existsSync(commandsDir)) return [];
|
|
304
301
|
const generated = [];
|
|
305
|
-
|
|
302
|
+
const entries = fs
|
|
303
|
+
.readdirSync(commandsDir, { withFileTypes: true })
|
|
304
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
305
|
+
for (const entry of entries) {
|
|
306
306
|
if (!entry.isFile() || !entry.name.endsWith(".md")) continue;
|
|
307
307
|
const cmdName = entry.name.slice(0, -3);
|
|
308
|
+
if (skippedCommandSkills.has(cmdName)) continue;
|
|
308
309
|
if (fs.existsSync(path.join(sourceRoot, "skills", cmdName, "SKILL.md"))) {
|
|
309
310
|
continue;
|
|
310
311
|
}
|
|
@@ -313,50 +314,150 @@ function buildCommandSkills(sourceRoot) {
|
|
|
313
314
|
if (!data || typeof data.description !== "string" || !data.description.trim()) {
|
|
314
315
|
throw new Error(`commands/${entry.name} missing frontmatter description`);
|
|
315
316
|
}
|
|
316
|
-
const
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
317
|
+
const relative = path.posix.join("skills", cmdName, "SKILL.md");
|
|
318
|
+
const updatedBody = rewriteAntigravityReferences(
|
|
319
|
+
relative,
|
|
320
|
+
body.replace(/\$ARGUMENTS/g, "用户本次请求的内容和参数").replace(/^\n+/, ""),
|
|
321
|
+
relocatedSkillNames,
|
|
322
|
+
);
|
|
323
|
+
const description = data.description.trim();
|
|
324
|
+
const content = `---\nname: ${cmdName}\ndescription: ${JSON.stringify(description)}\n---\n\n${updatedBody}`;
|
|
325
|
+
generated.push({ name: cmdName, description, relative, content });
|
|
321
326
|
}
|
|
322
327
|
return generated;
|
|
323
328
|
}
|
|
324
329
|
|
|
325
|
-
function
|
|
326
|
-
const
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
330
|
+
function resolveAntigravitySkillPlan(sourceRoot) {
|
|
331
|
+
const relocatedSkillNames = new Set(ANTIGRAVITY_RELOCATED_SKILL_OVERRIDES);
|
|
332
|
+
const manifestPath = path.join(sourceRoot, "harness/manifest.json");
|
|
333
|
+
if (fs.existsSync(manifestPath)) {
|
|
334
|
+
const manifest = JSON.parse(fs.readFileSync(manifestPath, "utf8"));
|
|
335
|
+
for (const skill of manifest.skills || []) {
|
|
336
|
+
if (skill?.invocation === "explicit-only" && skill?.name) {
|
|
337
|
+
relocatedSkillNames.add(skill.name);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
const skippedCommandSkills = new Set(ANTIGRAVITY_SKIP_COMMAND_SKILLS);
|
|
342
|
+
const exposedSkills = [];
|
|
343
|
+
const skillsDir = path.join(sourceRoot, "skills");
|
|
344
|
+
if (fs.existsSync(skillsDir)) {
|
|
345
|
+
const entries = fs
|
|
346
|
+
.readdirSync(skillsDir, { withFileTypes: true })
|
|
347
|
+
.sort((a, b) => a.name.localeCompare(b.name));
|
|
348
|
+
for (const entry of entries) {
|
|
349
|
+
if (!entry.isDirectory() || entry.name === "learn" || relocatedSkillNames.has(entry.name)) {
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
const skillFile = path.join(skillsDir, entry.name, "SKILL.md");
|
|
353
|
+
if (!fs.existsSync(skillFile)) continue;
|
|
354
|
+
const { data } = parseFrontmatter(fs.readFileSync(skillFile, "utf8"));
|
|
355
|
+
exposedSkills.push({
|
|
356
|
+
name: String(data?.name || entry.name).trim(),
|
|
357
|
+
description: String(data?.description || "").trim(),
|
|
358
|
+
source: "skill",
|
|
359
|
+
});
|
|
341
360
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
.
|
|
346
|
-
.
|
|
347
|
-
|
|
348
|
-
`name: ${data.name}`,
|
|
349
|
-
`description: ${JSON.stringify(data.description)}`,
|
|
350
|
-
"subagent: true",
|
|
351
|
-
"mainAgent: false",
|
|
352
|
-
`tools: [${tools.join(", ")}]`,
|
|
353
|
-
].join("\n");
|
|
354
|
-
generated.push({
|
|
355
|
-
relative: path.posix.join("agents", entry.name),
|
|
356
|
-
content: `---\n${frontmatter}\n---\n\n${updatedBody}`,
|
|
361
|
+
}
|
|
362
|
+
for (const cmdSkill of buildCommandSkills(sourceRoot, skippedCommandSkills, relocatedSkillNames)) {
|
|
363
|
+
exposedSkills.push({
|
|
364
|
+
name: cmdSkill.name,
|
|
365
|
+
description: cmdSkill.description,
|
|
366
|
+
source: "command",
|
|
357
367
|
});
|
|
358
368
|
}
|
|
359
|
-
return
|
|
369
|
+
return { relocatedSkillNames, skippedCommandSkills, exposedSkills };
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
function hasSymlinkParent(root, target) {
|
|
373
|
+
let cursor = path.dirname(target);
|
|
374
|
+
while (cursor.startsWith(`${root}${path.sep}`)) {
|
|
375
|
+
if (lstatIfExists(cursor)?.isSymbolicLink()) return true;
|
|
376
|
+
cursor = path.dirname(cursor);
|
|
377
|
+
}
|
|
378
|
+
return false;
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
function cleanupRelocatedAntigravitySkills({
|
|
382
|
+
pluginRoot,
|
|
383
|
+
sourceRoot,
|
|
384
|
+
relocatedSkillNames,
|
|
385
|
+
skippedCommandSkills,
|
|
386
|
+
dryRun,
|
|
387
|
+
log,
|
|
388
|
+
}) {
|
|
389
|
+
const skillsRoot = path.join(pluginRoot, "skills");
|
|
390
|
+
const skillsRootStat = lstatIfExists(skillsRoot);
|
|
391
|
+
if (!skillsRootStat) return;
|
|
392
|
+
if (skillsRootStat.isSymbolicLink() || !skillsRootStat.isDirectory()) {
|
|
393
|
+
log(`保留异常或符号链接 skills 目录: ${skillsRoot}`);
|
|
394
|
+
return;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
const cleanupTargets = [];
|
|
398
|
+
for (const name of relocatedSkillNames) {
|
|
399
|
+
const known = collectDirectoryFiles(path.join(sourceRoot, "skills", name)).map((item) => item.relPath);
|
|
400
|
+
cleanupTargets.push([name, known.length > 0 ? known : ["SKILL.md"]]);
|
|
401
|
+
}
|
|
402
|
+
for (const name of skippedCommandSkills) {
|
|
403
|
+
cleanupTargets.push([name, ["SKILL.md"]]);
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
for (const [skillName, knownFiles] of cleanupTargets) {
|
|
407
|
+
const skillRoot = path.join(skillsRoot, skillName);
|
|
408
|
+
const rootStat = lstatIfExists(skillRoot);
|
|
409
|
+
if (!rootStat) continue;
|
|
410
|
+
if (rootStat.isSymbolicLink()) {
|
|
411
|
+
log(`保留符号链接旧技能目录: ${skillRoot}`);
|
|
412
|
+
continue;
|
|
413
|
+
}
|
|
414
|
+
if (!rootStat.isDirectory()) continue;
|
|
415
|
+
|
|
416
|
+
const directories = new Set([skillRoot]);
|
|
417
|
+
for (const rel of knownFiles) {
|
|
418
|
+
const target = path.join(skillRoot, rel);
|
|
419
|
+
if (hasSymlinkParent(skillRoot, target)) {
|
|
420
|
+
log(`保留经过符号链接的旧技能文件: ${target}`);
|
|
421
|
+
continue;
|
|
422
|
+
}
|
|
423
|
+
let cursor = path.dirname(target);
|
|
424
|
+
while (cursor.startsWith(`${skillRoot}${path.sep}`)) {
|
|
425
|
+
directories.add(cursor);
|
|
426
|
+
cursor = path.dirname(cursor);
|
|
427
|
+
}
|
|
428
|
+
const stat = lstatIfExists(target);
|
|
429
|
+
if (!stat) continue;
|
|
430
|
+
if (stat.isSymbolicLink() || !stat.isFile()) {
|
|
431
|
+
log(`保留符号链接或非文件旧技能路径: ${target}`);
|
|
432
|
+
continue;
|
|
433
|
+
}
|
|
434
|
+
log(`${dryRun ? "[dry-run] " : ""}清理已迁移技能文件: ${target}`);
|
|
435
|
+
if (!dryRun) {
|
|
436
|
+
if (process.platform === "win32" && !(stat.mode & 0o200)) {
|
|
437
|
+
fs.chmodSync(target, stat.mode | 0o200);
|
|
438
|
+
}
|
|
439
|
+
fs.unlinkSync(target);
|
|
440
|
+
}
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
if (!dryRun) {
|
|
444
|
+
for (const dir of [...directories].sort((a, b) => b.length - a.length)) {
|
|
445
|
+
if (dir !== skillRoot && hasSymlinkParent(skillRoot, dir)) continue;
|
|
446
|
+
const dirStat = lstatIfExists(dir);
|
|
447
|
+
if (
|
|
448
|
+
dirStat &&
|
|
449
|
+
!dirStat.isSymbolicLink() &&
|
|
450
|
+
dirStat.isDirectory() &&
|
|
451
|
+
fs.readdirSync(dir).length === 0
|
|
452
|
+
) {
|
|
453
|
+
fs.rmdirSync(dir);
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
if (lstatIfExists(skillRoot)) {
|
|
457
|
+
log(`保留已迁移技能目录中的个人文件: ${skillRoot}`);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
360
461
|
}
|
|
361
462
|
|
|
362
463
|
function runRetiredSkillCleanup(sourceRoot, pluginRoot, dryRun, log) {
|
|
@@ -385,9 +486,15 @@ function installAntigravity({
|
|
|
385
486
|
const pluginRoot = assertNoSymlinkAncestors(homeDir);
|
|
386
487
|
log(`${dryRun ? "[dry-run] " : ""}Installing Antigravity plugin to ${pluginRoot}`);
|
|
387
488
|
|
|
489
|
+
const { relocatedSkillNames, skippedCommandSkills } = resolveAntigravitySkillPlan(sourceRoot);
|
|
388
490
|
const refFiles = collectDirectoryFiles(path.join(sourceRoot, "references"), "references");
|
|
389
491
|
const skillFiles = collectDirectoryFiles(path.join(sourceRoot, "skills"), "skills")
|
|
390
|
-
.filter((item) => item.relPath !== "skills/README.md")
|
|
492
|
+
.filter((item) => item.relPath !== "skills/README.md")
|
|
493
|
+
.map((item) => {
|
|
494
|
+
const skillName = item.relPath.split("/")[1];
|
|
495
|
+
if (!relocatedSkillNames.has(skillName)) return item;
|
|
496
|
+
return { ...item, relPath: path.posix.join("references", item.relPath) };
|
|
497
|
+
});
|
|
391
498
|
const learningFiles = collectDirectoryFiles(
|
|
392
499
|
path.join(sourceRoot, "scripts/learning"),
|
|
393
500
|
"scripts/learning",
|
|
@@ -400,8 +507,11 @@ function installAntigravity({
|
|
|
400
507
|
const srcPath = path.join(sourceRoot, relPath);
|
|
401
508
|
return { srcPath, relPath, mode: fs.statSync(srcPath).mode & 0o777 };
|
|
402
509
|
});
|
|
403
|
-
const commandSkills = buildCommandSkills(
|
|
404
|
-
|
|
510
|
+
const commandSkills = buildCommandSkills(
|
|
511
|
+
sourceRoot,
|
|
512
|
+
skippedCommandSkills,
|
|
513
|
+
relocatedSkillNames,
|
|
514
|
+
);
|
|
405
515
|
|
|
406
516
|
const managedPaths = [
|
|
407
517
|
BACKUP_ROOT_NAME,
|
|
@@ -414,7 +524,6 @@ function installAntigravity({
|
|
|
414
524
|
...learningFiles.map((item) => item.relPath),
|
|
415
525
|
...hookFiles.map((item) => item.relPath),
|
|
416
526
|
...commandSkills.map((item) => item.relative),
|
|
417
|
-
...agentFiles.map((item) => item.relative),
|
|
418
527
|
];
|
|
419
528
|
|
|
420
529
|
// Validate every target before the first write; checkedPath refuses symlinks.
|
|
@@ -460,10 +569,21 @@ function installAntigravity({
|
|
|
460
569
|
log,
|
|
461
570
|
});
|
|
462
571
|
|
|
572
|
+
const transformForHost = (relative, text) =>
|
|
573
|
+
rewriteAntigravityReferences(relative, text, relocatedSkillNames);
|
|
574
|
+
|
|
463
575
|
for (const item of [...refFiles, ...skillFiles, ...learningFiles, ...hookFiles]) {
|
|
464
576
|
let content = fs.readFileSync(item.srcPath);
|
|
465
|
-
if (
|
|
466
|
-
|
|
577
|
+
if (
|
|
578
|
+
(item.relPath.startsWith("skills/") || item.relPath.startsWith("references/skills/")) &&
|
|
579
|
+
item.relPath.endsWith(".md")
|
|
580
|
+
) {
|
|
581
|
+
content = transformForHost(item.relPath, content.toString("utf8"));
|
|
582
|
+
} else if (
|
|
583
|
+
item.relPath.startsWith("references/skills/") &&
|
|
584
|
+
/\.(?:c|m)?js$/.test(item.relPath)
|
|
585
|
+
) {
|
|
586
|
+
content = rewriteRelocatedSkillScript(content.toString("utf8"));
|
|
467
587
|
}
|
|
468
588
|
writeManagedFile({
|
|
469
589
|
pluginRoot,
|
|
@@ -474,7 +594,7 @@ function installAntigravity({
|
|
|
474
594
|
log,
|
|
475
595
|
});
|
|
476
596
|
}
|
|
477
|
-
for (const item of
|
|
597
|
+
for (const item of commandSkills) {
|
|
478
598
|
writeManagedFile({
|
|
479
599
|
pluginRoot,
|
|
480
600
|
relative: item.relative,
|
|
@@ -491,9 +611,17 @@ function installAntigravity({
|
|
|
491
611
|
backupId,
|
|
492
612
|
dryRun,
|
|
493
613
|
log,
|
|
494
|
-
transformContent:
|
|
614
|
+
transformContent: transformForHost,
|
|
495
615
|
});
|
|
496
616
|
|
|
617
|
+
cleanupRelocatedAntigravitySkills({
|
|
618
|
+
pluginRoot,
|
|
619
|
+
sourceRoot,
|
|
620
|
+
relocatedSkillNames,
|
|
621
|
+
skippedCommandSkills,
|
|
622
|
+
dryRun,
|
|
623
|
+
log,
|
|
624
|
+
});
|
|
497
625
|
runRetiredSkillCleanup(sourceRoot, pluginRoot, dryRun, log);
|
|
498
626
|
finalizeBackups({ installRoot: pluginRoot, dryRun, log });
|
|
499
627
|
|
|
@@ -505,7 +633,12 @@ function installAntigravity({
|
|
|
505
633
|
return pluginRoot;
|
|
506
634
|
}
|
|
507
635
|
|
|
508
|
-
module.exports = {
|
|
636
|
+
module.exports = {
|
|
637
|
+
PLUGIN_SUBPATH,
|
|
638
|
+
installAntigravity,
|
|
639
|
+
parseFrontmatter,
|
|
640
|
+
resolveAntigravitySkillPlan,
|
|
641
|
+
};
|
|
509
642
|
|
|
510
643
|
function parseCli(argv) {
|
|
511
644
|
let dryRun = false;
|
package/scripts/install.ps1
CHANGED
package/scripts/install.sh
CHANGED
|
@@ -10,6 +10,44 @@
|
|
|
10
10
|
"ec8b8873829b7dcd07b4bcac2ea9538b24b6417ce23b4a55da41646928a2bfd8",
|
|
11
11
|
"b83d828efde126a994efafc850cbb628999086383b5ceb8da207ab405680dcc9",
|
|
12
12
|
"63f8d6dfbd74b09548761d1e99d805850543769a664c9345293264862d062ebf"
|
|
13
|
+
],
|
|
14
|
+
"database-reviewer.md": [
|
|
15
|
+
"d5d642043654ade78b46a8045532b061e60abfff6b99fc68f8a5249a4e7f9760",
|
|
16
|
+
"5cb705296352174e8b47f8faff78db5fa42dd5e26ba3dc9a9127b08b766acc1b",
|
|
17
|
+
"590242b164f1ce0f0239472a08a2929b4e41e76f9e27cf02ff1d74818c2516a6",
|
|
18
|
+
"85ab06973161d8942f161157b4b90e92a017680bd733c26707e04baad11e0495"
|
|
19
|
+
],
|
|
20
|
+
"e2e-runner.md": [
|
|
21
|
+
"bb2cbb65f82bf341bb139b95ecf0e6f641647f46947b660481b7f136160c70f9",
|
|
22
|
+
"70b8eb356597cec3a58050af69b6e417a0297fb35e6e4d07e4031123d700fedf",
|
|
23
|
+
"ea1373d5fd2745a5f4d1588e8fc27a1b5a8f34d3934c6ef456e7af6fe8cdce1b",
|
|
24
|
+
"ed47fd8a1638238b4740ec6d9761d04eb517fa5663dabbe28e2df0849a9d5784",
|
|
25
|
+
"765e6dc9d704afe7664a0a61e3a86282ee594480d6919a3c06b2ea559187cbb6",
|
|
26
|
+
"0aab882777d4fbd1bf9a514ba440912b83a1cfc37d62297296ac322b9e896322",
|
|
27
|
+
"89813024c93cb28948656b066609eb42b4d024e96a8aeb5cbc320913c1e75123",
|
|
28
|
+
"025fa4fe21af385f6b43143c0d75708ebbd0e5b00d66dd530834b3071350a01a"
|
|
29
|
+
],
|
|
30
|
+
"refactor-cleaner.md": [
|
|
31
|
+
"86d77420df109c27875812637e3be0e8913d8e1969dbfd261b1d4fad7263c53b",
|
|
32
|
+
"e9b3d45345d16f1caf08642c5b1f40a5e1dced376b52310f086072d36e150075",
|
|
33
|
+
"2c90b7e0b41ac871c619e568f857487b79079638da005d14dab91892253efcc4"
|
|
34
|
+
],
|
|
35
|
+
"security-reviewer.md": [
|
|
36
|
+
"320e690a150ac98a9d5d52c998f025d8142f3227de3790e7abd8667e423ad37c",
|
|
37
|
+
"32cd0510aeb4d9d2e29d5d2ccf6a8bbcd801c33ef0642044df414ba17798b4de",
|
|
38
|
+
"c8d43f964eb647e9d316938525b28ca4758258dcf367655deb231deeb0833fc5"
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
"retired_reference_hashes": {
|
|
42
|
+
"agents/database-reviewer.md": [
|
|
43
|
+
"e4c77775c784a06633cee6ead625c3dddbf76f8f45254eb8e8f9211573c40972",
|
|
44
|
+
"c097dd5a3a31d4123a31288c2db2f0c089b70948e8a68b21aca209ec81bada61"
|
|
45
|
+
],
|
|
46
|
+
"agents/refactor-cleaner.md": [
|
|
47
|
+
"2c00d71fdccfe7f574cb62bf1387b990d5898d8f386e36467977861672043929"
|
|
48
|
+
],
|
|
49
|
+
"agents/security-reviewer.md": [
|
|
50
|
+
"9234af3500eb826a99e3ba25eff559d721869b475eb43ebe08a4082b8152a9f1"
|
|
13
51
|
]
|
|
14
52
|
},
|
|
15
53
|
"retired_skills": {
|