devspec 0.1.0__py3-none-any.whl

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 (133) hide show
  1. devspec-0.1.0.dist-info/METADATA +522 -0
  2. devspec-0.1.0.dist-info/RECORD +133 -0
  3. devspec-0.1.0.dist-info/WHEEL +4 -0
  4. devspec-0.1.0.dist-info/entry_points.txt +2 -0
  5. devspec-0.1.0.dist-info/licenses/LICENSE +201 -0
  6. devspec_installer/__init__.py +3 -0
  7. devspec_installer/__main__.py +5 -0
  8. devspec_installer/cli.py +615 -0
  9. devspec_installer/payload/.agents/rules/devspec-workflow.md +25 -0
  10. devspec_installer/payload/.agents/skills/devspec-clarify.md +14 -0
  11. devspec_installer/payload/.agents/skills/devspec-codebase-structure.md +14 -0
  12. devspec_installer/payload/.agents/skills/devspec-coding-standards.md +14 -0
  13. devspec_installer/payload/.agents/skills/devspec-diagram.md +14 -0
  14. devspec_installer/payload/.agents/skills/devspec-extract.md +14 -0
  15. devspec_installer/payload/.agents/skills/devspec-finalize.md +14 -0
  16. devspec_installer/payload/.agents/skills/devspec-implement.md +14 -0
  17. devspec_installer/payload/.agents/skills/devspec-projectcontext.md +14 -0
  18. devspec_installer/payload/.agents/skills/devspec-review.md +14 -0
  19. devspec_installer/payload/.agents/skills/devspec-rules.md +14 -0
  20. devspec_installer/payload/.agents/skills/devspec-story.md +14 -0
  21. devspec_installer/payload/.agents/skills/devspec-tasks.md +14 -0
  22. devspec_installer/payload/.agents/skills/devspec-techstack.md +14 -0
  23. devspec_installer/payload/.claude/skills/devspec-clarify/SKILL.md +13 -0
  24. devspec_installer/payload/.claude/skills/devspec-codebase-structure/SKILL.md +13 -0
  25. devspec_installer/payload/.claude/skills/devspec-coding-standards/SKILL.md +13 -0
  26. devspec_installer/payload/.claude/skills/devspec-diagram/SKILL.md +13 -0
  27. devspec_installer/payload/.claude/skills/devspec-extract/SKILL.md +13 -0
  28. devspec_installer/payload/.claude/skills/devspec-finalize/SKILL.md +13 -0
  29. devspec_installer/payload/.claude/skills/devspec-implement/SKILL.md +13 -0
  30. devspec_installer/payload/.claude/skills/devspec-projectcontext/SKILL.md +13 -0
  31. devspec_installer/payload/.claude/skills/devspec-review/SKILL.md +13 -0
  32. devspec_installer/payload/.claude/skills/devspec-rules/SKILL.md +13 -0
  33. devspec_installer/payload/.claude/skills/devspec-story/SKILL.md +13 -0
  34. devspec_installer/payload/.claude/skills/devspec-tasks/SKILL.md +13 -0
  35. devspec_installer/payload/.claude/skills/devspec-techstack/SKILL.md +13 -0
  36. devspec_installer/payload/.cursor/rules/devspec-workflow.mdc +23 -0
  37. devspec_installer/payload/.gemini/commands/devspec/clarify.toml +14 -0
  38. devspec_installer/payload/.gemini/commands/devspec/codebase-structure.toml +14 -0
  39. devspec_installer/payload/.gemini/commands/devspec/coding-standards.toml +14 -0
  40. devspec_installer/payload/.gemini/commands/devspec/diagram.toml +14 -0
  41. devspec_installer/payload/.gemini/commands/devspec/extract.toml +14 -0
  42. devspec_installer/payload/.gemini/commands/devspec/finalize.toml +14 -0
  43. devspec_installer/payload/.gemini/commands/devspec/implement.toml +14 -0
  44. devspec_installer/payload/.gemini/commands/devspec/projectcontext.toml +14 -0
  45. devspec_installer/payload/.gemini/commands/devspec/review.toml +14 -0
  46. devspec_installer/payload/.gemini/commands/devspec/rules.toml +14 -0
  47. devspec_installer/payload/.gemini/commands/devspec/story.toml +14 -0
  48. devspec_installer/payload/.gemini/commands/devspec/tasks.toml +14 -0
  49. devspec_installer/payload/.gemini/commands/devspec/techstack.toml +14 -0
  50. devspec_installer/payload/.github/agents/devspec.clarify.agent.md +39 -0
  51. devspec_installer/payload/.github/agents/devspec.codebase-structure.agent.md +39 -0
  52. devspec_installer/payload/.github/agents/devspec.coding-standards.agent.md +40 -0
  53. devspec_installer/payload/.github/agents/devspec.diagram.agent.md +76 -0
  54. devspec_installer/payload/.github/agents/devspec.extract.agent.md +91 -0
  55. devspec_installer/payload/.github/agents/devspec.finalize.agent.md +51 -0
  56. devspec_installer/payload/.github/agents/devspec.implement-task.agent.md +67 -0
  57. devspec_installer/payload/.github/agents/devspec.projectcontext.agent.md +34 -0
  58. devspec_installer/payload/.github/agents/devspec.review.agent.md +42 -0
  59. devspec_installer/payload/.github/agents/devspec.rules.agent.md +35 -0
  60. devspec_installer/payload/.github/agents/devspec.story.agent.md +54 -0
  61. devspec_installer/payload/.github/agents/devspec.tasks.agent.md +44 -0
  62. devspec_installer/payload/.github/agents/devspec.techstack.agent.md +35 -0
  63. devspec_installer/payload/.github/prompts/PATTERNS.md +278 -0
  64. devspec_installer/payload/.github/prompts/README.md +92 -0
  65. devspec_installer/payload/.github/prompts/devspec.clarify.prompt.md +11 -0
  66. devspec_installer/payload/.github/prompts/devspec.codebase-structure.prompt.md +11 -0
  67. devspec_installer/payload/.github/prompts/devspec.coding-standards.prompt.md +11 -0
  68. devspec_installer/payload/.github/prompts/devspec.diagram.prompt.md +11 -0
  69. devspec_installer/payload/.github/prompts/devspec.extract.prompt.md +11 -0
  70. devspec_installer/payload/.github/prompts/devspec.finalize.prompt.md +11 -0
  71. devspec_installer/payload/.github/prompts/devspec.implement.prompt.md +11 -0
  72. devspec_installer/payload/.github/prompts/devspec.projectcontext.prompt.md +11 -0
  73. devspec_installer/payload/.github/prompts/devspec.review.prompt.md +11 -0
  74. devspec_installer/payload/.github/prompts/devspec.rules.prompt.md +11 -0
  75. devspec_installer/payload/.github/prompts/devspec.story.prompt.md +11 -0
  76. devspec_installer/payload/.github/prompts/devspec.tasks.prompt.md +11 -0
  77. devspec_installer/payload/.github/prompts/devspec.techstack.prompt.md +11 -0
  78. devspec_installer/payload/.github/skills/exploration-recovery/SKILL.md +45 -0
  79. devspec_installer/payload/.github/workflows/python-package-ci.yml +42 -0
  80. devspec_installer/payload/.github/workflows/python-package-publish.yml +69 -0
  81. devspec_installer/payload/.github/workflows/winget-package-publish.yml +110 -0
  82. devspec_installer/payload/AGENTS.md +80 -0
  83. devspec_installer/payload/GEMINI.md +35 -0
  84. devspec_installer/payload/README.md +301 -0
  85. devspec_installer/payload/devspec/adapters/README.md +53 -0
  86. devspec_installer/payload/devspec/adapters/antigravity.md +52 -0
  87. devspec_installer/payload/devspec/adapters/claude-code.md +32 -0
  88. devspec_installer/payload/devspec/adapters/codex-skills/devspec-workflow/SKILL.md +17 -0
  89. devspec_installer/payload/devspec/adapters/codex.md +22 -0
  90. devspec_installer/payload/devspec/adapters/command-registry.md +38 -0
  91. devspec_installer/payload/devspec/adapters/compatibility-matrix.md +21 -0
  92. devspec_installer/payload/devspec/adapters/copilot.md +20 -0
  93. devspec_installer/payload/devspec/adapters/cursor.md +22 -0
  94. devspec_installer/payload/devspec/adapters/enterprise-governance.md +36 -0
  95. devspec_installer/payload/devspec/adapters/gemini-cli.md +54 -0
  96. devspec_installer/payload/devspec/adapters/validation-flows.md +90 -0
  97. devspec_installer/payload/devspec/architecture/_template/artifact-queue.md +27 -0
  98. devspec_installer/payload/devspec/architecture/_template/decision.md +45 -0
  99. devspec_installer/payload/devspec/architecture/_template/diagram.md +62 -0
  100. devspec_installer/payload/devspec/architecture/_template/overview.md +37 -0
  101. devspec_installer/payload/devspec/architecture/artifact-queue.md +27 -0
  102. devspec_installer/payload/devspec/architecture/diagrams/README.md +44 -0
  103. devspec_installer/payload/devspec/architecture/overview.md +37 -0
  104. devspec_installer/payload/devspec/constitution.md +26 -0
  105. devspec_installer/payload/devspec/foundation/_template/codebase-structure.md +64 -0
  106. devspec_installer/payload/devspec/foundation/_template/coding-standards.md +46 -0
  107. devspec_installer/payload/devspec/foundation/_template/discovery-exclusions.md +52 -0
  108. devspec_installer/payload/devspec/foundation/_template/exploration-state.md +15 -0
  109. devspec_installer/payload/devspec/foundation/_template/extraction-state.md +45 -0
  110. devspec_installer/payload/devspec/foundation/_template/project-context.md +37 -0
  111. devspec_installer/payload/devspec/foundation/_template/provider-integrations.md +94 -0
  112. devspec_installer/payload/devspec/foundation/_template/rules.md +54 -0
  113. devspec_installer/payload/devspec/foundation/_template/tech-stack.md +49 -0
  114. devspec_installer/payload/devspec/foundation/codebase-structure.md +64 -0
  115. devspec_installer/payload/devspec/foundation/coding-standards.md +46 -0
  116. devspec_installer/payload/devspec/foundation/discovery-exclusions.md +52 -0
  117. devspec_installer/payload/devspec/foundation/extraction-state.md +45 -0
  118. devspec_installer/payload/devspec/foundation/project-context.md +33 -0
  119. devspec_installer/payload/devspec/foundation/provider-integrations.md +94 -0
  120. devspec_installer/payload/devspec/foundation/rules.md +52 -0
  121. devspec_installer/payload/devspec/foundation/tech-stack.md +49 -0
  122. devspec_installer/payload/devspec/glossary.md +111 -0
  123. devspec_installer/payload/devspec/work-items/_template/clarify.md +28 -0
  124. devspec_installer/payload/devspec/work-items/_template/decisions.md +9 -0
  125. devspec_installer/payload/devspec/work-items/_template/diagrams.md +42 -0
  126. devspec_installer/payload/devspec/work-items/_template/finalize.md +65 -0
  127. devspec_installer/payload/devspec/work-items/_template/implement.md +63 -0
  128. devspec_installer/payload/devspec/work-items/_template/meta.md +63 -0
  129. devspec_installer/payload/devspec/work-items/_template/notes.md +7 -0
  130. devspec_installer/payload/devspec/work-items/_template/review.md +41 -0
  131. devspec_installer/payload/devspec/work-items/_template/story.md +59 -0
  132. devspec_installer/payload/devspec/work-items/_template/tasks.md +38 -0
  133. devspec_installer/payload/packaging/devspec-profiles.json +60 -0
