@generacy-ai/agency-plugin-spec-kit 0.0.0-preview-20260302182740

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 (233) hide show
  1. package/LICENSE +191 -0
  2. package/README.md +169 -0
  3. package/dist/config.d.ts +321 -0
  4. package/dist/config.d.ts.map +1 -0
  5. package/dist/config.js +112 -0
  6. package/dist/config.js.map +1 -0
  7. package/dist/index.d.ts +38 -0
  8. package/dist/index.d.ts.map +1 -0
  9. package/dist/index.js +45 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/manifest.d.ts +16 -0
  12. package/dist/manifest.d.ts.map +1 -0
  13. package/dist/manifest.js +65 -0
  14. package/dist/manifest.js.map +1 -0
  15. package/dist/plugin.d.ts +64 -0
  16. package/dist/plugin.d.ts.map +1 -0
  17. package/dist/plugin.js +135 -0
  18. package/dist/plugin.js.map +1 -0
  19. package/dist/providers/errors.d.ts +154 -0
  20. package/dist/providers/errors.d.ts.map +1 -0
  21. package/dist/providers/errors.js +184 -0
  22. package/dist/providers/errors.js.map +1 -0
  23. package/dist/providers/github-cli.d.ts +240 -0
  24. package/dist/providers/github-cli.d.ts.map +1 -0
  25. package/dist/providers/github-cli.js +764 -0
  26. package/dist/providers/github-cli.js.map +1 -0
  27. package/dist/providers/github.d.ts +142 -0
  28. package/dist/providers/github.d.ts.map +1 -0
  29. package/dist/providers/github.js +381 -0
  30. package/dist/providers/github.js.map +1 -0
  31. package/dist/providers/index.d.ts +101 -0
  32. package/dist/providers/index.d.ts.map +1 -0
  33. package/dist/providers/index.js +140 -0
  34. package/dist/providers/index.js.map +1 -0
  35. package/dist/providers/jira.d.ts +124 -0
  36. package/dist/providers/jira.d.ts.map +1 -0
  37. package/dist/providers/jira.js +392 -0
  38. package/dist/providers/jira.js.map +1 -0
  39. package/dist/providers/local.d.ts +135 -0
  40. package/dist/providers/local.d.ts.map +1 -0
  41. package/dist/providers/local.js +338 -0
  42. package/dist/providers/local.js.map +1 -0
  43. package/dist/providers/registry.d.ts +121 -0
  44. package/dist/providers/registry.d.ts.map +1 -0
  45. package/dist/providers/registry.js +153 -0
  46. package/dist/providers/registry.js.map +1 -0
  47. package/dist/providers/shortcut.d.ts +27 -0
  48. package/dist/providers/shortcut.d.ts.map +1 -0
  49. package/dist/providers/shortcut.js +58 -0
  50. package/dist/providers/shortcut.js.map +1 -0
  51. package/dist/providers/types.d.ts +393 -0
  52. package/dist/providers/types.d.ts.map +1 -0
  53. package/dist/providers/types.js +19 -0
  54. package/dist/providers/types.js.map +1 -0
  55. package/dist/templates/defaults/agent-file.d.ts +9 -0
  56. package/dist/templates/defaults/agent-file.d.ts.map +1 -0
  57. package/dist/templates/defaults/agent-file.js +37 -0
  58. package/dist/templates/defaults/agent-file.js.map +1 -0
  59. package/dist/templates/defaults/checklist.d.ts +9 -0
  60. package/dist/templates/defaults/checklist.d.ts.map +1 -0
  61. package/dist/templates/defaults/checklist.js +49 -0
  62. package/dist/templates/defaults/checklist.js.map +1 -0
  63. package/dist/templates/defaults/plan.d.ts +9 -0
  64. package/dist/templates/defaults/plan.d.ts.map +1 -0
  65. package/dist/templates/defaults/plan.js +113 -0
  66. package/dist/templates/defaults/plan.js.map +1 -0
  67. package/dist/templates/defaults/spec.d.ts +9 -0
  68. package/dist/templates/defaults/spec.d.ts.map +1 -0
  69. package/dist/templates/defaults/spec.js +124 -0
  70. package/dist/templates/defaults/spec.js.map +1 -0
  71. package/dist/templates/defaults/tasks.d.ts +9 -0
  72. package/dist/templates/defaults/tasks.d.ts.map +1 -0
  73. package/dist/templates/defaults/tasks.js +260 -0
  74. package/dist/templates/defaults/tasks.js.map +1 -0
  75. package/dist/templates/index.d.ts +84 -0
  76. package/dist/templates/index.d.ts.map +1 -0
  77. package/dist/templates/index.js +154 -0
  78. package/dist/templates/index.js.map +1 -0
  79. package/dist/templates/types.d.ts +77 -0
  80. package/dist/templates/types.d.ts.map +1 -0
  81. package/dist/templates/types.js +39 -0
  82. package/dist/templates/types.js.map +1 -0
  83. package/dist/templates/variables.d.ts +68 -0
  84. package/dist/templates/variables.d.ts.map +1 -0
  85. package/dist/templates/variables.js +89 -0
  86. package/dist/templates/variables.js.map +1 -0
  87. package/dist/tools/check-prereqs.d.ts +20 -0
  88. package/dist/tools/check-prereqs.d.ts.map +1 -0
  89. package/dist/tools/check-prereqs.js +297 -0
  90. package/dist/tools/check-prereqs.js.map +1 -0
  91. package/dist/tools/copy-template.d.ts +36 -0
  92. package/dist/tools/copy-template.d.ts.map +1 -0
  93. package/dist/tools/copy-template.js +195 -0
  94. package/dist/tools/copy-template.js.map +1 -0
  95. package/dist/tools/create-feature.d.ts +24 -0
  96. package/dist/tools/create-feature.d.ts.map +1 -0
  97. package/dist/tools/create-feature.js +475 -0
  98. package/dist/tools/create-feature.js.map +1 -0
  99. package/dist/tools/create-ticket.d.ts +45 -0
  100. package/dist/tools/create-ticket.d.ts.map +1 -0
  101. package/dist/tools/create-ticket.js +119 -0
  102. package/dist/tools/create-ticket.js.map +1 -0
  103. package/dist/tools/get-paths.d.ts +23 -0
  104. package/dist/tools/get-paths.d.ts.map +1 -0
  105. package/dist/tools/get-paths.js +205 -0
  106. package/dist/tools/get-paths.js.map +1 -0
  107. package/dist/tools/get-ticket.d.ts +53 -0
  108. package/dist/tools/get-ticket.d.ts.map +1 -0
  109. package/dist/tools/get-ticket.js +122 -0
  110. package/dist/tools/get-ticket.js.map +1 -0
  111. package/dist/tools/git-ops.d.ts +21 -0
  112. package/dist/tools/git-ops.d.ts.map +1 -0
  113. package/dist/tools/git-ops.js +241 -0
  114. package/dist/tools/git-ops.js.map +1 -0
  115. package/dist/tools/index.d.ts +29 -0
  116. package/dist/tools/index.d.ts.map +1 -0
  117. package/dist/tools/index.js +76 -0
  118. package/dist/tools/index.js.map +1 -0
  119. package/dist/tools/manage-clarifications.d.ts +21 -0
  120. package/dist/tools/manage-clarifications.d.ts.map +1 -0
  121. package/dist/tools/manage-clarifications.js +511 -0
  122. package/dist/tools/manage-clarifications.js.map +1 -0
  123. package/dist/tools/tasks-to-issues.d.ts +38 -0
  124. package/dist/tools/tasks-to-issues.d.ts.map +1 -0
  125. package/dist/tools/tasks-to-issues.js +413 -0
  126. package/dist/tools/tasks-to-issues.js.map +1 -0
  127. package/dist/tools/update-agent.d.ts +67 -0
  128. package/dist/tools/update-agent.d.ts.map +1 -0
  129. package/dist/tools/update-agent.js +482 -0
  130. package/dist/tools/update-agent.js.map +1 -0
  131. package/dist/tools/update-ticket.d.ts +49 -0
  132. package/dist/tools/update-ticket.d.ts.map +1 -0
  133. package/dist/tools/update-ticket.js +310 -0
  134. package/dist/tools/update-ticket.js.map +1 -0
  135. package/dist/types/agent.d.ts +34 -0
  136. package/dist/types/agent.d.ts.map +1 -0
  137. package/dist/types/agent.js +125 -0
  138. package/dist/types/agent.js.map +1 -0
  139. package/dist/types/clarification.d.ts +332 -0
  140. package/dist/types/clarification.d.ts.map +1 -0
  141. package/dist/types/clarification.js +28 -0
  142. package/dist/types/clarification.js.map +1 -0
  143. package/dist/types/config.d.ts +314 -0
  144. package/dist/types/config.d.ts.map +1 -0
  145. package/dist/types/config.js +149 -0
  146. package/dist/types/config.js.map +1 -0
  147. package/dist/types/dependency.d.ts +150 -0
  148. package/dist/types/dependency.d.ts.map +1 -0
  149. package/dist/types/dependency.js +8 -0
  150. package/dist/types/dependency.js.map +1 -0
  151. package/dist/types/errors.d.ts +100 -0
  152. package/dist/types/errors.d.ts.map +1 -0
  153. package/dist/types/errors.js +54 -0
  154. package/dist/types/errors.js.map +1 -0
  155. package/dist/types/feature.d.ts +143 -0
  156. package/dist/types/feature.d.ts.map +1 -0
  157. package/dist/types/feature.js +8 -0
  158. package/dist/types/feature.js.map +1 -0
  159. package/dist/types/index.d.ts +33 -0
  160. package/dist/types/index.d.ts.map +1 -0
  161. package/dist/types/index.js +45 -0
  162. package/dist/types/index.js.map +1 -0
  163. package/dist/types/issue.d.ts +162 -0
  164. package/dist/types/issue.d.ts.map +1 -0
  165. package/dist/types/issue.js +8 -0
  166. package/dist/types/issue.js.map +1 -0
  167. package/dist/types/patterns.d.ts +230 -0
  168. package/dist/types/patterns.d.ts.map +1 -0
  169. package/dist/types/patterns.js +226 -0
  170. package/dist/types/patterns.js.map +1 -0
  171. package/dist/types/task.d.ts +202 -0
  172. package/dist/types/task.d.ts.map +1 -0
  173. package/dist/types/task.js +18 -0
  174. package/dist/types/task.js.map +1 -0
  175. package/dist/types/ticket.d.ts +138 -0
  176. package/dist/types/ticket.d.ts.map +1 -0
  177. package/dist/types/ticket.js +35 -0
  178. package/dist/types/ticket.js.map +1 -0
  179. package/dist/utils/clarification-parser.d.ts +126 -0
  180. package/dist/utils/clarification-parser.d.ts.map +1 -0
  181. package/dist/utils/clarification-parser.js +254 -0
  182. package/dist/utils/clarification-parser.js.map +1 -0
  183. package/dist/utils/dependency.d.ts +150 -0
  184. package/dist/utils/dependency.d.ts.map +1 -0
  185. package/dist/utils/dependency.js +296 -0
  186. package/dist/utils/dependency.js.map +1 -0
  187. package/dist/utils/detect-ticket-ref.d.ts +55 -0
  188. package/dist/utils/detect-ticket-ref.d.ts.map +1 -0
  189. package/dist/utils/detect-ticket-ref.js +280 -0
  190. package/dist/utils/detect-ticket-ref.js.map +1 -0
  191. package/dist/utils/fs.d.ts +173 -0
  192. package/dist/utils/fs.d.ts.map +1 -0
  193. package/dist/utils/fs.js +286 -0
  194. package/dist/utils/fs.js.map +1 -0
  195. package/dist/utils/git.d.ts +37 -0
  196. package/dist/utils/git.d.ts.map +1 -0
  197. package/dist/utils/git.js +51 -0
  198. package/dist/utils/git.js.map +1 -0
  199. package/dist/utils/github-cli.d.ts +199 -0
  200. package/dist/utils/github-cli.d.ts.map +1 -0
  201. package/dist/utils/github-cli.js +408 -0
  202. package/dist/utils/github-cli.js.map +1 -0
  203. package/dist/utils/grouping.d.ts +144 -0
  204. package/dist/utils/grouping.d.ts.map +1 -0
  205. package/dist/utils/grouping.js +529 -0
  206. package/dist/utils/grouping.js.map +1 -0
  207. package/dist/utils/index.d.ts +188 -0
  208. package/dist/utils/index.d.ts.map +1 -0
  209. package/dist/utils/index.js +299 -0
  210. package/dist/utils/index.js.map +1 -0
  211. package/dist/utils/issue-comment.d.ts +54 -0
  212. package/dist/utils/issue-comment.d.ts.map +1 -0
  213. package/dist/utils/issue-comment.js +111 -0
  214. package/dist/utils/issue-comment.js.map +1 -0
  215. package/dist/utils/numbering.d.ts +43 -0
  216. package/dist/utils/numbering.d.ts.map +1 -0
  217. package/dist/utils/numbering.js +112 -0
  218. package/dist/utils/numbering.js.map +1 -0
  219. package/dist/utils/slug.d.ts +50 -0
  220. package/dist/utils/slug.d.ts.map +1 -0
  221. package/dist/utils/slug.js +132 -0
  222. package/dist/utils/slug.js.map +1 -0
  223. package/dist/utils/task-parser.d.ts +205 -0
  224. package/dist/utils/task-parser.d.ts.map +1 -0
  225. package/dist/utils/task-parser.js +497 -0
  226. package/dist/utils/task-parser.js.map +1 -0
  227. package/dist/workflows.d.ts +35 -0
  228. package/dist/workflows.d.ts.map +1 -0
  229. package/dist/workflows.js +50 -0
  230. package/dist/workflows.js.map +1 -0
  231. package/package.json +78 -0
  232. package/workflows/speckit-bugfix.yaml +166 -0
  233. package/workflows/speckit-feature.yaml +196 -0
