@shepai/cli 1.59.0 → 1.60.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 (267) hide show
  1. package/dist/src/presentation/web/app/skills/page.d.ts +2 -0
  2. package/dist/src/presentation/web/app/skills/page.d.ts.map +1 -0
  3. package/dist/src/presentation/web/app/skills/page.js +11 -0
  4. package/dist/src/presentation/web/components/features/skills/category-filter.d.ts +8 -0
  5. package/dist/src/presentation/web/components/features/skills/category-filter.d.ts.map +1 -0
  6. package/dist/src/presentation/web/components/features/skills/category-filter.js +12 -0
  7. package/dist/src/presentation/web/components/features/skills/category-filter.stories.d.ts +9 -0
  8. package/dist/src/presentation/web/components/features/skills/category-filter.stories.d.ts.map +1 -0
  9. package/dist/src/presentation/web/components/features/skills/category-filter.stories.js +36 -0
  10. package/dist/src/presentation/web/components/features/skills/index.d.ts +6 -0
  11. package/dist/src/presentation/web/components/features/skills/index.d.ts.map +1 -0
  12. package/dist/src/presentation/web/components/features/skills/index.js +5 -0
  13. package/dist/src/presentation/web/components/features/skills/skill-card.d.ts +7 -0
  14. package/dist/src/presentation/web/components/features/skills/skill-card.d.ts.map +1 -0
  15. package/dist/src/presentation/web/components/features/skills/skill-card.js +12 -0
  16. package/dist/src/presentation/web/components/features/skills/skill-card.stories.d.ts +11 -0
  17. package/dist/src/presentation/web/components/features/skills/skill-card.stories.d.ts.map +1 -0
  18. package/dist/src/presentation/web/components/features/skills/skill-card.stories.js +88 -0
  19. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.d.ts +7 -0
  20. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.d.ts.map +1 -0
  21. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.js +13 -0
  22. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.stories.d.ts +10 -0
  23. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.stories.d.ts.map +1 -0
  24. package/dist/src/presentation/web/components/features/skills/skill-detail-drawer.stories.js +71 -0
  25. package/dist/src/presentation/web/components/features/skills/skill-list.d.ts +7 -0
  26. package/dist/src/presentation/web/components/features/skills/skill-list.d.ts.map +1 -0
  27. package/dist/src/presentation/web/components/features/skills/skill-list.js +21 -0
  28. package/dist/src/presentation/web/components/features/skills/skill-list.stories.d.ts +9 -0
  29. package/dist/src/presentation/web/components/features/skills/skill-list.stories.d.ts.map +1 -0
  30. package/dist/src/presentation/web/components/features/skills/skill-list.stories.js +124 -0
  31. package/dist/src/presentation/web/components/features/skills/skills-page-client.d.ts +6 -0
  32. package/dist/src/presentation/web/components/features/skills/skills-page-client.d.ts.map +1 -0
  33. package/dist/src/presentation/web/components/features/skills/skills-page-client.js +52 -0
  34. package/dist/src/presentation/web/components/features/skills/skills-page-client.stories.d.ts +16 -0
  35. package/dist/src/presentation/web/components/features/skills/skills-page-client.stories.d.ts.map +1 -0
  36. package/dist/src/presentation/web/components/features/skills/skills-page-client.stories.js +186 -0
  37. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.d.ts.map +1 -1
  38. package/dist/src/presentation/web/components/layouts/app-sidebar/app-sidebar.js +3 -2
  39. package/dist/src/presentation/web/lib/feature-flags.d.ts +10 -0
  40. package/dist/src/presentation/web/lib/feature-flags.d.ts.map +1 -0
  41. package/dist/src/presentation/web/lib/feature-flags.js +12 -0
  42. package/dist/src/presentation/web/lib/skills.d.ts +30 -0
  43. package/dist/src/presentation/web/lib/skills.d.ts.map +1 -0
  44. package/dist/src/presentation/web/lib/skills.js +137 -0
  45. package/dist/tsconfig.build.tsbuildinfo +1 -1
  46. package/package.json +1 -1
  47. package/web/.next/BUILD_ID +1 -1
  48. package/web/.next/app-path-routes-manifest.json +1 -0
  49. package/web/.next/build-manifest.json +4 -4
  50. package/web/.next/cache/.previewinfo +1 -1
  51. package/web/.next/cache/.rscinfo +1 -1
  52. package/web/.next/cache/.tsbuildinfo +1 -1
  53. package/web/.next/cache/config.json +3 -3
  54. package/web/.next/fallback-build-manifest.json +2 -2
  55. package/web/.next/prerender-manifest.json +3 -3
  56. package/web/.next/required-server-files.js +1 -1
  57. package/web/.next/required-server-files.json +1 -1
  58. package/web/.next/routes-manifest.json +6 -0
  59. package/web/.next/server/app/_global-error/page/build-manifest.json +2 -2
  60. package/web/.next/server/app/_global-error.html +2 -2
  61. package/web/.next/server/app/_global-error.rsc +1 -1
  62. package/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  63. package/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  64. package/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  65. package/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  66. package/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  67. package/web/.next/server/app/_not-found/page/build-manifest.json +2 -2
  68. package/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  69. package/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  70. package/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  71. package/web/.next/server/app/api/tools/[id]/install/route.js +1 -1
  72. package/web/.next/server/app/api/tools/[id]/install/route.js.nft.json +1 -1
  73. package/web/.next/server/app/page/build-manifest.json +2 -2
  74. package/web/.next/server/app/page/server-reference-manifest.json +14 -14
  75. package/web/.next/server/app/page.js +1 -1
  76. package/web/.next/server/app/page.js.nft.json +1 -1
  77. package/web/.next/server/app/page_client-reference-manifest.js +1 -1
  78. package/web/.next/server/app/skills/page/app-paths-manifest.json +3 -0
  79. package/web/.next/server/app/skills/page/build-manifest.json +17 -0
  80. package/web/.next/server/app/skills/page/next-font-manifest.json +6 -0
  81. package/web/.next/server/app/skills/page/react-loadable-manifest.json +1 -0
  82. package/web/.next/server/app/skills/page/server-reference-manifest.json +20 -0
  83. package/web/.next/server/app/skills/page.js +16 -0
  84. package/web/.next/server/app/skills/page.js.map +5 -0
  85. package/web/.next/server/app/skills/page.js.nft.json +1 -0
  86. package/web/.next/server/app/skills/page_client-reference-manifest.js +2 -0
  87. package/web/.next/server/app/tools/page/build-manifest.json +2 -2
  88. package/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
  89. package/web/.next/server/app/tools/page.js.nft.json +1 -1
  90. package/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  91. package/web/.next/server/app/version/page/build-manifest.json +2 -2
  92. package/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  93. package/web/.next/server/app/version/page.js.nft.json +1 -1
  94. package/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  95. package/web/.next/server/app-paths-manifest.json +1 -0
  96. package/web/.next/server/chunks/{[root-of-the-server]__bb619083._.js → [root-of-the-server]__e926de65._.js} +2 -2
  97. package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
  98. package/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js.map +1 -1
  99. package/web/.next/server/chunks/ssr/[root-of-the-server]__2395adc6._.js +3 -0
  100. package/web/.next/server/chunks/ssr/[root-of-the-server]__2395adc6._.js.map +1 -0
  101. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  102. package/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js.map +1 -1
  103. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  104. package/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js.map +1 -1
  105. package/web/.next/server/chunks/ssr/[root-of-the-server]__87fda958._.js +3 -0
  106. package/web/.next/server/chunks/ssr/[root-of-the-server]__87fda958._.js.map +1 -0
  107. package/web/.next/server/chunks/ssr/[root-of-the-server]__9add7c3a._.js +2 -2
  108. package/web/.next/server/chunks/ssr/[root-of-the-server]__9add7c3a._.js.map +1 -1
  109. package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__86c7bba5._.js → server/chunks/ssr/[root-of-the-server]__b6839c3f._.js} +3 -3
  110. package/web/.next/server/chunks/ssr/{[root-of-the-server]__86c7bba5._.js.map → [root-of-the-server]__b6839c3f._.js.map} +1 -1
  111. package/web/.next/server/chunks/ssr/[root-of-the-server]__da0ade1f._.js +4 -0
  112. package/web/.next/server/chunks/ssr/[root-of-the-server]__da0ade1f._.js.map +1 -0
  113. package/web/.next/server/chunks/ssr/[root-of-the-server]__edca9510._.js +3 -0
  114. package/web/.next/server/chunks/ssr/[root-of-the-server]__edca9510._.js.map +1 -0
  115. package/web/.next/server/chunks/ssr/[root-of-the-server]__ee7cffe1._.js +3 -0
  116. package/web/.next/server/chunks/ssr/[root-of-the-server]__ee7cffe1._.js.map +1 -0
  117. package/web/.next/server/chunks/ssr/[root-of-the-server]__fbc89707._.js +1 -1
  118. package/web/.next/server/chunks/ssr/_34627374._.js +6 -0
  119. package/web/.next/server/chunks/ssr/_34627374._.js.map +1 -0
  120. package/web/.next/server/chunks/ssr/_380c6567._.js +6 -0
  121. package/web/.next/server/chunks/ssr/_380c6567._.js.map +1 -0
  122. package/web/.next/server/chunks/ssr/_44cce4e0._.js +4 -0
  123. package/web/.next/server/chunks/ssr/_44cce4e0._.js.map +1 -0
  124. package/web/.next/server/chunks/ssr/_9915d2a7._.js +3 -0
  125. package/web/.next/server/chunks/ssr/_9915d2a7._.js.map +1 -0
  126. package/web/.next/server/chunks/ssr/_a64b7b24._.js +3 -0
  127. package/web/.next/server/chunks/ssr/{_e242b954._.js.map → _a64b7b24._.js.map} +1 -1
  128. package/web/.next/server/chunks/ssr/_e7a4b0e4._.js +3 -0
  129. package/web/.next/server/chunks/ssr/_e7a4b0e4._.js.map +1 -0
  130. package/web/.next/{standalone/src/presentation/web/.next/server/chunks/ssr/node_modules__pnpm_d26a7485._.js → server/chunks/ssr/node_modules__pnpm_fe355030._.js} +2 -2
  131. package/web/.next/server/chunks/ssr/node_modules__pnpm_fe355030._.js.map +1 -0
  132. package/web/.next/server/chunks/ssr/src_presentation_web_components_0286756b._.js +3 -0
  133. package/web/.next/server/chunks/ssr/src_presentation_web_components_0286756b._.js.map +1 -0
  134. package/web/.next/server/middleware-build-manifest.js +2 -2
  135. package/web/.next/server/pages/500.html +2 -2
  136. package/web/.next/server/server-reference-manifest.js +1 -1
  137. package/web/.next/server/server-reference-manifest.json +22 -15
  138. package/web/.next/standalone/src/presentation/web/.next/BUILD_ID +1 -1
  139. package/web/.next/standalone/src/presentation/web/.next/app-path-routes-manifest.json +1 -0
  140. package/web/.next/standalone/src/presentation/web/.next/build-manifest.json +4 -4
  141. package/web/.next/standalone/src/presentation/web/.next/prerender-manifest.json +3 -3
  142. package/web/.next/standalone/src/presentation/web/.next/required-server-files.json +1 -1
  143. package/web/.next/standalone/src/presentation/web/.next/routes-manifest.json +6 -0
  144. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error/page/build-manifest.json +2 -2
  145. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.html +2 -2
  146. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.rsc +1 -1
  147. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  148. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  149. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  150. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  151. package/web/.next/standalone/src/presentation/web/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  152. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/build-manifest.json +2 -2
  153. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page/server-reference-manifest.json +1 -1
  154. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page.js.nft.json +1 -1
  155. package/web/.next/standalone/src/presentation/web/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
  156. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/route.js +1 -1
  157. package/web/.next/standalone/src/presentation/web/.next/server/app/api/tools/[id]/install/route.js.nft.json +1 -1
  158. package/web/.next/standalone/src/presentation/web/.next/server/app/page/build-manifest.json +2 -2
  159. package/web/.next/standalone/src/presentation/web/.next/server/app/page/server-reference-manifest.json +14 -14
  160. package/web/.next/standalone/src/presentation/web/.next/server/app/page.js +1 -1
  161. package/web/.next/standalone/src/presentation/web/.next/server/app/page.js.nft.json +1 -1
  162. package/web/.next/standalone/src/presentation/web/.next/server/app/page_client-reference-manifest.js +1 -1
  163. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/app-paths-manifest.json +3 -0
  164. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/build-manifest.json +17 -0
  165. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/next-font-manifest.json +6 -0
  166. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/react-loadable-manifest.json +1 -0
  167. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page/server-reference-manifest.json +20 -0
  168. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page.js +16 -0
  169. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page.js.map +5 -0
  170. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page.js.nft.json +1 -0
  171. package/web/.next/standalone/src/presentation/web/.next/server/app/skills/page_client-reference-manifest.js +2 -0
  172. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/build-manifest.json +2 -2
  173. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page/server-reference-manifest.json +1 -1
  174. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page.js.nft.json +1 -1
  175. package/web/.next/standalone/src/presentation/web/.next/server/app/tools/page_client-reference-manifest.js +1 -1
  176. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/build-manifest.json +2 -2
  177. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page/server-reference-manifest.json +1 -1
  178. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page.js.nft.json +1 -1
  179. package/web/.next/standalone/src/presentation/web/.next/server/app/version/page_client-reference-manifest.js +1 -1
  180. package/web/.next/standalone/src/presentation/web/.next/server/app-paths-manifest.json +1 -0
  181. package/web/.next/standalone/src/presentation/web/.next/server/chunks/{[root-of-the-server]__bb619083._.js → [root-of-the-server]__e926de65._.js} +2 -2
  182. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__08ba9bd3._.js +1 -1
  183. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__2395adc6._.js +3 -0
  184. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__6b17a22d._.js +1 -1
  185. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__804c006d._.js +1 -1
  186. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__87fda958._.js +3 -0
  187. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__9add7c3a._.js +2 -2
  188. package/web/.next/{server/chunks/ssr/[root-of-the-server]__86c7bba5._.js → standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__b6839c3f._.js} +3 -3
  189. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__da0ade1f._.js +4 -0
  190. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__edca9510._.js +3 -0
  191. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__ee7cffe1._.js +3 -0
  192. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__fbc89707._.js +1 -1
  193. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_34627374._.js +6 -0
  194. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_380c6567._.js +6 -0
  195. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_44cce4e0._.js +4 -0
  196. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_9915d2a7._.js +3 -0
  197. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_a64b7b24._.js +3 -0
  198. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_e7a4b0e4._.js +3 -0
  199. package/web/.next/{server/chunks/ssr/node_modules__pnpm_d26a7485._.js → standalone/src/presentation/web/.next/server/chunks/ssr/node_modules__pnpm_fe355030._.js} +2 -2
  200. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_0286756b._.js +3 -0
  201. package/web/.next/standalone/src/presentation/web/.next/server/middleware-build-manifest.js +2 -2
  202. package/web/.next/standalone/src/presentation/web/.next/server/pages/500.html +2 -2
  203. package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.js +1 -1
  204. package/web/.next/standalone/src/presentation/web/.next/server/server-reference-manifest.json +22 -15
  205. package/web/.next/standalone/src/presentation/web/app/skills/page.tsx +12 -0
  206. package/web/.next/standalone/src/presentation/web/components/features/skills/category-filter.stories.tsx +57 -0
  207. package/web/.next/standalone/src/presentation/web/components/features/skills/category-filter.tsx +36 -0
  208. package/web/.next/standalone/src/presentation/web/components/features/skills/index.ts +5 -0
  209. package/web/.next/standalone/src/presentation/web/components/features/skills/skill-card.stories.tsx +105 -0
  210. package/web/.next/standalone/src/presentation/web/components/features/skills/skill-card.tsx +48 -0
  211. package/web/.next/standalone/src/presentation/web/components/features/skills/skill-detail-drawer.stories.tsx +96 -0
  212. package/web/.next/standalone/src/presentation/web/components/features/skills/skill-detail-drawer.tsx +100 -0
  213. package/web/.next/standalone/src/presentation/web/components/features/skills/skill-list.stories.tsx +139 -0
  214. package/web/.next/standalone/src/presentation/web/components/features/skills/skill-list.tsx +48 -0
  215. package/web/.next/standalone/src/presentation/web/components/features/skills/skills-page-client.stories.tsx +199 -0
  216. package/web/.next/standalone/src/presentation/web/components/features/skills/skills-page-client.tsx +112 -0
  217. package/web/.next/standalone/src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx +10 -1
  218. package/web/.next/standalone/src/presentation/web/lib/feature-flags.ts +14 -0
  219. package/web/.next/standalone/src/presentation/web/lib/skills.ts +188 -0
  220. package/web/.next/standalone/src/presentation/web/package.json +2 -0
  221. package/web/.next/standalone/src/presentation/web/server.js +1 -1
  222. package/web/.next/static/chunks/09d898be63c54f20.js +1 -0
  223. package/web/.next/static/chunks/{4f7d89c9e09aed99.js → 1fe24572a810eafa.js} +5 -5
  224. package/web/.next/static/chunks/25f42652257ff43d.js +1 -0
  225. package/web/.next/static/chunks/2934854f0378f815.js +1 -0
  226. package/web/.next/static/chunks/7d3c5ae8f47e74cd.js +1 -0
  227. package/web/.next/static/chunks/8b2879f911a05b55.css +2 -0
  228. package/web/.next/static/chunks/acdb8af5a21f1ae9.js +1 -0
  229. package/web/.next/static/chunks/bac5122e95f5c7eb.js +1 -0
  230. package/web/.next/static/chunks/{3d4dcf0be654a331.js → cb1b27e4a21415d3.js} +2 -2
  231. package/web/.next/static/chunks/d4379644a6145352.js +1 -0
  232. package/web/.next/static/chunks/{turbopack-6a11f2f1634ff6e0.js → turbopack-eb24b869babb34b4.js} +2 -2
  233. package/web/.next/trace +1 -1
  234. package/web/.next/trace-build +1 -1
  235. package/web/.next/types/link.d.ts +1 -0
  236. package/web/.next/types/routes.d.ts +2 -1
  237. package/web/.next/types/validator.ts +9 -0
  238. package/web/package.json +2 -0
  239. package/web/.next/server/chunks/ssr/[root-of-the-server]__bced1185._.js +0 -3
  240. package/web/.next/server/chunks/ssr/[root-of-the-server]__bced1185._.js.map +0 -1
  241. package/web/.next/server/chunks/ssr/[root-of-the-server]__d21f0894._.js +0 -3
  242. package/web/.next/server/chunks/ssr/[root-of-the-server]__d21f0894._.js.map +0 -1
  243. package/web/.next/server/chunks/ssr/_027596cf._.js +0 -6
  244. package/web/.next/server/chunks/ssr/_027596cf._.js.map +0 -1
  245. package/web/.next/server/chunks/ssr/_e242b954._.js +0 -3
  246. package/web/.next/server/chunks/ssr/node_modules__pnpm_d26a7485._.js.map +0 -1
  247. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +0 -3
  248. package/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js.map +0 -1
  249. package/web/.next/server/chunks/ssr/src_presentation_web_components_ec3b0a65._.js +0 -3
  250. package/web/.next/server/chunks/ssr/src_presentation_web_components_ec3b0a65._.js.map +0 -1
  251. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__bced1185._.js +0 -3
  252. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/[root-of-the-server]__d21f0894._.js +0 -3
  253. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_027596cf._.js +0 -6
  254. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/_e242b954._.js +0 -3
  255. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_e599bb8c._.js +0 -3
  256. package/web/.next/standalone/src/presentation/web/.next/server/chunks/ssr/src_presentation_web_components_ec3b0a65._.js +0 -3
  257. package/web/.next/static/chunks/0cd7c513169faee3.js +0 -1
  258. package/web/.next/static/chunks/67459433cc866344.js +0 -1
  259. package/web/.next/static/chunks/6d33cb9af6245c98.js +0 -1
  260. package/web/.next/static/chunks/a9c2b889c8749a94.js +0 -1
  261. package/web/.next/static/chunks/b511c65023ec1889.css +0 -2
  262. package/web/.next/static/chunks/cda11a2491d519fc.js +0 -1
  263. package/web/.next/static/chunks/d85b95e893db08bc.js +0 -1
  264. /package/web/.next/server/chunks/{[root-of-the-server]__bb619083._.js.map → [root-of-the-server]__e926de65._.js.map} +0 -0
  265. /package/web/.next/static/{xjc1tfvwTdK1Xv5Id2oaO → enyZhg62FqP6oInxg1T3h}/_buildManifest.js +0 -0
  266. /package/web/.next/static/{xjc1tfvwTdK1Xv5Id2oaO → enyZhg62FqP6oInxg1T3h}/_clientMiddlewareManifest.json +0 -0
  267. /package/web/.next/static/{xjc1tfvwTdK1Xv5Id2oaO → enyZhg62FqP6oInxg1T3h}/_ssgManifest.js +0 -0