@@ -0,0 +1,522 @@
1
+ Metadata-Version: 2.4
2
+ Name: devspec
3
+ Version: 0.1.0
4
+ Summary: Installer and synchronizer CLI for the devspec workflow framework.
5
+ Author: devspec contributors
6
+ License: Apache License
7
+ Version 2.0, January 2004
8
+ http://www.apache.org/licenses/
9
+
10
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
11
+
12
+ 1. Definitions.
13
+
14
+ "License" shall mean the terms and conditions for use, reproduction,
15
+ and distribution as defined by Sections 1 through 9 of this document.
16
+
17
+ "Licensor" shall mean the copyright owner or entity authorized by
18
+ the copyright owner that is granting the License.
19
+
20
+ "Legal Entity" shall mean the union of the acting entity and all
21
+ other entities that control, are controlled by, or are under common
22
+ control with that entity. For the purposes of this definition,
23
+ "control" means (i) the power, direct or indirect, to cause the
24
+ direction or management of such entity, whether by contract or
25
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
26
+ outstanding shares, or (iii) beneficial ownership of such entity.
27
+
28
+ "You" (or "Your") shall mean an individual or Legal Entity
29
+ exercising permissions granted by this License.
30
+
31
+ "Source" form shall mean the preferred form for making modifications,
32
+ including but not limited to software source code, documentation
33
+ source, and configuration files.
34
+
35
+ "Object" form shall mean any form resulting from mechanical
36
+ transformation or translation of a Source form, including but
37
+ not limited to compiled object code, generated documentation,
38
+ and conversions to other media types.
39
+
40
+ "Work" shall mean the work of authorship, whether in Source or
41
+ Object form, made available under the License, as indicated by a
42
+ copyright notice that is included in or attached to the work
43
+ (an example is provided in the Appendix below).
44
+
45
+ "Derivative Works" shall mean any work, whether in Source or Object
46
+ form, that is based on (or derived from) the Work and for which the
47
+ editorial revisions, annotations, elaborations, or other modifications
48
+ represent, as a whole, an original work of authorship. For the purposes
49
+ of this License, Derivative Works shall not include works that remain
50
+ separable from, or merely link (or bind by name) to the interfaces of,
51
+ the Work and Derivative Works thereof.
52
+
53
+ "Contribution" shall mean any work of authorship, including
54
+ the original version of the Work and any modifications or additions
55
+ to that Work or Derivative Works thereof, that is intentionally
56
+ submitted to Licensor for inclusion in the Work by the copyright owner
57
+ or by an individual or Legal Entity authorized to submit on behalf of
58
+ the copyright owner. For the purposes of this definition, "submitted"
59
+ means any form of electronic, verbal, or written communication sent
60
+ to the Licensor or its representatives, including but not limited to
61
+ communication on electronic mailing lists, source code control systems,
62
+ and issue tracking systems that are managed by, or on behalf of, the
63
+ Licensor for the purpose of discussing and improving the Work, but
64
+ excluding communication that is conspicuously marked or otherwise
65
+ designated in writing by the copyright owner as "Not a Contribution."
66
+
67
+ "Contributor" shall mean Licensor and any individual or Legal Entity
68
+ on behalf of whom a Contribution has been received by Licensor and
69
+ subsequently incorporated within the Work.
70
+
71
+ 2. Grant of Copyright License. Subject to the terms and conditions of
72
+ this License, each Contributor hereby grants to You a perpetual,
73
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
74
+ copyright license to reproduce, prepare Derivative Works of,
75
+ publicly display, publicly perform, sublicense, and distribute the
76
+ Work and such Derivative Works in Source or Object form.
77
+
78
+ 3. Grant of Patent License. Subject to the terms and conditions of
79
+ this License, each Contributor hereby grants to You a perpetual,
80
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
81
+ (except as stated in this section) patent license to make, have made,
82
+ use, offer to sell, sell, import, and otherwise transfer the Work,
83
+ where such license applies only to those patent claims licensable
84
+ by such Contributor that are necessarily infringed by their
85
+ Contribution(s) alone or by combination of their Contribution(s)
86
+ with the Work to which such Contribution(s) was submitted. If You
87
+ institute patent litigation against any entity (including a
88
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
89
+ or a Contribution incorporated within the Work constitutes direct
90
+ or contributory patent infringement, then any patent licenses
91
+ granted to You under this License for that Work shall terminate
92
+ as of the date such litigation is filed.
93
+
94
+ 4. Redistribution. You may reproduce and distribute copies of the
95
+ Work or Derivative Works thereof in any medium, with or without
96
+ modifications, and in Source or Object form, provided that You
97
+ meet the following conditions:
98
+
99
+ (a) You must give any other recipients of the Work or
100
+ Derivative Works a copy of this License; and
101
+
102
+ (b) You must cause any modified files to carry prominent notices
103
+ stating that You changed the files; and
104
+
105
+ (c) You must retain, in the Source form of any Derivative Works
106
+ that You distribute, all copyright, patent, trademark, and
107
+ attribution notices from the Source form of the Work,
108
+ excluding those notices that do not pertain to any part of
109
+ the Derivative Works; and
110
+
111
+ (d) If the Work includes a "NOTICE" text file as part of its
112
+ distribution, then any Derivative Works that You distribute must
113
+ include a readable copy of the attribution notices contained
114
+ within such NOTICE file, excluding those notices that do not
115
+ pertain to any part of the Derivative Works, in at least one
116
+ of the following places: within a NOTICE text file distributed
117
+ as part of the Derivative Works; within the Source form or
118
+ documentation, if provided along with the Derivative Works; or,
119
+ within a display generated by the Derivative Works, if and
120
+ wherever such third-party notices normally appear. The contents
121
+ of the NOTICE file are for informational purposes only and
122
+ do not modify the License. You may add Your own attribution
123
+ notices within Derivative Works that You distribute, alongside
124
+ or as an addendum to the NOTICE text from the Work, provided
125
+ that such additional attribution notices cannot be construed
126
+ as modifying the License.
127
+
128
+ You may add Your own copyright statement to Your modifications and
129
+ may provide additional or different license terms and conditions
130
+ for use, reproduction, or distribution of Your modifications, or
131
+ for any such Derivative Works as a whole, provided Your use,
132
+ reproduction, and distribution of the Work otherwise complies with
133
+ the conditions stated in this License.
134
+
135
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
136
+ any Contribution intentionally submitted for inclusion in the Work
137
+ by You to the Licensor shall be under the terms and conditions of
138
+ this License, without any additional terms or conditions.
139
+ Notwithstanding the above, nothing herein shall supersede or modify
140
+ the terms of any separate license agreement you may have executed
141
+ with Licensor regarding such Contributions.
142
+
143
+ 6. Trademarks. This License does not grant permission to use the trade
144
+ names, trademarks, service marks, or product names of the Licensor,
145
+ except as required for reasonable and customary use in describing the
146
+ origin of the Work and reproducing the content of the NOTICE file.
147
+
148
+ 7. Disclaimer of Warranty. Unless required by applicable law or
149
+ agreed to in writing, Licensor provides the Work (and each
150
+ Contributor provides its Contributions) on an "AS IS" BASIS,
151
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
152
+ implied, including, without limitation, any warranties or conditions
153
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
154
+ PARTICULAR PURPOSE. You are solely responsible for determining the
155
+ appropriateness of using or redistributing the Work and assume any
156
+ risks associated with Your exercise of permissions under this License.
157
+
158
+ 8. Limitation of Liability. In no event and under no legal theory,
159
+ whether in tort (including negligence), contract, or otherwise,
160
+ unless required by applicable law (such as deliberate and grossly
161
+ negligent acts) or agreed to in writing, shall any Contributor be
162
+ liable to You for damages, including any direct, indirect, special,
163
+ incidental, or consequential damages of any character arising as a
164
+ result of this License or out of the use or inability to use the
165
+ Work (including but not limited to damages for loss of goodwill,
166
+ work stoppage, computer failure or malfunction, or any and all
167
+ other commercial damages or losses), even if such Contributor
168
+ has been advised of the possibility of such damages.
169
+
170
+ 9. Accepting Warranty or Additional Liability. While redistributing
171
+ the Work or Derivative Works thereof, You may choose to offer,
172
+ and charge a fee for, acceptance of support, warranty, indemnity,
173
+ or other liability obligations and/or rights consistent with this
174
+ License. However, in accepting such obligations, You may act only
175
+ on Your own behalf and on Your sole responsibility, not on behalf
176
+ of any other Contributor, and only if You agree to indemnify,
177
+ defend, and hold each Contributor harmless for any liability
178
+ incurred by, or claims asserted against, such Contributor by reason
179
+ of your accepting any such warranty or additional liability.
180
+
181
+ END OF TERMS AND CONDITIONS
182
+
183
+ APPENDIX: How to apply the Apache License to your work.
184
+
185
+ To apply the Apache License to your work, attach the following
186
+ boilerplate notice, with the fields enclosed by brackets "[]"
187
+ replaced with your own identifying information. (Don't include
188
+ the brackets!) The text should be enclosed in the appropriate
189
+ comment syntax for the file format. We also recommend that a
190
+ file or class name and description of purpose be included on the
191
+ same "printed page" as the copyright notice for easier
192
+ identification within third-party archives.
193
+
194
+ Copyright [yyyy] [name of copyright owner]
195
+
196
+ Licensed under the Apache License, Version 2.0 (the "License");
197
+ you may not use this file except in compliance with the License.
198
+ You may obtain a copy of the License at
199
+
200
+ http://www.apache.org/licenses/LICENSE-2.0
201
+
202
+ Unless required by applicable law or agreed to in writing, software
203
+ distributed under the License is distributed on an "AS IS" BASIS,
204
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
205
+ See the License for the specific language governing permissions and
206
+ limitations under the License.
207
+ License-File: LICENSE
208
+ Keywords: agents,ai,developer-tools,spec-driven-development,workflow
209
+ Classifier: Development Status :: 3 - Alpha
210
+ Classifier: Environment :: Console
211
+ Classifier: Intended Audience :: Developers
212
+ Classifier: License :: OSI Approved :: Apache Software License
213
+ Classifier: Programming Language :: Python :: 3
214
+ Classifier: Programming Language :: Python :: 3.10
215
+ Classifier: Programming Language :: Python :: 3.11
216
+ Classifier: Programming Language :: Python :: 3.12
217
+ Classifier: Programming Language :: Python :: 3.13
218
+ Classifier: Topic :: Software Development
219
+ Requires-Python: >=3.10
220
+ Description-Content-Type: text/markdown
221
+
222
+ # devspec
223
+
224
+ `devspec` is a spec-driven development framework for teams using GitHub Copilot and other AI coding agents.
225
+
226
+ It stores planning, implementation, review, and recovery state in Git-tracked files instead of relying on chat history.
227
+
228
+ Use it when you want agents to follow the same workflow for:
229
+
230
+ - project context, architecture, engineering rules, and coding standards
231
+ - feature, bug, and security work-item intake
232
+ - clarification, finalization, task planning, implementation, and review
233
+ - session recovery from repository artifacts
234
+
235
+ ## Quick Start
236
+
237
+ Install with the `devspec` CLI. The recommended one-off path is `uvx`, which avoids a permanent global install and works well on machines where developers cannot write to shared PATH folders.
238
+
239
+ For install, workflow, AI coding agent, multi-repo, provider, validation, and upgrade examples, see [`docs/how-to/README.md`](docs/how-to/README.md).
240
+
241
+ 1. Open the target repository in VS Code or the selected AI coding tool.
242
+ 2. Install all supported adapter files into the repository:
243
+
244
+ ```text
245
+ uvx devspec init --target . --profile all --repo-state existing
246
+ ```
247
+
248
+ Use `--repo-state new` for a new repository.
249
+
250
+ 3. Validate the install:
251
+
252
+ ```text
253
+ uvx devspec doctor --target . --profile all
254
+ ```
255
+
256
+ 4. Commit the copied files.
257
+ 5. Run the foundation flow for a new or existing repository.
258
+ 6. Start the first work item.
259
+
260
+ Manual copy remains supported as a fallback when package managers are blocked. Copy the framework folders listed in [Manual Copy Fallback](#manual-copy-fallback), then commit the copied files.
261
+
262
+ For a new project:
263
+
264
+ ```text
265
+ /devspec.projectcontext
266
+ /devspec.techstack
267
+ /devspec.codebase-structure
268
+ /devspec.coding-standards
269
+ /devspec.rules
270
+ ```
271
+
272
+ For an existing project:
273
+
274
+ ```text
275
+ /devspec.extract
276
+ /devspec.projectcontext
277
+ /devspec.techstack
278
+ /devspec.codebase-structure
279
+ /devspec.coding-standards
280
+ /devspec.rules
281
+ ```
282
+
283
+ Then run the work-item flow:
284
+
285
+ ```text
286
+ /devspec.story
287
+ /devspec.finalize
288
+ /devspec.tasks
289
+ /devspec.implement
290
+ /devspec.review
291
+ ```
292
+
293
+ Use `/devspec.clarify` only when a work item records a blocking question. Use `/devspec.diagram` when a diagram would clarify architecture, workflow, state, sequence, or domain behavior.
294
+
295
+ ## How It Works
296
+
297
+ `devspec` has two workflow layers.
298
+
299
+ | Layer | Purpose | Commands |
300
+ | --- | --- | --- |
301
+ | Foundation | Capture stable project context, architecture, stack, structure, standards, and rules. | `/devspec.extract`, `/devspec.projectcontext`, `/devspec.techstack`, `/devspec.codebase-structure`, `/devspec.coding-standards`, `/devspec.rules` |
302
+ | Work items | Move one feature, bug, or security issue from intake to review. | `/devspec.story`, `/devspec.clarify`, `/devspec.finalize`, `/devspec.tasks`, `/devspec.implement`, `/devspec.review` |
303
+
304
+ ```mermaid
305
+ flowchart TD
306
+ Start["Start"] --> State{"Project state?"}
307
+ State -- "new" --> ProjectContext["/devspec.projectcontext"]
308
+ State -- "existing" --> Extract["/devspec.extract"]
309
+ Extract --> ProjectContext
310
+ ProjectContext --> TechStack["/devspec.techstack"]
311
+ TechStack --> Structure["/devspec.codebase-structure"]
312
+ Structure --> Standards["/devspec.coding-standards"]
313
+ Standards --> Rules["/devspec.rules"]
314
+ Rules --> Story["/devspec.story"]
315
+ Story --> Blocked{"Blocking question?"}
316
+ Blocked -- "yes" --> Clarify["/devspec.clarify"]
317
+ Clarify --> Story
318
+ Blocked -- "no" --> Finalize["/devspec.finalize"]
319
+ Finalize --> Ready{"Ready?"}
320
+ Ready -- "no" --> Clarify
321
+ Ready -- "yes" --> Tasks["/devspec.tasks"]
322
+ Tasks --> Implement["/devspec.implement"]
323
+ Implement --> Review["/devspec.review"]
324
+ Review --> Outcome{"Review outcome?"}
325
+ Outcome -- "changes requested" --> Implement
326
+ Outcome -- "approved" --> Done["Done"]
327
+ ```
328
+
329
+ ## Command Reference
330
+
331
+ | Command | Use when | Main output |
332
+ | --- | --- | --- |
333
+ | `/devspec.extract` | Existing code/docs should seed the foundation. | Foundation, architecture, extraction, and diagram queue artifacts. |
334
+ | `/devspec.projectcontext` | Product and business context must be recorded. | `devspec/foundation/project-context.md` |
335
+ | `/devspec.techstack` | Stack, runtime, hosting, tooling, or support status must be recorded. | `devspec/foundation/tech-stack.md` |
336
+ | `/devspec.codebase-structure` | Repository layout, boundaries, multi-repo access, or integration contracts must be recorded. | `devspec/foundation/codebase-structure.md` |
337
+ | `/devspec.coding-standards` | Engineering standards and observed patterns must be recorded. | `devspec/foundation/coding-standards.md` |
338
+ | `/devspec.rules` | Operational rules, compliance requirements, and gates must be recorded. | `devspec/foundation/rules.md` |
339
+ | `/devspec.story` | A feature, bug, security issue, task, PBI, or provider reference needs intake. | Work-item `meta.md`, `story.md`, `decisions.md`, `notes.md` |
340
+ | `/devspec.clarify` | A blocking question must be resolved. | Work-item `clarify.md` |
341
+ | `/devspec.finalize` | A work item needs an implementation-ready brief. | Work-item `finalize.md` |
342
+ | `/devspec.tasks` | A ready brief needs executable tasks. | Work-item `tasks.md` |
343
+ | `/devspec.implement` | Pending tasks should be implemented and recorded. | Work-item `implement.md` and code changes when applicable |
344
+ | `/devspec.review` | Implemented work needs review against the finalized brief. | Work-item `review.md` |
345
+ | `/devspec.diagram` | A diagram should be created or updated. | Architecture or work-item Mermaid diagram artifacts |
346
+
347
+ For exact command contracts, see `devspec/adapters/command-registry.md`.
348
+
349
+ ## AI Tool Support
350
+
351
+ GitHub Copilot prompt and agent files are the reference implementation. Other adapters are thin wrappers around the same command registry and Git-tracked artifacts.
352
+
353
+ | Tool | Files | Notes |
354
+ | --- | --- | --- |
355
+ | GitHub Copilot | `.github/prompts/`, `.github/agents/` | Native `/devspec.*` command implementation. |
356
+ | Claude Code | `.claude/skills/devspec-*/SKILL.md` | Project skills for canonical commands. |
357
+ | OpenAI Codex | `AGENTS.md`, `devspec/adapters/codex.md` | Repository instructions and Codex guidance. |
358
+ | Cursor | `.cursor/rules/devspec-workflow.mdc`, `AGENTS.md` | Project rules plus shared fallback instructions. |
359
+ | Gemini CLI | `GEMINI.md`, optional `.gemini/commands/devspec/*.toml` | `GEMINI.md` is enough for context; TOML files only add native `/devspec:*` shortcuts. |
360
+ | Google Antigravity | `.agents/rules/devspec-workflow.md`, `.agents/skills/devspec-*.md` | Workspace rule and skills using `/devspec-*` names. |
361
+
362
+ Canonical command names remain `/devspec.*`. Some adapters expose host-native shortcuts such as `/devspec:story` or `/devspec-story`.
363
+
364
+ Related docs:
365
+
366
+ - [`docs/how-to/README.md`](docs/how-to/README.md)
367
+ - [`devspec/adapters/README.md`](devspec/adapters/README.md)
368
+ - [`devspec/adapters/compatibility-matrix.md`](devspec/adapters/compatibility-matrix.md)
369
+ - [`devspec/adapters/validation-flows.md`](devspec/adapters/validation-flows.md)
370
+ - [`devspec/adapters/enterprise-governance.md`](devspec/adapters/enterprise-governance.md)
371
+
372
+ ## Repository Layout
373
+
374
+ | Path | Purpose |
375
+ | --- | --- |
376
+ | `devspec/constitution.md` | Durable project principles across all work items and agents. |
377
+ | `devspec/foundation/` | Product context, stack, structure, standards, rules, exclusions, and provider policy. |
378
+ | `devspec/architecture/` | Architecture overview, diagrams, ADR templates, and artifact queue. |
379
+ | `devspec/work-items/` | One folder per feature, bug, or security work item. |
380
+ | `devspec/adapters/` | Multi-agent registry, compatibility, validation, and governance docs. |
381
+ | `docs/how-to/` | User manual with install, workflow, AI coding agent, multi-repo, provider, validation, and upgrade examples. |
382
+ | `.github/prompts/` | Copilot slash-command prompts. |
383
+ | `.github/agents/` | Copilot agent definitions. |
384
+ | `.github/skills/` | Optional reusable skills. |
385
+ | `AGENTS.md` | Shared instructions for tools that read `AGENTS.md`. |
386
+ | `GEMINI.md` | Gemini-native repository context. |
387
+ | `.claude/`, `.cursor/`, `.gemini/`, `.agents/` | Optional adapter support. |
388
+
389
+ ## Manual Copy Fallback
390
+
391
+ Use manual copy only when the CLI, `uvx`, package managers, and release ZIP automation are blocked. Copy these core files and folders from the `devspec` release into the target repository root:
392
+
393
+ ```text
394
+ devspec/
395
+ .github/prompts/
396
+ .github/agents/
397
+ AGENTS.md
398
+ docs/how-to/
399
+ ```
400
+
401
+ Then copy only the adapter files your team uses:
402
+
403
+ | Tool | Additional files |
404
+ | --- | --- |
405
+ | GitHub Copilot | `.github/skills/` |
406
+ | Claude Code | `.claude/` |
407
+ | OpenAI Codex | No extra files beyond `AGENTS.md` |
408
+ | Cursor | `.cursor/` |
409
+ | Gemini CLI | `GEMINI.md`, `.gemini/` |
410
+ | Google Antigravity | `.agents/` |
411
+
412
+ Do not copy this framework repository's root `README.md` over a target project's README. Keep credentials, provider tokens, local auth files, and personal settings outside copied framework files.
413
+
414
+ ## Operating Rules
415
+
416
+ - Keep `.github/prompts/*.prompt.md` and `.github/agents/*.agent.md` as the protected reference contracts.
417
+ - Keep adapter support additive; do not change command intent for another tool.
418
+ - Store workflow state in Git-tracked `devspec/` artifacts, not chat memory.
419
+ - Use `devspec/glossary.md` for status values.
420
+ - Use `devspec/foundation/codebase-structure.md` for repository access requirements.
421
+ - Keep secrets and provider credentials outside prompt, agent, adapter, and artifact files.
422
+ - Record blockers instead of guessing.
423
+ - Recommend only registered `/devspec.*` commands.
424
+
425
+ ## Multi-Repo Work
426
+
427
+ For multi-repo systems, open one workspace or tool project that includes every repository agents should inspect, edit, test, or coordinate.
428
+
429
+ Record repository roles, local paths, access requirements, and boundaries in:
430
+
431
+ ```text
432
+ devspec/foundation/codebase-structure.md
433
+ ```
434
+
435
+ Access values are defined in:
436
+
437
+ ```text
438
+ devspec/glossary.md#access-requirement-values
439
+ ```
440
+
441
+ ## Provider Integrations
442
+
443
+ Use provider integrations when `/devspec.story` should resolve GitHub, Jira, Azure DevOps, or other external work-item references.
444
+
445
+ Provider policy lives in:
446
+
447
+ ```text
448
+ devspec/foundation/provider-integrations.md
449
+ ```
450
+
451
+ Keep authentication outside prompt artifacts. Prefer read-only provider access unless write-back is explicitly required.
452
+
453
+ ## Validation
454
+
455
+ Enterprise readiness requires these flows to pass for each supported adapter:
456
+
457
+ - new repository foundation flow
458
+ - existing repository extraction flow
459
+ - full story lifecycle
460
+ - cross-tool recovery from Git-tracked artifacts
461
+
462
+ Use:
463
+
464
+ ```text
465
+ devspec/adapters/validation-flows.md
466
+ ```
467
+
468
+ ## Upgrade Notes
469
+
470
+ Use the CLI to inspect and apply framework upgrades:
471
+
472
+ ```text
473
+ devspec diff --target .
474
+ devspec sync --target . --profile all --dry-run
475
+ devspec sync --target . --profile all
476
+ ```
477
+
478
+ Framework-owned files may be replaced or diff-applied during upgrades:
479
+
480
+ - `.github/prompts/`
481
+ - `.github/agents/`
482
+ - `.github/skills/`
483
+ - adapter support folders
484
+ - `AGENTS.md`
485
+ - `GEMINI.md`
486
+ - `devspec/adapters/`
487
+ - `devspec/**/_template/`
488
+ - `docs/how-to/`
489
+
490
+ Project-owned files should be migrated or merged, not overwritten:
491
+
492
+ - `devspec/foundation/*.md`
493
+ - `devspec/architecture/*.md`
494
+ - `devspec/architecture/diagrams/*.md`
495
+ - `devspec/work-items/**`
496
+ - `devspec/constitution.md`
497
+ - `devspec/glossary.md`
498
+
499
+ ## Recommended Adoption
500
+
501
+ 1. Install into one target repository with `uvx devspec init --target . --profile all --repo-state existing`.
502
+ 2. Run the foundation flow.
503
+ 3. Complete one real feature work item.
504
+ 4. Complete one real bug work item.
505
+ 5. Add security-vulnerability flow validation if relevant.
506
+ 6. Adjust foundation docs based on what the first runs teach the team.
507
+
508
+ ## Deployment Development
509
+
510
+ When changing the installer, profile manifest, package metadata, or release automation, run:
511
+
512
+ ```text
513
+ uv run pytest
514
+ powershell -ExecutionPolicy Bypass -File scripts/test-local-install.ps1
515
+ bash scripts/test-local-install.sh
516
+ ```
517
+
518
+ Update `packaging/devspec-profiles.json` whenever adapter files are added, removed, or moved.
519
+
520
+ ## License
521
+
522
+ This repository is released under the [Apache License 2.0](LICENSE).