ronin-skillforce 0.0.0-stage → 0.2.0-beta.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 (434) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +19 -0
  4. package/README.md +258 -2
  5. package/bin/cli.js +823 -0
  6. package/bin/commands/archive.js +192 -0
  7. package/bin/commands/capstone-status.js +82 -0
  8. package/bin/commands/check.js +298 -0
  9. package/bin/commands/create.js +226 -0
  10. package/bin/commands/doctor.js +392 -0
  11. package/bin/commands/import.js +557 -0
  12. package/bin/commands/next.js +125 -0
  13. package/bin/commands/review.js +207 -0
  14. package/bin/commands/status.js +114 -0
  15. package/bin/commands/studio-autostart.js +414 -0
  16. package/bin/commands/studio-state.js +159 -0
  17. package/bin/commands/studio.js +831 -0
  18. package/bin/commands/trail.js +361 -0
  19. package/bin/commands/web.js +348 -0
  20. package/bin/course-reader.js +602 -0
  21. package/bin/node-version.js +60 -0
  22. package/bin/platforms/_shared.js +337 -0
  23. package/bin/platforms/claude.js +85 -0
  24. package/bin/platforms/cursor.js +52 -0
  25. package/bin/platforms/gemini.js +64 -0
  26. package/bin/platforms/opencode.js +114 -0
  27. package/bin/registry-helpers.js +504 -0
  28. package/bin/static-server.js +153 -0
  29. package/bin/studio-store.js +94 -0
  30. package/bin/sync-shared.sh +5 -0
  31. package/package.json +92 -4
  32. package/plugin.json +139 -0
  33. package/shared/SKILL.md +598 -0
  34. package/shared/agents/coach.md +228 -0
  35. package/shared/agents/navigator.md +208 -0
  36. package/shared/agents/professor.md +354 -0
  37. package/shared/agents/researcher.md +181 -0
  38. package/shared/agents/spotter.md +128 -0
  39. package/shared/commands/professor/archive.md +96 -0
  40. package/shared/commands/professor/capstone-review.md +79 -0
  41. package/shared/commands/professor/capstone.md +34 -0
  42. package/shared/commands/professor/discuss.md +18 -0
  43. package/shared/commands/professor/done.md +72 -0
  44. package/shared/commands/professor/export.md +69 -0
  45. package/shared/commands/professor/hint.md +120 -0
  46. package/shared/commands/professor/navigator.md +93 -0
  47. package/shared/commands/professor/new-topic.md +73 -0
  48. package/shared/commands/professor/next.md +178 -0
  49. package/shared/commands/professor/note.md +63 -0
  50. package/shared/commands/professor/onboard.md +95 -0
  51. package/shared/commands/professor/progress.md +46 -0
  52. package/shared/commands/professor/publish.md +93 -0
  53. package/shared/commands/professor/quiz.md +27 -0
  54. package/shared/commands/professor/recall.md +74 -0
  55. package/shared/commands/professor/review.md +57 -0
  56. package/shared/commands/professor/schedule.md +75 -0
  57. package/shared/commands/professor/skill-export.md +86 -0
  58. package/shared/commands/professor/spotter.md +93 -0
  59. package/shared/commands/professor/stuck.md +51 -0
  60. package/shared/commands/professor/switch.md +50 -0
  61. package/shared/commands/professor/syllabus.md +9 -0
  62. package/shared/commands/professor/template-export.md +91 -0
  63. package/shared/commands/professor/template-import.md +111 -0
  64. package/shared/commands/professor/worktrees.md +54 -0
  65. package/shared/hooks/pre-compact.js +221 -0
  66. package/studio/README.md +313 -0
  67. package/studio/dist/assets/BetaReportPanel-BJ9HIAnz.js +1 -0
  68. package/studio/dist/assets/Capstone-CoUU-jP7.js +6 -0
  69. package/studio/dist/assets/CodeWorkspace-BNrL4qvR.js +2 -0
  70. package/studio/dist/assets/Course-BMGTXus_.js +1 -0
  71. package/studio/dist/assets/Editor-Cw9j3cnp.js +53 -0
  72. package/studio/dist/assets/Home-D2woITq5.js +1 -0
  73. package/studio/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
  74. package/studio/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
  75. package/studio/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
  76. package/studio/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
  77. package/studio/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
  78. package/studio/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
  79. package/studio/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
  80. package/studio/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
  81. package/studio/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
  82. package/studio/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
  83. package/studio/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
  84. package/studio/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
  85. package/studio/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
  86. package/studio/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
  87. package/studio/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
  88. package/studio/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
  89. package/studio/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
  90. package/studio/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
  91. package/studio/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
  92. package/studio/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
  93. package/studio/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
  94. package/studio/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
  95. package/studio/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
  96. package/studio/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
  97. package/studio/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
  98. package/studio/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
  99. package/studio/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
  100. package/studio/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
  101. package/studio/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
  102. package/studio/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
  103. package/studio/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
  104. package/studio/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
  105. package/studio/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
  106. package/studio/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
  107. package/studio/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
  108. package/studio/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
  109. package/studio/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
  110. package/studio/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
  111. package/studio/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
  112. package/studio/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
  113. package/studio/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
  114. package/studio/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
  115. package/studio/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
  116. package/studio/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
  117. package/studio/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
  118. package/studio/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
  119. package/studio/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
  120. package/studio/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
  121. package/studio/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
  122. package/studio/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
  123. package/studio/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
  124. package/studio/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
  125. package/studio/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
  126. package/studio/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
  127. package/studio/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
  128. package/studio/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
  129. package/studio/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
  130. package/studio/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
  131. package/studio/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
  132. package/studio/dist/assets/Lesson-CYQhrDCZ.js +2 -0
  133. package/studio/dist/assets/NewCourse-CMpwVRQb.js +952 -0
  134. package/studio/dist/assets/Progress-2rS19Fur.js +1 -0
  135. package/studio/dist/assets/Review-SlqK-hjp.js +1 -0
  136. package/studio/dist/assets/Settings-t42u7n9H.js +1 -0
  137. package/studio/dist/assets/TutorPanel-DQDWIU7f.js +123 -0
  138. package/studio/dist/assets/abnfDiagram-WEYOIA3C-jTUmGBuB.js +1 -0
  139. package/studio/dist/assets/anthropic-iIm2l85r.js +15 -0
  140. package/studio/dist/assets/arc-Y1ARJVZ4.js +1 -0
  141. package/studio/dist/assets/architecture-WOLXFQ4H-Ch9Ld_vv.js +1 -0
  142. package/studio/dist/assets/architectureDiagram-ZHVYKT53-Dy-z6wsy.js +36 -0
  143. package/studio/dist/assets/array-BifhSqXX.js +1 -0
  144. package/studio/dist/assets/blockDiagram-RJAE7QA3-2fHVrc6N.js +140 -0
  145. package/studio/dist/assets/bridge-Cr0q4rLp.js +1 -0
  146. package/studio/dist/assets/c4Diagram-XDPPPE54-BuuKlG4V.js +38 -0
  147. package/studio/dist/assets/capstone-DhwBeNqk.js +135 -0
  148. package/studio/dist/assets/card-store-CVMBc-Pv.js +1 -0
  149. package/studio/dist/assets/channel-M_JkdHrL.js +1 -0
  150. package/studio/dist/assets/chunk-2E7WHVMD-lZdQWttk.js +88 -0
  151. package/studio/dist/assets/chunk-2Q5K7J3B-C1jixKkw.js +1 -0
  152. package/studio/dist/assets/chunk-4EMNKR2T-C6kbMwke.js +1 -0
  153. package/studio/dist/assets/chunk-55XCU76K-rkBzkZog.js +1 -0
  154. package/studio/dist/assets/chunk-5VM5RSS4-ZNzvKenW.js +15 -0
  155. package/studio/dist/assets/chunk-7S6XSTFO-Skg347QF.js +2 -0
  156. package/studio/dist/assets/chunk-AQDTSKZB-0pSDBJ23.js +72 -0
  157. package/studio/dist/assets/chunk-DSNLSHJZ-BaeQDl2i.js +129 -0
  158. package/studio/dist/assets/chunk-DUW6YSOI-Dgx8z5s3.js +1 -0
  159. package/studio/dist/assets/chunk-HAGFOTED-BEm00juw.js +62 -0
  160. package/studio/dist/assets/chunk-HNE4Q36P-DyCR-LvS.js +1 -0
  161. package/studio/dist/assets/chunk-J5ZVWO5B-oDCd-gWO.js +1 -0
  162. package/studio/dist/assets/chunk-JWPE2WC7-DVXcaiue.js +1 -0
  163. package/studio/dist/assets/chunk-NGNAAXSQ-C2Wy9Xmz.js +136 -0
  164. package/studio/dist/assets/chunk-NQOKRVIF-BNJ9uMmB.js +213 -0
  165. package/studio/dist/assets/chunk-UHW7PFBP-DqJczBLs.js +1 -0
  166. package/studio/dist/assets/chunk-VQ5W62QI-CVWYSP5Q.js +1 -0
  167. package/studio/dist/assets/chunk-WQQL4CDK-DJf0Dx05.js +10 -0
  168. package/studio/dist/assets/chunk-XXDRQBXY-CnbRkih_.js +1 -0
  169. package/studio/dist/assets/chunk-Y2CYZVJY-DsF7k-Jl.js +1 -0
  170. package/studio/dist/assets/chunk-YZO67HFG-BFUm_JHA.js +1 -0
  171. package/studio/dist/assets/chunk-ZAUX2LTX-C5ETkkSE.js +1 -0
  172. package/studio/dist/assets/chunk-ZCHMQSOR-WVX9r9PZ.js +2 -0
  173. package/studio/dist/assets/classDiagram-v2-4MYWR3UA-CI77SpuR.js +217 -0
  174. package/studio/dist/assets/cose-bilkent-JH36ORCC-DMBAZFnj.js +1 -0
  175. package/studio/dist/assets/course-export-C8jSPuda.js +1 -0
  176. package/studio/dist/assets/cynefin-EF2NZ3EQ-CLffmM25.js +1 -0
  177. package/studio/dist/assets/cynefinDiagram-WF24UDRP-BvLwocOb.js +62 -0
  178. package/studio/dist/assets/cytoscape.esm-CHBj4VkZ.js +321 -0
  179. package/studio/dist/assets/dagre-NK4GIZVX-C2nMAVdh.js +4 -0
  180. package/studio/dist/assets/defaultLocale-BFoDCU3G.js +1 -0
  181. package/studio/dist/assets/diagram-CBK3MWTC-Bid-pdax.js +24 -0
  182. package/studio/dist/assets/diagram-I5XIIV2D-DYJeAvzl.js +24 -0
  183. package/studio/dist/assets/diagram-ODIL2UCW-B06X2r_F.js +30 -0
  184. package/studio/dist/assets/diagram-PFBEJUXE-CwY--5Rz.js +3 -0
  185. package/studio/dist/assets/diagram-RJA3I4VV-4SqhH8zw.js +41 -0
  186. package/studio/dist/assets/diagram-TYUNFSNR-CrW4AIM9.js +200 -0
  187. package/studio/dist/assets/dist-CumnGVmJ.js +1 -0
  188. package/studio/dist/assets/ebnfDiagram-V4P3TTPT-xeoCmH-d.js +1 -0
  189. package/studio/dist/assets/elk-QONTBCTQ-Dadmz6iS.js +27 -0
  190. package/studio/dist/assets/erDiagram-KYQIGQAA-CSuH0bbF.js +99 -0
  191. package/studio/dist/assets/error-BTdmRKoB.js +1 -0
  192. package/studio/dist/assets/errors-BZa_CNHL.js +1 -0
  193. package/studio/dist/assets/eventmodeling-K75KTNOO-CciVfx3I.js +1 -0
  194. package/studio/dist/assets/fetch-local-DG3O3hmQ.js +4 -0
  195. package/studio/dist/assets/flowDiagram-IUGLLWBU-DgNR54qK.js +1 -0
  196. package/studio/dist/assets/ganttDiagram-R7GPNTJY-C0wtA-2y.js +292 -0
  197. package/studio/dist/assets/gitGraph-VSP46ZUC-BXoDzaA3.js +1 -0
  198. package/studio/dist/assets/gitGraphDiagram-PDYL7XHY-vZBlNRPe.js +106 -0
  199. package/studio/dist/assets/graphlib-DS17s2tU.js +1 -0
  200. package/studio/dist/assets/index-CS8XPYbB.js +313 -0
  201. package/studio/dist/assets/index-CVenTTOY.css +2 -0
  202. package/studio/dist/assets/info-OHQRW6UA-bs2Qpf7P.js +1 -0
  203. package/studio/dist/assets/infoDiagram-MVDRKAX5-rPJio6-1.js +2 -0
  204. package/studio/dist/assets/init-C-OQMol4.js +1 -0
  205. package/studio/dist/assets/ishikawaDiagram-HPEHV2GE-CXf9XFff.js +70 -0
  206. package/studio/dist/assets/journeyDiagram-BOSHW7O7-C3MSH79o.js +139 -0
  207. package/studio/dist/assets/js.worker-AD7DjksO.js +4 -0
  208. package/studio/dist/assets/kanban-definition-FNSA4HC5-Bdh7SB4n.js +89 -0
  209. package/studio/dist/assets/katex-B_JcIwqj.js +257 -0
  210. package/studio/dist/assets/katex-BgsA2lO1.css +1 -0
  211. package/studio/dist/assets/line-CHkoQXJF.js +1 -0
  212. package/studio/dist/assets/linear-C9iwaMOi.js +1 -0
  213. package/studio/dist/assets/mermaid-parser.core-Do1oxD1S.js +7 -0
  214. package/studio/dist/assets/mermaid.core-DgZUD0sU.js +44 -0
  215. package/studio/dist/assets/mindmap-definition-6OY57UG3-PUaK6oE_.js +98 -0
  216. package/studio/dist/assets/node.browser-DkpMze_r.js +1 -0
  217. package/studio/dist/assets/node.browser-HQ5SKBOf.js +1 -0
  218. package/studio/dist/assets/ollama-bJNp3jaD.js +1 -0
  219. package/studio/dist/assets/openai-compatible-0tmAyMlN.js +1 -0
  220. package/studio/dist/assets/ordinal-BDEzSJ7C.js +1 -0
  221. package/studio/dist/assets/packet-JDAUHWVQ-vf2FtqFr.js +1 -0
  222. package/studio/dist/assets/path-fybaL0A-.js +1 -0
  223. package/studio/dist/assets/pegDiagram-ECIUJNBX-NEVrgPTY.js +1 -0
  224. package/studio/dist/assets/pie-XZMESJXO-BIWydVNZ.js +1 -0
  225. package/studio/dist/assets/pieDiagram-GNMPY74T-BI9_u6rT.js +39 -0
  226. package/studio/dist/assets/python.worker-CzTrFdd9.js +24 -0
  227. package/studio/dist/assets/quadrantDiagram-D57K4MC3-ryNpoBC5.js +7 -0
  228. package/studio/dist/assets/radar-ABXABTNO-D8TjnvBB.js +1 -0
  229. package/studio/dist/assets/railroad-I3PHUGI6-BmEDV5kf.js +1 -0
  230. package/studio/dist/assets/railroad-abnf-LNEFI6M7-Cs_sArMc.js +1 -0
  231. package/studio/dist/assets/railroad-ebnf-DWYD2UWJ-DYuCq46d.js +1 -0
  232. package/studio/dist/assets/railroad-peg-JR7BVNR7-BcXSgdMy.js +1 -0
  233. package/studio/dist/assets/railroadDiagram-Y72NRBL7-DBcc8b2c.js +1 -0
  234. package/studio/dist/assets/react-B8SKf8RM.js +1 -0
  235. package/studio/dist/assets/rehype-katex-BfUIq5As.js +259 -0
  236. package/studio/dist/assets/remark-math-XvZOjmDO.js +5 -0
  237. package/studio/dist/assets/requirementDiagram-EQYSW5RA-CVcBgM1L.js +84 -0
  238. package/studio/dist/assets/rolldown-runtime-COiEfhsA.js +1 -0
  239. package/studio/dist/assets/rough.esm-Dy-Kn_BL.js +1 -0
  240. package/studio/dist/assets/sankeyDiagram-SY24JHO5-DjZ81hDs.js +40 -0
  241. package/studio/dist/assets/schemas-BOc2YsOP.js +55 -0
  242. package/studio/dist/assets/sequenceDiagram-BLEHNHQU-BNwOa2S7.js +169 -0
  243. package/studio/dist/assets/settings-DhwuyNPU.js +1 -0
  244. package/studio/dist/assets/sizeCapture-INFHLROL-3uHXrFqA.js +1 -0
  245. package/studio/dist/assets/spec-nAnsSMkw.js +1 -0
  246. package/studio/dist/assets/sql-wasm-C1D_RJuy.wasm +0 -0
  247. package/studio/dist/assets/sql.worker-D7pBHOrq.js +4 -0
  248. package/studio/dist/assets/src-BWF7jMDv.js +1 -0
  249. package/studio/dist/assets/stateDiagram-v2-A6IESKWZ-BFWa5lEx.js +291 -0
  250. package/studio/dist/assets/swimlanes-B3ENRKFQ-LfM_Jg6Z.js +1 -0
  251. package/studio/dist/assets/swimlanesDiagram-AYQRV4AK-BDmpoiGp.js +8 -0
  252. package/studio/dist/assets/timeline-definition-JXYKGLGB-BwGzkWgZ.js +120 -0
  253. package/studio/dist/assets/treeView-D4JQ5SDB-MLk3VuRt.js +1 -0
  254. package/studio/dist/assets/treemap-SAJKECNS-D8iSjp7L.js +1 -0
  255. package/studio/dist/assets/useStream-rdsR6A7P.js +1 -0
  256. package/studio/dist/assets/usecaseDiagram-WPOLBNNX-BqxpaNlT.js +328 -0
  257. package/studio/dist/assets/vennDiagram-Q3Y3IDCW-CpeUDMhQ.js +34 -0
  258. package/studio/dist/assets/wardley-7MLQ67FV-tAMbCZAj.js +1 -0
  259. package/studio/dist/assets/wardleyDiagram-IVAIDKWA-CDJViWzt.js +78 -0
  260. package/studio/dist/assets/xychartDiagram-4URNHDU4-CwaQrd3_.js +7 -0
  261. package/studio/dist/index.html +20 -0
  262. package/studio/dist/preview.html +22 -0
  263. package/studio/migrations/0001_init.sql +188 -0
  264. package/studio/migrations/0002_external_ids.sql +20 -0
  265. package/studio/migrations/0003_course_language.sql +12 -0
  266. package/studio/migrations/0004_capstone.sql +51 -0
  267. package/studio/migrations/0005_beta_loop.sql +73 -0
  268. package/studio/migrations/0006_interactive_exercises.sql +49 -0
  269. package/studio/src/lib/activity.js +92 -0
  270. package/studio/src/lib/ai/anthropic.js +109 -0
  271. package/studio/src/lib/ai/bridge.js +126 -0
  272. package/studio/src/lib/ai/catalog.js +160 -0
  273. package/studio/src/lib/ai/config.js +70 -0
  274. package/studio/src/lib/ai/errors.js +95 -0
  275. package/studio/src/lib/ai/fetch-local.js +104 -0
  276. package/studio/src/lib/ai/index.js +194 -0
  277. package/studio/src/lib/ai/ollama.js +136 -0
  278. package/studio/src/lib/ai/openai-compatible.js +101 -0
  279. package/studio/src/lib/ai/provider-utils.js +107 -0
  280. package/studio/src/lib/ai/sse.js +99 -0
  281. package/studio/src/lib/ai/status.js +92 -0
  282. package/studio/src/lib/ai/useStream.js +109 -0
  283. package/studio/src/lib/beta/metrics.js +147 -0
  284. package/studio/src/lib/beta/report.js +134 -0
  285. package/studio/src/lib/capstone-evidence.js +758 -0
  286. package/studio/src/lib/capstone.js +663 -0
  287. package/studio/src/lib/chat-store.js +128 -0
  288. package/studio/src/lib/course-export.js +38 -0
  289. package/studio/src/lib/course.js +187 -0
  290. package/studio/src/lib/exercises/journal-entry.js +259 -0
  291. package/studio/src/lib/exercises/placement.js +31 -0
  292. package/studio/src/lib/exercises/registry.js +19 -0
  293. package/studio/src/lib/exercises/spec.js +129 -0
  294. package/studio/src/lib/i18n/detect.js +162 -0
  295. package/studio/src/lib/i18n/en/app.json +23 -0
  296. package/studio/src/lib/i18n/en/betaReport.json +55 -0
  297. package/studio/src/lib/i18n/en/capstone.json +57 -0
  298. package/studio/src/lib/i18n/en/common.json +25 -0
  299. package/studio/src/lib/i18n/en/course.json +27 -0
  300. package/studio/src/lib/i18n/en/data.json +35 -0
  301. package/studio/src/lib/i18n/en/durability.json +5 -0
  302. package/studio/src/lib/i18n/en/errors.json +20 -0
  303. package/studio/src/lib/i18n/en/exercises.json +55 -0
  304. package/studio/src/lib/i18n/en/externalEvidence.json +76 -0
  305. package/studio/src/lib/i18n/en/home.json +18 -0
  306. package/studio/src/lib/i18n/en/lesson.json +33 -0
  307. package/studio/src/lib/i18n/en/nav.json +8 -0
  308. package/studio/src/lib/i18n/en/newCourse.json +51 -0
  309. package/studio/src/lib/i18n/en/onboarding.json +35 -0
  310. package/studio/src/lib/i18n/en/playwrightTemplate.json +20 -0
  311. package/studio/src/lib/i18n/en/practice.json +79 -0
  312. package/studio/src/lib/i18n/en/provider.json +27 -0
  313. package/studio/src/lib/i18n/en/providerMeta.json +26 -0
  314. package/studio/src/lib/i18n/en/reflection.json +17 -0
  315. package/studio/src/lib/i18n/en/revision.json +52 -0
  316. package/studio/src/lib/i18n/en/runnerNotice.json +14 -0
  317. package/studio/src/lib/i18n/en/settings.json +12 -0
  318. package/studio/src/lib/i18n/en/storage.json +49 -0
  319. package/studio/src/lib/i18n/en/tutor.json +39 -0
  320. package/studio/src/lib/i18n/en/workspace.json +50 -0
  321. package/studio/src/lib/i18n/index.js +144 -0
  322. package/studio/src/lib/i18n/languages.js +93 -0
  323. package/studio/src/lib/i18n/vi/app.json +23 -0
  324. package/studio/src/lib/i18n/vi/betaReport.json +55 -0
  325. package/studio/src/lib/i18n/vi/capstone.json +57 -0
  326. package/studio/src/lib/i18n/vi/common.json +25 -0
  327. package/studio/src/lib/i18n/vi/course.json +27 -0
  328. package/studio/src/lib/i18n/vi/data.json +35 -0
  329. package/studio/src/lib/i18n/vi/durability.json +5 -0
  330. package/studio/src/lib/i18n/vi/errors.json +20 -0
  331. package/studio/src/lib/i18n/vi/exercises.json +55 -0
  332. package/studio/src/lib/i18n/vi/externalEvidence.json +76 -0
  333. package/studio/src/lib/i18n/vi/home.json +18 -0
  334. package/studio/src/lib/i18n/vi/lesson.json +33 -0
  335. package/studio/src/lib/i18n/vi/nav.json +8 -0
  336. package/studio/src/lib/i18n/vi/newCourse.json +51 -0
  337. package/studio/src/lib/i18n/vi/onboarding.json +35 -0
  338. package/studio/src/lib/i18n/vi/playwrightTemplate.json +20 -0
  339. package/studio/src/lib/i18n/vi/practice.json +79 -0
  340. package/studio/src/lib/i18n/vi/provider.json +27 -0
  341. package/studio/src/lib/i18n/vi/providerMeta.json +26 -0
  342. package/studio/src/lib/i18n/vi/reflection.json +17 -0
  343. package/studio/src/lib/i18n/vi/revision.json +52 -0
  344. package/studio/src/lib/i18n/vi/runnerNotice.json +14 -0
  345. package/studio/src/lib/i18n/vi/settings.json +12 -0
  346. package/studio/src/lib/i18n/vi/storage.json +49 -0
  347. package/studio/src/lib/i18n/vi/tutor.json +39 -0
  348. package/studio/src/lib/i18n/vi/workspace.json +50 -0
  349. package/studio/src/lib/ids.js +10 -0
  350. package/studio/src/lib/json.js +26 -0
  351. package/studio/src/lib/markdown.js +74 -0
  352. package/studio/src/lib/prompts/base.js +139 -0
  353. package/studio/src/lib/prompts/capstone.js +777 -0
  354. package/studio/src/lib/prompts/course.js +150 -0
  355. package/studio/src/lib/prompts/lesson.js +275 -0
  356. package/studio/src/lib/prompts/practice.js +511 -0
  357. package/studio/src/lib/prompts/tutor.js +509 -0
  358. package/studio/src/lib/repo/blocked-adapter.js +69 -0
  359. package/studio/src/lib/repo/events.js +239 -0
  360. package/studio/src/lib/repo/idb-adapter.js +226 -0
  361. package/studio/src/lib/repo/index.js +1315 -0
  362. package/studio/src/lib/repo/memory-adapter.js +115 -0
  363. package/studio/src/lib/repo/remote-adapter.js +158 -0
  364. package/studio/src/lib/repo/schema.js +143 -0
  365. package/studio/src/lib/repo/select-adapter.js +345 -0
  366. package/studio/src/lib/router.js +71 -0
  367. package/studio/src/lib/runner/browser.js +244 -0
  368. package/studio/src/lib/runner/checks.js +248 -0
  369. package/studio/src/lib/runner/current-code.js +98 -0
  370. package/studio/src/lib/runner/esm-cjs.js +109 -0
  371. package/studio/src/lib/runner/hash.js +34 -0
  372. package/studio/src/lib/runner/history.js +48 -0
  373. package/studio/src/lib/runner/index.js +168 -0
  374. package/studio/src/lib/runner/languages.js +258 -0
  375. package/studio/src/lib/runner/local.js +139 -0
  376. package/studio/src/lib/runner/path.js +104 -0
  377. package/studio/src/lib/runner/skeleton.js +315 -0
  378. package/studio/src/lib/runner/strip-types.js +134 -0
  379. package/studio/src/lib/settings.js +399 -0
  380. package/studio/src/lib/srs.js +39 -0
  381. package/templates/agent/settings.json +6 -0
  382. package/templates/claude/plugin.json +139 -0
  383. package/templates/claude/settings.json +15 -0
  384. package/templates/cursor/professor.mdc +4 -0
  385. package/templates/cursor/settings.json +18 -0
  386. package/templates/gemini/GEMINI.md +30 -0
  387. package/templates/gemini/settings.json +5 -0
  388. package/templates/opencode/opencode.json +3 -0
  389. package/templates/researcher/README.md +61 -0
  390. package/templates/researcher/settings.json +18 -0
  391. package/web/client/components.json +15 -0
  392. package/web/client/index.html +12 -0
  393. package/web/client/package-lock.json +8732 -0
  394. package/web/client/package.json +39 -0
  395. package/web/client/postcss.config.js +6 -0
  396. package/web/client/src/App.jsx +140 -0
  397. package/web/client/src/api/client.js +357 -0
  398. package/web/client/src/components/ChatPanel.jsx +417 -0
  399. package/web/client/src/components/CommandPills.jsx +50 -0
  400. package/web/client/src/components/DeprecationBanner.jsx +21 -0
  401. package/web/client/src/components/ExerciseEditor.jsx +164 -0
  402. package/web/client/src/components/Header.jsx +119 -0
  403. package/web/client/src/components/LecturePanel.jsx +342 -0
  404. package/web/client/src/components/MobileTabSwitcher.jsx +51 -0
  405. package/web/client/src/components/SplitPane.jsx +42 -0
  406. package/web/client/src/components/ui/alert.jsx +38 -0
  407. package/web/client/src/components/ui/badge.jsx +24 -0
  408. package/web/client/src/components/ui/button.jsx +23 -0
  409. package/web/client/src/components/ui/select.jsx +74 -0
  410. package/web/client/src/hooks/useSSE.js +152 -0
  411. package/web/client/src/hooks/useWebSocket.js +98 -0
  412. package/web/client/src/index.css +23 -0
  413. package/web/client/src/lib/utils.js +6 -0
  414. package/web/client/src/main.jsx +12 -0
  415. package/web/client/src/utils/markdown.js +50 -0
  416. package/web/client/tailwind.config.js +8 -0
  417. package/web/client/vite.config.js +21 -0
  418. package/web/dist/assets/index-C1W0eXIQ.js +294 -0
  419. package/web/dist/assets/index-C3OUx70T.css +1 -0
  420. package/web/dist/index.html +13 -0
  421. package/web/lecture-archive.js +172 -0
  422. package/web/legacy-server.js +1277 -0
  423. package/web/package-lock.json +855 -0
  424. package/web/package.json +10 -0
  425. package/web/security.js +1016 -0
  426. package/web/server.js +390 -0
  427. package/web/studio-api/agents.js +580 -0
  428. package/web/studio-api/bridge.js +199 -0
  429. package/web/studio-api/db.js +66 -0
  430. package/web/studio-api/guards.js +201 -0
  431. package/web/studio-api/health.js +538 -0
  432. package/web/studio-api.js +214 -0
  433. package/web/studio-db.js +380 -0
  434. package/web/studio-runner.js +568 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,74 @@
