seo-supervisor 1.2.0 → 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.
Files changed (207) hide show
  1. package/.claude-plugin/icon.png +0 -0
  2. package/.claude-plugin/marketplace.json +2 -2
  3. package/.claude-plugin/plugin.json +16 -3
  4. package/CHANGELOG.md +430 -0
  5. package/NOTICE +7 -0
  6. package/README.md +230 -25
  7. package/agents/seo-auditor.md +16 -0
  8. package/agents/seo-reviewer.md +16 -0
  9. package/bin/agents.mjs +194 -29
  10. package/bin/extras.mjs +422 -0
  11. package/bin/prompt.mjs +34 -14
  12. package/bin/seo-supervisor.mjs +386 -53
  13. package/commands/seo-audit.md +29 -3
  14. package/commands/seo-brief.md +28 -0
  15. package/commands/seo-connect.md +27 -0
  16. package/commands/seo-fix.md +24 -3
  17. package/commands/seo-grow.md +26 -0
  18. package/commands/seo-launch.md +17 -3
  19. package/commands/seo-review.md +13 -1
  20. package/commands/seo-rewrite.md +25 -0
  21. package/commands/seo-setup.md +17 -1
  22. package/commands/seo-watch.md +28 -0
  23. package/hooks/hooks.json +117 -0
  24. package/package.json +20 -7
  25. package/skills/seo-supervisor/NOTICE +7 -0
  26. package/skills/seo-supervisor/SKILL.md +302 -21
  27. package/skills/seo-supervisor/audience.md +61 -0
  28. package/skills/seo-supervisor/examples/drafts/security.md +41 -0
  29. package/skills/seo-supervisor/examples/hooks/README.md +28 -0
  30. package/skills/seo-supervisor/examples/hooks/claude-code-settings.json +15 -0
  31. package/skills/seo-supervisor/examples/hooks/codex-hooks.json +17 -0
  32. package/skills/seo-supervisor/examples/hooks/copilot-hooks.json +15 -0
  33. package/skills/seo-supervisor/examples/hooks/cursor-hooks.json +11 -0
  34. package/skills/seo-supervisor/examples/hooks/github-actions.yml +21 -0
  35. package/skills/seo-supervisor/examples/hooks/pre-commit +17 -0
  36. package/skills/seo-supervisor/examples/hooks/reading-ease.yml +24 -0
  37. package/skills/seo-supervisor/examples/sample-audit.json +94 -2
  38. package/skills/seo-supervisor/examples/sample-report.html +111 -61
  39. package/skills/seo-supervisor/examples/sample-report.md +147 -44
  40. package/skills/seo-supervisor/examples/scheduled-runs.md +89 -0
  41. package/skills/seo-supervisor/examples/snippets.md +648 -1
  42. package/skills/seo-supervisor/grow.md +342 -0
  43. package/skills/seo-supervisor/og-images.md +85 -0
  44. package/skills/seo-supervisor/page-types.md +124 -0
  45. package/skills/seo-supervisor/planning.md +19 -7
  46. package/skills/seo-supervisor/profile-template.md +41 -0
  47. package/skills/seo-supervisor/report-format.md +177 -10
  48. package/skills/seo-supervisor/rewrite.md +59 -0
  49. package/skills/seo-supervisor/rules/ai-search.md +65 -12
  50. package/skills/seo-supervisor/rules/content.md +33 -9
  51. package/skills/seo-supervisor/rules/crawl-index.md +33 -6
  52. package/skills/seo-supervisor/rules/internal-linking.md +49 -6
  53. package/skills/seo-supervisor/rules/launch-monitoring.md +17 -8
  54. package/skills/seo-supervisor/rules/media.md +13 -1
  55. package/skills/seo-supervisor/rules/metadata.md +41 -9
  56. package/skills/seo-supervisor/rules/performance.md +50 -5
  57. package/skills/seo-supervisor/rules/rendering.md +39 -2
  58. package/skills/seo-supervisor/rules/search-intent.md +32 -0
  59. package/skills/seo-supervisor/rules/sitemaps-robots.md +24 -12
  60. package/skills/seo-supervisor/rules/structured-data.md +37 -14
  61. package/skills/seo-supervisor/rules/trust-security.md +25 -2
  62. package/skills/seo-supervisor/rules/urls.md +10 -2
  63. package/skills/seo-supervisor/scripts/ai-answers.mjs +314 -0
  64. package/skills/seo-supervisor/scripts/backlinks.mjs +412 -0
  65. package/skills/seo-supervisor/scripts/change-check.mjs +281 -0
  66. package/skills/seo-supervisor/scripts/checks/agents.mjs +488 -0
  67. package/skills/seo-supervisor/scripts/checks/assets.mjs +404 -0
  68. package/skills/seo-supervisor/scripts/checks/bots.mjs +146 -0
  69. package/skills/seo-supervisor/scripts/checks/business-type.mjs +193 -0
  70. package/skills/seo-supervisor/scripts/checks/content.mjs +391 -0
  71. package/skills/seo-supervisor/scripts/checks/coverage.mjs +184 -0
  72. package/skills/seo-supervisor/scripts/checks/crawl.mjs +95 -0
  73. package/skills/seo-supervisor/scripts/checks/hreflang.mjs +396 -0
  74. package/skills/seo-supervisor/scripts/checks/hygiene.mjs +227 -0
  75. package/skills/seo-supervisor/scripts/checks/lighthouse.mjs +271 -0
  76. package/skills/seo-supervisor/scripts/checks/link-strength.mjs +59 -0
  77. package/skills/seo-supervisor/scripts/checks/links.mjs +360 -0
  78. package/skills/seo-supervisor/scripts/checks/local.mjs +101 -0
  79. package/skills/seo-supervisor/scripts/checks/media.mjs +194 -0
  80. package/skills/seo-supervisor/scripts/checks/outbound.mjs +53 -0
  81. package/skills/seo-supervisor/scripts/checks/page.mjs +223 -0
  82. package/skills/seo-supervisor/scripts/checks/probes.mjs +130 -0
  83. package/skills/seo-supervisor/scripts/checks/render.mjs +552 -0
  84. package/skills/seo-supervisor/scripts/checks/robots.mjs +144 -0
  85. package/skills/seo-supervisor/scripts/checks/schema.mjs +206 -0
  86. package/skills/seo-supervisor/scripts/checks/site-agents.mjs +79 -0
  87. package/skills/seo-supervisor/scripts/checks/site-content.mjs +135 -0
  88. package/skills/seo-supervisor/scripts/checks/site-hygiene.mjs +202 -0
  89. package/skills/seo-supervisor/scripts/checks/site-pages.mjs +474 -0
  90. package/skills/seo-supervisor/scripts/checks/site-security.mjs +102 -0
  91. package/skills/seo-supervisor/scripts/checks/sitemap.mjs +473 -0
  92. package/skills/seo-supervisor/scripts/checks/speed.mjs +267 -0
  93. package/skills/seo-supervisor/scripts/checks/technical.mjs +368 -0
  94. package/skills/seo-supervisor/scripts/checks/tls.mjs +297 -0
  95. package/skills/seo-supervisor/scripts/checks/trust.mjs +421 -0
  96. package/skills/seo-supervisor/scripts/checks/visual.mjs +1132 -0
  97. package/skills/seo-supervisor/scripts/checks/writing.mjs +192 -0
  98. package/skills/seo-supervisor/scripts/commoncrawl.mjs +452 -0
  99. package/skills/seo-supervisor/scripts/connect-keys.mjs +422 -0
  100. package/skills/seo-supervisor/scripts/content-scan.mjs +515 -158
  101. package/skills/seo-supervisor/scripts/crawl/catalog.mjs +1248 -0
  102. package/skills/seo-supervisor/scripts/crawl/fetch.mjs +362 -0
  103. package/skills/seo-supervisor/scripts/crawl/page.mjs +741 -0
  104. package/skills/seo-supervisor/scripts/crawl/queue.mjs +190 -0
  105. package/skills/seo-supervisor/scripts/dashboard.mjs +140 -0
  106. package/skills/seo-supervisor/scripts/data/ai-bots.json +38 -0
  107. package/skills/seo-supervisor/scripts/data/build-schema-vocab.mjs +57 -0
  108. package/skills/seo-supervisor/scripts/data/business-types.json +338 -0
  109. package/skills/seo-supervisor/scripts/data/google-rich-results.json +79 -0
  110. package/skills/seo-supervisor/scripts/data/schema-vocab.json +1 -0
  111. package/skills/seo-supervisor/scripts/deploy-check.mjs +462 -0
  112. package/skills/seo-supervisor/scripts/disavow.mjs +176 -0
  113. package/skills/seo-supervisor/scripts/doctor.mjs +174 -0
  114. package/skills/seo-supervisor/scripts/geo-grid.mjs +371 -0
  115. package/skills/seo-supervisor/scripts/google/search-console.mjs +151 -0
  116. package/skills/seo-supervisor/scripts/google/session.mjs +167 -0
  117. package/skills/seo-supervisor/scripts/google-updates.mjs +189 -0
  118. package/skills/seo-supervisor/scripts/google.mjs +1341 -0
  119. package/skills/seo-supervisor/scripts/gsc-import.mjs +298 -0
  120. package/skills/seo-supervisor/scripts/guard/adapters/claude-code.mjs +149 -0
  121. package/skills/seo-supervisor/scripts/guard/adapters/cline.mjs +28 -0
  122. package/skills/seo-supervisor/scripts/guard/adapters/codex.mjs +26 -0
  123. package/skills/seo-supervisor/scripts/guard/adapters/copilot.mjs +36 -0
  124. package/skills/seo-supervisor/scripts/guard/adapters/cursor.mjs +33 -0
  125. package/skills/seo-supervisor/scripts/guard/adapters/devin.mjs +25 -0
  126. package/skills/seo-supervisor/scripts/guard/adapters/edits.mjs +124 -0
  127. package/skills/seo-supervisor/scripts/guard/mode.mjs +37 -0
  128. package/skills/seo-supervisor/scripts/guard/rules.mjs +931 -0
  129. package/skills/seo-supervisor/scripts/guard.mjs +74 -0
  130. package/skills/seo-supervisor/scripts/images.mjs +408 -0
  131. package/skills/seo-supervisor/scripts/indexnow.mjs +300 -0
  132. package/skills/seo-supervisor/scripts/issues.mjs +217 -0
  133. package/skills/seo-supervisor/scripts/keys/authority.mjs +135 -0
  134. package/skills/seo-supervisor/scripts/keys/bing.mjs +239 -0
  135. package/skills/seo-supervisor/scripts/keys/clarity.mjs +137 -0
  136. package/skills/seo-supervisor/scripts/keys/dataforseo.mjs +57 -0
  137. package/skills/seo-supervisor/scripts/keys/googleplaces.mjs +26 -0
  138. package/skills/seo-supervisor/scripts/keys/http.mjs +212 -0
  139. package/skills/seo-supervisor/scripts/keys/matomo.mjs +138 -0
  140. package/skills/seo-supervisor/scripts/keys/openai.mjs +26 -0
  141. package/skills/seo-supervisor/scripts/keys/perplexity.mjs +26 -0
  142. package/skills/seo-supervisor/scripts/keys/posthog.mjs +165 -0
  143. package/skills/seo-supervisor/scripts/keys/semrush.mjs +25 -0
  144. package/skills/seo-supervisor/scripts/keys/services.mjs +41 -0
  145. package/skills/seo-supervisor/scripts/keys/store.mjs +140 -0
  146. package/skills/seo-supervisor/scripts/keys/visits.mjs +58 -0
  147. package/skills/seo-supervisor/scripts/keys/youtube.mjs +84 -0
  148. package/skills/seo-supervisor/scripts/keyword-data.mjs +316 -0
  149. package/skills/seo-supervisor/scripts/keyword-ideas.mjs +503 -0
  150. package/skills/seo-supervisor/scripts/lib/args.mjs +56 -0
  151. package/skills/seo-supervisor/scripts/lib/business.mjs +27 -0
  152. package/skills/seo-supervisor/scripts/lib/cdp.mjs +242 -0
  153. package/skills/seo-supervisor/scripts/lib/cli.mjs +56 -0
  154. package/skills/seo-supervisor/scripts/lib/csv.mjs +38 -0
  155. package/skills/seo-supervisor/scripts/lib/findings.mjs +100 -0
  156. package/skills/seo-supervisor/scripts/lib/google-client.mjs +9 -0
  157. package/skills/seo-supervisor/scripts/lib/html.mjs +146 -0
  158. package/skills/seo-supervisor/scripts/lib/http.mjs +28 -0
  159. package/skills/seo-supervisor/scripts/lib/image-size.mjs +78 -0
  160. package/skills/seo-supervisor/scripts/lib/is-main.mjs +13 -0
  161. package/skills/seo-supervisor/scripts/lib/net.mjs +116 -0
  162. package/skills/seo-supervisor/scripts/lib/proxy.mjs +47 -0
  163. package/skills/seo-supervisor/scripts/lib/recheck.mjs +106 -0
  164. package/skills/seo-supervisor/scripts/lib/redact.mjs +78 -0
  165. package/skills/seo-supervisor/scripts/lib/robots.mjs +73 -0
  166. package/skills/seo-supervisor/scripts/lib/score.mjs +266 -0
  167. package/skills/seo-supervisor/scripts/lib/settings-dir.mjs +81 -0
  168. package/skills/seo-supervisor/scripts/links-import.mjs +603 -0
  169. package/skills/seo-supervisor/scripts/log-scan.mjs +597 -0
  170. package/skills/seo-supervisor/scripts/og-card.mjs +273 -0
  171. package/skills/seo-supervisor/scripts/osm.mjs +359 -0
  172. package/skills/seo-supervisor/scripts/rdap.mjs +164 -0
  173. package/skills/seo-supervisor/scripts/render-report.mjs +324 -690
  174. package/skills/seo-supervisor/scripts/report/client.js +37 -0
  175. package/skills/seo-supervisor/scripts/report/diff.mjs +264 -0
  176. package/skills/seo-supervisor/scripts/report/findings.mjs +165 -0
  177. package/skills/seo-supervisor/scripts/report/format.mjs +111 -0
  178. package/skills/seo-supervisor/scripts/report/markdown.mjs +250 -0
  179. package/skills/seo-supervisor/scripts/report/model.mjs +171 -0
  180. package/skills/seo-supervisor/scripts/report/overview-lines.mjs +158 -0
  181. package/skills/seo-supervisor/scripts/report/overview.mjs +224 -0
  182. package/skills/seo-supervisor/scripts/report/page.mjs +127 -0
  183. package/skills/seo-supervisor/scripts/report/panel.mjs +172 -0
  184. package/skills/seo-supervisor/scripts/report/panels/ai.mjs +211 -0
  185. package/skills/seo-supervisor/scripts/report/panels/connections.mjs +139 -0
  186. package/skills/seo-supervisor/scripts/report/panels/content.mjs +204 -0
  187. package/skills/seo-supervisor/scripts/report/panels/data-search.mjs +379 -0
  188. package/skills/seo-supervisor/scripts/report/panels/data-site.mjs +44 -0
  189. package/skills/seo-supervisor/scripts/report/panels/links.mjs +380 -0
  190. package/skills/seo-supervisor/scripts/report/panels/local.mjs +221 -0
  191. package/skills/seo-supervisor/scripts/report/panels/site.mjs +359 -0
  192. package/skills/seo-supervisor/scripts/report/panels/speed-media.mjs +267 -0
  193. package/skills/seo-supervisor/scripts/report/sources.mjs +163 -0
  194. package/skills/seo-supervisor/scripts/report/styles.css +223 -0
  195. package/skills/seo-supervisor/scripts/report/traffic.mjs +264 -0
  196. package/skills/seo-supervisor/scripts/report-plan.mjs +112 -33
  197. package/skills/seo-supervisor/scripts/schema-check.mjs +717 -0
  198. package/skills/seo-supervisor/scripts/seo-crawl.mjs +1086 -638
  199. package/skills/seo-supervisor/scripts/seo-diff.mjs +584 -0
  200. package/skills/seo-supervisor/scripts/update-check.mjs +82 -0
  201. package/skills/seo-supervisor/site-types/content.md +34 -1
  202. package/skills/seo-supervisor/site-types/ecommerce.md +38 -1
  203. package/skills/seo-supervisor/site-types/local-business.md +96 -6
  204. package/skills/seo-supervisor/site-types/services.md +46 -0
  205. package/skills/seo-supervisor/site-types/tools.md +3 -3
  206. package/skills/seo-supervisor/strategy.md +232 -0
  207. package/skills/seo-supervisor/troubleshooting.md +56 -0
