@synap-core/cli 1.8.0 → 1.10.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 (332) hide show
  1. package/dist/commands/agent-chat.d.ts +47 -0
  2. package/dist/commands/agent-chat.js +250 -0
  3. package/dist/commands/agent-chat.js.map +1 -0
  4. package/dist/commands/agent-run.js +3 -4
  5. package/dist/commands/agent-run.js.map +1 -1
  6. package/dist/commands/agents.js +85 -46
  7. package/dist/commands/agents.js.map +1 -1
  8. package/dist/commands/automation.js +2 -1
  9. package/dist/commands/automation.js.map +1 -1
  10. package/dist/commands/bridge-setup.d.ts +66 -0
  11. package/dist/commands/bridge-setup.js +1112 -0
  12. package/dist/commands/bridge-setup.js.map +1 -0
  13. package/dist/commands/cap-connections.d.ts +28 -0
  14. package/dist/commands/cap-connections.js +224 -0
  15. package/dist/commands/cap-connections.js.map +1 -0
  16. package/dist/commands/capability.d.ts +89 -0
  17. package/dist/commands/capability.js +1523 -0
  18. package/dist/commands/capability.js.map +1 -0
  19. package/dist/commands/centrality.d.ts +20 -0
  20. package/dist/commands/centrality.js +94 -0
  21. package/dist/commands/centrality.js.map +1 -0
  22. package/dist/commands/connect.d.ts +2 -0
  23. package/dist/commands/connect.js +16 -35
  24. package/dist/commands/connect.js.map +1 -1
  25. package/dist/commands/context.js +4 -6
  26. package/dist/commands/context.js.map +1 -1
  27. package/dist/commands/data-extra.d.ts +1 -0
  28. package/dist/commands/data-extra.js +34 -10
  29. package/dist/commands/data-extra.js.map +1 -1
  30. package/dist/commands/data.d.ts +4 -4
  31. package/dist/commands/data.js +241 -184
  32. package/dist/commands/data.js.map +1 -1
  33. package/dist/commands/diagnose.d.ts +20 -0
  34. package/dist/commands/diagnose.js +143 -0
  35. package/dist/commands/diagnose.js.map +1 -0
  36. package/dist/commands/digest.d.ts +17 -0
  37. package/dist/commands/digest.js +121 -0
  38. package/dist/commands/digest.js.map +1 -0
  39. package/dist/commands/discover.d.ts +2 -0
  40. package/dist/commands/discover.js +25 -8
  41. package/dist/commands/discover.js.map +1 -1
  42. package/dist/commands/events.js +2 -1
  43. package/dist/commands/events.js.map +1 -1
  44. package/dist/commands/explain.d.ts +1 -1
  45. package/dist/commands/explain.js +18 -15
  46. package/dist/commands/explain.js.map +1 -1
  47. package/dist/commands/facet.d.ts +29 -0
  48. package/dist/commands/facet.js +113 -0
  49. package/dist/commands/facet.js.map +1 -0
  50. package/dist/commands/graph.js +2 -1
  51. package/dist/commands/graph.js.map +1 -1
  52. package/dist/commands/import.d.ts +38 -0
  53. package/dist/commands/import.js +440 -0
  54. package/dist/commands/import.js.map +1 -0
  55. package/dist/commands/init.js +35 -16
  56. package/dist/commands/init.js.map +1 -1
  57. package/dist/commands/keys.js +3 -4
  58. package/dist/commands/keys.js.map +1 -1
  59. package/dist/commands/knowledge.d.ts +2 -0
  60. package/dist/commands/knowledge.js +61 -9
  61. package/dist/commands/knowledge.js.map +1 -1
  62. package/dist/commands/launch.d.ts +50 -0
  63. package/dist/commands/launch.js +790 -0
  64. package/dist/commands/launch.js.map +1 -0
  65. package/dist/commands/lens.d.ts +45 -0
  66. package/dist/commands/lens.js +386 -0
  67. package/dist/commands/lens.js.map +1 -0
  68. package/dist/commands/market.d.ts +209 -0
  69. package/dist/commands/market.js +1368 -0
  70. package/dist/commands/market.js.map +1 -0
  71. package/dist/commands/mcp.d.ts +42 -0
  72. package/dist/commands/mcp.js +184 -0
  73. package/dist/commands/mcp.js.map +1 -0
  74. package/dist/commands/observe.js +14 -11
  75. package/dist/commands/observe.js.map +1 -1
  76. package/dist/commands/open.d.ts +21 -4
  77. package/dist/commands/open.js +45 -4
  78. package/dist/commands/open.js.map +1 -1
  79. package/dist/commands/pod.d.ts +100 -0
  80. package/dist/commands/pod.js +359 -0
  81. package/dist/commands/pod.js.map +1 -0
  82. package/dist/commands/pods.d.ts +1 -0
  83. package/dist/commands/pods.js +77 -15
  84. package/dist/commands/pods.js.map +1 -1
  85. package/dist/commands/proposals-actions.js +40 -3
  86. package/dist/commands/proposals-actions.js.map +1 -1
  87. package/dist/commands/purge.d.ts +23 -0
  88. package/dist/commands/purge.js +148 -0
  89. package/dist/commands/purge.js.map +1 -0
  90. package/dist/commands/raycast.d.ts +15 -0
  91. package/dist/commands/raycast.js +153 -0
  92. package/dist/commands/raycast.js.map +1 -0
  93. package/dist/commands/sessions.js +45 -21
  94. package/dist/commands/sessions.js.map +1 -1
  95. package/dist/commands/skill-manage.d.ts +21 -0
  96. package/dist/commands/skill-manage.js +195 -0
  97. package/dist/commands/skill-manage.js.map +1 -0
  98. package/dist/commands/skills-commands.js +2 -1
  99. package/dist/commands/skills-commands.js.map +1 -1
  100. package/dist/commands/skills.js +4 -3
  101. package/dist/commands/skills.js.map +1 -1
  102. package/dist/commands/status.d.ts +3 -1
  103. package/dist/commands/status.js +166 -14
  104. package/dist/commands/status.js.map +1 -1
  105. package/dist/commands/statusline.d.ts +24 -0
  106. package/dist/commands/statusline.js +450 -0
  107. package/dist/commands/statusline.js.map +1 -0
  108. package/dist/commands/subscribe.js +2 -2
  109. package/dist/commands/subscribe.js.map +1 -1
  110. package/dist/commands/tools.d.ts +30 -0
  111. package/dist/commands/tools.js +315 -0
  112. package/dist/commands/tools.js.map +1 -0
  113. package/dist/commands/versions.d.ts +27 -0
  114. package/dist/commands/versions.js +277 -0
  115. package/dist/commands/versions.js.map +1 -0
  116. package/dist/commands/view.js +3 -2
  117. package/dist/commands/view.js.map +1 -1
  118. package/dist/commands/whoami.d.ts +21 -0
  119. package/dist/commands/whoami.js +129 -0
  120. package/dist/commands/whoami.js.map +1 -0
  121. package/dist/index.js +776 -60
  122. package/dist/index.js.map +1 -1
  123. package/dist/lib/approval-poll.d.ts +42 -0
  124. package/dist/lib/approval-poll.js +52 -0
  125. package/dist/lib/approval-poll.js.map +1 -0
  126. package/dist/lib/auth.d.ts +29 -6
  127. package/dist/lib/auth.js +105 -94
  128. package/dist/lib/auth.js.map +1 -1
  129. package/dist/lib/bundle-version.d.ts +11 -0
  130. package/dist/lib/bundle-version.js +33 -0
  131. package/dist/lib/bundle-version.js.map +1 -0
  132. package/dist/lib/capture-lane.d.ts +30 -12
  133. package/dist/lib/capture-lane.js +71 -14
  134. package/dist/lib/capture-lane.js.map +1 -1
  135. package/dist/lib/cp-packages.d.ts +121 -0
  136. package/dist/lib/cp-packages.js +218 -0
  137. package/dist/lib/cp-packages.js.map +1 -0
  138. package/dist/lib/describe-lens.d.ts +46 -0
  139. package/dist/lib/describe-lens.js +33 -0
  140. package/dist/lib/describe-lens.js.map +1 -0
  141. package/dist/lib/hub-client.d.ts +78 -1
  142. package/dist/lib/hub-client.js +474 -22
  143. package/dist/lib/hub-client.js.map +1 -1
  144. package/dist/lib/installed.d.ts +51 -0
  145. package/dist/lib/installed.js +70 -0
  146. package/dist/lib/installed.js.map +1 -0
  147. package/dist/lib/next-steps.d.ts +61 -0
  148. package/dist/lib/next-steps.js +146 -0
  149. package/dist/lib/next-steps.js.map +1 -0
  150. package/dist/lib/pod.d.ts +91 -19
  151. package/dist/lib/pod.js +222 -56
  152. package/dist/lib/pod.js.map +1 -1
  153. package/dist/lib/project-ref.d.ts +95 -0
  154. package/dist/lib/project-ref.js +144 -0
  155. package/dist/lib/project-ref.js.map +1 -0
  156. package/dist/lib/project.d.ts +35 -0
  157. package/dist/lib/project.js +39 -0
  158. package/dist/lib/project.js.map +1 -0
  159. package/dist/lib/session-lens.d.ts +33 -0
  160. package/dist/lib/session-lens.js +76 -0
  161. package/dist/lib/session-lens.js.map +1 -0
  162. package/dist/lib/skill-import.d.ts +40 -0
  163. package/dist/lib/skill-import.js +203 -0
  164. package/dist/lib/skill-import.js.map +1 -0
  165. package/dist/lib/skills-installer.d.ts +17 -6
  166. package/dist/lib/skills-installer.js +133 -19
  167. package/dist/lib/skills-installer.js.map +1 -1
  168. package/dist/lib/suite.d.ts +28 -0
  169. package/dist/lib/suite.js +29 -0
  170. package/dist/lib/suite.js.map +1 -0
  171. package/dist/lib/superwhisper-import.d.ts +40 -0
  172. package/dist/lib/superwhisper-import.js +389 -0
  173. package/dist/lib/superwhisper-import.js.map +1 -0
  174. package/dist/lib/targets.d.ts +49 -1
  175. package/dist/lib/targets.js +420 -288
  176. package/dist/lib/targets.js.map +1 -1
  177. package/dist/lib/unwrapList.d.ts +1 -0
  178. package/dist/lib/unwrapList.js +20 -0
  179. package/dist/lib/unwrapList.js.map +1 -0
  180. package/dist/utils/logger.d.ts +2 -0
  181. package/dist/utils/logger.js +10 -2
  182. package/dist/utils/logger.js.map +1 -1
  183. package/package.json +9 -4
  184. package/skills/agent-os/SKILL.md +212 -0
  185. package/skills/manifest.json +5 -0
  186. package/skills/onboard/SKILL.md +186 -0
  187. package/skills/synap/SKILL.md +1182 -37
  188. package/skills/synap/_order.txt +37 -0
  189. package/skills/synap/_skill.yaml +24 -0
  190. package/skills/synap/authentication.md +10 -0
  191. package/skills/synap/automations.md +264 -0
  192. package/skills/synap/capabilities.md +107 -0
  193. package/skills/synap/capture.md +10 -0
  194. package/skills/synap/cli-operations.md +107 -0
  195. package/skills/synap/common-mistakes.md +12 -0
  196. package/skills/synap/creative-loop.md +43 -0
  197. package/skills/synap/crm.md +117 -0
  198. package/skills/synap/diagnostics.md +35 -0
  199. package/skills/synap/digesting-a-channel.md +38 -0
  200. package/skills/synap/document-embeds.md +123 -0
  201. package/skills/synap/escalation-ladder.md +71 -0
  202. package/skills/synap/focus-sessions.md +47 -0
  203. package/skills/synap/governance-rules.md +64 -0
  204. package/skills/synap/governance.md +6 -6
  205. package/skills/synap/graph-gardening.md +21 -0
  206. package/skills/synap/inline-patterns.md +38 -0
  207. package/skills/synap/lenses.md +38 -0
  208. package/skills/synap/linking-principle.md +39 -0
  209. package/skills/synap/linking.md +1 -0
  210. package/skills/synap/mental-model.md +45 -0
  211. package/skills/synap/more.md +7 -0
  212. package/skills/synap/multi-entity-capture.md +10 -0
  213. package/skills/synap/next-action.md +37 -0
  214. package/skills/synap/north-star.md +17 -0
  215. package/skills/synap/operating-mode-rules.md +45 -0
  216. package/skills/synap/operating-mode.md +9 -0
  217. package/skills/synap/quick-reference.md +67 -0
  218. package/skills/synap/reading.md +43 -0
  219. package/skills/synap/recap.md +21 -0
  220. package/skills/synap/reflexes.md +46 -0
  221. package/skills/synap/response-style.md +21 -0
  222. package/skills/synap/scope.md +13 -0
  223. package/skills/synap/showing.md +17 -0
  224. package/skills/synap/user-model.md +25 -0
  225. package/skills/synap/viewframe-cells.md +290 -0
  226. package/skills/synap/work-flow.md +113 -0
  227. package/skills/synap/worked-examples.md +53 -0
  228. package/skills/synap/workspace-design.md +45 -0
  229. package/skills/synap/workspace-edges.md +49 -0
  230. package/skills/synap/writes.md +156 -0
  231. package/skills/synap-schema/SKILL.md +97 -6
  232. package/skills/synap-schema/_order.txt +13 -0
  233. package/skills/synap-schema/_skill.yaml +22 -0
  234. package/skills/synap-schema/before-you-touch.md +14 -0
  235. package/skills/synap-schema/common-mistakes.md +9 -0
  236. package/skills/synap-schema/creating-profiles.md +17 -0
  237. package/skills/synap-schema/discover-profiles.md +24 -0
  238. package/skills/synap-schema/entity-scope.md +8 -0
  239. package/skills/synap-schema/extend-vs-create.md +31 -0
  240. package/skills/synap-schema/more.md +6 -0
  241. package/skills/synap-schema/overlay-properties.md +22 -0
  242. package/skills/synap-schema/profiles.md +3 -0
  243. package/skills/synap-schema/property-defs.md +29 -0
  244. package/skills/synap-schema/read-before-write.md +50 -0
  245. package/skills/synap-schema/relations.md +18 -0
  246. package/skills/synap-schema/worked-example.md +30 -0
  247. package/skills/synap-ui/SKILL.md +26 -2
  248. package/skills/synap-ui/_order.txt +13 -0
  249. package/skills/synap-ui/_skill.yaml +23 -0
  250. package/skills/synap-ui/ai-companion.md +27 -0
  251. package/skills/synap-ui/arranging-bento.md +8 -0
  252. package/skills/synap-ui/before-you-build.md +20 -0
  253. package/skills/synap-ui/bento-layouts.md +35 -0
  254. package/skills/synap-ui/common-mistakes.md +10 -0
  255. package/skills/synap-ui/creating-views.md +26 -0
  256. package/skills/synap-ui/four-builds.md +24 -0
  257. package/skills/synap-ui/more.md +7 -0
  258. package/skills/synap-ui/proposing-vs-extending.md +11 -0
  259. package/skills/synap-ui/view-list.md +24 -0
  260. package/skills/synap-ui/views.md +3 -0
  261. package/skills/synap-ui/worked-example.md +18 -0
  262. package/skills/synap-ui/workspaces.md +47 -0
  263. package/templates/automations/bookmark-enrichment.automation.json +44 -0
  264. package/templates/automations/mail-feed.automation.json +86 -0
  265. package/templates/automations/url-bookmark-capture.automation.json +70 -0
  266. package/templates/skills/README.md +21 -0
  267. package/templates/skills/authoring-automations/SKILL.md +95 -0
  268. package/templates/skills/authoring-automations/reference/node-matrix.md +49 -0
  269. package/templates/skills/authoring-capabilities/SKILL.md +93 -0
  270. package/templates/skills/authoring-capabilities/reference/template-anatomy.md +70 -0
  271. package/templates/skills/authoring-playbooks/SKILL.md +102 -0
  272. package/templates/skills/authoring-playbooks/reference/stages-contract.md +35 -0
  273. package/templates/skills/authoring-playbooks/reference/worked-example.md +64 -0
  274. package/templates/skills/bookmark-enrichment/SKILL.md +40 -0
  275. package/templates/skills/coordinating-agents/SKILL.md +32 -0
  276. package/templates/skills/coordinating-branches/SKILL.md +27 -0
  277. package/templates/skills/mapping-the-server/SKILL.md +54 -0
  278. package/templates/skills/reading-client-progress/SKILL.md +65 -0
  279. package/templates/skills/routing-to-channels/SKILL.md +54 -0
  280. package/templates/skills/stellar-scf-grants-advisor/ASSOCIATE-CHEATSHEET.md +133 -0
  281. package/templates/skills/stellar-scf-grants-advisor/ASSOCIATE-ONBOARDING-GUIDE.md +761 -0
  282. package/templates/skills/stellar-scf-grants-advisor/CLIENT-FAQ.md +181 -0
  283. package/templates/skills/stellar-scf-grants-advisor/PARTNER-HANDOVER.md +130 -0
  284. package/templates/skills/stellar-scf-grants-advisor/SKILL.md +102 -0
  285. package/templates/skills/stellar-scf-grants-advisor/examples/README.md +43 -0
  286. package/templates/skills/stellar-scf-grants-advisor/examples/chat-summary-templates.md +158 -0
  287. package/templates/skills/stellar-scf-grants-advisor/examples/corpus-comparable-rows.md +136 -0
  288. package/templates/skills/stellar-scf-grants-advisor/examples/q10-team-rewrites.md +109 -0
  289. package/templates/skills/stellar-scf-grants-advisor/examples/q2-description-rewrites.md +88 -0
  290. package/templates/skills/stellar-scf-grants-advisor/examples/q6-integration-rewrites.md +107 -0
  291. package/templates/skills/stellar-scf-grants-advisor/examples/tranche-structures.md +176 -0
  292. package/templates/skills/stellar-scf-grants-advisor/reference/01-methodology.md +96 -0
  293. package/templates/skills/stellar-scf-grants-advisor/reference/02-scoring-framework.md +199 -0
  294. package/templates/skills/stellar-scf-grants-advisor/reference/03-rejection-patterns.md +241 -0
  295. package/templates/skills/stellar-scf-grants-advisor/reference/04-winner-patterns.md +120 -0
  296. package/templates/skills/stellar-scf-grants-advisor/reference/05-comeback-patterns.md +92 -0
  297. package/templates/skills/stellar-scf-grants-advisor/reference/06-budget-benchmarks.md +125 -0
  298. package/templates/skills/stellar-scf-grants-advisor/reference/07-integration-list.md +147 -0
  299. package/templates/skills/stellar-scf-grants-advisor/reference/08-abstract-fields.md +258 -0
  300. package/templates/skills/stellar-scf-grants-advisor/reference/09-build-fields.md +259 -0
  301. package/templates/skills/stellar-scf-grants-advisor/reference/10-corpus-winners.md +135 -0
  302. package/templates/skills/stellar-scf-grants-advisor/reference/11-corpus-rejects.md +267 -0
  303. package/templates/skills/stellar-scf-grants-advisor/reference/12-client-communication.md +131 -0
  304. package/templates/skills/stellar-scf-grants-advisor/reference/13-excel-output-spec.md +199 -0
  305. package/templates/skills/stellar-scf-grants-advisor/reference/14-worked-examples.md +160 -0
  306. package/templates/skills/stellar-scf-grants-advisor/templates/abstract-review-builder.py +253 -0
  307. package/templates/skills/stellar-scf-grants-advisor/templates/build-review-builder.py +213 -0
  308. package/dist/commands/connectors.d.ts +0 -31
  309. package/dist/commands/connectors.js +0 -276
  310. package/dist/commands/connectors.js.map +0 -1
  311. package/dist/commands/finish.d.ts +0 -25
  312. package/dist/commands/finish.js +0 -274
  313. package/dist/commands/finish.js.map +0 -1
  314. package/dist/commands/openclaw.d.ts +0 -40
  315. package/dist/commands/openclaw.js +0 -1148
  316. package/dist/commands/openclaw.js.map +0 -1
  317. package/dist/commands/security-audit.d.ts +0 -12
  318. package/dist/commands/security-audit.js +0 -100
  319. package/dist/commands/security-audit.js.map +0 -1
  320. package/dist/lib/hardening.d.ts +0 -18
  321. package/dist/lib/hardening.js +0 -214
  322. package/dist/lib/hardening.js.map +0 -1
  323. package/node_modules/@synap/hub-rest-client/dist/index.cjs +0 -881
  324. package/node_modules/@synap/hub-rest-client/dist/index.d.cts +0 -907
  325. package/node_modules/@synap/hub-rest-client/dist/index.d.ts +0 -907
  326. package/node_modules/@synap/hub-rest-client/dist/index.js +0 -851
  327. package/node_modules/@synap/hub-rest-client/package.json +0 -45
  328. package/node_modules/@synap/hub-rest-client/src/client.ts +0 -1143
  329. package/node_modules/@synap/hub-rest-client/src/errors.ts +0 -30
  330. package/node_modules/@synap/hub-rest-client/src/index.ts +0 -111
  331. package/node_modules/@synap/hub-rest-client/src/setup.ts +0 -77
  332. package/node_modules/@synap/hub-rest-client/src/types.ts +0 -639
