@workingpayload/agent-skills 1.0.1 → 2.0.1

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.
Files changed (130) hide show
  1. package/APIForge/skill.md +165 -0
  2. package/AccessPlus/skill.md +136 -0
  3. package/AlgoMaster/skill.md +125 -0
  4. package/Architekt AI/skill.md +140 -0
  5. package/AuthCraft/skill.md +144 -0
  6. package/AutoScriptor/skill.md +137 -0
  7. package/BoilerCore/skill.md +136 -0
  8. package/BugHunter Pro/skill.md +133 -0
  9. package/ChangeScribe/skill.md +113 -0
  10. package/CodeMap/skill.md +194 -0
  11. package/CodeSage/skill.md +163 -0
  12. package/CommitCraft/skill.md +113 -0
  13. package/CoverageMax/skill.md +161 -0
  14. package/CronGenius/skill.md +157 -0
  15. package/DataPolish/skill.md +142 -0
  16. package/DataWeaver/skill.md +151 -0
  17. package/DockMaster/skill.md +158 -0
  18. package/DocuGenie/skill.md +138 -0
  19. package/EdgeGuard/skill.md +160 -0
  20. package/EnvWizard/skill.md +156 -0
  21. package/ErrorMedic/skill.md +152 -0
  22. package/FeatureSmith/skill.md +139 -0
  23. package/FlexiLayout/skill.md +144 -0
  24. package/FlowTester/skill.md +154 -0
  25. package/FunctionForge/skill.md +136 -0
  26. package/InputShield/skill.md +144 -0
  27. package/IssueForge/skill.md +148 -0
  28. package/KubeCrafter/skill.md +149 -0
  29. package/LogicLens/skill.md +132 -0
  30. package/MockSmith/skill.md +146 -0
  31. package/ModelSensei/skill.md +138 -0
  32. package/PRMentor/skill.md +103 -0
  33. package/PerfDetective/skill.md +90 -0
  34. package/PipelinePro/skill.md +146 -0
  35. package/PolyglotShift/skill.md +94 -0
  36. package/PromptForge/skill.md +118 -0
  37. package/QueryPulse/skill.md +123 -0
  38. package/README.md +327 -216
  39. package/ReadMeCraft/skill.md +127 -0
  40. package/RefactorX/skill.md +110 -0
  41. package/RenderBoost/skill.md +148 -0
  42. package/SEOMancer/skill.md +156 -0
  43. package/ScrapeMaster/skill.md +157 -0
  44. package/SecretSniffer/skill.md +123 -0
  45. package/SecureScan/skill.md +130 -0
  46. package/ServiceSplitter/skill.md +153 -0
  47. package/SpeedSmith/skill.md +155 -0
  48. package/StackWise/skill.md +155 -0
  49. package/TaskOrchestrator/skill.md +135 -0
  50. package/TestCrafter/skill.md +158 -0
  51. package/TraceMind/skill.md +143 -0
  52. package/UISmith/skill.md +131 -0
  53. package/bin/cli.js +436 -0
  54. package/extension-extender/SKILL.md +122 -0
  55. package/fastapi-furious/SKILL.md +148 -0
  56. package/package.json +42 -32
  57. package/python-master/SKILL.md +108 -0
  58. package/react-ranger/SKILL.md +93 -0
  59. package/scripts/build_index.py +282 -0
  60. package/scripts/doctor.py +542 -0
  61. package/scripts/install.py +436 -0
  62. package/scripts/route.py +348 -0
  63. package/scripts/score.py +355 -0
  64. package/scripts/test_skill.py +501 -0
  65. package/scripts/validate.py +254 -0
  66. package/skills-routing.json +1156 -0
  67. package/skills.json +3389 -0
  68. package/cli.js +0 -181
  69. package/skills/APIForge/skill.md +0 -32
  70. package/skills/AccessPlus/skill.md +0 -32
  71. package/skills/AlgoMaster/skill.md +0 -32
  72. package/skills/Architekt AI/skill.md +0 -32
  73. package/skills/AuthCraft/skill.md +0 -32
  74. package/skills/AutoScriptor/skill.md +0 -32
  75. package/skills/BoilerCore/skill.md +0 -32
  76. package/skills/BugHunter Pro/skill.md +0 -32
  77. package/skills/ChangeScribe/skill.md +0 -32
  78. package/skills/CodeSage/skill.md +0 -32
  79. package/skills/CommitCraft/skill.md +0 -32
  80. package/skills/CoverageMax/skill.md +0 -32
  81. package/skills/CronGenius/skill.md +0 -32
  82. package/skills/DataPolish/skill.md +0 -32
  83. package/skills/DataWeaver/skill.md +0 -32
  84. package/skills/DockMaster/skill.md +0 -32
  85. package/skills/DocuGenie/skill.md +0 -32
  86. package/skills/EdgeGuard/skill.md +0 -32
  87. package/skills/EnvWizard/skill.md +0 -32
  88. package/skills/ErrorMedic/skill.md +0 -32
  89. package/skills/Extension-Extender/SKILL.md +0 -41
  90. package/skills/Extension-Extender/references/ui-guidelines.md +0 -26
  91. package/skills/Fastapi-Furious/README.md +0 -16
  92. package/skills/Fastapi-Furious/SKILL.md +0 -37
  93. package/skills/FeatureSmith/skill.md +0 -32
  94. package/skills/FlexiLayout/skill.md +0 -32
  95. package/skills/FlowTester/skill.md +0 -32
  96. package/skills/FunctionForge/skill.md +0 -32
  97. package/skills/InputShield/skill.md +0 -32
  98. package/skills/IssueForge/skill.md +0 -32
  99. package/skills/KubeCrafter/skill.md +0 -32
  100. package/skills/LogicLens/skill.md +0 -32
  101. package/skills/MockSmith/skill.md +0 -32
  102. package/skills/ModelSensei/skill.md +0 -32
  103. package/skills/PRMentor/skill.md +0 -32
  104. package/skills/PerfDetective/skill.md +0 -32
  105. package/skills/PipelinePro/skill.md +0 -32
  106. package/skills/PolyglotShift/skill.md +0 -32
  107. package/skills/PromptForge/skill.md +0 -32
  108. package/skills/Python-Master/README.md +0 -11
  109. package/skills/Python-Master/SKILL.md +0 -37
  110. package/skills/QueryPulse/skill.md +0 -32
  111. package/skills/React-Ranger/README.md +0 -17
  112. package/skills/React-Ranger/SKILL.md +0 -37
  113. package/skills/ReadMeCraft/skill.md +0 -32
  114. package/skills/RefactorX/skill.md +0 -32
  115. package/skills/RenderBoost/skill.md +0 -32
  116. package/skills/SEOMancer/skill.md +0 -32
  117. package/skills/ScrapeMaster/skill.md +0 -32
  118. package/skills/SecretSniffer/skill.md +0 -32
  119. package/skills/SecureScan/skill.md +0 -32
  120. package/skills/ServiceSplitter/skill.md +0 -32
  121. package/skills/SpeedSmith/skill.md +0 -32
  122. package/skills/StackWise/skill.md +0 -32
  123. package/skills/TaskOrchestrator/skill.md +0 -32
  124. package/skills/TestCrafter/skill.md +0 -32
  125. package/skills/TraceMind/skill.md +0 -32
  126. package/skills/UISmith/skill.md +0 -32
  127. /package/{skills/Extension-Extender → extension-extender}/assets/manifest.json +0 -0
  128. /package/{skills/Extension-Extender → extension-extender}/assets/popup.css +0 -0
  129. /package/{skills/Extension-Extender → extension-extender}/assets/popup.html +0 -0
  130. /package/{skills/Extension-Extender → extension-extender}/assets/popup.js +0 -0