package/LICENSE ADDED
@@ -0,0 +1,191 @@
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 the 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 the 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 any 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
+ Copyright 2026 The Generacy AI Authors
180
+
181
+ Licensed under the Apache License, Version 2.0 (the "License");
182
+ you may not use this file except in compliance with the License.
183
+ You may obtain a copy of the License at
184
+
185
+ http://www.apache.org/licenses/LICENSE-2.0
186
+
187
+ Unless required by applicable law or agreed to in writing, software
188
+ distributed under the License is distributed on an "AS IS" BASIS,
189
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
190
+ See the License for the specific language governing permissions and
191
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,169 @@
1
+ # @generacy-ai/agency-plugin-spec-kit
2
+
3
+ [![npm version](https://img.shields.io/npm/v/@generacy-ai/agency-plugin-spec-kit.svg)](https://www.npmjs.com/package/@generacy-ai/agency-plugin-spec-kit)
4
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
+
6
+ Specification management plugin for Agency - a specification-driven development toolkit with backlog provider abstraction.
7
+
8
+ ## Overview
9
+
10
+ This plugin provides MCP (Model Context Protocol) tools for managing feature specifications, coordinating with backlog systems, and automating development workflows. It supports multiple backlog providers (GitHub, Jira, Shortcut, Local) through a unified abstraction layer.
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ # Using pnpm
16
+ pnpm add @generacy-ai/agency-plugin-spec-kit
17
+
18
+ # Using npm
19
+ npm install @generacy-ai/agency-plugin-spec-kit
20
+ ```
21
+
22
+ ## Quick Start
23
+
24
+ Register the plugin with your Agency MCP server:
25
+
26
+ ```typescript
27
+ import { createAgencyServer } from '@generacy-ai/agency';
28
+ import { createSpecKitPlugin } from '@generacy-ai/agency-plugin-spec-kit';
29
+
30
+ const server = createAgencyServer({
31
+ plugins: [createSpecKitPlugin()],
32
+ });
33
+
34
+ server.start();
35
+ ```
36
+
37
+ ## Available Tools
38
+
39
+ The plugin exposes 11 MCP tools for specification-driven development:
40
+
41
+ | Tool | Description |
42
+ |------|-------------|
43
+ | `get_paths` | Get feature directory paths for current branch |
44
+ | `get_ticket` | Fetch ticket details from backlog provider |
45
+ | `create_ticket` | Create new tickets in backlog system |
46
+ | `update_ticket` | Update existing tickets |
47
+ | `check_prereqs` | Validate prerequisites for commands |
48
+ | `manage_clarifications` | Handle clarification questions (read, append, update answers) |
49
+ | `copy_template` | Copy template files (spec, plan, tasks, checklist) to feature directory |
50
+ | `git_ops` | Git operations: create_branch, checkout, fetch, status, current_branch |
51
+ | `update_agent` | Update AI agent context files with technology information |
52
+ | `create_feature` | Create feature branches with initialized spec directory |
53
+ | `tasks_to_issues` | Convert tasks.md to GitHub issues with configurable grouping |
54
+
55
+ ## Backlog Providers
56
+
57
+ The plugin supports multiple backlog systems through a provider abstraction:
58
+
59
+ | Provider | Description | Configuration |
60
+ |----------|-------------|---------------|
61
+ | `github` | GitHub Issues integration | Requires `GITHUB_TOKEN` |
62
+ | `jira` | Jira Cloud/Server integration | Requires Jira API credentials |
63
+ | `shortcut` | Shortcut (formerly Clubhouse) | Requires `SHORTCUT_API_TOKEN` |
64
+ | `local` | Local file-based backlog | No external dependencies |
65
+
66
+ ## Bundled Workflows
67
+
68
+ The plugin ships with canonical workflow YAML files for spec-driven development. These bundled workflows eliminate version drift across repositories — instead of each repo maintaining its own copy of `speckit-feature.yaml` and `speckit-bugfix.yaml` in `.generacy/`, they are distributed automatically with the plugin package.
69
+
70
+ ### Included workflows
71
+
72
+ | Workflow | File | Description |
73
+ |----------|------|-------------|
74
+ | `speckit-feature` | `workflows/speckit-feature.yaml` | Full feature development: specify, clarify, plan, tasks, implement |
75
+ | `speckit-bugfix` | `workflows/speckit-bugfix.yaml` | Streamlined bugfix: specify, plan, tasks, implement, verify |
76
+
77
+ ### Local overrides
78
+
79
+ Local workflow files in your repository take priority over bundled ones. When `resolveWorkflow()` is called, it checks:
80
+
81
+ 1. `<repoRoot>/.generacy/<name>.yaml` — local override (highest priority)
82
+ 2. Bundled workflow from this package — fallback
83
+
84
+ This means you can customize a workflow for a specific repo by placing a modified copy in `.generacy/`.
85
+
86
+ ### Migration
87
+
88
+ If your repo has `.generacy/speckit-feature.yaml` or `.generacy/speckit-bugfix.yaml` files that are unmodified copies of the canonical workflows, you can delete them. The plugin will automatically fall back to the bundled versions.
89
+
90
+ ```bash
91
+ # Remove local copies to use bundled defaults
92
+ rm .generacy/speckit-feature.yaml .generacy/speckit-bugfix.yaml
93
+ ```
94
+
95
+ To check which version is currently bundled, look at the `version` field in the YAML files (currently `1.3.0`).
96
+
97
+ ### Workflow API
98
+
99
+ #### `BUILTIN_WORKFLOWS`
100
+
101
+ Map of bundled workflow names to their absolute file paths.
102
+
103
+ ```typescript
104
+ import { BUILTIN_WORKFLOWS } from '@generacy-ai/agency-plugin-spec-kit';
105
+
106
+ // { 'speckit-feature': '/abs/path/to/workflows/speckit-feature.yaml',
107
+ // 'speckit-bugfix': '/abs/path/to/workflows/speckit-bugfix.yaml' }
108
+ ```
109
+
110
+ #### `getBuiltinWorkflowPath(name: string): string | undefined`
111
+
112
+ Get the absolute path to a bundled workflow file. Returns `undefined` for unknown names.
113
+
114
+ ```typescript
115
+ import { getBuiltinWorkflowPath } from '@generacy-ai/agency-plugin-spec-kit';
116
+
117
+ const path = getBuiltinWorkflowPath('speckit-feature');
118
+ // '/abs/path/to/workflows/speckit-feature.yaml'
119
+
120
+ const unknown = getBuiltinWorkflowPath('unknown');
121
+ // undefined
122
+ ```
123
+
124
+ #### `resolveWorkflow(name: string, repoRoot: string): string | undefined`
125
+
126
+ Resolve a workflow by name with local-first override semantics. Checks `<repoRoot>/.generacy/<name>.yaml` first, then falls back to the bundled workflow. Returns `undefined` if the name is not known and no local file exists.
127
+
128
+ ```typescript
129
+ import { resolveWorkflow } from '@generacy-ai/agency-plugin-spec-kit';
130
+
131
+ // Uses local override if .generacy/speckit-feature.yaml exists,
132
+ // otherwise returns the bundled path
133
+ const path = resolveWorkflow('speckit-feature', '/path/to/repo');
134
+ ```
135
+
136
+ #### `BuiltinWorkflowName` (type)
137
+
138
+ Type union of known bundled workflow names: `'speckit-feature' | 'speckit-bugfix'`.
139
+
140
+ ```typescript
141
+ import type { BuiltinWorkflowName } from '@generacy-ai/agency-plugin-spec-kit';
142
+ ```
143
+
144
+ ## Configuration
145
+
146
+ Configuration is managed through environment variables and the `.speckit/` directory. For detailed configuration options, see [docs/configuration.md](./docs/configuration.md).
147
+
148
+ Basic environment variables:
149
+
150
+ ```bash
151
+ # GitHub provider (default)
152
+ GITHUB_TOKEN=your_github_token
153
+
154
+ # Jira provider
155
+ JIRA_HOST=your-domain.atlassian.net
156
+ JIRA_EMAIL=your-email@example.com
157
+ JIRA_API_TOKEN=your_jira_token
158
+
159
+ # Shortcut provider
160
+ SHORTCUT_API_TOKEN=your_shortcut_token
161
+ ```
162
+
163
+ ## Related Packages
164
+
165
+ - [`@generacy-ai/agency`](../agency) - Core Agency MCP server
166
+
167
+ ## License
168
+
169
+ MIT
@@ -0,0 +1,321 @@
1
+ /**
2
+ * Configuration schema and defaults for @generacy-ai/agency-plugin-spec-kit
3
+ *
4
+ * Uses Zod for runtime validation with TypeScript type inference.
5
+ */
6
+ import { z } from 'zod';
7
+ /**
8
+ * Zod schema for path configuration
9
+ */
10
+ export declare const PathsConfigSchema: z.ZodObject<{
11
+ /** Directory for spec artifacts (default: 'specs') */
12
+ specs: z.ZodDefault<z.ZodString>;
13
+ /** Directory for templates (default: '.specify/templates') */
14
+ templates: z.ZodDefault<z.ZodString>;
15
+ }, "strip", z.ZodTypeAny, {
16
+ specs: string;
17
+ templates: string;
18
+ }, {
19
+ specs?: string | undefined;
20
+ templates?: string | undefined;
21
+ }>;
22
+ /**
23
+ * Zod schema for branch naming configuration
24
+ */
25
+ export declare const BranchesConfigSchema: z.ZodObject<{
26
+ /** Branch name pattern (default: '{paddedNumber}-{slug}') */
27
+ pattern: z.ZodDefault<z.ZodString>;
28
+ /** Zero-padding for issue numbers (default: 3) */
29
+ numberPadding: z.ZodDefault<z.ZodNumber>;
30
+ /** Maximum words in slug (default: 4) */
31
+ maxSlugWords: z.ZodDefault<z.ZodNumber>;
32
+ }, "strip", z.ZodTypeAny, {
33
+ pattern: string;
34
+ numberPadding: number;
35
+ maxSlugWords: number;
36
+ }, {
37
+ pattern?: string | undefined;
38
+ numberPadding?: number | undefined;
39
+ maxSlugWords?: number | undefined;
40
+ }>;
41
+ /**
42
+ * Zod schema for Jira provider configuration
43
+ */
44
+ export declare const JiraConfigSchema: z.ZodObject<{
45
+ /** Jira base URL (e.g., https://company.atlassian.net) */
46
+ baseUrl: z.ZodString;
47
+ /** Jira project key (e.g., PROJ) */
48
+ projectKey: z.ZodString;
49
+ /** Jira user email for authentication (optional, can use JIRA_EMAIL env var) */
50
+ email: z.ZodOptional<z.ZodString>;
51
+ /** Jira API token for authentication (optional, can use JIRA_API_TOKEN env var) */
52
+ apiToken: z.ZodOptional<z.ZodString>;
53
+ }, "strip", z.ZodTypeAny, {
54
+ baseUrl: string;
55
+ projectKey: string;
56
+ email?: string | undefined;
57
+ apiToken?: string | undefined;
58
+ }, {
59
+ baseUrl: string;
60
+ projectKey: string;
61
+ email?: string | undefined;
62
+ apiToken?: string | undefined;
63
+ }>;
64
+ /**
65
+ * Zod schema for Shortcut provider configuration
66
+ */
67
+ export declare const ShortcutConfigSchema: z.ZodObject<{
68
+ /** Shortcut workspace slug */
69
+ workspaceSlug: z.ZodString;
70
+ }, "strip", z.ZodTypeAny, {
71
+ workspaceSlug: string;
72
+ }, {
73
+ workspaceSlug: string;
74
+ }>;
75
+ /**
76
+ * Zod schema for backlog provider configuration
77
+ */
78
+ export declare const BacklogConfigSchema: z.ZodObject<{
79
+ /** Backlog provider type (default: 'github') */
80
+ provider: z.ZodDefault<z.ZodEnum<["github", "jira", "shortcut", "local"]>>;
81
+ /** GitHub-specific configuration (empty for now) */
82
+ github: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
83
+ /** Jira-specific configuration */
84
+ jira: z.ZodOptional<z.ZodObject<{
85
+ /** Jira base URL (e.g., https://company.atlassian.net) */
86
+ baseUrl: z.ZodString;
87
+ /** Jira project key (e.g., PROJ) */
88
+ projectKey: z.ZodString;
89
+ /** Jira user email for authentication (optional, can use JIRA_EMAIL env var) */
90
+ email: z.ZodOptional<z.ZodString>;
91
+ /** Jira API token for authentication (optional, can use JIRA_API_TOKEN env var) */
92
+ apiToken: z.ZodOptional<z.ZodString>;
93
+ }, "strip", z.ZodTypeAny, {
94
+ baseUrl: string;
95
+ projectKey: string;
96
+ email?: string | undefined;
97
+ apiToken?: string | undefined;
98
+ }, {
99
+ baseUrl: string;
100
+ projectKey: string;
101
+ email?: string | undefined;
102
+ apiToken?: string | undefined;
103
+ }>>;
104
+ /** Shortcut-specific configuration */
105
+ shortcut: z.ZodOptional<z.ZodObject<{
106
+ /** Shortcut workspace slug */
107
+ workspaceSlug: z.ZodString;
108
+ }, "strip", z.ZodTypeAny, {
109
+ workspaceSlug: string;
110
+ }, {
111
+ workspaceSlug: string;
112
+ }>>;
113
+ }, "strip", z.ZodTypeAny, {
114
+ provider: "github" | "jira" | "shortcut" | "local";
115
+ github?: {} | undefined;
116
+ jira?: {
117
+ baseUrl: string;
118
+ projectKey: string;
119
+ email?: string | undefined;
120
+ apiToken?: string | undefined;
121
+ } | undefined;
122
+ shortcut?: {
123
+ workspaceSlug: string;
124
+ } | undefined;
125
+ }, {
126
+ github?: {} | undefined;
127
+ jira?: {
128
+ baseUrl: string;
129
+ projectKey: string;
130
+ email?: string | undefined;
131
+ apiToken?: string | undefined;
132
+ } | undefined;
133
+ shortcut?: {
134
+ workspaceSlug: string;
135
+ } | undefined;
136
+ provider?: "github" | "jira" | "shortcut" | "local" | undefined;
137
+ }>;
138
+ /**
139
+ * Complete SpecKit plugin configuration schema
140
+ *
141
+ * Provides sensible defaults for all settings while allowing full customization.
142
+ *
143
+ * @example
144
+ * ```typescript
145
+ * const config = SpecKitConfigSchema.parse({
146
+ * paths: { specs: 'features' },
147
+ * backlog: { provider: 'jira', jira: { baseUrl: 'https://jira.example.com', projectKey: 'PROJ' } },
148
+ * });
149
+ * ```
150
+ */
151
+ export declare const SpecKitConfigSchema: z.ZodObject<{
152
+ /** Path configuration */
153
+ paths: z.ZodDefault<z.ZodObject<{
154
+ /** Directory for spec artifacts (default: 'specs') */
155
+ specs: z.ZodDefault<z.ZodString>;
156
+ /** Directory for templates (default: '.specify/templates') */
157
+ templates: z.ZodDefault<z.ZodString>;
158
+ }, "strip", z.ZodTypeAny, {
159
+ specs: string;
160
+ templates: string;
161
+ }, {
162
+ specs?: string | undefined;
163
+ templates?: string | undefined;
164
+ }>>;
165
+ /** Branch naming configuration */
166
+ branches: z.ZodDefault<z.ZodObject<{
167
+ /** Branch name pattern (default: '{paddedNumber}-{slug}') */
168
+ pattern: z.ZodDefault<z.ZodString>;
169
+ /** Zero-padding for issue numbers (default: 3) */
170
+ numberPadding: z.ZodDefault<z.ZodNumber>;
171
+ /** Maximum words in slug (default: 4) */
172
+ maxSlugWords: z.ZodDefault<z.ZodNumber>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ pattern: string;
175
+ numberPadding: number;
176
+ maxSlugWords: number;
177
+ }, {
178
+ pattern?: string | undefined;
179
+ numberPadding?: number | undefined;
180
+ maxSlugWords?: number | undefined;
181
+ }>>;
182
+ /** Backlog provider configuration */
183
+ backlog: z.ZodDefault<z.ZodObject<{
184
+ /** Backlog provider type (default: 'github') */
185
+ provider: z.ZodDefault<z.ZodEnum<["github", "jira", "shortcut", "local"]>>;
186
+ /** GitHub-specific configuration (empty for now) */
187
+ github: z.ZodOptional<z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>>;
188
+ /** Jira-specific configuration */
189
+ jira: z.ZodOptional<z.ZodObject<{
190
+ /** Jira base URL (e.g., https://company.atlassian.net) */
191
+ baseUrl: z.ZodString;
192
+ /** Jira project key (e.g., PROJ) */
193
+ projectKey: z.ZodString;
194
+ /** Jira user email for authentication (optional, can use JIRA_EMAIL env var) */
195
+ email: z.ZodOptional<z.ZodString>;
196
+ /** Jira API token for authentication (optional, can use JIRA_API_TOKEN env var) */
197
+ apiToken: z.ZodOptional<z.ZodString>;
198
+ }, "strip", z.ZodTypeAny, {
199
+ baseUrl: string;
200
+ projectKey: string;
201
+ email?: string | undefined;
202
+ apiToken?: string | undefined;
203
+ }, {
204
+ baseUrl: string;
205
+ projectKey: string;
206
+ email?: string | undefined;
207
+ apiToken?: string | undefined;
208
+ }>>;
209
+ /** Shortcut-specific configuration */
210
+ shortcut: z.ZodOptional<z.ZodObject<{
211
+ /** Shortcut workspace slug */
212
+ workspaceSlug: z.ZodString;
213
+ }, "strip", z.ZodTypeAny, {
214
+ workspaceSlug: string;
215
+ }, {
216
+ workspaceSlug: string;
217
+ }>>;
218
+ }, "strip", z.ZodTypeAny, {
219
+ provider: "github" | "jira" | "shortcut" | "local";
220
+ github?: {} | undefined;
221
+ jira?: {
222
+ baseUrl: string;
223
+ projectKey: string;
224
+ email?: string | undefined;
225
+ apiToken?: string | undefined;
226
+ } | undefined;
227
+ shortcut?: {
228
+ workspaceSlug: string;
229
+ } | undefined;
230
+ }, {
231
+ github?: {} | undefined;
232
+ jira?: {
233
+ baseUrl: string;
234
+ projectKey: string;
235
+ email?: string | undefined;
236
+ apiToken?: string | undefined;
237
+ } | undefined;
238
+ shortcut?: {
239
+ workspaceSlug: string;
240
+ } | undefined;
241
+ provider?: "github" | "jira" | "shortcut" | "local" | undefined;
242
+ }>>;
243
+ }, "strip", z.ZodTypeAny, {
244
+ paths: {
245
+ specs: string;
246
+ templates: string;
247
+ };
248
+ branches: {
249
+ pattern: string;
250
+ numberPadding: number;
251
+ maxSlugWords: number;
252
+ };
253
+ backlog: {
254
+ provider: "github" | "jira" | "shortcut" | "local";
255
+ github?: {} | undefined;
256
+ jira?: {
257
+ baseUrl: string;
258
+ projectKey: string;
259
+ email?: string | undefined;
260
+ apiToken?: string | undefined;
261
+ } | undefined;
262
+ shortcut?: {
263
+ workspaceSlug: string;
264
+ } | undefined;
265
+ };
266
+ }, {
267
+ paths?: {
268
+ specs?: string | undefined;
269
+ templates?: string | undefined;
270
+ } | undefined;
271
+ branches?: {
272
+ pattern?: string | undefined;
273
+ numberPadding?: number | undefined;
274
+ maxSlugWords?: number | undefined;
275
+ } | undefined;
276
+ backlog?: {
277
+ github?: {} | undefined;
278
+ jira?: {
279
+ baseUrl: string;
280
+ projectKey: string;
281
+ email?: string | undefined;
282
+ apiToken?: string | undefined;
283
+ } | undefined;
284
+ shortcut?: {
285
+ workspaceSlug: string;
286
+ } | undefined;
287
+ provider?: "github" | "jira" | "shortcut" | "local" | undefined;
288
+ } | undefined;
289
+ }>;
290
+ /**
291
+ * SpecKit plugin configuration type inferred from Zod schema
292
+ */
293
+ export type SpecKitConfig = z.infer<typeof SpecKitConfigSchema>;
294
+ /**
295
+ * Default configuration with all defaults applied
296
+ */
297
+ export declare const DEFAULT_CONFIG: SpecKitConfig;
298
+ /**
299
+ * Parse and validate configuration from raw input
300
+ *
301
+ * @param raw - Raw configuration object (or undefined for defaults)
302
+ * @returns Validated configuration with defaults applied
303
+ * @throws ZodError if configuration is invalid
304
+ */
305
+ export declare function parseConfig(raw?: unknown): SpecKitConfig;
306
+ /**
307
+ * Legacy interface for backwards compatibility
308
+ */
309
+ export interface SpecKitPluginConfig {
310
+ /** Directory where specs are stored */
311
+ specDirectory: string;
312
+ /** Directory containing spec templates */
313
+ templateDirectory: string;
314
+ }
315
+ /**
316
+ * Resolve legacy config format to new format
317
+ *
318
+ * @deprecated Use parseConfig instead
319
+ */
320
+ export declare function resolveConfig(userConfig?: Partial<SpecKitPluginConfig>): SpecKitPluginConfig;
321
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,sDAAsD;;IAEtD,8DAA8D;;;;;;;;EAE9D,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC/B,6DAA6D;;IAE7D,kDAAkD;;IAElD,yCAAyC;;;;;;;;;;EAEzC,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,0DAA0D;;IAE1D,oCAAoC;;IAEpC,gFAAgF;;IAEhF,mFAAmF;;;;;;;;;;;;EAEnF,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC/B,8BAA8B;;;;;;EAE9B,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,gDAAgD;;IAEhD,oDAAoD;;IAEpD,kCAAkC;;QA1BlC,0DAA0D;;QAE1D,oCAAoC;;QAEpC,gFAAgF;;QAEhF,mFAAmF;;;;;;;;;;;;;IAsBnF,sCAAsC;;QAdtC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgB9B,CAAC;AAEH;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,mBAAmB;IAC9B,yBAAyB;;QApEzB,sDAAsD;;QAEtD,8DAA8D;;;;;;;;;IAoE9D,kCAAkC;;QA5DlC,6DAA6D;;QAE7D,kDAAkD;;QAElD,yCAAyC;;;;;;;;;;;IA0DzC,qCAAqC;;QA5BrC,gDAAgD;;QAEhD,oDAAoD;;QAEpD,kCAAkC;;YA1BlC,0DAA0D;;YAE1D,oCAAoC;;YAEpC,gFAAgF;;YAEhF,mFAAmF;;;;;;;;;;;;;QAsBnF,sCAAsC;;YAdtC,8BAA8B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsC9B,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,aAA6C,CAAC;AAE3E;;;;;;GAMG;AACH,wBAAgB,WAAW,CAAC,GAAG,CAAC,EAAE,OAAO,GAAG,aAAa,CAExD;AAED;;GAEG;AACH,MAAM,WAAW,mBAAmB;IAClC,uCAAuC;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAC3B,UAAU,CAAC,EAAE,OAAO,CAAC,mBAAmB,CAAC,GACxC,mBAAmB,CAWrB"}