@scardis/omnifocus-mcp 0.1.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 (387) hide show
  1. package/.claude/commands/opsx/apply.md +152 -0
  2. package/.claude/commands/opsx/archive.md +157 -0
  3. package/.claude/commands/opsx/bulk-archive.md +242 -0
  4. package/.claude/commands/opsx/continue.md +114 -0
  5. package/.claude/commands/opsx/explore.md +173 -0
  6. package/.claude/commands/opsx/ff.md +97 -0
  7. package/.claude/commands/opsx/new.md +69 -0
  8. package/.claude/commands/opsx/onboard.md +550 -0
  9. package/.claude/commands/opsx/propose.md +106 -0
  10. package/.claude/commands/opsx/sync.md +134 -0
  11. package/.claude/commands/opsx/verify.md +164 -0
  12. package/.claude/skills/openspec-apply-change/SKILL.md +156 -0
  13. package/.claude/skills/openspec-archive-change/SKILL.md +114 -0
  14. package/.claude/skills/openspec-bulk-archive-change/SKILL.md +246 -0
  15. package/.claude/skills/openspec-continue-change/SKILL.md +118 -0
  16. package/.claude/skills/openspec-explore/SKILL.md +288 -0
  17. package/.claude/skills/openspec-ff-change/SKILL.md +101 -0
  18. package/.claude/skills/openspec-new-change/SKILL.md +74 -0
  19. package/.claude/skills/openspec-onboard/SKILL.md +554 -0
  20. package/.claude/skills/openspec-propose/SKILL.md +110 -0
  21. package/.claude/skills/openspec-sync-specs/SKILL.md +138 -0
  22. package/.claude/skills/openspec-verify-change/SKILL.md +168 -0
  23. package/CONTRIBUTING.md +83 -0
  24. package/LICENSE +21 -0
  25. package/README.md +198 -0
  26. package/dist/runtime/bridge.d.ts +16 -0
  27. package/dist/runtime/bridge.d.ts.map +1 -0
  28. package/dist/runtime/bridge.js +76 -0
  29. package/dist/runtime/bridge.js.map +1 -0
  30. package/dist/runtime/index.d.ts +5 -0
  31. package/dist/runtime/index.d.ts.map +1 -0
  32. package/dist/runtime/index.js +5 -0
  33. package/dist/runtime/index.js.map +1 -0
  34. package/dist/runtime/jxaShim.d.ts +21 -0
  35. package/dist/runtime/jxaShim.d.ts.map +1 -0
  36. package/dist/runtime/jxaShim.js +55 -0
  37. package/dist/runtime/jxaShim.js.map +1 -0
  38. package/dist/runtime/resultProtocol.d.ts +66 -0
  39. package/dist/runtime/resultProtocol.d.ts.map +1 -0
  40. package/dist/runtime/resultProtocol.js +52 -0
  41. package/dist/runtime/resultProtocol.js.map +1 -0
  42. package/dist/runtime/snippetLoader.d.ts +4 -0
  43. package/dist/runtime/snippetLoader.d.ts.map +1 -0
  44. package/dist/runtime/snippetLoader.js +68 -0
  45. package/dist/runtime/snippetLoader.js.map +1 -0
  46. package/dist/schemas/enums.d.ts +9 -0
  47. package/dist/schemas/enums.d.ts.map +1 -0
  48. package/dist/schemas/enums.js +26 -0
  49. package/dist/schemas/enums.js.map +1 -0
  50. package/dist/schemas/index.d.ts +3 -0
  51. package/dist/schemas/index.d.ts.map +1 -0
  52. package/dist/schemas/index.js +3 -0
  53. package/dist/schemas/index.js.map +1 -0
  54. package/dist/schemas/shapes.d.ts +726 -0
  55. package/dist/schemas/shapes.d.ts.map +1 -0
  56. package/dist/schemas/shapes.js +221 -0
  57. package/dist/schemas/shapes.js.map +1 -0
  58. package/dist/server.d.ts +2 -0
  59. package/dist/server.d.ts.map +1 -0
  60. package/dist/server.js +50 -0
  61. package/dist/server.js.map +1 -0
  62. package/dist/tools/completeProject.d.ts +24 -0
  63. package/dist/tools/completeProject.d.ts.map +1 -0
  64. package/dist/tools/completeProject.js +17 -0
  65. package/dist/tools/completeProject.js.map +1 -0
  66. package/dist/tools/completeTask.d.ts +25 -0
  67. package/dist/tools/completeTask.d.ts.map +1 -0
  68. package/dist/tools/completeTask.js +17 -0
  69. package/dist/tools/completeTask.js.map +1 -0
  70. package/dist/tools/createFolder.d.ts +20 -0
  71. package/dist/tools/createFolder.d.ts.map +1 -0
  72. package/dist/tools/createFolder.js +13 -0
  73. package/dist/tools/createFolder.js.map +1 -0
  74. package/dist/tools/createProject.d.ts +59 -0
  75. package/dist/tools/createProject.d.ts.map +1 -0
  76. package/dist/tools/createProject.js +13 -0
  77. package/dist/tools/createProject.js.map +1 -0
  78. package/dist/tools/createTag.d.ts +20 -0
  79. package/dist/tools/createTag.d.ts.map +1 -0
  80. package/dist/tools/createTag.js +13 -0
  81. package/dist/tools/createTag.js.map +1 -0
  82. package/dist/tools/createTask.d.ts +116 -0
  83. package/dist/tools/createTask.d.ts.map +1 -0
  84. package/dist/tools/createTask.js +13 -0
  85. package/dist/tools/createTask.js.map +1 -0
  86. package/dist/tools/deleteFolder.d.ts +30 -0
  87. package/dist/tools/deleteFolder.d.ts.map +1 -0
  88. package/dist/tools/deleteFolder.js +18 -0
  89. package/dist/tools/deleteFolder.js.map +1 -0
  90. package/dist/tools/deleteProject.d.ts +30 -0
  91. package/dist/tools/deleteProject.d.ts.map +1 -0
  92. package/dist/tools/deleteProject.js +18 -0
  93. package/dist/tools/deleteProject.js.map +1 -0
  94. package/dist/tools/deleteTag.d.ts +30 -0
  95. package/dist/tools/deleteTag.d.ts.map +1 -0
  96. package/dist/tools/deleteTag.js +18 -0
  97. package/dist/tools/deleteTag.js.map +1 -0
  98. package/dist/tools/deleteTask.d.ts +31 -0
  99. package/dist/tools/deleteTask.d.ts.map +1 -0
  100. package/dist/tools/deleteTask.js +18 -0
  101. package/dist/tools/deleteTask.js.map +1 -0
  102. package/dist/tools/dropProject.d.ts +24 -0
  103. package/dist/tools/dropProject.d.ts.map +1 -0
  104. package/dist/tools/dropProject.js +17 -0
  105. package/dist/tools/dropProject.js.map +1 -0
  106. package/dist/tools/dropTask.d.ts +25 -0
  107. package/dist/tools/dropTask.d.ts.map +1 -0
  108. package/dist/tools/dropTask.js +17 -0
  109. package/dist/tools/dropTask.js.map +1 -0
  110. package/dist/tools/editFolder.d.ts +20 -0
  111. package/dist/tools/editFolder.d.ts.map +1 -0
  112. package/dist/tools/editFolder.js +13 -0
  113. package/dist/tools/editFolder.js.map +1 -0
  114. package/dist/tools/editProject.d.ts +59 -0
  115. package/dist/tools/editProject.d.ts.map +1 -0
  116. package/dist/tools/editProject.js +13 -0
  117. package/dist/tools/editProject.js.map +1 -0
  118. package/dist/tools/editTag.d.ts +31 -0
  119. package/dist/tools/editTag.d.ts.map +1 -0
  120. package/dist/tools/editTag.js +13 -0
  121. package/dist/tools/editTag.js.map +1 -0
  122. package/dist/tools/editTask.d.ts +79 -0
  123. package/dist/tools/editTask.d.ts.map +1 -0
  124. package/dist/tools/editTask.js +13 -0
  125. package/dist/tools/editTask.js.map +1 -0
  126. package/dist/tools/getFolder.d.ts +24 -0
  127. package/dist/tools/getFolder.d.ts.map +1 -0
  128. package/dist/tools/getFolder.js +17 -0
  129. package/dist/tools/getFolder.js.map +1 -0
  130. package/dist/tools/getProject.d.ts +24 -0
  131. package/dist/tools/getProject.d.ts.map +1 -0
  132. package/dist/tools/getProject.js +17 -0
  133. package/dist/tools/getProject.js.map +1 -0
  134. package/dist/tools/getTag.d.ts +24 -0
  135. package/dist/tools/getTag.d.ts.map +1 -0
  136. package/dist/tools/getTag.js +17 -0
  137. package/dist/tools/getTag.js.map +1 -0
  138. package/dist/tools/getTask.d.ts +24 -0
  139. package/dist/tools/getTask.d.ts.map +1 -0
  140. package/dist/tools/getTask.js +17 -0
  141. package/dist/tools/getTask.js.map +1 -0
  142. package/dist/tools/index.d.ts +732 -0
  143. package/dist/tools/index.d.ts.map +1 -0
  144. package/dist/tools/index.js +84 -0
  145. package/dist/tools/index.js.map +1 -0
  146. package/dist/tools/listFolders.d.ts +50 -0
  147. package/dist/tools/listFolders.d.ts.map +1 -0
  148. package/dist/tools/listFolders.js +21 -0
  149. package/dist/tools/listFolders.js.map +1 -0
  150. package/dist/tools/listProjects.d.ts +70 -0
  151. package/dist/tools/listProjects.d.ts.map +1 -0
  152. package/dist/tools/listProjects.js +21 -0
  153. package/dist/tools/listProjects.js.map +1 -0
  154. package/dist/tools/listTags.d.ts +50 -0
  155. package/dist/tools/listTags.d.ts.map +1 -0
  156. package/dist/tools/listTags.js +21 -0
  157. package/dist/tools/listTags.js.map +1 -0
  158. package/dist/tools/listTasks.d.ts +156 -0
  159. package/dist/tools/listTasks.d.ts.map +1 -0
  160. package/dist/tools/listTasks.js +36 -0
  161. package/dist/tools/listTasks.js.map +1 -0
  162. package/dist/tools/moveProject.d.ts +20 -0
  163. package/dist/tools/moveProject.d.ts.map +1 -0
  164. package/dist/tools/moveProject.js +13 -0
  165. package/dist/tools/moveProject.js.map +1 -0
  166. package/dist/tools/moveTask.d.ts +31 -0
  167. package/dist/tools/moveTask.d.ts.map +1 -0
  168. package/dist/tools/moveTask.js +13 -0
  169. package/dist/tools/moveTask.js.map +1 -0
  170. package/dist/tools/resolveName.d.ts +36 -0
  171. package/dist/tools/resolveName.d.ts.map +1 -0
  172. package/dist/tools/resolveName.js +26 -0
  173. package/dist/tools/resolveName.js.map +1 -0
  174. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/.openspec.yaml +2 -0
  175. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/design.md +162 -0
  176. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/proposal.md +49 -0
  177. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/attachments/spec.md +9 -0
  178. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/batch-operations/spec.md +9 -0
  179. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/database-inspection/spec.md +9 -0
  180. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/execution-runtime/spec.md +69 -0
  181. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/folder-management/spec.md +25 -0
  182. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/forecast/spec.md +9 -0
  183. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/identity-resolution/spec.md +45 -0
  184. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/perspective-management/spec.md +9 -0
  185. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/project-management/spec.md +25 -0
  186. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/recurrence/spec.md +9 -0
  187. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/settings/spec.md +9 -0
  188. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/tag-management/spec.md +25 -0
  189. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/task-management/spec.md +29 -0
  190. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/url-automation/spec.md +9 -0
  191. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/specs/window-state/spec.md +9 -0
  192. package/openspec/changes/archive/2026-04-09-bootstrap-omnifocus-mcp/tasks.md +84 -0
  193. package/openspec/changes/archive/2026-04-09-folder-crud/.openspec.yaml +2 -0
  194. package/openspec/changes/archive/2026-04-09-folder-crud/design.md +58 -0
  195. package/openspec/changes/archive/2026-04-09-folder-crud/proposal.md +28 -0
  196. package/openspec/changes/archive/2026-04-09-folder-crud/specs/folder-write/spec.md +45 -0
  197. package/openspec/changes/archive/2026-04-09-folder-crud/tasks.md +41 -0
  198. package/openspec/changes/archive/2026-04-09-folder-tag-list-filtering/.openspec.yaml +2 -0
  199. package/openspec/changes/archive/2026-04-09-folder-tag-list-filtering/design.md +38 -0
  200. package/openspec/changes/archive/2026-04-09-folder-tag-list-filtering/proposal.md +30 -0
  201. package/openspec/changes/archive/2026-04-09-folder-tag-list-filtering/specs/folder-management/spec.md +21 -0
  202. package/openspec/changes/archive/2026-04-09-folder-tag-list-filtering/specs/tag-management/spec.md +21 -0
  203. package/openspec/changes/archive/2026-04-09-folder-tag-list-filtering/tasks.md +35 -0
  204. package/openspec/changes/archive/2026-04-09-move-operations/.openspec.yaml +2 -0
  205. package/openspec/changes/archive/2026-04-09-move-operations/design.md +43 -0
  206. package/openspec/changes/archive/2026-04-09-move-operations/proposal.md +25 -0
  207. package/openspec/changes/archive/2026-04-09-move-operations/specs/move-operations/spec.md +41 -0
  208. package/openspec/changes/archive/2026-04-09-move-operations/tasks.md +40 -0
  209. package/openspec/changes/archive/2026-04-09-project-crud/.openspec.yaml +2 -0
  210. package/openspec/changes/archive/2026-04-09-project-crud/design.md +60 -0
  211. package/openspec/changes/archive/2026-04-09-project-crud/proposal.md +29 -0
  212. package/openspec/changes/archive/2026-04-09-project-crud/specs/project-write/spec.md +74 -0
  213. package/openspec/changes/archive/2026-04-09-project-crud/tasks.md +48 -0
  214. package/openspec/changes/archive/2026-04-09-project-filtering/.openspec.yaml +2 -0
  215. package/openspec/changes/archive/2026-04-09-project-filtering/design.md +52 -0
  216. package/openspec/changes/archive/2026-04-09-project-filtering/proposal.md +26 -0
  217. package/openspec/changes/archive/2026-04-09-project-filtering/specs/project-filtering/spec.md +66 -0
  218. package/openspec/changes/archive/2026-04-09-project-filtering/specs/project-management/spec.md +13 -0
  219. package/openspec/changes/archive/2026-04-09-project-filtering/tasks.md +41 -0
  220. package/openspec/changes/archive/2026-04-09-tag-crud/.openspec.yaml +2 -0
  221. package/openspec/changes/archive/2026-04-09-tag-crud/design.md +45 -0
  222. package/openspec/changes/archive/2026-04-09-tag-crud/proposal.md +28 -0
  223. package/openspec/changes/archive/2026-04-09-tag-crud/specs/tag-write/spec.md +49 -0
  224. package/openspec/changes/archive/2026-04-09-tag-crud/tasks.md +41 -0
  225. package/openspec/changes/archive/2026-04-09-task-crud/.openspec.yaml +2 -0
  226. package/openspec/changes/archive/2026-04-09-task-crud/design.md +62 -0
  227. package/openspec/changes/archive/2026-04-09-task-crud/proposal.md +29 -0
  228. package/openspec/changes/archive/2026-04-09-task-crud/specs/task-management/spec.md +17 -0
  229. package/openspec/changes/archive/2026-04-09-task-crud/specs/task-write/spec.md +89 -0
  230. package/openspec/changes/archive/2026-04-09-task-crud/tasks.md +55 -0
  231. package/openspec/changes/archive/2026-04-09-task-filtering/.openspec.yaml +2 -0
  232. package/openspec/changes/archive/2026-04-09-task-filtering/design.md +61 -0
  233. package/openspec/changes/archive/2026-04-09-task-filtering/proposal.md +26 -0
  234. package/openspec/changes/archive/2026-04-09-task-filtering/specs/task-filtering/spec.md +63 -0
  235. package/openspec/changes/archive/2026-04-09-task-filtering/specs/task-management/spec.md +17 -0
  236. package/openspec/changes/archive/2026-04-09-task-filtering/tasks.md +42 -0
  237. package/openspec/changes/archive/2026-04-10-planned-date/.openspec.yaml +2 -0
  238. package/openspec/changes/archive/2026-04-10-planned-date/design.md +27 -0
  239. package/openspec/changes/archive/2026-04-10-planned-date/proposal.md +29 -0
  240. package/openspec/changes/archive/2026-04-10-planned-date/specs/task-management/spec.md +29 -0
  241. package/openspec/changes/archive/2026-04-10-planned-date/specs/task-write/spec.md +69 -0
  242. package/openspec/changes/archive/2026-04-10-planned-date/tasks.md +26 -0
  243. package/openspec/changes/archive/2026-04-10-task-recurrence/.openspec.yaml +2 -0
  244. package/openspec/changes/archive/2026-04-10-task-recurrence/design.md +81 -0
  245. package/openspec/changes/archive/2026-04-10-task-recurrence/proposal.md +28 -0
  246. package/openspec/changes/archive/2026-04-10-task-recurrence/specs/recurrence/spec.md +47 -0
  247. package/openspec/changes/archive/2026-04-10-task-recurrence/specs/task-management/spec.md +25 -0
  248. package/openspec/changes/archive/2026-04-10-task-recurrence/specs/task-write/spec.md +61 -0
  249. package/openspec/changes/archive/2026-04-10-task-recurrence/tasks.md +39 -0
  250. package/openspec/config.yaml +20 -0
  251. package/openspec/specs/attachments/spec.md +15 -0
  252. package/openspec/specs/batch-operations/spec.md +15 -0
  253. package/openspec/specs/database-inspection/spec.md +15 -0
  254. package/openspec/specs/execution-runtime/spec.md +75 -0
  255. package/openspec/specs/folder-management/spec.md +39 -0
  256. package/openspec/specs/folder-write/spec.md +45 -0
  257. package/openspec/specs/forecast/spec.md +15 -0
  258. package/openspec/specs/identity-resolution/spec.md +51 -0
  259. package/openspec/specs/move-operations/spec.md +41 -0
  260. package/openspec/specs/perspective-management/spec.md +15 -0
  261. package/openspec/specs/project-filtering/spec.md +72 -0
  262. package/openspec/specs/project-management/spec.md +31 -0
  263. package/openspec/specs/project-write/spec.md +79 -0
  264. package/openspec/specs/recurrence/spec.md +51 -0
  265. package/openspec/specs/settings/spec.md +15 -0
  266. package/openspec/specs/tag-management/spec.md +39 -0
  267. package/openspec/specs/tag-write/spec.md +49 -0
  268. package/openspec/specs/task-filtering/spec.md +63 -0
  269. package/openspec/specs/task-management/spec.md +51 -0
  270. package/openspec/specs/task-write/spec.md +115 -0
  271. package/openspec/specs/url-automation/spec.md +15 -0
  272. package/openspec/specs/window-state/spec.md +15 -0
  273. package/package.json +32 -0
  274. package/scripts/cleanup-fixtures.ts +89 -0
  275. package/server.json +21 -0
  276. package/src/runtime/bridge.ts +97 -0
  277. package/src/runtime/index.ts +4 -0
  278. package/src/runtime/jxaShim.ts +55 -0
  279. package/src/runtime/resultProtocol.ts +62 -0
  280. package/src/runtime/snippetLoader.ts +79 -0
  281. package/src/schemas/enums.ts +32 -0
  282. package/src/schemas/index.ts +38 -0
  283. package/src/schemas/shapes.ts +267 -0
  284. package/src/server.ts +58 -0
  285. package/src/snippets/complete_project.js +73 -0
  286. package/src/snippets/complete_task.js +85 -0
  287. package/src/snippets/create_folder.js +52 -0
  288. package/src/snippets/create_project.js +107 -0
  289. package/src/snippets/create_tag.js +55 -0
  290. package/src/snippets/create_task.js +159 -0
  291. package/src/snippets/delete_folder.js +26 -0
  292. package/src/snippets/delete_project.js +20 -0
  293. package/src/snippets/delete_tag.js +20 -0
  294. package/src/snippets/delete_task.js +20 -0
  295. package/src/snippets/drop_project.js +73 -0
  296. package/src/snippets/drop_task.js +85 -0
  297. package/src/snippets/edit_folder.js +46 -0
  298. package/src/snippets/edit_project.js +106 -0
  299. package/src/snippets/edit_tag.js +56 -0
  300. package/src/snippets/edit_task.js +146 -0
  301. package/src/snippets/get_folder.js +48 -0
  302. package/src/snippets/get_project.js +77 -0
  303. package/src/snippets/get_tag.js +51 -0
  304. package/src/snippets/get_task.js +96 -0
  305. package/src/snippets/list_folders.js +50 -0
  306. package/src/snippets/list_projects.js +98 -0
  307. package/src/snippets/list_tags.js +54 -0
  308. package/src/snippets/list_tasks.js +127 -0
  309. package/src/snippets/move_project.js +79 -0
  310. package/src/snippets/move_task.js +113 -0
  311. package/src/snippets/resolve_name.js +83 -0
  312. package/src/tools/completeProject.ts +21 -0
  313. package/src/tools/completeTask.ts +23 -0
  314. package/src/tools/createFolder.ts +20 -0
  315. package/src/tools/createProject.ts +20 -0
  316. package/src/tools/createTag.ts +20 -0
  317. package/src/tools/createTask.ts +20 -0
  318. package/src/tools/deleteFolder.ts +24 -0
  319. package/src/tools/deleteProject.ts +24 -0
  320. package/src/tools/deleteTag.ts +24 -0
  321. package/src/tools/deleteTask.ts +26 -0
  322. package/src/tools/dropProject.ts +21 -0
  323. package/src/tools/dropTask.ts +23 -0
  324. package/src/tools/editFolder.ts +19 -0
  325. package/src/tools/editProject.ts +20 -0
  326. package/src/tools/editTag.ts +20 -0
  327. package/src/tools/editTask.ts +20 -0
  328. package/src/tools/getFolder.ts +24 -0
  329. package/src/tools/getProject.ts +24 -0
  330. package/src/tools/getTag.ts +24 -0
  331. package/src/tools/getTask.ts +24 -0
  332. package/src/tools/index.ts +85 -0
  333. package/src/tools/listFolders.ts +32 -0
  334. package/src/tools/listProjects.ts +32 -0
  335. package/src/tools/listTags.ts +32 -0
  336. package/src/tools/listTasks.ts +56 -0
  337. package/src/tools/moveProject.ts +20 -0
  338. package/src/tools/moveTask.ts +20 -0
  339. package/src/tools/resolveName.ts +37 -0
  340. package/test/integration/.gitkeep +0 -0
  341. package/test/integration/completeProject.int.test.ts +25 -0
  342. package/test/integration/completeTask.int.test.ts +30 -0
  343. package/test/integration/createFolder.int.test.ts +50 -0
  344. package/test/integration/createProject.int.test.ts +49 -0
  345. package/test/integration/createTag.int.test.ts +52 -0
  346. package/test/integration/createTask.int.test.ts +55 -0
  347. package/test/integration/deleteFolder.int.test.ts +64 -0
  348. package/test/integration/deleteProject.int.test.ts +31 -0
  349. package/test/integration/deleteTag.int.test.ts +61 -0
  350. package/test/integration/deleteTask.int.test.ts +36 -0
  351. package/test/integration/dropProject.int.test.ts +24 -0
  352. package/test/integration/dropTask.int.test.ts +29 -0
  353. package/test/integration/editFolder.int.test.ts +43 -0
  354. package/test/integration/editProject.int.test.ts +39 -0
  355. package/test/integration/editTag.int.test.ts +43 -0
  356. package/test/integration/editTask.int.test.ts +56 -0
  357. package/test/integration/fixtures.ts +219 -0
  358. package/test/integration/getTask.int.test.ts +64 -0
  359. package/test/integration/listFoldersFiltered.int.test.ts +98 -0
  360. package/test/integration/listProjects.int.test.ts +73 -0
  361. package/test/integration/listProjectsFiltered.int.test.ts +96 -0
  362. package/test/integration/listTagsFiltered.int.test.ts +54 -0
  363. package/test/integration/listTasksFiltered.int.test.ts +141 -0
  364. package/test/integration/moveProject.int.test.ts +57 -0
  365. package/test/integration/moveTask.int.test.ts +61 -0
  366. package/test/integration/plannedDate.int.test.ts +72 -0
  367. package/test/integration/preflight.ts +60 -0
  368. package/test/integration/resolveName.int.test.ts +86 -0
  369. package/test/integration/taskRecurrence.int.test.ts +106 -0
  370. package/test/unit/.gitkeep +0 -0
  371. package/test/unit/bridge.injection.test.ts +66 -0
  372. package/test/unit/resultProtocol.test.ts +71 -0
  373. package/test/unit/schemas.createFolder.test.ts +38 -0
  374. package/test/unit/schemas.createProject.test.ts +115 -0
  375. package/test/unit/schemas.createTask.test.ts +87 -0
  376. package/test/unit/schemas.editTag.test.ts +64 -0
  377. package/test/unit/schemas.folderTagFiltering.test.ts +42 -0
  378. package/test/unit/schemas.listProjects.test.ts +44 -0
  379. package/test/unit/schemas.moveOperations.test.ts +60 -0
  380. package/test/unit/schemas.recurrence.test.ts +120 -0
  381. package/test/unit/schemas.test.ts +126 -0
  382. package/test/unit/snippetLoader.test.ts +56 -0
  383. package/test/unit/tools.deleteTask.test.ts +19 -0
  384. package/test/unit/tools.listTasks.test.ts +126 -0
  385. package/tsconfig.json +19 -0
  386. package/vitest.config.ts +8 -0
  387. package/vitest.integration.config.ts +18 -0