1
+ # Changelog
2
+
3
+ All notable changes to **ronin-skillforce** are documented here. The format is based on
4
+ [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and this project adheres to
5
+ [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+ ## [0.2.0-beta.0] — 2026-11-15
8
+
9
+ ### Changed
10
+
11
+ - **License: Apache-2.0** from this release (was MIT). Adds a `NOTICE` file with attribution,
12
+ third-party licences and a trademark note. Version 0.1.0 and all `course-professor` releases stay MIT.
13
+
14
+
15
+ ### Added
16
+
17
+ - `skillforce studio --autostart on|off` starts Professor Studio at login on macOS through a
18
+ LaunchAgent (`com.ronin-skillforce.studio`), pins the ports the first time so the URL and pairing
19
+ URL stop changing, and refuses to install from an npx cache (use a global install).
20
+ - `skillforce studio --status` reports whether Studio runs, its URL and pairing URL, the autostart
21
+ state and the log path (`${PROFESSOR_HOME:-~/.professor}/logs/studio.log`). `--stop` stops it —
22
+ through launchd when the login item is installed, otherwise through the pid in
23
+ `${PROFESSOR_HOME:-~/.professor}/studio.json` — and never signals a process that is not Studio.
24
+ - `skillforce studio --strict-port` fails instead of moving to another port when one is busy.
25
+
26
+ ### Changed
27
+
28
+ - Courses live only in `learning/<slug>/`. The legacy `courses/` location is no longer read:
29
+ `professor:capstone` and `professor:syllabus` now find every course created since 0.1.0, and the
30
+ CLI and PreCompact hook look in `learning/` only. If you still have a pre-0.1.0 `courses/<slug>/`
31
+ folder, move it to `learning/<slug>/` by hand — nothing is migrated automatically.
32
+
33
+ ### Fixed
34
+
35
+ - New programming courses are created on an **orphan** branch: `learning/<slug>/` holds only course
36
+ files, never a copy of your project, and shares no history with it.
37
+ - `professor:archive` keeps everything: the whole course is copied to `.course_archive/<slug>/`
38
+ (never overwritten), course commits stay on branch `archive/<slug>`, and nothing is removed before
39
+ the copy is verified (`skillforce archive`).
40
+ - `professor:done` no longer loops: Coach asks you to say "confirm"; the section verdict is recorded
41
+ with `skillforce verdict` in the format the CLI reads, and the capstone status line now updates.
42
+ - `professor:hint` and `professor:stuck` refuse during the capstone phase; `professor:next` resumes
43
+ an in-progress section instead of skipping it.
44
+ - Re-running `setup` now refreshes the files the plugin installed (a changed file is kept once as
45
+ `.bak`); Gemini CLI, OpenCode and Cursor get current instructions, an inline Coach flow, and
46
+ Gemini commands receive their arguments.
47
+ - `skillforce studio` polls and prints `http://127.0.0.1:<port>` instead of `http://localhost:<port>`,
48
+ matching the loopback bind. On macOS `localhost` resolves to `::1` first, so a health poll could
49
+ reach another dev server holding `[::1]:3000` and fail with "did not become healthy … (HTTP 404)".
50
+ - `skillforce studio` checks both loopback families before starting. A busy default port moves to the
51
+ next free one with a notice, a busy `--port` / `--api-port` fails with a message naming the port and
52
+ the flag to change, and a health answer that is not Studio says another app is on that port.
53
+ - `skillforce web` prints its UI URL on `127.0.0.1` (legacy Vite dev is unchanged).
54
+
55
+ ## [0.1.0] — 2026-11-14
56
+
57
+ First release under the new name. Earlier versions were published as `course-professor`
58
+ (1.x, now deprecated on npm); their history is in
59
+ [`docs/history/CHANGELOG-course-professor.md`](docs/history/CHANGELOG-course-professor.md).
60
+ This release also ships everything listed there under `[Unreleased]` (for example `web` now serves
61
+ Studio only).
62
+
63
+ ### Changed
64
+
65
+ - Package renamed to `ronin-skillforce`; the CLI command is `skillforce`
66
+ (`npx ronin-skillforce <command>`). `course-professor` and `professor` still work as aliases.
67
+ - Version reset to `0.1.0`.
68
+
69
+ ### Added
70
+
71
+ - `skillforce create <slug> --kind <kind>` / `skillforce save <slug>` — programming courses are
72
+ verified git worktrees on `learning/<slug>`, rolled back on failure, and committed as you go.
73
+ - `skillforce context [slug] --json` / `skillforce trail <slug> --stdin` — Coach gets the real course
74
+ instead of guessing paths, and every review round is kept in `LEARNING-LOG.md`.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,19 @@
1
+ Ronin SkillForce
2
+ Copyright 2026 Tuấn Khuất (ronnie)
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+ Versions 0.1.0 and earlier, and all versions published as `course-professor`,
6
+ were released under the MIT License.
7
+
8
+ "Ronin SkillForce" and "SkillForce" are names of the project owner. The
9
+ Apache License does not grant permission to use these names, logos or other
10
+ trademarks, except as required for describing the origin of the work.
11
+
12
+ Third-party software
13
+ --------------------
14
+ The built Studio app (studio/dist) bundles third-party packages under their
15
+ own licenses, including:
16
+ - elkjs (Eclipse Public License 2.0), used unmodified through Mermaid
17
+ https://github.com/kieler/elkjs
18
+ All other runtime dependencies are under permissive licenses (MIT, ISC,
19
+ BSD-2/3-Clause, Apache-2.0, 0BSD, CC0-1.0, Unlicense, Python-2.0).
package/README.md CHANGED
@@ -1,3 +1,259 @@
1
- # Temporary Holding Version
1
+ # Ronin SkillForce
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ **A Socratic learning coach for AI agents.** SkillForce teaches by asking questions instead of
4
+ handing you answers. It runs inside **Claude Code**, **Gemini CLI**, **OpenCode** and **Cursor**,
5
+ and comes with **Studio**, a local web app for lessons, quizzes, flashcards and hands-on exercises.
6
+
7
+ ```bash
8
+ npx ronin-skillforce init # set up your AI agent
9
+ npx ronin-skillforce studio # open Studio in your browser
10
+ ```
11
+
12
+ > Formerly published as `course-professor` (now deprecated). The old `course-professor` command
13
+ > still works as an alias.
14
+
15
+ ---
16
+
17
+ ## Why SkillForce
18
+
19
+ Most AI assistants write the answer the moment you ask. SkillForce does the opposite: you think,
20
+ you try, you get feedback as questions, and you keep what you learn.
21
+
22
+ - **Socratic by design.** It never completes your exercises; it asks the next question instead.
23
+ - **Any subject.** Each course has a kind: `programming`, `quantitative`, `conceptual` or `skill`.
24
+ Exercises match the kind: code with self-checks, problem sets, analysis prompts or drills.
25
+ - **Grounded lectures.** Before each lecture it researches 3–6 sources and cites key claims. It
26
+ never invents links, and marks claims it could not source as unverified.
27
+ - **Your progress stays on your machine.** Courses are plain Markdown files. Programming courses
28
+ are git worktrees on their own `learning/<slug>` branch, which starts with no history and none of
29
+ your project's files, so they never mix with your project.
30
+ - **Remembers how you learn.** Coach keeps a trail of every review round, flags weak concepts and
31
+ builds spaced-repetition flashcards.
32
+
33
+ ---
34
+
35
+ ## Requirements
36
+
37
+ - An AI agent: Claude Code, Gemini CLI, OpenCode or Cursor.
38
+ - **Node.js 18+** for setup and the CLI; **Node 22.5+** for Studio, `review` and `import` (they use
39
+ the built-in `node:sqlite` module). Run `npx ronin-skillforce doctor` to check your setup.
40
+ - **Git** for programming courses.
41
+
42
+ ---
43
+
44
+ ## Quick start
45
+
46
+ ### 1. Set up your agent
47
+
48
+ ```bash
49
+ npx ronin-skillforce init # auto-detect your agent
50
+ npx ronin-skillforce setup claude # or pick one: claude | cursor | opencode | gemini
51
+ ```
52
+
53
+ Restart your agent, then start a course:
54
+
55
+ ```
56
+ professor:new-topic
57
+ ```
58
+
59
+ Professor asks a few questions about what you want to learn, proposes a syllabus and creates the
60
+ course in `learning/<slug>/`. Then use `professor:next` for each lesson.
61
+
62
+ ### 2. Open Studio (optional)
63
+
64
+ ```bash
65
+ npx ronin-skillforce studio # starts the local server + Studio and pairs them
66
+ ```
67
+
68
+ Studio is a browser app on your machine. Bring your own API key (Anthropic, any
69
+ OpenAI-compatible endpoint, Ollama), or use the AI agent you already have through the local
70
+ bridge, with no key needed. Your data goes to your browser (IndexedDB) or to a SQLite file at
71
+ `~/.professor/professor.db`, whichever you choose.
72
+
73
+ ### Install globally (optional)
74
+
75
+ ```bash
76
+ npm i -g ronin-skillforce # then run `skillforce <command>`
77
+ npm uninstall -g ronin-skillforce
78
+ ```
79
+
80
+ Your courses (in `learning/`) and Studio's database live outside the package and are not removed
81
+ when you uninstall.
82
+
83
+ ---
84
+
85
+ ## Agent commands
86
+
87
+ Type these in your AI agent.
88
+
89
+ | Command | What it does |
90
+ |---|---|
91
+ | `professor:new-topic` | Start a course: research, syllabus, course folder |
92
+ | `professor:next` | Next lesson: grounded lecture and an exercise |
93
+ | `professor:review` | Coach reviews your work, starting with your own self-assessment |
94
+ | `professor:hint` | Hints in 3 layers: concept → tool/pattern → pseudo-code |
95
+ | `professor:stuck` | Break a blocker into smaller steps, without the answer |
96
+ | `professor:discuss` | Questions about the current concept |
97
+ | `professor:quiz` | 5 questions at your level |
98
+ | `professor:done` | Coach checks your understanding, then marks the section complete |
99
+ | `professor:recall` / `professor:schedule` | Spaced-repetition drills and your review schedule |
100
+ | `professor:progress` / `professor:syllabus` | Progress, streak and the full syllabus |
101
+ | `professor:capstone` / `professor:capstone-review` | Final project brief and its review |
102
+ | `professor:note` / `professor:export` | Notes, and export to Notion or Obsidian |
103
+ | `professor:switch` / `professor:worktrees` / `professor:archive` | Manage several courses |
104
+
105
+ Professor routes work to specialised agents: **Coach** (reviews and self-assessment),
106
+ **Spotter** (mid-work check-ins), **Navigator** (how concepts connect) and **Researcher**
107
+ (sources for lectures).
108
+
109
+ ---
110
+
111
+ ## CLI
112
+
113
+ ```bash
114
+ npx ronin-skillforce <command> # or `skillforce <command>` after a global install
115
+ ```
116
+
117
+ | Command | What it does |
118
+ |---|---|
119
+ | `init`, `setup <agent>`, `list` | Set up the plugin for your agent |
120
+ | `status [--json]` | Every course: kind, progress, current section, due flashcards, streak |
121
+ | `next [slug]` | Current lesson summary and how to continue |
122
+ | `check [slug]` | Run the active exercise's self-checks (never shows solutions) |
123
+ | `doctor` | Check Node, git, agents, Ollama, ports and the database, with fix hints |
124
+ | `studio [--no-open] [--port N --api-port N] [--status \| --stop \| --autostart on\|off]` | Start the local server and Studio, print a pairing URL, or check/stop the background copy |
125
+ | `review [--limit N]` | Review due flashcards in the terminal (shared with Studio) |
126
+ | `import [slug \| --all] [--dry-run]` | Import Markdown courses into Studio's database |
127
+ | `create`, `save`, `context`, `trail` | Course steps the agent commands run for you |
128
+ | `courses`, `search`, `install`, `update`, `installed`, `remove` | Community courses and skills (beta) |
129
+ | `web` | Start only the bridge server (see below) |
130
+
131
+ ### Run Studio in the background (macOS)
132
+
133
+ On macOS you can let Studio start at login instead of running `npx ronin-skillforce studio` yourself.
134
+ Auto-start needs a global install, because a path in the npx cache can be deleted at any time:
135
+
136
+ ```bash
137
+ npm i -g ronin-skillforce
138
+ skillforce studio --autostart on # installs the login item and prints the fixed URL
139
+ ```
140
+
141
+ The LaunchAgent (`~/Library/LaunchAgents/com.ronin-skillforce.studio.plist`) pins the ports in use
142
+ when you ran the command and starts Studio with `--strict-port`, so the URL and pairing URL stay the
143
+ same at every login. If a pinned port is busy at login, Studio does not start: the reason is the last
144
+ line of `~/.professor/logs/studio.log` (or `$PROFESSOR_HOME/logs/studio.log` when that is set).
145
+
146
+ ```bash
147
+ skillforce studio --status # running? URL, pairing URL, autostart, log path
148
+ skillforce studio --stop # stop it; never touches another app's process
149
+ skillforce studio --autostart off # remove the login item
150
+ ```
151
+
152
+ Pick a specific port with `--autostart on --port 5190 --api-port 3005` (a busy port is refused, not
153
+ silently changed). Re-run `--autostart on` after changing Node (nvm, a global upgrade) so the agent
154
+ points at the new binary, and run `--autostart off` before uninstalling the package. Log out and back
155
+ in once to see it start by itself; `--status` may say "not running" for a moment after login while
156
+ Studio boots.
157
+
158
+ ### Starting the bridge manually
159
+
160
+ `skillforce web` starts the Studio bridge server and serves the built Studio app from the
161
+ same port (3000 by default). It does not build Studio: if `studio/dist` is missing the port answers
162
+ with a 503 page. `web --production` refuses to start without a Studio build, and
163
+ `web --rotate-token` prints a new pairing token. Most people should use `skillforce studio`
164
+ instead.
165
+
166
+ The bridge accepts only loopback clients and requires the pairing token, so keep the token private.
167
+ The old web UI is **deprecated** and opt-in only (`web --legacy` or `PROFESSOR_LEGACY=1`); it will
168
+ be removed.
169
+
170
+ ---
171
+
172
+ ## How courses are stored
173
+
174
+ ```
175
+ learning/<slug>/
176
+ ├── COURSE.md syllabus and progress (source of truth)
177
+ ├── LECTURE.md current lesson; older lessons are kept in lectures/
178
+ ├── LEARNING-LOG.md Coach review trail, attempts and section verdicts
179
+ ├── SCHEDULE.md flashcards and spaced-repetition queue
180
+ ├── CAPSTONE.md final project brief (never changes)
181
+ ├── NOTES.md your notes
182
+ └── exercises/
183
+ ```
184
+
185
+ Everything is plain Markdown you can read, edit and commit. There is no lock-in.
186
+
187
+ ---
188
+
189
+ ## Export to Notion or Obsidian (optional)
190
+
191
+ `professor:export` needs an MCP server in your project's `.mcp.json`. The core learning flow works
192
+ without one.
193
+
194
+ <details>
195
+ <summary>Notion</summary>
196
+
197
+ Create an integration at [notion.so/my-integrations](https://www.notion.so/my-integrations), copy
198
+ its token, and connect it to the target page (`…` → **Connections**). Then:
199
+
200
+ ```json
201
+ {
202
+ "mcpServers": {
203
+ "notion": {
204
+ "command": "npx",
205
+ "args": ["-y", "@modelcontextprotocol/server-notion"],
206
+ "env": { "NOTION_API_TOKEN": "your-notion-integration-token" }
207
+ }
208
+ }
209
+ }
210
+ ```
211
+
212
+ </details>
213
+
214
+ <details>
215
+ <summary>Obsidian</summary>
216
+
217
+ Install and enable the **Local REST API** community plugin and copy its API key (default port
218
+ 27123). Then:
219
+
220
+ ```json
221
+ {
222
+ "mcpServers": {
223
+ "obsidian": {
224
+ "command": "npx",
225
+ "args": ["-y", "mcp-obsidian"],
226
+ "env": {
227
+ "OBSIDIAN_API_KEY": "your-obsidian-rest-api-key",
228
+ "OBSIDIAN_HOST": "127.0.0.1",
229
+ "OBSIDIAN_PORT": "27123"
230
+ }
231
+ }
232
+ }
233
+ }
234
+ ```
235
+
236
+ </details>
237
+
238
+ ---
239
+
240
+ ## Security and privacy
241
+
242
+ Studio runs as a browser app, a loopback bridge and a local code runner on your machine. API keys
243
+ stay in your browser and are never included in backups. See [`SECURITY.md`](SECURITY.md) for what
244
+ runs where and how to report a vulnerability.
245
+
246
+ ## Links
247
+
248
+ - Changes: [`CHANGELOG.md`](CHANGELOG.md)
249
+ - Studio details: [`studio/README.md`](studio/README.md)
250
+ - Source and issues: [github.com/Thanhtuan96/course-builder](https://github.com/Thanhtuan96/course-builder)
251
+
252
+ ## License
253
+
254
+ [Apache License 2.0](LICENSE) from version 0.2.0. See [`NOTICE`](NOTICE) for attribution and
255
+ third-party licenses. Version 0.1.0 and every release published as `course-professor` were MIT.
256
+
257
+ "Ronin SkillForce" and "SkillForce" are the project owner's names; the licence does not grant
258
+ permission to use them for other products. Contributions are accepted under the terms in
259
+ [`CONTRIBUTING.md`](CONTRIBUTING.md).