package/bin/agents.mjs CHANGED
@@ -1,5 +1,6 @@
1
- // Where each coding agent reads skills from, and how to tell it's installed.
2
- // Paths follow the open skills CLI (github.com/vercel-labs/skills, src/agents.ts and docs/agents.md, read 18 Nov 2026).
1
+ // @ts-check
2
+ // Where each coding agent reads skills from, and how to tell it's installed. Skill paths follow the open skills CLI.
3
+ // https://github.com/vercel-labs/skills
3
4
  import { existsSync } from "node:fs";
4
5
  import { join } from "node:path";
5
6
 
@@ -7,37 +8,179 @@ const config = c => c.env.XDG_CONFIG_HOME || join(c.home, ".config");
7
8
  const claudeHome = c => c.env.CLAUDE_CONFIG_DIR || join(c.home, ".claude");
8
9
  const codexHome = c => c.env.CODEX_HOME || join(c.home, ".codex");
9
10
  const grokHome = c => c.env.GROK_HOME || join(c.home, ".grok");
10
- const shared = c => join(c.home, ".agents", "skills"); // read by Codex, Cline, Zed, Warp and others
11
+ // COPILOT_HOME moves ~/.copilot.
12
+ // https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference
13
+ const copilotHome = c => c.env.COPILOT_HOME || join(c.home, ".copilot");
14
+ // https://docs.devin.ai/cli/extensibility/skills
15
+ const devinHome = c => (c.env.APPDATA ? join(c.env.APPDATA, "devin") : join(config(c), "devin"));
16
+ const shared = c => join(c.home, ".agents", "skills"); // read by Codex, Cline, Goose, Zed, Warp and others
11
17
 