@@ -0,0 +1,254 @@
1
+ #!/usr/bin/env python3
2
+ """
3
+ validate.py - Validates all skill files (skill.md / SKILL.md) in the repo.
4
+
5
+ Usage:
6
+ python scripts/validate.py # validate and report
7
+ python scripts/validate.py --fix # also auto-fix "Generated by Gemini CLI" lines
8
+
9
+ Exit code 0 if all files pass, 1 if any fail.
10
+ """
11
+
12
+ import argparse
13
+ import re
14
+ import sys
15
+ from pathlib import Path
16
+
17
+ # ---------------------------------------------------------------------------
18
+ # Constants
19
+ # ---------------------------------------------------------------------------
20
+
21
+ SKILL_FILENAMES = {"skill.md", "SKILL.md"}
22
+
23
+ FILLER_PHRASES = [
24
+ "Apply the core logic",
25
+ "Strive for flawless",
26
+ "perfectly resolves",
27
+ ]
28
+
29
+ LEGACY_TAG = "Generated by Gemini CLI"
30
+
31
+ MIN_LINES = 50
32
+ MAX_LINES = 200
33
+ MIN_DESCRIPTION_LEN = 50
34
+
35
+
36
+ # ---------------------------------------------------------------------------
37
+ # Validation helpers
38
+ # ---------------------------------------------------------------------------
39
+
40
+ def parse_frontmatter(lines: list[str]) -> tuple[dict[str, str] | None, int]:
41
+ """
42
+ Parse YAML frontmatter delimited by '---'.
43
+
44
+ Returns (fields_dict, body_start_line_index) or (None, 0) if not found.
45
+ Only extracts simple key: value pairs (no nested YAML).
46
+ """
47
+ if not lines or lines[0].strip() != "---":
48
+ return None, 0
49
+
50
+ end = None
51
+ for i, line in enumerate(lines[1:], start=1):
52
+ if line.strip() == "---":
53
+ end = i
54
+ break
55
+
56
+ if end is None:
57
+ return None, 0
58
+
59
+ fields: dict[str, str] = {}
60
+ for line in lines[1:end]:
61
+ if ":" in line:
62
+ key, _, value = line.partition(":")
63
+ fields[key.strip()] = value.strip().strip('"').strip("'")
64
+
65
+ return fields, end + 1
66
+
67
+
68
+ def validate_file(path: Path, fix: bool = False) -> tuple[bool, list[str]]:
69
+ """
70
+ Validate a single skill file.
71
+
72
+ Returns (passed: bool, violations: list[str]).
73
+ When fix=True, auto-removes "Generated by Gemini CLI" lines in-place.
74
+ """
75
+ violations: list[str] = []
76
+
77
+ raw = path.read_text(encoding="utf-8", errors="replace")
78
+ lines = raw.splitlines()
79
+
80
+ # ------------------------------------------------------------------
81
+ # Auto-fix: remove "Generated by Gemini CLI" lines
82
+ # ------------------------------------------------------------------
83
+ if fix:
84
+ filtered = [ln for ln in lines if LEGACY_TAG not in ln]
85
+ if len(filtered) != len(lines):
86
+ path.write_text("\n".join(filtered) + "\n", encoding="utf-8")
87
+ lines = filtered
88
+ raw = "\n".join(lines)
89
+
90
+ # ------------------------------------------------------------------
91
+ # Rule 1: YAML frontmatter with name and description
92
+ # ------------------------------------------------------------------
93
+ fields, body_start = parse_frontmatter(lines)
94
+ if fields is None:
95
+ violations.append("Missing YAML frontmatter (--- delimited)")
96
+ else:
97
+ if "name" not in fields:
98
+ violations.append("Frontmatter missing 'name' field")
99
+ if "description" not in fields:
100
+ violations.append("Frontmatter missing 'description' field")
101
+ else:
102
+ desc = fields["description"]
103
+ if len(desc) < MIN_DESCRIPTION_LEN:
104
+ violations.append(
105
+ f"'description' is {len(desc)} chars (minimum {MIN_DESCRIPTION_LEN})"
106
+ )
107
+
108
+ # Work on the full text for heading / block checks
109
+ # ------------------------------------------------------------------
110
+ # Rule 2-4: Headings
111
+ # ------------------------------------------------------------------
112
+ h1_lines = [ln for ln in lines if re.match(r"^#\s+\S", ln)]
113
+ h2_lines = [ln for ln in lines if re.match(r"^##\s+\S", ln)]
114
+ h3_lines = [ln for ln in lines if re.match(r"^###\s+\S", ln)]
115
+
116
+ if not h1_lines:
117
+ violations.append("No H1 heading (#) found")
118
+ if not h2_lines:
119
+ violations.append("No H2 section (##) found")
120
+ if not h3_lines:
121
+ violations.append("No H3 subsection (###) found")
122
+
123
+ # ------------------------------------------------------------------
124
+ # Rule 5: Line count
125
+ # ------------------------------------------------------------------
126
+ line_count = len(lines)
127
+ if line_count < MIN_LINES:
128
+ violations.append(
129
+ f"File has {line_count} lines (minimum {MIN_LINES})"
130
+ )
131
+ elif line_count > MAX_LINES:
132
+ violations.append(
133
+ f"File has {line_count} lines (maximum {MAX_LINES})"
134
+ )
135
+
136
+ # ------------------------------------------------------------------
137
+ # Rule 6: Code block
138
+ # ------------------------------------------------------------------
139
+ if "```" not in raw:
140
+ violations.append("No code block (```) found")
141
+
142
+ # ------------------------------------------------------------------
143
+ # Rule 7: Edge case section
144
+ # ------------------------------------------------------------------
145
+ if not re.search(r"edge\s+case", raw, re.IGNORECASE):
146
+ violations.append("No 'edge case' section found (case-insensitive)")
147
+
148
+ # ------------------------------------------------------------------
149
+ # Rule 8: Legacy tag
150
+ # ------------------------------------------------------------------
151
+ if LEGACY_TAG in raw:
152
+ violations.append(f'Contains legacy tag: "{LEGACY_TAG}"')
153
+
154
+ # ------------------------------------------------------------------
155
+ # Rule 9: Generic filler phrases
156
+ # ------------------------------------------------------------------
157
+ for phrase in FILLER_PHRASES:
158
+ if phrase in raw:
159
+ violations.append(f'Contains generic filler phrase: "{phrase}"')
160
+
161
+ passed = len(violations) == 0
162
+ return passed, violations
163
+
164
+
165
+ # ---------------------------------------------------------------------------
166
+ # Discovery
167
+ # ---------------------------------------------------------------------------
168
+
169
+ def find_skill_files(repo_root: Path) -> list[Path]:
170
+ """Return all skill.md / SKILL.md files in immediate subdirectories."""
171
+ skill_files: list[Path] = []
172
+ for subdir in repo_root.iterdir():
173
+ if not subdir.is_dir():
174
+ continue
175
+ for name in SKILL_FILENAMES:
176
+ candidate = subdir / name
177
+ if candidate.is_file():
178
+ skill_files.append(candidate)
179
+ return sorted(skill_files)
180
+
181
+
182
+ # ---------------------------------------------------------------------------
183
+ # Main
184
+ # ---------------------------------------------------------------------------
185
+
186
+ def main() -> int:
187
+ parser = argparse.ArgumentParser(
188
+ description="Validate skill.md / SKILL.md files in the repo."
189
+ )
190
+ parser.add_argument(
191
+ "--fix",
192
+ action="store_true",
193
+ help='Auto-fix "Generated by Gemini CLI" lines by removing them.',
194
+ )
195
+ args = parser.parse_args()
196
+
197
+ repo_root = Path(__file__).resolve().parent.parent
198
+
199
+ skill_files = find_skill_files(repo_root)
200
+ if not skill_files:
201
+ print("No skill files found.")
202
+ return 0
203
+
204
+ total = len(skill_files)
205
+ passed_count = 0
206
+ failed_count = 0
207
+ all_violations: list[tuple[Path, list[str]]] = []
208
+
209
+ # ------------------------------------------------------------------
210
+ # Per-file output
211
+ # ------------------------------------------------------------------
212
+ print(f"Validating {total} skill file(s) in: {repo_root}\n")
213
+ print("=" * 70)
214
+
215
+ for path in skill_files:
216
+ rel = path.relative_to(repo_root)
217
+ passed, violations = validate_file(path, fix=args.fix)
218
+
219
+ if passed:
220
+ passed_count += 1
221
+ print(f"PASS {rel}")
222
+ else:
223
+ failed_count += 1
224
+ all_violations.append((path, violations))
225
+ print(f"FAIL {rel}")
226
+ for v in violations:
227
+ print(f" - {v}")
228
+
229
+ # ------------------------------------------------------------------
230
+ # Summary
231
+ # ------------------------------------------------------------------
232
+ print("=" * 70)
233
+ print(f"\nSummary: {total} file(s) checked — {passed_count} passed, {failed_count} failed\n")
234
+
235
+ if all_violations:
236
+ print("All violations:")
237
+ for path, violations in all_violations:
238
+ rel = path.relative_to(repo_root)
239
+ print(f"\n {rel}")
240
+ for v in violations:
241
+ print(f" - {v}")
242
+ print()
243
+
244
+ if args.fix and failed_count:
245
+ print(
246
+ 'Note: --fix only removes "Generated by Gemini CLI" lines. '
247
+ "Other violations must be fixed manually.\n"
248
+ )
249
+
250
+ return 0 if failed_count == 0 else 1
251
+
252
+
253
+ if __name__ == "__main__":
254
+ sys.exit(main())