@@ -0,0 +1,550 @@
1
+ ---
2
+ name: "OPSX: Onboard"
3
+ description: Guided onboarding - walk through a complete OpenSpec workflow cycle with narration
4
+ category: Workflow
5
+ tags: [workflow, onboarding, tutorial, learning]
6
+ ---
7
+
8
+ Guide the user through their first complete OpenSpec workflow cycle. This is a teaching experience—you'll do real work in their codebase while explaining each step.
9
+
10
+ ---
11
+
12
+ ## Preflight
13
+
14
+ Before starting, check if the OpenSpec CLI is installed:
15
+
16
+ ```bash
17
+ # Unix/macOS
18
+ openspec --version 2>&1 || echo "CLI_NOT_INSTALLED"
19
+ # Windows (PowerShell)
20
+ # if (Get-Command openspec -ErrorAction SilentlyContinue) { openspec --version } else { echo "CLI_NOT_INSTALLED" }
21
+ ```
22
+
23
+ **If CLI not installed:**
24
+ > OpenSpec CLI is not installed. Install it first, then come back to `/opsx:onboard`.
25
+
26
+ Stop here if not installed.
27
+
28
+ ---
29
+
30
+ ## Phase 1: Welcome
31
+
32
+ Display:
33
+
34
+ ```
35
+ ## Welcome to OpenSpec!
36
+
37
+ I'll walk you through a complete change cycle—from idea to implementation—using a real task in your codebase. Along the way, you'll learn the workflow by doing it.
38
+
39
+ **What we'll do:**
40
+ 1. Pick a small, real task in your codebase
41
+ 2. Explore the problem briefly
42
+ 3. Create a change (the container for our work)
43
+ 4. Build the artifacts: proposal → specs → design → tasks
44
+ 5. Implement the tasks
45
+ 6. Archive the completed change
46
+
47
+ **Time:** ~15-20 minutes
48
+
49
+ Let's start by finding something to work on.
50
+ ```
51
+
52
+ ---
53
+
54
+ ## Phase 2: Task Selection
55
+
56
+ ### Codebase Analysis
57
+
58
+ Scan the codebase for small improvement opportunities. Look for:
59
+
60
+ 1. **TODO/FIXME comments** - Search for `TODO`, `FIXME`, `HACK`, `XXX` in code files
61
+ 2. **Missing error handling** - `catch` blocks that swallow errors, risky operations without try-catch
62
+ 3. **Functions without tests** - Cross-reference `src/` with test directories
63
+ 4. **Type issues** - `any` types in TypeScript files (`: any`, `as any`)
64
+ 5. **Debug artifacts** - `console.log`, `console.debug`, `debugger` statements in non-debug code
65
+ 6. **Missing validation** - User input handlers without validation
66
+
67
+ Also check recent git activity:
68
+ ```bash
69
+ # Unix/macOS
70
+ git log --oneline -10 2>/dev/null || echo "No git history"
71
+ # Windows (PowerShell)
72
+ # git log --oneline -10 2>$null; if ($LASTEXITCODE -ne 0) { echo "No git history" }
73
+ ```
74
+
75
+ ### Present Suggestions
76
+
77
+ From your analysis, present 3-4 specific suggestions:
78
+
79
+ ```
80
+ ## Task Suggestions
81
+
82
+ Based on scanning your codebase, here are some good starter tasks:
83
+
84
+ **1. [Most promising task]**
85
+ Location: `src/path/to/file.ts:42`
86
+ Scope: ~1-2 files, ~20-30 lines
87
+ Why it's good: [brief reason]
88
+
89
+ **2. [Second task]**
90
+ Location: `src/another/file.ts`
91
+ Scope: ~1 file, ~15 lines
92
+ Why it's good: [brief reason]
93
+
94
+ **3. [Third task]**
95
+ Location: [location]
96
+ Scope: [estimate]
97
+ Why it's good: [brief reason]
98
+
99
+ **4. Something else?**
100
+ Tell me what you'd like to work on.
101
+
102
+ Which task interests you? (Pick a number or describe your own)
103
+ ```
104
+
105
+ **If nothing found:** Fall back to asking what the user wants to build:
106
+ > I didn't find obvious quick wins in your codebase. What's something small you've been meaning to add or fix?
107
+
108
+ ### Scope Guardrail
109
+
110
+ If the user picks or describes something too large (major feature, multi-day work):
111
+
112
+ ```
113
+ That's a valuable task, but it's probably larger than ideal for your first OpenSpec run-through.
114
+
115
+ For learning the workflow, smaller is better—it lets you see the full cycle without getting stuck in implementation details.
116
+
117
+ **Options:**
118
+ 1. **Slice it smaller** - What's the smallest useful piece of [their task]? Maybe just [specific slice]?
119
+ 2. **Pick something else** - One of the other suggestions, or a different small task?
120
+ 3. **Do it anyway** - If you really want to tackle this, we can. Just know it'll take longer.
121
+
122
+ What would you prefer?
123
+ ```
124
+
125
+ Let the user override if they insist—this is a soft guardrail.
126
+
127
+ ---
128
+
129
+ ## Phase 3: Explore Demo
130
+
131
+ Once a task is selected, briefly demonstrate explore mode:
132
+
133
+ ```
134
+ Before we create a change, let me quickly show you **explore mode**—it's how you think through problems before committing to a direction.
135
+ ```
136
+
137
+ Spend 1-2 minutes investigating the relevant code:
138
+ - Read the file(s) involved
139
+ - Draw a quick ASCII diagram if it helps
140
+ - Note any considerations
141
+
142
+ ```
143
+ ## Quick Exploration
144
+
145
+ [Your brief analysis—what you found, any considerations]
146
+
147
+ ┌─────────────────────────────────────────┐
148
+ │ [Optional: ASCII diagram if helpful] │
149
+ └─────────────────────────────────────────┘
150
+
151
+ Explore mode (`/opsx:explore`) is for this kind of thinking—investigating before implementing. You can use it anytime you need to think through a problem.
152
+
153
+ Now let's create a change to hold our work.
154
+ ```
155
+
156
+ **PAUSE** - Wait for user acknowledgment before proceeding.
157
+
158
+ ---
159
+
160
+ ## Phase 4: Create the Change
161
+
162
+ **EXPLAIN:**
163
+ ```
164
+ ## Creating a Change
165
+
166
+ A "change" in OpenSpec is a container for all the thinking and planning around a piece of work. It lives in `openspec/changes/<name>/` and holds your artifacts—proposal, specs, design, tasks.
167
+
168
+ Let me create one for our task.
169
+ ```
170
+
171
+ **DO:** Create the change with a derived kebab-case name:
172
+ ```bash
173
+ openspec new change "<derived-name>"
174
+ ```
175
+
176
+ **SHOW:**
177
+ ```
178
+ Created: `openspec/changes/<name>/`
179
+
180
+ The folder structure:
181
+ ```
182
+ openspec/changes/<name>/
183
+ ├── proposal.md ← Why we're doing this (empty, we'll fill it)
184
+ ├── design.md ← How we'll build it (empty)
185
+ ├── specs/ ← Detailed requirements (empty)
186
+ └── tasks.md ← Implementation checklist (empty)
187
+ ```
188
+
189
+ Now let's fill in the first artifact—the proposal.
190
+ ```
191
+
192
+ ---
193
+
194
+ ## Phase 5: Proposal
195
+
196
+ **EXPLAIN:**
197
+ ```
198
+ ## The Proposal
199
+
200
+ The proposal captures **why** we're making this change and **what** it involves at a high level. It's the "elevator pitch" for the work.
201
+
202
+ I'll draft one based on our task.
203
+ ```
204
+
205
+ **DO:** Draft the proposal content (don't save yet):
206
+
207
+ ```
208
+ Here's a draft proposal:
209
+
210
+ ---
211
+
212
+ ## Why
213
+
214
+ [1-2 sentences explaining the problem/opportunity]
215
+
216
+ ## What Changes
217
+
218
+ [Bullet points of what will be different]
219
+
220
+ ## Capabilities
221
+
222
+ ### New Capabilities
223
+ - `<capability-name>`: [brief description]
224
+
225
+ ### Modified Capabilities
226
+ <!-- If modifying existing behavior -->
227
+
228
+ ## Impact
229
+
230
+ - `src/path/to/file.ts`: [what changes]
231
+ - [other files if applicable]
232
+
233
+ ---
234
+
235
+ Does this capture the intent? I can adjust before we save it.
236
+ ```
237
+
238
+ **PAUSE** - Wait for user approval/feedback.
239
+
240
+ After approval, save the proposal:
241
+ ```bash
242
+ openspec instructions proposal --change "<name>" --json
243
+ ```
244
+ Then write the content to `openspec/changes/<name>/proposal.md`.
245
+
246
+ ```
247
+ Proposal saved. This is your "why" document—you can always come back and refine it as understanding evolves.
248
+
249
+ Next up: specs.
250
+ ```
251
+
252
+ ---
253
+
254
+ ## Phase 6: Specs
255
+
256
+ **EXPLAIN:**
257
+ ```
258
+ ## Specs
259
+
260
+ Specs define **what** we're building in precise, testable terms. They use a requirement/scenario format that makes expected behavior crystal clear.
261
+
262
+ For a small task like this, we might only need one spec file.
263
+ ```
264
+
265
+ **DO:** Create the spec file:
266
+ ```bash
267
+ # Unix/macOS
268
+ mkdir -p openspec/changes/<name>/specs/<capability-name>
269
+ # Windows (PowerShell)
270
+ # New-Item -ItemType Directory -Force -Path "openspec/changes/<name>/specs/<capability-name>"
271
+ ```
272
+
273
+ Draft the spec content:
274
+
275
+ ```
276
+ Here's the spec:
277
+
278
+ ---
279
+
280
+ ## ADDED Requirements
281
+
282
+ ### Requirement: <Name>
283
+
284
+ <Description of what the system should do>
285
+
286
+ #### Scenario: <Scenario name>
287
+
288
+ - **WHEN** <trigger condition>
289
+ - **THEN** <expected outcome>
290
+ - **AND** <additional outcome if needed>
291
+
292
+ ---
293
+
294
+ This format—WHEN/THEN/AND—makes requirements testable. You can literally read them as test cases.
295
+ ```
296
+
297
+ Save to `openspec/changes/<name>/specs/<capability>/spec.md`.
298
+
299
+ ---
300
+
301
+ ## Phase 7: Design
302
+
303
+ **EXPLAIN:**
304
+ ```
305
+ ## Design
306
+
307
+ The design captures **how** we'll build it—technical decisions, tradeoffs, approach.
308
+
309
+ For small changes, this might be brief. That's fine—not every change needs deep design discussion.
310
+ ```
311
+
312
+ **DO:** Draft design.md:
313
+
314
+ ```
315
+ Here's the design:
316
+
317
+ ---
318
+
319
+ ## Context
320
+
321
+ [Brief context about the current state]
322
+
323
+ ## Goals / Non-Goals
324
+
325
+ **Goals:**
326
+ - [What we're trying to achieve]
327
+
328
+ **Non-Goals:**
329
+ - [What's explicitly out of scope]
330
+
331
+ ## Decisions
332
+
333
+ ### Decision 1: [Key decision]
334
+
335
+ [Explanation of approach and rationale]
336
+
337
+ ---
338
+
339
+ For a small task, this captures the key decisions without over-engineering.
340
+ ```
341
+
342
+ Save to `openspec/changes/<name>/design.md`.
343
+
344
+ ---
345
+
346
+ ## Phase 8: Tasks
347
+
348
+ **EXPLAIN:**
349
+ ```
350
+ ## Tasks
351
+
352
+ Finally, we break the work into implementation tasks—checkboxes that drive the apply phase.
353
+
354
+ These should be small, clear, and in logical order.
355
+ ```
356
+
357
+ **DO:** Generate tasks based on specs and design:
358
+
359
+ ```
360
+ Here are the implementation tasks:
361
+
362
+ ---
363
+
364
+ ## 1. [Category or file]
365
+
366
+ - [ ] 1.1 [Specific task]
367
+ - [ ] 1.2 [Specific task]
368
+
369
+ ## 2. Verify
370
+
371
+ - [ ] 2.1 [Verification step]
372
+
373
+ ---
374
+
375
+ Each checkbox becomes a unit of work in the apply phase. Ready to implement?
376
+ ```
377
+
378
+ **PAUSE** - Wait for user to confirm they're ready to implement.
379
+
380
+ Save to `openspec/changes/<name>/tasks.md`.
381
+
382
+ ---
383
+
384
+ ## Phase 9: Apply (Implementation)
385
+
386
+ **EXPLAIN:**
387
+ ```
388
+ ## Implementation
389
+
390
+ Now we implement each task, checking them off as we go. I'll announce each one and occasionally note how the specs/design informed the approach.
391
+ ```
392
+
393
+ **DO:** For each task:
394
+
395
+ 1. Announce: "Working on task N: [description]"
396
+ 2. Implement the change in the codebase
397
+ 3. Reference specs/design naturally: "The spec says X, so I'm doing Y"
398
+ 4. Mark complete in tasks.md: `- [ ]` → `- [x]`
399
+ 5. Brief status: "✓ Task N complete"
400
+
401
+ Keep narration light—don't over-explain every line of code.
402
+
403
+ After all tasks:
404
+
405
+ ```
406
+ ## Implementation Complete
407
+
408
+ All tasks done:
409
+ - [x] Task 1
410
+ - [x] Task 2
411
+ - [x] ...
412
+
413
+ The change is implemented! One more step—let's archive it.
414
+ ```
415
+
416
+ ---
417
+
418
+ ## Phase 10: Archive
419
+
420
+ **EXPLAIN:**
421
+ ```
422
+ ## Archiving
423
+
424
+ When a change is complete, we archive it. This moves it from `openspec/changes/` to `openspec/changes/archive/YYYY-MM-DD-<name>/`.
425
+
426
+ Archived changes become your project's decision history—you can always find them later to understand why something was built a certain way.
427
+ ```
428
+
429
+ **DO:**
430
+ ```bash
431
+ openspec archive "<name>"
432
+ ```
433
+
434
+ **SHOW:**
435
+ ```
436
+ Archived to: `openspec/changes/archive/YYYY-MM-DD-<name>/`
437
+
438
+ The change is now part of your project's history. The code is in your codebase, the decision record is preserved.
439
+ ```
440
+
441
+ ---
442
+
443
+ ## Phase 11: Recap & Next Steps
444
+
445
+ ```
446
+ ## Congratulations!
447
+
448
+ You just completed a full OpenSpec cycle:
449
+
450
+ 1. **Explore** - Thought through the problem
451
+ 2. **New** - Created a change container
452
+ 3. **Proposal** - Captured WHY
453
+ 4. **Specs** - Defined WHAT in detail
454
+ 5. **Design** - Decided HOW
455
+ 6. **Tasks** - Broke it into steps
456
+ 7. **Apply** - Implemented the work
457
+ 8. **Archive** - Preserved the record
458
+
459
+ This same rhythm works for any size change—a small fix or a major feature.
460
+
461
+ ---
462
+
463
+ ## Command Reference
464
+
465
+ **Core workflow:**
466
+
467
+ | Command | What it does |
468
+ |---------|--------------|
469
+ | `/opsx:propose` | Create a change and generate all artifacts |
470
+ | `/opsx:explore` | Think through problems before/during work |
471
+ | `/opsx:apply` | Implement tasks from a change |
472
+ | `/opsx:archive` | Archive a completed change |
473
+
474
+ **Additional commands:**
475
+
476
+ | Command | What it does |
477
+ |---------|--------------|
478
+ | `/opsx:new` | Start a new change, step through artifacts one at a time |
479
+ | `/opsx:continue` | Continue working on an existing change |
480
+ | `/opsx:ff` | Fast-forward: create all artifacts at once |
481
+ | `/opsx:verify` | Verify implementation matches artifacts |
482
+
483
+ ---
484
+
485
+ ## What's Next?
486
+
487
+ Try `/opsx:propose` on something you actually want to build. You've got the rhythm now!
488
+ ```
489
+
490
+ ---
491
+
492
+ ## Graceful Exit Handling
493
+
494
+ ### User wants to stop mid-way
495
+
496
+ If the user says they need to stop, want to pause, or seem disengaged:
497
+
498
+ ```
499
+ No problem! Your change is saved at `openspec/changes/<name>/`.
500
+
501
+ To pick up where we left off later:
502
+ - `/opsx:continue <name>` - Resume artifact creation
503
+ - `/opsx:apply <name>` - Jump to implementation (if tasks exist)
504
+
505
+ The work won't be lost. Come back whenever you're ready.
506
+ ```
507
+
508
+ Exit gracefully without pressure.
509
+
510
+ ### User just wants command reference
511
+
512
+ If the user says they just want to see the commands or skip the tutorial:
513
+
514
+ ```
515
+ ## OpenSpec Quick Reference
516
+
517
+ **Core workflow:**
518
+
519
+ | Command | What it does |
520
+ |---------|--------------|
521
+ | `/opsx:propose <name>` | Create a change and generate all artifacts |
522
+ | `/opsx:explore` | Think through problems (no code changes) |
523
+ | `/opsx:apply <name>` | Implement tasks |
524
+ | `/opsx:archive <name>` | Archive when done |
525
+
526
+ **Additional commands:**
527
+
528
+ | Command | What it does |
529
+ |---------|--------------|
530
+ | `/opsx:new <name>` | Start a new change, step by step |
531
+ | `/opsx:continue <name>` | Continue an existing change |
532
+ | `/opsx:ff <name>` | Fast-forward: all artifacts at once |
533
+ | `/opsx:verify <name>` | Verify implementation |
534
+
535
+ Try `/opsx:propose` to start your first change.
536
+ ```
537
+
538
+ Exit gracefully.
539
+
540
+ ---
541
+
542
+ ## Guardrails
543
+
544
+ - **Follow the EXPLAIN → DO → SHOW → PAUSE pattern** at key transitions (after explore, after proposal draft, after tasks, after archive)
545
+ - **Keep narration light** during implementation—teach without lecturing
546
+ - **Don't skip phases** even if the change is small—the goal is teaching the workflow
547
+ - **Pause for acknowledgment** at marked points, but don't over-pause
548
+ - **Handle exits gracefully**—never pressure the user to continue
549
+ - **Use real codebase tasks**—don't simulate or use fake examples
550
+ - **Adjust scope gently**—guide toward smaller tasks but respect user choice
@@ -0,0 +1,106 @@
1
+ ---
2
+ name: "OPSX: Propose"
3
+ description: Propose a new change - create it and generate all artifacts in one step
4
+ category: Workflow
5
+ tags: [workflow, artifacts, experimental]
6
+ ---
7
+
8
+ Propose a new change - create the change and generate all artifacts in one step.
9
+
10
+ I'll create a change with artifacts:
11
+ - proposal.md (what & why)
12
+ - design.md (how)
13
+ - tasks.md (implementation steps)
14
+
15
+ When ready to implement, run /opsx:apply
16
+
17
+ ---
18
+
19
+ **Input**: The argument after `/opsx:propose` is the change name (kebab-case), OR a description of what the user wants to build.
20
+
21
+ **Steps**
22
+
23
+ 1. **If no input provided, ask what they want to build**
24
+
25
+ Use the **AskUserQuestion tool** (open-ended, no preset options) to ask:
26
+ > "What change do you want to work on? Describe what you want to build or fix."
27
+
28
+ From their description, derive a kebab-case name (e.g., "add user authentication" → `add-user-auth`).
29
+
30
+ **IMPORTANT**: Do NOT proceed without understanding what the user wants to build.
31
+
32
+ 2. **Create the change directory**
33
+ ```bash
34
+ openspec new change "<name>"
35
+ ```
36
+ This creates a scaffolded change at `openspec/changes/<name>/` with `.openspec.yaml`.
37
+
38
+ 3. **Get the artifact build order**
39
+ ```bash
40
+ openspec status --change "<name>" --json
41
+ ```
42
+ Parse the JSON to get:
43
+ - `applyRequires`: array of artifact IDs needed before implementation (e.g., `["tasks"]`)
44
+ - `artifacts`: list of all artifacts with their status and dependencies
45
+
46
+ 4. **Create artifacts in sequence until apply-ready**
47
+
48
+ Use the **TodoWrite tool** to track progress through the artifacts.
49
+
50
+ Loop through artifacts in dependency order (artifacts with no pending dependencies first):
51
+
52
+ a. **For each artifact that is `ready` (dependencies satisfied)**:
53
+ - Get instructions:
54
+ ```bash
55
+ openspec instructions <artifact-id> --change "<name>" --json
56
+ ```
57
+ - The instructions JSON includes:
58
+ - `context`: Project background (constraints for you - do NOT include in output)
59
+ - `rules`: Artifact-specific rules (constraints for you - do NOT include in output)
60
+ - `template`: The structure to use for your output file
61
+ - `instruction`: Schema-specific guidance for this artifact type
62
+ - `outputPath`: Where to write the artifact
63
+ - `dependencies`: Completed artifacts to read for context
64
+ - Read any completed dependency files for context
65
+ - Create the artifact file using `template` as the structure
66
+ - Apply `context` and `rules` as constraints - but do NOT copy them into the file
67
+ - Show brief progress: "Created <artifact-id>"
68
+
69
+ b. **Continue until all `applyRequires` artifacts are complete**
70
+ - After creating each artifact, re-run `openspec status --change "<name>" --json`
71
+ - Check if every artifact ID in `applyRequires` has `status: "done"` in the artifacts array
72
+ - Stop when all `applyRequires` artifacts are done
73
+
74
+ c. **If an artifact requires user input** (unclear context):
75
+ - Use **AskUserQuestion tool** to clarify
76
+ - Then continue with creation
77
+
78
+ 5. **Show final status**
79
+ ```bash
80
+ openspec status --change "<name>"
81
+ ```
82
+
83
+ **Output**
84
+
85
+ After completing all artifacts, summarize:
86
+ - Change name and location
87
+ - List of artifacts created with brief descriptions
88
+ - What's ready: "All artifacts created! Ready for implementation."
89
+ - Prompt: "Run `/opsx:apply` to start implementing."
90
+
91
+ **Artifact Creation Guidelines**
92
+
93
+ - Follow the `instruction` field from `openspec instructions` for each artifact type
94
+ - The schema defines what each artifact should contain - follow it
95
+ - Read dependency artifacts for context before creating new ones
96
+ - Use `template` as the structure for your output file - fill in its sections
97
+ - **IMPORTANT**: `context` and `rules` are constraints for YOU, not content for the file
98
+ - Do NOT copy `<context>`, `<rules>`, `<project_context>` blocks into the artifact
99
+ - These guide what you write, but should never appear in the output
100
+
101
+ **Guardrails**
102
+ - Create ALL artifacts needed for implementation (as defined by schema's `apply.requires`)
103
+ - Always read dependency artifacts before creating a new one
104
+ - If context is critically unclear, ask the user - but prefer making reasonable decisions to keep momentum
105
+ - If a change with that name already exists, ask if user wants to continue it or create a new one
106
+ - Verify each artifact file exists after writing before proceeding to next