12
- // An agent that keeps everything in ~/<dir>: detected by that folder, skills in <dir>/skills.
13
- const plain = (key, name, dir) => ({ key, name, detect: c => [join(c.home, dir)], user: c => join(c.home, dir, "skills"), project: `${dir}/skills` });
18
+ // An agent that keeps everything in ~/<dir>, with skills in <dir>/skills.
19
+ const plain = (key, name, dir, more = {}) => ({
20
+ key,
21
+ name,
22
+ detect: c => [join(c.home, dir)],
23
+ user: c => join(c.home, dir, "skills"),
24
+ project: `${dir}/skills`,
25
+ ...more,
26
+ });
14
27
 
28
+ // Extras besides the skill: commands from commands/*.md ("md" as is, "roo" without $ARGUMENTS, "toml" for Gemini CLI),
29
+ // subagents from agents/*.md, and hooks that run scripts/guard.mjs, each in the agent's own format.
30
+ /** @typedef {{ user: string | ((c: any) => string), project: string, format: string }} Place */
31
+ /** @type {{ key: string, name: string, aliases?: string[], detect: (c: any) => string[], user: string | ((c: any) => string), project: string, commands?: Place, subagents?: Place, hooks?: Place }[]} */
15
32
  export const AGENTS = [
16
- { key: "claude-code", name: "Claude Code", detect: c => [claudeHome(c)], user: c => join(claudeHome(c), "skills"), project: ".claude/skills",
17
- commands: { user: c => join(claudeHome(c), "commands"), project: ".claude/commands" } },
18
- { key: "codex", name: "Codex", detect: c => [codexHome(c)], user: shared, project: ".agents/skills" },
19
- { key: "cursor", name: "Cursor", detect: c => [join(c.home, ".cursor")], user: c => join(c.home, ".cursor", "skills"), project: ".agents/skills" },
20
- { key: "windsurf", name: "Windsurf", detect: c => [join(c.home, ".codeium", "windsurf")], user: c => join(c.home, ".codeium", "windsurf", "skills"), project: ".windsurf/skills" },
21
- { key: "gemini-cli", name: "Gemini CLI", detect: c => [join(c.home, ".gemini")], user: c => join(c.home, ".gemini", "skills"), project: ".agents/skills" },
22
- { key: "github-copilot", name: "GitHub Copilot", detect: c => [join(c.home, ".copilot")], user: c => join(c.home, ".copilot", "skills"), project: ".agents/skills" },
23
- { key: "opencode", name: "OpenCode", detect: c => [join(config(c), "opencode")], user: c => join(config(c), "opencode", "skills"), project: ".agents/skills" },
24
- { key: "grok", name: "Grok Build", detect: c => [grokHome(c)], user: c => join(grokHome(c), "skills"), project: ".grok/skills" },
25
- { key: "cline", name: "Cline", detect: c => [join(c.home, ".cline")], user: shared, project: ".agents/skills" },
26
- plain("kiro-cli", "Kiro CLI", ".kiro"),
27
- plain("roo", "Roo Code", ".roo"),
28
- plain("continue", "Continue", ".continue"),
29
- { key: "amp", name: "Amp", detect: c => [join(config(c), "amp")], user: c => join(config(c), "agents", "skills"), project: ".agents/skills" },
30
- { key: "goose", name: "Goose", detect: c => [join(config(c), "goose")], user: c => join(config(c), "goose", "skills"), project: ".goose/skills" },
33
+ {
34
+ key: "claude-code",
35
+ name: "Claude Code",
36
+ detect: c => [claudeHome(c)],
37
+ user: c => join(claudeHome(c), "skills"),
38
+ project: ".claude/skills",
39
+ commands: { user: c => join(claudeHome(c), "commands"), project: ".claude/commands", format: "md" },
40
+ },
41
+ // Codex reads a project's .codex/hooks.json only once the project is trusted.
42
+ // https://learn.chatgpt.com/docs/hooks
43
+ {
44
+ key: "codex",
45
+ name: "Codex",
46
+ detect: c => [codexHome(c)],
47
+ user: shared,
48
+ project: ".agents/skills",
49
+ hooks: { user: c => join(codexHome(c), "hooks.json"), project: ".codex/hooks.json", format: "codex" },
50
+ },
51
+ // https://cursor.com/docs/hooks
52
+ // https://cursor.com/docs/subagents
53
+ {
54
+ key: "cursor",
55
+ name: "Cursor",
56
+ detect: c => [join(c.home, ".cursor")],
57
+ user: c => join(c.home, ".cursor", "skills"),
58
+ project: ".agents/skills",
59
+ hooks: { user: c => join(c.home, ".cursor", "hooks.json"), project: ".cursor/hooks.json", format: "cursor" },
60
+ subagents: { user: c => join(c.home, ".cursor", "agents"), project: ".cursor/agents", format: "cursor" },
61
+ },
62
+ // Devin replaced Windsurf, whose docs redirect to docs.devin.ai. Project hooks own the whole .devin/hooks.v1.json;
63
+ // user hooks sit under the "hooks" key of config.json.
64
+ {
65
+ key: "devin",
66
+ aliases: ["windsurf"],
67
+ name: "Devin (formerly Windsurf)",
68
+ detect: c => [devinHome(c), join(c.home, ".codeium", "windsurf")],
69
+ user: c => join(devinHome(c), "skills"),
70
+ project: ".devin/skills",
71
+ hooks: { user: c => join(devinHome(c), "config.json"), project: ".devin/hooks.v1.json", format: "devin" },
72
+ },
73
+ // https://geminicli.com/docs/cli/custom-commands
74
+ {
75
+ key: "gemini-cli",
76
+ name: "Gemini CLI",
77
+ detect: c => [join(c.home, ".gemini")],
78
+ user: c => join(c.home, ".gemini", "skills"),
79
+ project: ".agents/skills",
80
+ commands: { user: c => join(c.home, ".gemini", "commands"), project: ".gemini/commands", format: "toml" },
81
+ },
82
+ // The app and the CLI both read ~/.gemini/config/skills.
83
+ // https://antigravity.google/docs/customization-discovery
84
+ {
85
+ key: "antigravity",
86
+ name: "Antigravity",
87
+ detect: c => ["config", "antigravity", "antigravity-cli"].map(d => join(c.home, ".gemini", d)),
88
+ user: c => join(c.home, ".gemini", "config", "skills"),
89
+ project: ".agents/skills",
90
+ },
91
+ // Copilot CLI loads every *.json in its hooks folders, and custom agents as *.agent.md.
92
+ // https://docs.github.com/en/copilot/reference/copilot-cli-reference/cli-hooks-reference
93
+ {
94
+ key: "github-copilot",
95
+ name: "GitHub Copilot",
96
+ detect: c => [copilotHome(c)],
97
+ user: c => join(copilotHome(c), "skills"),
98
+ project: ".agents/skills",
99
+ hooks: {
100
+ user: c => join(copilotHome(c), "hooks", "seo-supervisor-guard.json"),
101
+ project: ".github/hooks/seo-supervisor-guard.json",
102
+ format: "copilot",
103
+ },
104
+ subagents: { user: c => join(copilotHome(c), "agents"), project: ".github/agents", format: "copilot" },
105
+ },
106
+ // https://opencode.ai/docs/commands
107
+ // https://opencode.ai/docs/agents
108
+ {
109
+ key: "opencode",
110
+ name: "OpenCode",
111
+ detect: c => [join(config(c), "opencode")],
112
+ user: c => join(config(c), "opencode", "skills"),
113
+ project: ".agents/skills",
114
+ commands: { user: c => join(config(c), "opencode", "commands"), project: ".opencode/commands", format: "md" },
115
+ subagents: { user: c => join(config(c), "opencode", "agents"), project: ".opencode/agents", format: "opencode" },
116
+ },
117
+ {
118
+ key: "grok",
119
+ name: "Grok Build",
120
+ detect: c => [grokHome(c)],
121
+ user: c => join(grokHome(c), "skills"),
122
+ project: ".grok/skills",
123
+ },
124
+ // https://docs.cline.bot/customization/plugins
125
+ {
126
+ key: "cline",
127
+ name: "Cline",
128
+ detect: c => [join(c.home, ".cline")],
129
+ user: shared,
130
+ project: ".agents/skills",
131
+ hooks: {
132
+ user: c => join(c.home, ".cline", "plugins", "seo-supervisor-guard.js"),
133
+ project: ".cline/plugins/seo-supervisor-guard.js",
134
+ format: "cline",
135
+ },
136
+ },
137
+ // The IDE and the CLI both read these folders.
138
+ // https://kiro.dev/docs/skills
139
+ plain("kiro-cli", "Kiro", ".kiro", { aliases: ["kiro"] }),
140
+ // Roo commands have no argument placeholder.
141
+ // https://roocodeinc.github.io/Roo-Code/features/slash-commands
142
+ plain("roo", "Roo Code", ".roo", {
143
+ commands: { user: c => join(c.home, ".roo", "commands"), project: ".roo/commands", format: "roo" },
144
+ }),
145
+ // Continue's docs don't describe SKILL.md skills. The row keeps --agent continue working, labelled as unconfirmed.
146
+ // https://docs.continue.dev
147
+ plain("continue", "Continue (unconfirmed folder)", ".continue"),
148
+ {
149
+ key: "amp",
150
+ name: "Amp",
151
+ detect: c => [join(config(c), "amp")],
152
+ user: c => join(config(c), "agents", "skills"),
153
+ project: ".agents/skills",
154
+ },
155
+ // https://goose-docs.ai/docs/guides/context-engineering/using-skills
156
+ { key: "goose", name: "Goose", detect: c => [join(config(c), "goose")], user: shared, project: ".agents/skills" },
31
157
  plain("junie", "Junie", ".junie"),
32
158
  plain("qwen-code", "Qwen Code", ".qwen"),
33
159
  plain("trae", "Trae", ".trae"),
34
- plain("augment", "Augment", ".augment"),
35
- { key: "zed", name: "Zed", detect: c => [join(config(c), "zed"), ...(c.env.APPDATA ? [join(c.env.APPDATA, "Zed")] : [])], user: shared, project: ".agents/skills" },
160
+ // https://docs.augmentcode.com/cli/skills
161
+ // https://docs.augmentcode.com/cli/custom-commands
162
+ plain("augment", "Augment", ".augment", {
163
+ commands: { user: c => join(c.home, ".augment", "commands"), project: ".augment/commands", format: "md" },
164
+ }),
165
+ {
166
+ key: "zed",
167
+ name: "Zed",
168
+ detect: c => [join(config(c), "zed"), ...(c.env.APPDATA ? [join(c.env.APPDATA, "Zed")] : [])],
169
+ user: shared,
170
+ project: ".agents/skills",
171
+ },
36
172
  { key: "warp", name: "Warp", detect: c => [join(c.home, ".warp")], user: shared, project: ".agents/skills" },
37
- { key: "other", name: "Other agents (shared .agents folder)", detect: () => [], user: shared, project: ".agents/skills" },
173
+ {
174
+ key: "other",
175
+ name: "Other agents (shared .agents folder)",
176
+ detect: () => [],
177
+ user: shared,
178
+ project: ".agents/skills",
179
+ },
38
180
  ];