@@ -0,0 +1,186 @@
1
+ import { SkillsPageClient } from './skills-page-client.js';
2
+ const meta = {
3
+ title: 'Features/SkillsPageClient',
4
+ component: SkillsPageClient,
5
+ tags: ['autodocs'],
6
+ parameters: {
7
+ layout: 'fullscreen',
8
+ },
9
+ };
10
+ export default meta;
11
+ /* ---------------------------------------------------------------------------
12
+ * Data fixtures
13
+ * ------------------------------------------------------------------------- */
14
+ const sampleSkills = [
15
+ {
16
+ name: 'shep-kit:implement',
17
+ displayName: 'implement',
18
+ description: 'Validate specs and autonomously execute implementation tasks with status tracking.',
19
+ category: 'Workflow',
20
+ source: 'project',
21
+ body: '## Usage\n\nRun /shep-kit:implement after planning is complete.',
22
+ resources: [],
23
+ },
24
+ {
25
+ name: 'shep-kit:plan',
26
+ displayName: 'plan',
27
+ description: 'Create implementation plan and task breakdown.',
28
+ category: 'Workflow',
29
+ source: 'project',
30
+ body: '',
31
+ resources: [],
32
+ },
33
+ {
34
+ name: 'shep-kit:research',
35
+ displayName: 'research',
36
+ description: 'Analyze technical approach, evaluate libraries, document decisions.',
37
+ category: 'Workflow',
38
+ source: 'project',
39
+ body: '',
40
+ resources: [],
41
+ },
42
+ {
43
+ name: 'shep:ui-component',
44
+ displayName: 'ui-component',
45
+ description: 'Use when creating, modifying, or reviewing web UI components.',
46
+ context: 'fork',
47
+ allowedTools: 'Read, Write, Bash, Edit, Glob',
48
+ category: 'Code Generation',
49
+ source: 'project',
50
+ body: '',
51
+ resources: [
52
+ { name: 'references', fileCount: 7 },
53
+ { name: 'templates', fileCount: 3 },
54
+ ],
55
+ },
56
+ {
57
+ name: 'architecture-reviewer',
58
+ displayName: 'architecture-reviewer',
59
+ description: 'Use when making architectural decisions, planning features, or reviewing PRs.',
60
+ context: 'fork',
61
+ category: 'Analysis',
62
+ source: 'project',
63
+ body: '',
64
+ resources: [],
65
+ },
66
+ {
67
+ name: 'cross-validate-artifacts',
68
+ displayName: 'cross-validate-artifacts',
69
+ description: 'Cross-validate documentation and artifacts for consistency.',
70
+ category: 'Analysis',
71
+ source: 'project',
72
+ body: '',
73
+ resources: [],
74
+ },
75
+ {
76
+ name: 'shadcn-ui',
77
+ displayName: 'shadcn-ui',
78
+ description: 'Complete shadcn/ui component library patterns and implementation.',
79
+ category: 'Reference',
80
+ source: 'project',
81
+ body: '',
82
+ resources: [{ name: 'references', fileCount: 3 }],
83
+ },
84
+ {
85
+ name: 'vercel-react-best-practices',
86
+ displayName: 'vercel-react-best-practices',
87
+ description: 'React and Next.js performance optimization guidelines from Vercel Engineering.',
88
+ category: 'Reference',
89
+ source: 'global',
90
+ body: '',
91
+ resources: [{ name: 'references', fileCount: 4 }],
92
+ },
93
+ ];
94
+ const manySkills = [
95
+ ...sampleSkills,
96
+ {
97
+ name: 'shep-kit:commit-pr',
98
+ displayName: 'commit-pr',
99
+ description: 'Use when ready to commit, push, and create a PR with CI verification.',
100
+ category: 'Workflow',
101
+ source: 'project',
102
+ body: '',
103
+ resources: [],
104
+ },
105
+ {
106
+ name: 'shep-kit:new-feature',
107
+ displayName: 'new-feature',
108
+ description: 'Use when starting any new feature, functionality, or enhancement.',
109
+ category: 'Workflow',
110
+ source: 'project',
111
+ body: '',
112
+ resources: [],
113
+ },
114
+ {
115
+ name: 'shep-kit:new-feature-fast',
116
+ displayName: 'new-feature-fast',
117
+ description: 'Fast-track feature creation that collapses new-feature, research, and planning.',
118
+ category: 'Workflow',
119
+ source: 'project',
120
+ body: '',
121
+ resources: [],
122
+ },
123
+ {
124
+ name: 'shep-kit:merged',
125
+ displayName: 'merged',
126
+ description: 'Use after a PR has been merged to clean up branches.',
127
+ category: 'Workflow',
128
+ source: 'project',
129
+ body: '',
130
+ resources: [],
131
+ },
132
+ {
133
+ name: 'mermaid-diagrams',
134
+ displayName: 'mermaid-diagrams',
135
+ description: 'Comprehensive guide for creating software diagrams using Mermaid syntax.',
136
+ category: 'Reference',
137
+ source: 'project',
138
+ body: '',
139
+ resources: [{ name: 'references', fileCount: 2 }],
140
+ },
141
+ {
142
+ name: 'react-flow',
143
+ displayName: 'react-flow',
144
+ description: 'React Flow for workflow visualization with custom nodes and edges.',
145
+ category: 'Reference',
146
+ source: 'project',
147
+ body: '',
148
+ resources: [],
149
+ },
150
+ {
151
+ name: 'tsp-model',
152
+ displayName: 'tsp-model',
153
+ description: 'Use when creating, modifying, or documenting TypeSpec domain models.',
154
+ category: 'Reference',
155
+ source: 'project',
156
+ body: '',
157
+ resources: [{ name: 'references', fileCount: 5 }],
158
+ },
159
+ {
160
+ name: 'find-skills',
161
+ displayName: 'find-skills',
162
+ description: 'Helps users discover and install agent skills.',
163
+ category: 'Reference',
164
+ source: 'global',
165
+ body: '',
166
+ resources: [],
167
+ },
168
+ ];
169
+ /* ---------------------------------------------------------------------------
170
+ * Stories
171
+ * ------------------------------------------------------------------------- */
172
+ export const Default = {
173
+ args: {
174
+ skills: sampleSkills,
175
+ },
176
+ };
177
+ export const Empty = {
178
+ args: {
179
+ skills: [],
180
+ },
181
+ };
182
+ export const ManySkills = {
183
+ args: {
184
+ skills: manySkills,
185
+ },
186
+ };
@@ -1 +1 @@
1
- {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAG/E,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,mBAAmB,GACpB,EAAE,eAAe,2CA+FjB"}
1
+ {"version":3,"file":"app-sidebar.d.ts","sourceRoot":"","sources":["../../../../../../../src/presentation/web/components/layouts/app-sidebar/app-sidebar.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2CAA2C,CAAC;AAI/E,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,aAAa,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,WAAW,EAAE,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,cAAc,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,mBAAmB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,YAAY,EACZ,cAAc,EACd,qBAAqB,EACrB,mBAAmB,GACpB,EAAE,eAAe,2CAuGjB"}
@@ -1,7 +1,7 @@
1
1
  'use client';
2
2
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
3
  import { usePathname } from 'next/navigation';
4
- import { Home, Wrench, Plus } from 'lucide-react';
4
+ import { Home, Wrench, Puzzle, Plus } from 'lucide-react';
5
5
  import { Sidebar, SidebarHeader, SidebarContent, SidebarFooter, SidebarMenu, SidebarMenuItem, SidebarMenuButton, SidebarRail, useSidebar, } from '../../ui/sidebar.js';
6
6
  import { ScrollArea } from '../../ui/scroll-area.js';
7
7
  import { SidebarNavItem } from '../../common/sidebar-nav-item/index.js';
@@ -12,6 +12,7 @@ import { FeatureStatusGroup } from '../../common/feature-status-group/index.js';
12
12
  import { SidebarSectionHeader } from '../../common/sidebar-section-header/index.js';
13
13
  import { featureStatusConfig, featureStatusOrder } from '../../common/feature-status-config.js';
14
14
  import { useDeferredMount } from '../../../hooks/use-deferred-mount.js';
15
+ import { featureFlags } from '../../../lib/feature-flags.js';
15
16
  export function AppSidebar({ features, onNewFeature, onFeatureClick, onFeaturesFolderClick, onFeaturesMenuClick, }) {
16
17
  const pathname = usePathname();
17
18
  const { state } = useSidebar();
@@ -26,7 +27,7 @@ export function AppSidebar({ features, onNewFeature, onFeatureClick, onFeaturesF
26
27
  'flex min-w-0 flex-1 items-center gap-2 overflow-hidden px-2',
27
28
  'transition-opacity duration-200 ease-out',
28
29
  expandedVisible ? 'opacity-100' : 'opacity-0',
29
- ].join(' '), "aria-hidden": !expandedVisible, children: [_jsx(ShepLogo, { className: "shrink-0", size: 20 }), _jsx("span", { className: "truncate text-sm font-semibold tracking-tight", children: "Shep" })] })) : null, _jsx(SidebarCollapseToggle, { className: "shrink-0 transition-all duration-200" })] }) }), _jsx(SidebarNavItem, { icon: Home, label: "Control Center", href: "/", active: pathname === '/' }), _jsx(SidebarNavItem, { icon: Wrench, label: "Tools", href: "/tools", active: pathname === '/tools' })] }) }), _jsx(SidebarContent, { children: showExpanded ? (_jsxs("div", { className: [
30
+ ].join(' '), "aria-hidden": !expandedVisible, children: [_jsx(ShepLogo, { className: "shrink-0", size: 20 }), _jsx("span", { className: "truncate text-sm font-semibold tracking-tight", children: "Shep" })] })) : null, _jsx(SidebarCollapseToggle, { className: "shrink-0 transition-all duration-200" })] }) }), _jsx(SidebarNavItem, { icon: Home, label: "Control Center", href: "/", active: pathname === '/' }), _jsx(SidebarNavItem, { icon: Wrench, label: "Tools", href: "/tools", active: pathname === '/tools' }), featureFlags.skills ? (_jsx(SidebarNavItem, { icon: Puzzle, label: "Skills", href: "/skills", active: pathname === '/skills' })) : null] }) }), _jsx(SidebarContent, { children: showExpanded ? (_jsxs("div", { className: [
30
31
  'min-w-0 overflow-hidden transition-opacity duration-200 ease-out',
31
32
  '[&_[data-sidebar=group-label]]:!mt-0 [&_[data-sidebar=group-label]]:!opacity-100 [&_[data-sidebar=group-label]]:!transition-none',
32
33
  expandedVisible ? 'opacity-100' : 'opacity-0',
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Feature flags for the web UI.
3
+ *
4
+ * Toggle via environment variables (NEXT_PUBLIC_ prefix for client access).
5
+ * All flags default to **off** unless explicitly set to "true" or "1".
6
+ */
7
+ export declare const featureFlags: {
8
+ readonly skills: boolean;
9
+ };
10
+ //# sourceMappingURL=feature-flags.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"feature-flags.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/feature-flags.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,eAAO,MAAM,YAAY;;CAEf,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Feature flags for the web UI.
3
+ *
4
+ * Toggle via environment variables (NEXT_PUBLIC_ prefix for client access).
5
+ * All flags default to **off** unless explicitly set to "true" or "1".
6
+ */
7
+ function isEnabled(envVar) {
8
+ return envVar === 'true' || envVar === '1';
9
+ }
10
+ export const featureFlags = {
11
+ skills: isEnabled(process.env.NEXT_PUBLIC_FLAG_SKILLS),
12
+ };
@@ -0,0 +1,30 @@
1
+ export type SkillCategory = 'Workflow' | 'Code Generation' | 'Analysis' | 'Reference';
2
+ export type SkillSource = 'project' | 'global';
3
+ export interface SkillResource {
4
+ name: string;
5
+ fileCount: number;
6
+ }
7
+ export interface SkillData {
8
+ name: string;
9
+ displayName: string;
10
+ description: string;
11
+ context?: string;
12
+ allowedTools?: string;
13
+ category: SkillCategory;
14
+ source: SkillSource;
15
+ body: string;
16
+ resources: SkillResource[];
17
+ }
18
+ export declare function deriveCategory(name: string): SkillCategory;
19
+ export declare function getDisplayName(name: string): string;
20
+ interface FrontmatterResult {
21
+ name: string;
22
+ description: string;
23
+ context?: string;
24
+ allowedTools?: string;
25
+ body: string;
26
+ }
27
+ export declare function parseFrontmatter(content: string): FrontmatterResult | null;
28
+ export declare function getSkills(projectRoot?: string, homeDir?: string): Promise<SkillData[]>;
29
+ export {};
30
+ //# sourceMappingURL=skills.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/web/lib/skills.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,iBAAiB,GAAG,UAAU,GAAG,WAAW,CAAC;AACtF,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAE/C,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,WAAW,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,aAAa,EAAE,CAAC;CAC5B;AAUD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,aAAa,CAK1D;AAMD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAKnD;AAID,UAAU,iBAAiB;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,GAAG,IAAI,CAiC1E;AA0ED,wBAAsB,SAAS,CAAC,WAAW,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAiB5F"}
@@ -0,0 +1,137 @@
1
+ import { readdir, readFile } from 'node:fs/promises';
2
+ import { join } from 'node:path';
3
+ import { homedir } from 'node:os';
4
+ import yaml from 'js-yaml';
5
+ // ── Category Derivation ──────────────────────────────────────────────────────
6
+ const CATEGORY_RULES = [
7
+ { test: (name) => name.startsWith('shep-kit:'), category: 'Workflow' },
8
+ { test: (name) => name.startsWith('shep:'), category: 'Code Generation' },
9
+ { test: (name) => /(?:review|validate|cross-validate)/.test(name), category: 'Analysis' },
10
+ ];
11
+ export function deriveCategory(name) {
12
+ for (const rule of CATEGORY_RULES) {
13
+ if (rule.test(name))
14
+ return rule.category;
15
+ }
16
+ return 'Reference';
17
+ }
18
+ // ── Display Name ─────────────────────────────────────────────────────────────
19
+ const DISPLAY_NAME_PREFIXES = ['shep-kit:', 'shep:'];
20
+ export function getDisplayName(name) {
21
+ for (const prefix of DISPLAY_NAME_PREFIXES) {
22
+ if (name.startsWith(prefix))
23
+ return name.slice(prefix.length);
24
+ }
25
+ return name;
26
+ }
27
+ export function parseFrontmatter(content) {
28
+ const delimiterPattern = /^---\s*$/m;
29
+ const firstMatch = content.match(delimiterPattern);
30
+ if (firstMatch?.index === undefined)
31
+ return null;
32
+ const afterFirst = firstMatch.index + firstMatch[0].length;
33
+ const rest = content.slice(afterFirst);
34
+ const secondMatch = rest.match(delimiterPattern);
35
+ if (secondMatch?.index === undefined)
36
+ return null;
37
+ const yamlContent = rest.slice(0, secondMatch.index);
38
+ const body = rest.slice(secondMatch.index + secondMatch[0].length).trim();
39
+ let parsed;
40
+ try {
41
+ parsed = yaml.load(yamlContent);
42
+ }
43
+ catch {
44
+ return null;
45
+ }
46
+ if (!parsed || typeof parsed !== 'object')
47
+ return null;
48
+ const name = parsed['name'];
49
+ const description = parsed['description'];
50
+ if (typeof name !== 'string' || typeof description !== 'string')
51
+ return null;
52
+ return {
53
+ name,
54
+ description,
55
+ context: typeof parsed['context'] === 'string' ? parsed['context'] : undefined,
56
+ allowedTools: typeof parsed['allowed-tools'] === 'string' ? parsed['allowed-tools'] : undefined,
57
+ body,
58
+ };
59
+ }
60
+ // ── Resource Detection ───────────────────────────────────────────────────────
61
+ const KNOWN_RESOURCE_DIRS = [
62
+ 'references',
63
+ 'examples',
64
+ 'templates',
65
+ 'scripts',
66
+ 'validation',
67
+ 'rules',
68
+ ];
69
+ async function detectResources(skillDir) {
70
+ const resources = [];
71
+ for (const dirName of KNOWN_RESOURCE_DIRS) {
72
+ try {
73
+ const entries = await readdir(join(skillDir, dirName));
74
+ resources.push({ name: dirName, fileCount: entries.length });
75
+ }
76
+ catch {
77
+ // Directory doesn't exist — skip
78
+ }
79
+ }
80
+ return resources;
81
+ }
82
+ // ── Skill Directory Reader ───────────────────────────────────────────────────
83
+ async function getSkillsFromDirectory(dirPath, source) {
84
+ let entries;
85
+ try {
86
+ const dirEntries = await readdir(dirPath, { withFileTypes: true });
87
+ entries = dirEntries.filter((e) => e.isDirectory()).map((e) => e.name);
88
+ }
89
+ catch {
90
+ return [];
91
+ }
92
+ const skills = [];
93
+ for (const entry of entries) {
94
+ const skillDir = join(dirPath, entry);
95
+ const skillMdPath = join(skillDir, 'SKILL.md');
96
+ let content;
97
+ try {
98
+ content = await readFile(skillMdPath, 'utf-8');
99
+ }
100
+ catch {
101
+ continue;
102
+ }
103
+ const frontmatter = parseFrontmatter(content);
104
+ if (!frontmatter) {
105
+ // eslint-disable-next-line no-console
106
+ console.warn(`Skipping skill "${entry}": invalid or missing frontmatter in SKILL.md`);
107
+ continue;
108
+ }
109
+ const resources = await detectResources(skillDir);
110
+ skills.push({
111
+ name: frontmatter.name,
112
+ displayName: getDisplayName(frontmatter.name),
113
+ description: frontmatter.description,
114
+ context: frontmatter.context,
115
+ allowedTools: frontmatter.allowedTools,
116
+ category: deriveCategory(frontmatter.name),
117
+ source,
118
+ body: frontmatter.body,
119
+ resources,
120
+ });
121
+ }
122
+ return skills;
123
+ }
124
+ export async function getSkills(projectRoot, homeDir) {
125
+ const root = projectRoot ?? process.cwd();
126
+ const home = homeDir ?? homedir();
127
+ const projectDir = join(root, '.claude', 'skills');
128
+ const globalDir = join(home, '.claude', 'skills');
129
+ const [projectSkills, globalSkills] = await Promise.all([
130
+ getSkillsFromDirectory(projectDir, 'project'),
131
+ getSkillsFromDirectory(globalDir, 'global'),
132
+ ]);
133
+ // Deduplicate by name — project skills take precedence over global skills
134
+ const seen = new Set(projectSkills.map((s) => s.name));
135
+ const uniqueGlobalSkills = globalSkills.filter((s) => !seen.has(s.name));
136
+ return [...projectSkills, ...uniqueGlobalSkills].sort((a, b) => a.name.localeCompare(b.name));
137
+ }