@@ -0,0 +1,186 @@
1
+ ---
2
+ name: onboard
3
+ description: >
4
+ Use this skill when the active LENS (a workspace, a project, or both) has
5
+ little/no data and the user wants it set up — including a NEW project that is
6
+ empty even though its workspace already holds other projects' data. Triggers:
7
+ "onboard this", "set up my <X> workspace", "set up this project", "help me
8
+ fill this in", a freshly-created workspace, or scoping to a project with no
9
+ entities. This is the ONE shared, adaptive onboarding process: it detects
10
+ emptiness THROUGH the active lens, reads the workspace's onboarding context
11
+ (settings.onboarding) for the domain knowledge, runs a goal-driven interview,
12
+ and scopes every captured entity to the active lens (workspace + project). No
13
+ per-domain skill — the domain is data on the workspace; this skill is the
14
+ reusable intelligence that consumes it.
15
+ metadata:
16
+ openclaw:
17
+ requires:
18
+ env: [SYNAP_HUB_API_KEY, SYNAP_POD_URL]
19
+ primaryEnv: SYNAP_HUB_API_KEY
20
+ homepage: https://synap.live
21
+ capabilities: [onboarding, adaptive-interview, capture]
22
+ os: [macos, linux, windows]
23
+ userInvocable: true
24
+ ---
25
+
26
+ # Onboard — the shared, adaptive onboarding process (lens-aware)
27
+
28
+ You set up the user's data by _interviewing them_, not by asking them to fill
29
+ forms. The same process works anywhere because the **domain-specific part is
30
+ data on the workspace** (`settings.onboarding`) and this skill is the
31
+ **reusable interview intelligence** that reads it and adapts.
32
+
33
+ Onboarding is keyed to the **active lens**, not to a workspace. A workspace is
34
+ just a lens; a project is a cross-cutting lens; they compose. You onboard when
35
+ **the active lens has little/no data** — whatever that lens is.
36
+
37
+ ## 1. Detect emptiness THROUGH THE ACTIVE LENS
38
+
39
+ ```
40
+ synap orient --details # projects + workspaces, with each workspace's onboarding hint (empty ones)
41
+ ```
42
+
43
+ Figure out the active lens (workspace, project, or both — `synap lens`), then
44
+ check for data **scoped to that lens**:
45
+
46
+ - **Project lens active** → is the PROJECT empty? Ask scoped to it:
47
+ `synap ask "…" --projectId <id>` / `synap_get_entities` with `projectId`.
48
+ A workspace can be full of OTHER projects' data while THIS project has zero —
49
+ that still means "onboard." (e.g. Builder is full of Synap-project work; a new
50
+ "Client X" project scoped to Builder has no entities → onboard Client X.)
51
+ - **Project × Workspace** → is there data for this project _within_ this
52
+ workspace? Scope the check by both `projectId` and `workspaceId`.
53
+ - **Workspace only (no project)** → is the workspace raw-empty?
54
+
55
+ If the lens has data, **don't re-run** a full interview — offer to _extend_.
56
+
57
+ ## 1b. Load the onboarding context (the WHAT)
58
+
59
+ The domain knowledge lives on the **workspace** (`settings.onboarding`, also in
60
+ `GET /api/hub/workspaces`):
61
+
62
+ - **`goal`** — the outcome to achieve (one sentence)
63
+ - **`framing`** — the expertise/voice to adopt for this domain (WHO you are)
64
+ - **`expertise`** _(optional)_ — authored domain knowledge to LEAD with (WHAT you
65
+ know): `starters` (concrete proposals), `blindSpots` (what founders here miss),
66
+ `bar` (what great looks like). When present, use it — see §2 "Lead with your
67
+ expertise".
68
+ - **`collect`** — the structured data to capture (profiles + key fields)
69
+ - **`openingQuestions`** — a few starters (you adapt from here)
70
+ - **`doneWhen`** — how to know you're finished
71
+
72
+ Which workspace's spec?
73
+
74
+ - Workspace lens active → that workspace's spec.
75
+ - Project lens only (no workspace) → the project may span several workspaces.
76
+ Confirm with the user which area to set up first, switch to that workspace,
77
+ use its spec. Onboard one workspace's worth at a time.
78
+ - No onboarding spec on the workspace → fall back to first principles: infer
79
+ from its profiles/views and onboard toward its core entity types.
80
+
81
+ ## 2. Adopt the framing, run an ADAPTIVE interview
82
+
83
+ Become the expert the `framing` describes (brand strategist, staff engineer,
84
+ sales lead…). Then:
85
+
86
+ - Start with the `openingQuestions`, but **adapt every next question to what
87
+ you just learned.** This is a conversation, not a checklist.
88
+ - Ask ONE focused thing at a time. Short, specific, in the user's language.
89
+ - **Let the `framing` set your posture.** When it says interrogate / pressure-test
90
+ (e.g. Foundation's skeptical cofounder), that OVERRIDES the propose-then-refine
91
+ reflex below: draw the real answer out of them, refuse fuzzy answers, propose a
92
+ concrete option only as a last resort when they're genuinely stuck.
93
+ - **Lead with your `expertise` (when the workspace ships it).** You are not a
94
+ blank-slate interviewer — you are a domain expert who RESOLVES the founder's
95
+ gaps. Bring what they don't know:
96
+ - Use `expertise.starters` to **propose concrete structure** instead of asking
97
+ blank ("Most studios like yours run 3 content pillars — teach, prove,
98
+ provoke; want that as your starting point?"). A recommendation they react to
99
+ beats a blank they have to fill.
100
+ - Proactively raise `expertise.blindSpots` the founder hasn't addressed — a
101
+ great cofounder catches what they _don't_ say, not just what they do ("You
102
+ haven't mentioned distribution — how does this content get discovered?").
103
+ - Push every answer toward `expertise.bar`; don't settle for "present" when you
104
+ can reach "sharp".
105
+ This never overrides the strategy rule below: for mission/positioning, use
106
+ blind-spots to **challenge** and starters to **frame** — never to fabricate
107
+ their strategy for them.
108
+ - **Strategic DNA vs operational detail — capture them differently.** For
109
+ strategy (mission, positioning, voice, differentiators), thin inference becomes
110
+ generic strategy — _extract_ the real thing, don't hand them a plausible one.
111
+ Propose-then-refine is fine for operational fields (a deal stage, a task
112
+ priority): when the user is vague there, **propose** a concrete option and let
113
+ them react ("Sounds like your voice is warm-but-direct — want me to go with
114
+ that?"), infer aggressively, confirm lightly. Don't make them do the
115
+ structuring — that's your job. Turn their prose into entities.
116
+ - Re-evaluate as you go: if an answer opens a more important thread, follow it.
117
+
118
+ ## 3. Capture as you learn — structured, linked
119
+
120
+ As each piece firms up, write it immediately (don't wait until the end):
121
+
122
+ ```
123
+ synap capture --type <kind> --claim "…" # or synap_create_entity for precise profiles
124
+ ```
125
+
126
+ For each `collect` target, create the entity with its `keyFields` filled, and
127
+ **link it** into the graph (`synap_link_entities`) — an isolated entity is
128
+ anti-value. Respect governance: a `proposed` result is normal (queued for the
129
+ user's review), not an error.
130
+
131
+ **Scope every created entity to the active lens.** Create it in the active
132
+ workspace, and — if a **project lens is active** — link it to that project
133
+ (`belongs_to_project`) so the project fills up, not just the workspace. This is
134
+ the whole point of the project-emptiness trigger: onboarding a new project
135
+ populates _that project's_ slice, even inside a workspace that already has other
136
+ projects' data.
137
+
138
+ ## 4. Self-evaluate against `doneWhen` — loop until satisfied
139
+
140
+ After each round, check your progress against `doneWhen` and `collect`:
141
+
142
+ - Missing a target? Ask about it.
143
+ - Thin on a key field? Probe deeper.
144
+ - Got everything? **Stop** — don't over-interrogate. Summarize what you created
145
+ and where it lives, and hand back control.
146
+
147
+ The bar is **quality structured data**, not a completed form. A short interview
148
+ that captures the real voice + audience beats 20 questions of mush.
149
+
150
+ ## 5. Multi-workspace / multi-project flow
151
+
152
+ **New company** (after `agent-os` creates several workspaces): run this skill
153
+ **once per workspace**, foundational domain first (e.g. Brand before Marketing).
154
+ One workspace, finish, then the next.
155
+
156
+ **New project on an existing pod** (the common case): the workspaces already
157
+ have data from other projects, but the new project is empty. Walk the user
158
+ through the workspaces the project will touch, and for each, run a focused
159
+ interview for **this project's** slice — every entity linked to the new project.
160
+ The user can scope tight ("just set up Client X in CRM") — honor that.
161
+
162
+ ## Principles
163
+
164
+ - **Lens-aware, not workspace-bound.** Onboard when the active LENS (workspace,
165
+ project, or both) is empty — including a new project inside a full workspace.
166
+ - **Scope output to the lens.** Created entities go in the workspace AND link to
167
+ the active project.
168
+ - **One skill, many domains.** The domain lives in `settings.onboarding`; you
169
+ are the shared process. Never hardcode domain questions here.
170
+ - **Adaptive, not scripted.** Reshape questions from what you learn.
171
+ - **Lead with expertise, don't just extract.** When the workspace ships
172
+ `expertise`, propose from its `starters`, surface its `blindSpots`, and push
173
+ toward its `bar`. Resolve the founder's gaps — bring what they don't know, not
174
+ just record what they do.
175
+ - **Ask, then structure.** The user talks; you turn it into linked entities.
176
+ - **Sparse-only, through the lens.** Onboard when the active lens is empty/thin
177
+ (a new empty project counts, even in a full workspace); extend — don't restart
178
+ — when the lens already has data.
179
+ - **Quality over coverage.** Stop when `doneWhen` is met.
180
+
181
+ ## When NOT to use
182
+
183
+ - Setting up the company structure itself (project + which workspaces) → that's
184
+ the `agent-os` skill (it calls this one per workspace afterward).
185
+ - One-off capture into an already-populated workspace → core `synap` skill.
186
+ - Schema changes (new profile/field) → `synap-schema`.