@workingpayload/agent-skills 2.0.0 → 2.0.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/CodeMap/skill.md +194 -0
- package/README.md +440 -416
- package/RefactorX/skill.md +27 -1
- package/bin/cli.js +91 -29
- package/package.json +3 -2
- package/scripts/doctor.py +5 -4
- package/scripts/install.py +57 -17
- package/scripts/test_skill.py +30 -2
- package/skills-routing.json +27 -2
- package/skills.json +132 -4
package/RefactorX/skill.md
CHANGED
|
@@ -58,7 +58,33 @@ Never attempt a "big bang" rewrite. Each strangler step should be independently
|
|
|
58
58
|
Each refactoring step must be:
|
|
59
59
|
- **A single logical change** (rename, extract, move — not all three at once).
|
|
60
60
|
- **Behavior-preserving**: run the test suite after each step and commit only if green.
|
|
61
|
-
- **Independently committable**: each commit should have a descriptive message referencing the pattern used
|
|
61
|
+
- **Independently committable**: each commit should have a descriptive message referencing the pattern used.
|
|
62
|
+
|
|
63
|
+
Example — Extract Method:
|
|
64
|
+
|
|
65
|
+
```python
|
|
66
|
+
# Before: long method with inline validation
|
|
67
|
+
def create_order(user_id, items, coupon_code):
|
|
68
|
+
if not items or len(items) > 100:
|
|
69
|
+
raise ValueError("Invalid item count")
|
|
70
|
+
if coupon_code and not re.match(r'^[A-Z0-9]{6,10}$', coupon_code):
|
|
71
|
+
raise ValueError("Invalid coupon format")
|
|
72
|
+
# ... 40 more lines of order logic
|
|
73
|
+
|
|
74
|
+
# After: extracted validation into focused methods
|
|
75
|
+
def _validate_items(items):
|
|
76
|
+
if not items or len(items) > 100:
|
|
77
|
+
raise ValueError("Invalid item count")
|
|
78
|
+
|
|
79
|
+
def _validate_coupon(coupon_code):
|
|
80
|
+
if coupon_code and not re.match(r'^[A-Z0-9]{6,10}$', coupon_code):
|
|
81
|
+
raise ValueError("Invalid coupon format")
|
|
82
|
+
|
|
83
|
+
def create_order(user_id, items, coupon_code):
|
|
84
|
+
_validate_items(items)
|
|
85
|
+
_validate_coupon(coupon_code)
|
|
86
|
+
# ... order logic, now shorter and focused
|
|
87
|
+
```
|
|
62
88
|
|
|
63
89
|
Avoid mixing refactoring commits with feature additions or bug fixes.
|
|
64
90
|
|
package/bin/cli.js
CHANGED
|
@@ -12,7 +12,8 @@ const HOME = os.homedir();
|
|
|
12
12
|
|
|
13
13
|
const TARGETS = {
|
|
14
14
|
claude: path.join(HOME, ".claude", "commands"),
|
|
15
|
-
gemini: path.join(HOME, ".gemini", "
|
|
15
|
+
gemini: path.join(HOME, ".gemini", "skills"),
|
|
16
|
+
antigravity: path.join(HOME, ".gemini", "antigravity", "skills"),
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
// ── Helpers ────────────────────────────────────────────────────────
|
|
@@ -66,6 +67,19 @@ function slugify(name) {
|
|
|
66
67
|
return name.toLowerCase().replace(/\s+/g, "-").replace(/[^a-z0-9-]/g, "");
|
|
67
68
|
}
|
|
68
69
|
|
|
70
|
+
function copyDirSync(src, dest) {
|
|
71
|
+
fs.mkdirSync(dest, { recursive: true });
|
|
72
|
+
for (const entry of fs.readdirSync(src, { withFileTypes: true })) {
|
|
73
|
+
const srcPath = path.join(src, entry.name);
|
|
74
|
+
const destPath = path.join(dest, entry.name);
|
|
75
|
+
if (entry.isDirectory()) {
|
|
76
|
+
copyDirSync(srcPath, destPath);
|
|
77
|
+
} else {
|
|
78
|
+
fs.copyFileSync(srcPath, destPath);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
69
83
|
// ── Commands ───────────────────────────────────────────────────────
|
|
70
84
|
|
|
71
85
|
function cmdInstall(args) {
|
|
@@ -75,11 +89,12 @@ function cmdInstall(args) {
|
|
|
75
89
|
let target = flags.target;
|
|
76
90
|
if (!target) {
|
|
77
91
|
if (fs.existsSync(TARGETS.claude)) target = "claude";
|
|
92
|
+
else if (fs.existsSync(TARGETS.antigravity)) target = "antigravity";
|
|
78
93
|
else if (fs.existsSync(TARGETS.gemini)) target = "gemini";
|
|
79
94
|
else target = "claude"; // default
|
|
80
95
|
}
|
|
81
96
|
if (!TARGETS[target]) {
|
|
82
|
-
console.error(`Unknown target: ${target}. Use "claude" or "
|
|
97
|
+
console.error(`Unknown target: ${target}. Use "claude", "gemini", or "antigravity".`);
|
|
83
98
|
process.exit(1);
|
|
84
99
|
}
|
|
85
100
|
|
|
@@ -112,7 +127,11 @@ function cmdInstall(args) {
|
|
|
112
127
|
const slug = slugify(skill.name);
|
|
113
128
|
const dest = path.join(installDir, `${slug}.md`);
|
|
114
129
|
|
|
115
|
-
|
|
130
|
+
const usesDirFormat = target === "gemini" || target === "antigravity";
|
|
131
|
+
const existsAlready = usesDirFormat
|
|
132
|
+
? fs.existsSync(path.join(installDir, slug, "SKILL.md"))
|
|
133
|
+
: fs.existsSync(dest);
|
|
134
|
+
if (existsAlready && !force) {
|
|
116
135
|
if (!dryRun) console.log(` SKIP ${slug} (already exists, use --force to overwrite)`);
|
|
117
136
|
skipped++;
|
|
118
137
|
continue;
|
|
@@ -129,24 +148,60 @@ function cmdInstall(args) {
|
|
|
129
148
|
}
|
|
130
149
|
}
|
|
131
150
|
|
|
132
|
-
if (
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
151
|
+
if (usesDirFormat) {
|
|
152
|
+
// Gemini and Antigravity use directory-based skills: each skill is a directory with SKILL.md
|
|
153
|
+
const skillDir = path.join(installDir, slug);
|
|
154
|
+
const destFile = path.join(skillDir, "SKILL.md");
|
|
155
|
+
|
|
156
|
+
if (dryRun) {
|
|
157
|
+
console.log(` Would install ${slug}`);
|
|
158
|
+
console.log(` src : ${skill.fullPath}`);
|
|
159
|
+
console.log(` dest: ${destFile}`);
|
|
160
|
+
} else {
|
|
161
|
+
try {
|
|
162
|
+
fs.mkdirSync(skillDir, { recursive: true });
|
|
163
|
+
fs.copyFileSync(skill.fullPath, destFile);
|
|
164
|
+
// Copy optional assets (scripts/, references/) if they exist in source
|
|
165
|
+
const srcDir = path.dirname(skill.fullPath);
|
|
166
|
+
for (const subdir of ["scripts", "references", "assets"]) {
|
|
167
|
+
const srcSub = path.join(srcDir, subdir);
|
|
168
|
+
if (fs.existsSync(srcSub) && fs.statSync(srcSub).isDirectory()) {
|
|
169
|
+
copyDirSync(srcSub, path.join(skillDir, subdir));
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
meta[slug] = {
|
|
173
|
+
name: slug,
|
|
174
|
+
source: skill.fullPath,
|
|
175
|
+
installed_at: new Date().toISOString(),
|
|
176
|
+
directory: skill.dir,
|
|
177
|
+
};
|
|
178
|
+
installed++;
|
|
179
|
+
console.log(` OK ${slug}`);
|
|
180
|
+
} catch (err) {
|
|
181
|
+
console.log(` FAIL ${slug} — ${err.message}`);
|
|
182
|
+
failed++;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
136
185
|
} else {
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
186
|
+
if (dryRun) {
|
|
187
|
+
console.log(` Would install ${slug}`);
|
|
188
|
+
console.log(` src : ${skill.fullPath}`);
|
|
189
|
+
console.log(` dest: ${dest}`);
|
|
190
|
+
} else {
|
|
191
|
+
try {
|
|
192
|
+
fs.copyFileSync(skill.fullPath, dest);
|
|
193
|
+
meta[slug] = {
|
|
194
|
+
name: slug,
|
|
195
|
+
source: skill.fullPath,
|
|
196
|
+
installed_at: new Date().toISOString(),
|
|
197
|
+
directory: skill.dir,
|
|
198
|
+
};
|
|
199
|
+
installed++;
|
|
200
|
+
console.log(` OK ${slug}`);
|
|
201
|
+
} catch (err) {
|
|
202
|
+
console.log(` FAIL ${slug} — ${err.message}`);
|
|
203
|
+
failed++;
|
|
204
|
+
}
|
|
150
205
|
}
|
|
151
206
|
}
|
|
152
207
|
}
|
|
@@ -162,8 +217,14 @@ function cmdInstall(args) {
|
|
|
162
217
|
if (target === "claude") {
|
|
163
218
|
console.log(` In Claude Code, type /<skill-name> to invoke a skill.`);
|
|
164
219
|
console.log(` Examples: /codesage, /testcrafter, /dockmaster, /python-master`);
|
|
165
|
-
} else {
|
|
166
|
-
console.log(` Skills are now available in
|
|
220
|
+
} else if (target === "gemini") {
|
|
221
|
+
console.log(` Skills are now available in Gemini CLI.`);
|
|
222
|
+
console.log(` Gemini will automatically activate skills when your task matches a skill description.`);
|
|
223
|
+
console.log(` Installed to: ${installDir}`);
|
|
224
|
+
} else if (target === "antigravity") {
|
|
225
|
+
console.log(` Skills are now available in Google Antigravity.`);
|
|
226
|
+
console.log(` The agent will automatically match skills to your tasks via semantic triggering.`);
|
|
227
|
+
console.log(` Installed to: ${installDir}`);
|
|
167
228
|
}
|
|
168
229
|
}
|
|
169
230
|
}
|
|
@@ -175,7 +236,7 @@ function cmdUninstall(args) {
|
|
|
175
236
|
const names = flags._.filter(n => n !== "uninstall");
|
|
176
237
|
|
|
177
238
|
if (names.length === 0) {
|
|
178
|
-
console.error("Usage: agent-skills uninstall <skill-name> [<skill-name>...] [-t claude|gemini]");
|
|
239
|
+
console.error("Usage: agent-skills uninstall <skill-name> [<skill-name>...] [-t claude|gemini|antigravity]");
|
|
179
240
|
process.exit(1);
|
|
180
241
|
}
|
|
181
242
|
|
|
@@ -252,24 +313,24 @@ function cmdBuildIndex(args) {
|
|
|
252
313
|
|
|
253
314
|
function cmdHelp() {
|
|
254
315
|
console.log(`
|
|
255
|
-
agent-skills — AI-powered developer skills for Claude and
|
|
316
|
+
agent-skills — AI-powered developer skills for Claude, Gemini, and Antigravity
|
|
256
317
|
|
|
257
318
|
Usage:
|
|
258
319
|
agent-skills <command> [options]
|
|
259
320
|
|
|
260
321
|
Commands:
|
|
261
|
-
install Install skills to Claude or
|
|
262
|
-
-t, --target Target: "claude" or "
|
|
322
|
+
install Install skills to Claude, Gemini, or Antigravity
|
|
323
|
+
-t, --target Target: "claude", "gemini", or "antigravity" (default: auto-detect)
|
|
263
324
|
-s, --skills Comma-separated skill names (default: all)
|
|
264
325
|
--force Overwrite existing skills
|
|
265
326
|
--dry-run Preview without writing files
|
|
266
327
|
--validate Validate skills before installing
|
|
267
328
|
|
|
268
329
|
uninstall <names> Remove installed skills
|
|
269
|
-
-t, --target Target: "claude" or "
|
|
330
|
+
-t, --target Target: "claude", "gemini", or "antigravity"
|
|
270
331
|
|
|
271
332
|
list List installed skills
|
|
272
|
-
-t, --target Target: "claude" or "
|
|
333
|
+
-t, --target Target: "claude", "gemini", or "antigravity"
|
|
273
334
|
|
|
274
335
|
route "<prompt>" Find the best skill for a task
|
|
275
336
|
-n, --top-n Number of results (default: 3)
|
|
@@ -277,7 +338,7 @@ Commands:
|
|
|
277
338
|
--interactive Interactive prompt mode
|
|
278
339
|
|
|
279
340
|
doctor Check health of installed skills
|
|
280
|
-
-t, --target Target: "claude" or "
|
|
341
|
+
-t, --target Target: "claude", "gemini", or "antigravity" (default: all)
|
|
281
342
|
|
|
282
343
|
validate Lint all skill files
|
|
283
344
|
--fix Auto-fix known issues
|
|
@@ -292,6 +353,7 @@ Commands:
|
|
|
292
353
|
Examples:
|
|
293
354
|
npx agent-skills install # Install all to Claude
|
|
294
355
|
npx agent-skills install -t gemini -s CodeSage,TestCrafter
|
|
356
|
+
npx agent-skills install -t antigravity # Install all to Google Antigravity
|
|
295
357
|
npx agent-skills route "review my Python code"
|
|
296
358
|
npx agent-skills doctor
|
|
297
359
|
npx agent-skills list
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@workingpayload/agent-skills",
|
|
3
|
-
"version": "2.0.
|
|
4
|
-
"description": "Install and run AI-powered developer skills across Claude and
|
|
3
|
+
"version": "2.0.2",
|
|
4
|
+
"description": "Install and run AI-powered developer skills across Claude, Gemini, and Google Antigravity",
|
|
5
5
|
"bin": {
|
|
6
6
|
"agent-skills": "./bin/cli.js"
|
|
7
7
|
},
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"ai",
|
|
16
16
|
"claude",
|
|
17
17
|
"gemini",
|
|
18
|
+
"antigravity",
|
|
18
19
|
"skills",
|
|
19
20
|
"developer-tools",
|
|
20
21
|
"code-review",
|
package/scripts/doctor.py
CHANGED
|
@@ -33,7 +33,8 @@ META_FILENAME = ".skills-meta.json"
|
|
|
33
33
|
|
|
34
34
|
INSTALL_DIRS = {
|
|
35
35
|
"claude": Path.home() / ".claude" / "commands",
|
|
36
|
-
"gemini": Path.home() / ".gemini" / "
|
|
36
|
+
"gemini": Path.home() / ".gemini" / "skills",
|
|
37
|
+
"antigravity": Path.home() / ".gemini" / "antigravity" / "skills",
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
|
|
@@ -474,13 +475,13 @@ def main() -> int:
|
|
|
474
475
|
)
|
|
475
476
|
parser.add_argument(
|
|
476
477
|
"--target", "-t",
|
|
477
|
-
choices=["claude", "gemini"],
|
|
478
|
+
choices=["claude", "gemini", "antigravity"],
|
|
478
479
|
default=None,
|
|
479
|
-
help="Which install target to check (default:
|
|
480
|
+
help="Which install target to check (default: all).",
|
|
480
481
|
)
|
|
481
482
|
args = parser.parse_args()
|
|
482
483
|
|
|
483
|
-
targets = [args.target] if args.target else ["claude", "gemini"]
|
|
484
|
+
targets = [args.target] if args.target else ["claude", "gemini", "antigravity"]
|
|
484
485
|
|
|
485
486
|
repo_root = Path(__file__).resolve().parent.parent
|
|
486
487
|
|
package/scripts/install.py
CHANGED
|
@@ -33,12 +33,17 @@ META_FILE = ".skills-meta.json"
|
|
|
33
33
|
|
|
34
34
|
INSTALL_DIRS = {
|
|
35
35
|
"claude": Path.home() / ".claude" / "commands",
|
|
36
|
-
"gemini": Path.home() / ".gemini" / "
|
|
36
|
+
"gemini": Path.home() / ".gemini" / "skills",
|
|
37
|
+
"antigravity": Path.home() / ".gemini" / "antigravity" / "skills",
|
|
37
38
|
}
|
|
38
39
|
|
|
40
|
+
# Targets that use directory-based skill format (skill-name/SKILL.md)
|
|
41
|
+
DIR_FORMAT_TARGETS = {"gemini", "antigravity"}
|
|
42
|
+
|
|
39
43
|
POST_INSTALL_INSTRUCTIONS = {
|
|
40
44
|
"claude": "Use skills by typing /skill-name in Claude Code",
|
|
41
|
-
"gemini": "
|
|
45
|
+
"gemini": "Gemini CLI will automatically activate skills matching your task",
|
|
46
|
+
"antigravity": "Skills are available in Google Antigravity via semantic triggering",
|
|
42
47
|
}
|
|
43
48
|
|
|
44
49
|
# ---------------------------------------------------------------------------
|
|
@@ -234,24 +239,58 @@ def install_skills(
|
|
|
234
239
|
continue
|
|
235
240
|
|
|
236
241
|
# Skip if already installed and not forcing
|
|
237
|
-
|
|
242
|
+
uses_dir_format = target in DIR_FORMAT_TARGETS
|
|
243
|
+
exists_already = (
|
|
244
|
+
(install_dir / skill_name / "SKILL.md").exists()
|
|
245
|
+
if uses_dir_format
|
|
246
|
+
else dest.exists()
|
|
247
|
+
)
|
|
248
|
+
if exists_already and not force:
|
|
238
249
|
print(f" SKIP {skill_name} (already installed; use --force to overwrite)")
|
|
239
250
|
skipped_count += 1
|
|
240
251
|
continue
|
|
241
252
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
253
|
+
if uses_dir_format:
|
|
254
|
+
# Gemini and Antigravity: directory-based skills with SKILL.md
|
|
255
|
+
skill_dir = install_dir / skill_name
|
|
256
|
+
dest_file = skill_dir / "SKILL.md"
|
|
257
|
+
action = "Would install" if dry_run else "Installing"
|
|
258
|
+
print(f" {action} {skill_name}")
|
|
259
|
+
print(f" src : {skill_file}")
|
|
260
|
+
print(f" dest: {dest_file}")
|
|
246
261
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
"
|
|
253
|
-
|
|
254
|
-
|
|
262
|
+
if not dry_run:
|
|
263
|
+
skill_dir.mkdir(parents=True, exist_ok=True)
|
|
264
|
+
shutil.copy2(str(skill_file), str(dest_file))
|
|
265
|
+
# Copy optional asset directories (scripts/, references/, assets/)
|
|
266
|
+
src_dir = skill_file.parent
|
|
267
|
+
for subdir_name in ("scripts", "references", "assets"):
|
|
268
|
+
src_sub = src_dir / subdir_name
|
|
269
|
+
if src_sub.is_dir():
|
|
270
|
+
dest_sub = skill_dir / subdir_name
|
|
271
|
+
if dest_sub.exists():
|
|
272
|
+
shutil.rmtree(str(dest_sub))
|
|
273
|
+
shutil.copytree(str(src_sub), str(dest_sub))
|
|
274
|
+
meta[skill_name] = {
|
|
275
|
+
"name": skill_name,
|
|
276
|
+
"version": git_hash(skill_file),
|
|
277
|
+
"installed_at": datetime.now(timezone.utc).isoformat(),
|
|
278
|
+
"source_path": str(skill_file),
|
|
279
|
+
}
|
|
280
|
+
else:
|
|
281
|
+
action = "Would install" if dry_run else "Installing"
|
|
282
|
+
print(f" {action} {skill_name}")
|
|
283
|
+
print(f" src : {skill_file}")
|
|
284
|
+
print(f" dest: {dest}")
|
|
285
|
+
|
|
286
|
+
if not dry_run:
|
|
287
|
+
shutil.copy2(str(skill_file), str(dest))
|
|
288
|
+
meta[skill_name] = {
|
|
289
|
+
"name": skill_name,
|
|
290
|
+
"version": git_hash(skill_file),
|
|
291
|
+
"installed_at": datetime.now(timezone.utc).isoformat(),
|
|
292
|
+
"source_path": str(skill_file),
|
|
293
|
+
}
|
|
255
294
|
|
|
256
295
|
installed_count += 1
|
|
257
296
|
|
|
@@ -271,8 +310,9 @@ def install_skills(
|
|
|
271
310
|
if target == "claude":
|
|
272
311
|
print(f" {instruction}")
|
|
273
312
|
print(f" Example: /codesage, /uismith, /bugHunter-pro")
|
|
274
|
-
|
|
313
|
+
elif target in DIR_FORMAT_TARGETS:
|
|
275
314
|
print(f" {instruction}")
|
|
315
|
+
print(f" Skills installed as directories with SKILL.md files.")
|
|
276
316
|
print(f"\nInstall directory: {install_dir}")
|
|
277
317
|
|
|
278
318
|
|
|
@@ -289,7 +329,7 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
|
|
289
329
|
|
|
290
330
|
parser.add_argument(
|
|
291
331
|
"--target", "-t",
|
|
292
|
-
choices=["claude", "gemini"],
|
|
332
|
+
choices=["claude", "gemini", "antigravity"],
|
|
293
333
|
default=None,
|
|
294
334
|
help="Target platform (default: auto-detect based on existing directories).",
|
|
295
335
|
)
|
package/scripts/test_skill.py
CHANGED
|
@@ -88,6 +88,25 @@ def count_named_tools(text: str) -> int:
|
|
|
88
88
|
r"\bgit\b", r"\bnginx\b", r"\bapache\b", r"\bkafka\b", r"\brabbitmq\b",
|
|
89
89
|
r"\bcelery\b", r"\bsqlalchemy\b", r"\bprisma\b", r"\bdrizzle\b",
|
|
90
90
|
r"\bstorybook\b", r"\bfigma\b",
|
|
91
|
+
# Additional tools/frameworks
|
|
92
|
+
r"\bpydantic\b", r"\bfastapi\b", r"\bflask\b", r"\bdjango\b", r"\bexpress\b",
|
|
93
|
+
r"\bspring\b", r"\brails\b", r"\blaravel\b",
|
|
94
|
+
r"\balembic\b", r"\bflyway\b", r"\bknex\b", r"\btypeorm\b", r"\bsequelize\b",
|
|
95
|
+
r"\bgrpc\b", r"\bgraphql\b", r"\bopenapi\b", r"\bswagger\b",
|
|
96
|
+
r"\bzod\b", r"\bjoi\b", r"\byup\b",
|
|
97
|
+
r"\bbullmq\b", r"\btemporal\b", r"\bsidekiq\b",
|
|
98
|
+
r"\bsentry\b", r"\bjaeger\b", r"\bloki\b", r"\btempo\b",
|
|
99
|
+
r"\bpandas\b", r"\bpolars\b", r"\bnumpy\b",
|
|
100
|
+
r"\bcurl\b", r"\bpostman\b", r"\binsomnia\b",
|
|
101
|
+
r"\bcheerio\b", r"\bbeautifulsoup\b", r"\bscrapy\b",
|
|
102
|
+
r"\bshellcheck\b", r"\bbash\b", r"\bpowershell\b",
|
|
103
|
+
r"\bjson\b", r"\byaml\b", r"\btoml\b",
|
|
104
|
+
r"\bsemver\b", r"\bconventional commit\b",
|
|
105
|
+
r"\blaunchdarkly\b", r"\bunleash\b",
|
|
106
|
+
r"\bargocd\b", r"\bflux\b",
|
|
107
|
+
r"\bcss\b", r"\bhtml\b", r"\bsass\b", r"\bless\b",
|
|
108
|
+
r"\bnpm\b", r"\byarn\b", r"\bpnpm\b", r"\buv\b", r"\bpoetry\b", r"\bpip\b",
|
|
109
|
+
r"\bcargo\b", r"\bmaven\b", r"\bgradle\b",
|
|
91
110
|
]
|
|
92
111
|
lower = text.lower()
|
|
93
112
|
return sum(1 for pattern in known_tools if re.search(pattern, lower))
|
|
@@ -104,6 +123,14 @@ def count_edge_cases(text: str) -> int:
|
|
|
104
123
|
r"\boff-by-one\b", r"\btruncati\b", r"\bspecial character\b",
|
|
105
124
|
r"\bunicode\b", r"\butf-?8\b", r"\blarge file\b", r"\bempty list\b",
|
|
106
125
|
r"\bnegative\b", r"\bwhen .{1,40} is (empty|null|missing|invalid|zero)",
|
|
126
|
+
# Additional patterns for edge-case-like content
|
|
127
|
+
r"\berror handl\b", r"\bfailure\b", r"\bfails?\b",
|
|
128
|
+
r"\bdeadlock\b", r"\bcircular\b", r"\bstale\b", r"\borphan\b",
|
|
129
|
+
r"\bmissing\b", r"\bbroken\b", r"\bcorrupt\b", r"\binconsisten\b",
|
|
130
|
+
r"\bwhat if\b", r"\bwhat happens\b", r"\bwhen .{1,40} (fails?|breaks?|crashes?)\b",
|
|
131
|
+
r"\bfalse positive\b", r"\bfalse negative\b",
|
|
132
|
+
r"\bbackward.?compat\b", r"\bdeprecated?\b", r"\bmigrat\b",
|
|
133
|
+
r"\bmonorepo\b", r"\blarge.?scale\b", r"\blegacy\b",
|
|
107
134
|
]
|
|
108
135
|
lower = text.lower()
|
|
109
136
|
return sum(1 for p in patterns if re.search(p, lower))
|
|
@@ -115,8 +142,9 @@ def has_code_example(text: str) -> bool:
|
|
|
115
142
|
|
|
116
143
|
|
|
117
144
|
def has_numbered_workflow(text: str) -> bool:
|
|
118
|
-
"""Return True if there are at least 3 numbered steps (e.g., '1. ' '
|
|
119
|
-
|
|
145
|
+
"""Return True if there are at least 3 numbered steps (e.g., '1. ', '### 1. ')."""
|
|
146
|
+
# Match both numbered list items and numbered headings (### 1. Step Name)
|
|
147
|
+
steps = re.findall(r"^\s*(?:#{1,4}\s+)?\d+\.", text, re.MULTILINE)
|
|
120
148
|
return len(steps) >= 3
|
|
121
149
|
|
|
122
150
|
|
package/skills-routing.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0",
|
|
3
|
-
"generated_at": "2026-03-
|
|
4
|
-
"skill_count":
|
|
3
|
+
"generated_at": "2026-03-28T18:44:36+00:00",
|
|
4
|
+
"skill_count": 55,
|
|
5
5
|
"skills": [
|
|
6
6
|
{
|
|
7
7
|
"name": "accessplus",
|
|
@@ -197,6 +197,31 @@
|
|
|
197
197
|
"changelog"
|
|
198
198
|
]
|
|
199
199
|
},
|
|
200
|
+
{
|
|
201
|
+
"name": "codemap",
|
|
202
|
+
"description": "Generates and maintains a structured codemap file that gives AI agents instant codebase context without costly exploration. Produces a navigable index of entry points, modules, key abstractions, dependency flow, and file roles. Use when starting a new session, after major refactors, at PR boundaries, or when an agent is burning context on repeated file discovery.",
|
|
203
|
+
"categories": [
|
|
204
|
+
"database",
|
|
205
|
+
"git",
|
|
206
|
+
"ai/ml"
|
|
207
|
+
],
|
|
208
|
+
"triggers": [
|
|
209
|
+
"starting",
|
|
210
|
+
"new",
|
|
211
|
+
"session",
|
|
212
|
+
"after",
|
|
213
|
+
"major",
|
|
214
|
+
"refactors",
|
|
215
|
+
"boundaries",
|
|
216
|
+
"when",
|
|
217
|
+
"agent",
|
|
218
|
+
"burning",
|
|
219
|
+
"context",
|
|
220
|
+
"repeated",
|
|
221
|
+
"file",
|
|
222
|
+
"discovery"
|
|
223
|
+
]
|
|
224
|
+
},
|
|
200
225
|
{
|
|
201
226
|
"name": "codesage",
|
|
202
227
|
"description": "Performs structured code reviews with severity-tiered findings covering security, correctness, performance, and maintainability. Uses language-specific linters and static analysis tools. Use when a user submits code for review, asks for feedback on a PR, or needs an audit of a module or function.",
|
package/skills.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0",
|
|
3
|
-
"generated_at": "2026-03-
|
|
4
|
-
"skill_count":
|
|
3
|
+
"generated_at": "2026-03-28T18:44:36+00:00",
|
|
4
|
+
"skill_count": 55,
|
|
5
5
|
"skills": [
|
|
6
6
|
{
|
|
7
7
|
"name": "accessplus",
|
|
@@ -596,6 +596,134 @@
|
|
|
596
596
|
"git log v1.4.3..v1.5.0"
|
|
597
597
|
]
|
|
598
598
|
},
|
|
599
|
+
{
|
|
600
|
+
"name": "codemap",
|
|
601
|
+
"description": "Generates and maintains a structured codemap file that gives AI agents instant codebase context without costly exploration. Produces a navigable index of entry points, modules, key abstractions, dependency flow, and file roles. Use when starting a new session, after major refactors, at PR boundaries, or when an agent is burning context on repeated file discovery.",
|
|
602
|
+
"path": "CodeMap/skill.md",
|
|
603
|
+
"directory": "CodeMap",
|
|
604
|
+
"triggers": [
|
|
605
|
+
"starting",
|
|
606
|
+
"new",
|
|
607
|
+
"session",
|
|
608
|
+
"after",
|
|
609
|
+
"major",
|
|
610
|
+
"refactors",
|
|
611
|
+
"boundaries",
|
|
612
|
+
"when",
|
|
613
|
+
"agent",
|
|
614
|
+
"burning",
|
|
615
|
+
"context",
|
|
616
|
+
"repeated",
|
|
617
|
+
"file",
|
|
618
|
+
"discovery"
|
|
619
|
+
],
|
|
620
|
+
"categories": [
|
|
621
|
+
"database",
|
|
622
|
+
"git",
|
|
623
|
+
"ai/ml"
|
|
624
|
+
],
|
|
625
|
+
"line_count": 194,
|
|
626
|
+
"has_code_examples": true,
|
|
627
|
+
"tools_mentioned": [
|
|
628
|
+
".codemap.md",
|
|
629
|
+
"package.json",
|
|
630
|
+
"pyproject.toml",
|
|
631
|
+
"go.mod",
|
|
632
|
+
"Cargo.toml",
|
|
633
|
+
"workspaces",
|
|
634
|
+
"packages/",
|
|
635
|
+
"apps/",
|
|
636
|
+
"Makefile",
|
|
637
|
+
"docker-compose.yml",
|
|
638
|
+
"glob",
|
|
639
|
+
"node_modules",
|
|
640
|
+
".git",
|
|
641
|
+
"dist",
|
|
642
|
+
"build",
|
|
643
|
+
"__pycache__",
|
|
644
|
+
".venv",
|
|
645
|
+
"vendor",
|
|
646
|
+
"coverage",
|
|
647
|
+
".next",
|
|
648
|
+
"main.py",
|
|
649
|
+
"index.ts",
|
|
650
|
+
"cmd/server/main.go",
|
|
651
|
+
"App.tsx",
|
|
652
|
+
"routes/*.py",
|
|
653
|
+
"app/api/**/*.ts",
|
|
654
|
+
"controllers/",
|
|
655
|
+
"models/",
|
|
656
|
+
"schema.prisma",
|
|
657
|
+
"types.ts",
|
|
658
|
+
"entities/",
|
|
659
|
+
"services/",
|
|
660
|
+
"usecases/",
|
|
661
|
+
"domain/",
|
|
662
|
+
"repositories/",
|
|
663
|
+
"dal/",
|
|
664
|
+
"db/queries/",
|
|
665
|
+
"config/",
|
|
666
|
+
"settings.py",
|
|
667
|
+
".env.example",
|
|
668
|
+
"next.config.js",
|
|
669
|
+
"tests/",
|
|
670
|
+
"__tests__/",
|
|
671
|
+
"*_test.go",
|
|
672
|
+
"*.spec.ts",
|
|
673
|
+
"migrations/",
|
|
674
|
+
"alembic/versions/",
|
|
675
|
+
"prisma/migrations/",
|
|
676
|
+
"Dockerfile",
|
|
677
|
+
"k8s/",
|
|
678
|
+
"terraform/",
|
|
679
|
+
"scripts/",
|
|
680
|
+
"bin/",
|
|
681
|
+
"components/",
|
|
682
|
+
"pages/",
|
|
683
|
+
"views/",
|
|
684
|
+
"templates/",
|
|
685
|
+
"middleware/",
|
|
686
|
+
"interceptors/",
|
|
687
|
+
"utils/",
|
|
688
|
+
"lib/",
|
|
689
|
+
"helpers/",
|
|
690
|
+
"common/",
|
|
691
|
+
"[generated]",
|
|
692
|
+
"apps/web/app/layout.tsx",
|
|
693
|
+
"apps/api/main.py",
|
|
694
|
+
"apps/api/worker.py",
|
|
695
|
+
"authenticate_user()",
|
|
696
|
+
"create_tokens()",
|
|
697
|
+
"refresh_access_token()",
|
|
698
|
+
"repositories/user_repo",
|
|
699
|
+
"models/user",
|
|
700
|
+
"utils/jwt",
|
|
701
|
+
"config/settings",
|
|
702
|
+
"apiClient",
|
|
703
|
+
"useQuery",
|
|
704
|
+
"packages/shared/types",
|
|
705
|
+
"apps/api/services/auth.py",
|
|
706
|
+
"apps/web/app/(dashboard)/page.tsx",
|
|
707
|
+
"apps/api/routes/billing.py",
|
|
708
|
+
"apps/web/components/PricingTable.tsx",
|
|
709
|
+
".codemap-meta.json",
|
|
710
|
+
"git_sha",
|
|
711
|
+
"HEAD",
|
|
712
|
+
"/codemap",
|
|
713
|
+
"packages/auth/.codemap.md",
|
|
714
|
+
"--scope <package>",
|
|
715
|
+
"[generated — do not edit]",
|
|
716
|
+
"proto/*.proto",
|
|
717
|
+
"hot_files_window_days",
|
|
718
|
+
"stat",
|
|
719
|
+
"[large — 1,247 lines]",
|
|
720
|
+
"[HTTP]",
|
|
721
|
+
"[gRPC]",
|
|
722
|
+
".gitattributes",
|
|
723
|
+
"merge=ours",
|
|
724
|
+
".gitignore"
|
|
725
|
+
]
|
|
726
|
+
},
|
|
599
727
|
{
|
|
600
728
|
"name": "codesage",
|
|
601
729
|
"description": "Performs structured code reviews with severity-tiered findings covering security, correctness, performance, and maintainability. Uses language-specific linters and static analysis tools. Use when a user submits code for review, asks for feedback on a PR, or needs an audit of a module or function.",
|
|
@@ -2521,8 +2649,8 @@
|
|
|
2521
2649
|
"maintainability"
|
|
2522
2650
|
],
|
|
2523
2651
|
"categories": [],
|
|
2524
|
-
"line_count":
|
|
2525
|
-
"has_code_examples":
|
|
2652
|
+
"line_count": 110,
|
|
2653
|
+
"has_code_examples": true,
|
|
2526
2654
|
"tools_mentioned": [
|
|
2527
2655
|
"pytest",
|
|
2528
2656
|
"npm test",
|