@workingpayload/agent-skills 1.0.1 → 2.0.0
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/APIForge/skill.md +165 -0
- package/AccessPlus/skill.md +136 -0
- package/AlgoMaster/skill.md +125 -0
- package/Architekt AI/skill.md +140 -0
- package/AuthCraft/skill.md +144 -0
- package/AutoScriptor/skill.md +137 -0
- package/BoilerCore/skill.md +136 -0
- package/BugHunter Pro/skill.md +133 -0
- package/ChangeScribe/skill.md +113 -0
- package/CodeSage/skill.md +163 -0
- package/CommitCraft/skill.md +113 -0
- package/CoverageMax/skill.md +161 -0
- package/CronGenius/skill.md +157 -0
- package/DataPolish/skill.md +142 -0
- package/DataWeaver/skill.md +151 -0
- package/DockMaster/skill.md +158 -0
- package/DocuGenie/skill.md +138 -0
- package/EdgeGuard/skill.md +160 -0
- package/EnvWizard/skill.md +156 -0
- package/ErrorMedic/skill.md +152 -0
- package/FeatureSmith/skill.md +139 -0
- package/FlexiLayout/skill.md +144 -0
- package/FlowTester/skill.md +154 -0
- package/FunctionForge/skill.md +136 -0
- package/InputShield/skill.md +144 -0
- package/IssueForge/skill.md +148 -0
- package/KubeCrafter/skill.md +149 -0
- package/LogicLens/skill.md +132 -0
- package/MockSmith/skill.md +146 -0
- package/ModelSensei/skill.md +138 -0
- package/PRMentor/skill.md +103 -0
- package/PerfDetective/skill.md +90 -0
- package/PipelinePro/skill.md +146 -0
- package/PolyglotShift/skill.md +94 -0
- package/PromptForge/skill.md +118 -0
- package/QueryPulse/skill.md +123 -0
- package/README.md +416 -329
- package/ReadMeCraft/skill.md +127 -0
- package/RefactorX/skill.md +84 -0
- package/RenderBoost/skill.md +148 -0
- package/SEOMancer/skill.md +156 -0
- package/ScrapeMaster/skill.md +157 -0
- package/SecretSniffer/skill.md +123 -0
- package/SecureScan/skill.md +130 -0
- package/ServiceSplitter/skill.md +153 -0
- package/SpeedSmith/skill.md +155 -0
- package/StackWise/skill.md +155 -0
- package/TaskOrchestrator/skill.md +135 -0
- package/TestCrafter/skill.md +158 -0
- package/TraceMind/skill.md +143 -0
- package/UISmith/skill.md +131 -0
- package/bin/cli.js +377 -0
- package/extension-extender/SKILL.md +122 -0
- package/fastapi-furious/SKILL.md +148 -0
- package/package.json +41 -32
- package/python-master/SKILL.md +108 -0
- package/react-ranger/SKILL.md +93 -0
- package/scripts/build_index.py +282 -0
- package/scripts/doctor.py +541 -0
- package/scripts/install.py +397 -0
- package/scripts/route.py +348 -0
- package/scripts/score.py +355 -0
- package/scripts/test_skill.py +473 -0
- package/scripts/validate.py +254 -0
- package/skills-routing.json +1131 -0
- package/skills.json +3261 -0
- package/cli.js +0 -181
- package/skills/APIForge/skill.md +0 -32
- package/skills/AccessPlus/skill.md +0 -32
- package/skills/AlgoMaster/skill.md +0 -32
- package/skills/Architekt AI/skill.md +0 -32
- package/skills/AuthCraft/skill.md +0 -32
- package/skills/AutoScriptor/skill.md +0 -32
- package/skills/BoilerCore/skill.md +0 -32
- package/skills/BugHunter Pro/skill.md +0 -32
- package/skills/ChangeScribe/skill.md +0 -32
- package/skills/CodeSage/skill.md +0 -32
- package/skills/CommitCraft/skill.md +0 -32
- package/skills/CoverageMax/skill.md +0 -32
- package/skills/CronGenius/skill.md +0 -32
- package/skills/DataPolish/skill.md +0 -32
- package/skills/DataWeaver/skill.md +0 -32
- package/skills/DockMaster/skill.md +0 -32
- package/skills/DocuGenie/skill.md +0 -32
- package/skills/EdgeGuard/skill.md +0 -32
- package/skills/EnvWizard/skill.md +0 -32
- package/skills/ErrorMedic/skill.md +0 -32
- package/skills/Extension-Extender/SKILL.md +0 -41
- package/skills/Extension-Extender/references/ui-guidelines.md +0 -26
- package/skills/Fastapi-Furious/README.md +0 -16
- package/skills/Fastapi-Furious/SKILL.md +0 -37
- package/skills/FeatureSmith/skill.md +0 -32
- package/skills/FlexiLayout/skill.md +0 -32
- package/skills/FlowTester/skill.md +0 -32
- package/skills/FunctionForge/skill.md +0 -32
- package/skills/InputShield/skill.md +0 -32
- package/skills/IssueForge/skill.md +0 -32
- package/skills/KubeCrafter/skill.md +0 -32
- package/skills/LogicLens/skill.md +0 -32
- package/skills/MockSmith/skill.md +0 -32
- package/skills/ModelSensei/skill.md +0 -32
- package/skills/PRMentor/skill.md +0 -32
- package/skills/PerfDetective/skill.md +0 -32
- package/skills/PipelinePro/skill.md +0 -32
- package/skills/PolyglotShift/skill.md +0 -32
- package/skills/PromptForge/skill.md +0 -32
- package/skills/Python-Master/README.md +0 -11
- package/skills/Python-Master/SKILL.md +0 -37
- package/skills/QueryPulse/skill.md +0 -32
- package/skills/React-Ranger/README.md +0 -17
- package/skills/React-Ranger/SKILL.md +0 -37
- package/skills/ReadMeCraft/skill.md +0 -32
- package/skills/RefactorX/skill.md +0 -32
- package/skills/RenderBoost/skill.md +0 -32
- package/skills/SEOMancer/skill.md +0 -32
- package/skills/ScrapeMaster/skill.md +0 -32
- package/skills/SecretSniffer/skill.md +0 -32
- package/skills/SecureScan/skill.md +0 -32
- package/skills/ServiceSplitter/skill.md +0 -32
- package/skills/SpeedSmith/skill.md +0 -32
- package/skills/StackWise/skill.md +0 -32
- package/skills/TaskOrchestrator/skill.md +0 -32
- package/skills/TestCrafter/skill.md +0 -32
- package/skills/TraceMind/skill.md +0 -32
- package/skills/UISmith/skill.md +0 -32
- /package/{skills/Extension-Extender → extension-extender}/assets/manifest.json +0 -0
- /package/{skills/Extension-Extender → extension-extender}/assets/popup.css +0 -0
- /package/{skills/Extension-Extender → extension-extender}/assets/popup.html +0 -0
- /package/{skills/Extension-Extender → extension-extender}/assets/popup.js +0 -0
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"""
|
|
2
|
+
build_index.py — Generate skills.json and skills-routing.json indexes.
|
|
3
|
+
|
|
4
|
+
Run from the repo root:
|
|
5
|
+
python scripts/build_index.py
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from __future__ import annotations
|
|
9
|
+
|
|
10
|
+
import json
|
|
11
|
+
import re
|
|
12
|
+
import sys
|
|
13
|
+
from datetime import datetime, timezone
|
|
14
|
+
from pathlib import Path
|
|
15
|
+
|
|
16
|
+
# ---------------------------------------------------------------------------
|
|
17
|
+
# Configuration
|
|
18
|
+
# ---------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
REPO_ROOT = Path(__file__).resolve().parent.parent
|
|
21
|
+
SKILL_FILENAMES = {"skill.md", "SKILL.md"}
|
|
22
|
+
|
|
23
|
+
CATEGORY_KEYWORDS: dict[str, list[str]] = {
|
|
24
|
+
"security": [
|
|
25
|
+
"security", "vulnerabilit", "owasp", "sast", "cve", "pentest",
|
|
26
|
+
"exploit", "injection", "xss", "csrf", "auth", "encryption",
|
|
27
|
+
"secret", "credential", "scan", "audit",
|
|
28
|
+
],
|
|
29
|
+
"testing": [
|
|
30
|
+
"test", "coverage", "jest", "pytest", "junit", "vitest",
|
|
31
|
+
"mock", "assertion", "tdd", "bdd", "e2e", "integration test",
|
|
32
|
+
"unit test", "fixture",
|
|
33
|
+
],
|
|
34
|
+
"frontend": [
|
|
35
|
+
"react", "vue", "angular", "svelte", "ui", "ux", "css",
|
|
36
|
+
"html", "component", "frontend", "browser", "dom", "tailwind",
|
|
37
|
+
"design system", "layout", "animation", "rendering", "client-side",
|
|
38
|
+
"web app",
|
|
39
|
+
],
|
|
40
|
+
"devops": [
|
|
41
|
+
"docker", "kubernetes", "k8s", "ci/cd", "pipeline", "deploy",
|
|
42
|
+
"containeriz", "helm", "terraform", "ansible", "devops",
|
|
43
|
+
"infra", "infrastructure", "cloud", "aws", "gcp", "azure",
|
|
44
|
+
"cron", "workflow", "automation",
|
|
45
|
+
],
|
|
46
|
+
"database": [
|
|
47
|
+
"database", "sql", "nosql", "postgresql", "mysql", "mongo",
|
|
48
|
+
"redis", "query", "schema", "migration", "orm", "index",
|
|
49
|
+
"data model", "db ",
|
|
50
|
+
],
|
|
51
|
+
"architecture": [
|
|
52
|
+
"architect", "microservice", "monolith", "design pattern",
|
|
53
|
+
"system design", "ddd", "event-driven", "cqrs", "saga",
|
|
54
|
+
"service mesh", "api design", "rest", "graphql", "grpc",
|
|
55
|
+
"scalab", "distributed",
|
|
56
|
+
],
|
|
57
|
+
"docs": [
|
|
58
|
+
"document", "readme", "changelog", "wiki", "api doc",
|
|
59
|
+
"openapi", "swagger", "comment", "annotation", "spec",
|
|
60
|
+
"write", "writing",
|
|
61
|
+
],
|
|
62
|
+
"git": [
|
|
63
|
+
"git", "commit", "pull request", "pr ", "branch", "merge",
|
|
64
|
+
"rebase", "diff", "repository", "version control",
|
|
65
|
+
],
|
|
66
|
+
"performance": [
|
|
67
|
+
"performance", "optim", "profil", "speed", "latency",
|
|
68
|
+
"throughput", "cache", "benchmark", "memory", "cpu",
|
|
69
|
+
"bottleneck", "render boost", "faster",
|
|
70
|
+
],
|
|
71
|
+
"ai/ml": [
|
|
72
|
+
"machine learning", "ml", "model", "neural", "llm",
|
|
73
|
+
"ai ", "nlp", "embedding", "training", "inference",
|
|
74
|
+
"prompt", "rag", "vector", "dataset",
|
|
75
|
+
],
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
# ---------------------------------------------------------------------------
|
|
80
|
+
# Frontmatter parser (stdlib only — no PyYAML)
|
|
81
|
+
# ---------------------------------------------------------------------------
|
|
82
|
+
|
|
83
|
+
def parse_frontmatter(text: str) -> tuple[dict[str, str], str]:
|
|
84
|
+
"""Return (frontmatter_dict, body_text). Handles only simple key: value pairs."""
|
|
85
|
+
fm: dict[str, str] = {}
|
|
86
|
+
body = text
|
|
87
|
+
|
|
88
|
+
if text.startswith("---"):
|
|
89
|
+
# Find the closing ---
|
|
90
|
+
end = text.find("\n---", 3)
|
|
91
|
+
if end != -1:
|
|
92
|
+
fm_block = text[3:end].strip()
|
|
93
|
+
body = text[end + 4:].lstrip("\n")
|
|
94
|
+
for line in fm_block.splitlines():
|
|
95
|
+
if ":" in line:
|
|
96
|
+
key, _, value = line.partition(":")
|
|
97
|
+
fm[key.strip().lower()] = value.strip()
|
|
98
|
+
|
|
99
|
+
return fm, body
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
# ---------------------------------------------------------------------------
|
|
103
|
+
# Extraction helpers
|
|
104
|
+
# ---------------------------------------------------------------------------
|
|
105
|
+
|
|
106
|
+
def extract_triggers(description: str) -> list[str]:
|
|
107
|
+
"""Pull keywords from the phrase after 'Use when' in a description."""
|
|
108
|
+
triggers: list[str] = []
|
|
109
|
+
|
|
110
|
+
# Match "Use when <phrase>" — may end at period, comma, or end of string
|
|
111
|
+
match = re.search(r"[Uu]se when\s+(.+?)(?:\.|$)", description)
|
|
112
|
+
if not match:
|
|
113
|
+
return triggers
|
|
114
|
+
|
|
115
|
+
phrase = match.group(1)
|
|
116
|
+
|
|
117
|
+
# Strip common stop-words and split into meaningful tokens
|
|
118
|
+
stop_words = {
|
|
119
|
+
"a", "an", "the", "to", "is", "in", "on", "of", "or", "and",
|
|
120
|
+
"for", "with", "that", "this", "are", "be", "it", "as", "by",
|
|
121
|
+
"at", "from", "up", "asked", "asks", "needs", "need", "wants",
|
|
122
|
+
"want", "user", "users", "how", "has", "have", "set",
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
# Extract individual words; also keep short multi-word tech terms
|
|
126
|
+
words = re.findall(r"[a-z][a-z0-9+#\-\.]*", phrase.lower())
|
|
127
|
+
for w in words:
|
|
128
|
+
if len(w) >= 3 and w not in stop_words:
|
|
129
|
+
triggers.append(w)
|
|
130
|
+
|
|
131
|
+
# Deduplicate while preserving order
|
|
132
|
+
seen: set[str] = set()
|
|
133
|
+
unique: list[str] = []
|
|
134
|
+
for t in triggers:
|
|
135
|
+
if t not in seen:
|
|
136
|
+
seen.add(t)
|
|
137
|
+
unique.append(t)
|
|
138
|
+
|
|
139
|
+
return unique
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
def auto_categorize(description: str) -> list[str]:
|
|
143
|
+
"""Return category labels whose keyword lists match the description."""
|
|
144
|
+
desc_lower = description.lower()
|
|
145
|
+
matched: list[str] = []
|
|
146
|
+
for category, keywords in CATEGORY_KEYWORDS.items():
|
|
147
|
+
if any(kw in desc_lower for kw in keywords):
|
|
148
|
+
matched.append(category)
|
|
149
|
+
return matched
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
def extract_tools(body: str) -> list[str]:
|
|
153
|
+
"""Return unique tool/command names found inside backticks."""
|
|
154
|
+
# Match `something` — filter out multi-line code fences
|
|
155
|
+
raw = re.findall(r"`([^`\n]+)`", body)
|
|
156
|
+
tools: list[str] = []
|
|
157
|
+
seen: set[str] = set()
|
|
158
|
+
for item in raw:
|
|
159
|
+
item = item.strip()
|
|
160
|
+
# Keep plausible tool names: short, no spaces (or simple flags/paths)
|
|
161
|
+
if item and len(item) <= 60 and item not in seen:
|
|
162
|
+
seen.add(item)
|
|
163
|
+
tools.append(item)
|
|
164
|
+
return tools
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
# ---------------------------------------------------------------------------
|
|
168
|
+
# Per-file processing
|
|
169
|
+
# ---------------------------------------------------------------------------
|
|
170
|
+
|
|
171
|
+
def process_skill_file(skill_file: Path) -> dict:
|
|
172
|
+
"""Parse a single skill.md / SKILL.md and return a record dict."""
|
|
173
|
+
text = skill_file.read_text(encoding="utf-8", errors="replace")
|
|
174
|
+
lines = text.splitlines()
|
|
175
|
+
line_count = len(lines)
|
|
176
|
+
has_code_examples = "```" in text
|
|
177
|
+
|
|
178
|
+
fm, body = parse_frontmatter(text)
|
|
179
|
+
|
|
180
|
+
directory = skill_file.parent.name
|
|
181
|
+
name = fm.get("name") or directory
|
|
182
|
+
description = fm.get("description", "")
|
|
183
|
+
|
|
184
|
+
# Relative path uses forward slashes for portability
|
|
185
|
+
rel_path = skill_file.relative_to(REPO_ROOT).as_posix()
|
|
186
|
+
|
|
187
|
+
triggers = extract_triggers(description)
|
|
188
|
+
categories = auto_categorize(description)
|
|
189
|
+
tools_mentioned = extract_tools(body)
|
|
190
|
+
|
|
191
|
+
return {
|
|
192
|
+
"name": name,
|
|
193
|
+
"description": description,
|
|
194
|
+
"path": rel_path,
|
|
195
|
+
"directory": directory,
|
|
196
|
+
"triggers": triggers,
|
|
197
|
+
"categories": categories,
|
|
198
|
+
"line_count": line_count,
|
|
199
|
+
"has_code_examples": has_code_examples,
|
|
200
|
+
"tools_mentioned": tools_mentioned,
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
# ---------------------------------------------------------------------------
|
|
205
|
+
# Discovery
|
|
206
|
+
# ---------------------------------------------------------------------------
|
|
207
|
+
|
|
208
|
+
def find_skill_files(root: Path) -> list[Path]:
|
|
209
|
+
"""Find all skill.md / SKILL.md files under root (one level of subdirs)."""
|
|
210
|
+
found: list[Path] = []
|
|
211
|
+
for child in sorted(root.iterdir()):
|
|
212
|
+
if not child.is_dir():
|
|
213
|
+
continue
|
|
214
|
+
# Skip hidden dirs and scripts/
|
|
215
|
+
if child.name.startswith(".") or child.name == "scripts":
|
|
216
|
+
continue
|
|
217
|
+
for fname in SKILL_FILENAMES:
|
|
218
|
+
candidate = child / fname
|
|
219
|
+
if candidate.is_file():
|
|
220
|
+
found.append(candidate)
|
|
221
|
+
break # take only the first match per directory
|
|
222
|
+
return found
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
# ---------------------------------------------------------------------------
|
|
226
|
+
# Main
|
|
227
|
+
# ---------------------------------------------------------------------------
|
|
228
|
+
|
|
229
|
+
def main() -> None:
|
|
230
|
+
skill_files = find_skill_files(REPO_ROOT)
|
|
231
|
+
|
|
232
|
+
if not skill_files:
|
|
233
|
+
print("WARNING: No skill files found under", REPO_ROOT, file=sys.stderr)
|
|
234
|
+
|
|
235
|
+
skills = [process_skill_file(f) for f in skill_files]
|
|
236
|
+
skills.sort(key=lambda s: s["name"].lower())
|
|
237
|
+
|
|
238
|
+
timestamp = datetime.now(timezone.utc).isoformat(timespec="seconds")
|
|
239
|
+
|
|
240
|
+
# --- Full index ---
|
|
241
|
+
full_index = {
|
|
242
|
+
"version": "1.0",
|
|
243
|
+
"generated_at": timestamp,
|
|
244
|
+
"skill_count": len(skills),
|
|
245
|
+
"skills": skills,
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
full_path = REPO_ROOT / "skills.json"
|
|
249
|
+
full_path.write_text(
|
|
250
|
+
json.dumps(full_index, indent=2, ensure_ascii=False),
|
|
251
|
+
encoding="utf-8",
|
|
252
|
+
)
|
|
253
|
+
print(f"Written: {full_path} ({len(skills)} skills)")
|
|
254
|
+
|
|
255
|
+
# --- Compact routing index ---
|
|
256
|
+
routing_skills = [
|
|
257
|
+
{
|
|
258
|
+
"name": s["name"],
|
|
259
|
+
"description": s["description"],
|
|
260
|
+
"categories": s["categories"],
|
|
261
|
+
"triggers": s["triggers"],
|
|
262
|
+
}
|
|
263
|
+
for s in skills
|
|
264
|
+
]
|
|
265
|
+
|
|
266
|
+
routing_index = {
|
|
267
|
+
"version": "1.0",
|
|
268
|
+
"generated_at": timestamp,
|
|
269
|
+
"skill_count": len(skills),
|
|
270
|
+
"skills": routing_skills,
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
routing_path = REPO_ROOT / "skills-routing.json"
|
|
274
|
+
routing_path.write_text(
|
|
275
|
+
json.dumps(routing_index, indent=2, ensure_ascii=False),
|
|
276
|
+
encoding="utf-8",
|
|
277
|
+
)
|
|
278
|
+
print(f"Written: {routing_path}")
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
if __name__ == "__main__":
|
|
282
|
+
main()
|