39
181
 
40
- export const agentByKey = key => AGENTS.find(a => a.key === key);
182
+ /** Looks an agent up by key or alias (windsurf finds devin). */
183
+ export const agentByKey = key => AGENTS.find(a => a.key === key || a.aliases?.includes(key));
41
184
 
42
185
  /** Keys of the agents whose home folder exists, in table order. */
43
186
  export function detectAgents(c, exists = existsSync) {
@@ -46,20 +189,42 @@ export function detectAgents(c, exists = existsSync) {
46
189
 
47
190
  const resolve = (where, c) => (typeof where === "function" ? where(c) : join(c.cwd, ...where.split("/")));
48
191
 
49
- /** One install target per skills folder: agents that share a folder get one copy. Claude Code's target also carries its commands folder. */
192
+ /** One install target per skills folder, so agents that share a folder get one copy. Each extra is
193
+ * { key, kind: "commands" | "subagents" | "hooks", path, format }. */
50
194
  export function targetsFor(keys, scope, c) {
51
195
  const byDir = new Map();
52
196
  for (const key of keys) {
53
197
  const a = agentByKey(key);
54
198
  const skills = resolve(scope === "project" ? a.project : a.user, c);
55
- const t = byDir.get(skills) || byDir.set(skills, { skills, agents: [] }).get(skills);
199
+ const t = byDir.get(skills) || byDir.set(skills, { skills, agents: [], extras: [] }).get(skills);
200
+ if (t.agents.includes(a.name)) continue;
56
201
  t.agents.push(a.name);
57
- if (a.commands) t.commands = resolve(scope === "project" ? a.commands.project : a.commands.user, c);
202
+ for (const kind of ["commands", "subagents", "hooks"])
203
+ if (a[kind])
204
+ t.extras.push({
205
+ key: a.key,
206
+ kind,
207
+ path: resolve(scope === "project" ? a[kind].project : a[kind].user, c),
208
+ format: a[kind].format,
209
+ });
58
210
  }
59
211
  return [...byDir.values()];
60
212
  }
61
213
 
62
- /** Every skills folder any agent could use in this scope (for uninstall). */
214
+ // Windsurf's and Goose's own skills folders, used by v1.x. Uninstall still removes the skill from them.
215
+ const LEGACY = [
216
+ { user: c => join(c.home, ".codeium", "windsurf", "skills"), project: ".windsurf/skills" },
217
+ { user: c => join(config(c), "goose", "skills"), project: ".goose/skills" },
218
+ ];
219
+
220
+ /** Every skills folder any agent could use in this scope, plus the legacy ones, for uninstall. */
63
221
  export function allTargets(scope, c) {
64
- return targetsFor(AGENTS.map(a => a.key), scope, c);
222
+ return [
223
+ ...targetsFor(
224
+ AGENTS.map(a => a.key),
225
+ scope,
226
+ c,
227
+ ),
228
+ ...LEGACY.map(l => ({ skills: resolve(scope === "project" ? l.project : l.user, c), agents: [], extras: [] })),
229
+ ];
65
230
  }