mirror of
https://github.com/github/spec-kit.git
synced 2026-07-06 22:32:13 +08:00
Compare commits
910 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3ef787ea8c | ||
|
|
5b9f0040e7 | ||
|
|
11f49ebfb2 | ||
|
|
cd44dc2147 | ||
|
|
f5b675e9ee | ||
|
|
38bb88bde1 | ||
|
|
0facb1bdc2 | ||
|
|
2d5e63005d | ||
|
|
793632089a | ||
|
|
c0bf5d0c64 | ||
|
|
77e605da6b | ||
|
|
b4060d5620 | ||
|
|
0f26551814 | ||
|
|
30e6fa9e32 | ||
|
|
10f63c914d | ||
|
|
0d8685aa80 | ||
|
|
4a8f19cc63 | ||
|
|
09f7657f5b | ||
|
|
a7201c183e | ||
|
|
1994bd766e | ||
|
|
f47c2eb468 | ||
|
|
05d9aa3e90 | ||
|
|
521b0d9ef7 | ||
|
|
259494a328 | ||
|
|
94074064c5 | ||
|
|
f60e28ddba | ||
|
|
822a0e5c61 | ||
|
|
6546026626 | ||
|
|
38fd1f6cc2 | ||
|
|
63cad6ace6 | ||
|
|
fcd6a80a07 | ||
|
|
bb8fd50763 | ||
|
|
cc6f203dd9 | ||
|
|
de9d98683a | ||
|
|
4133c8a543 | ||
|
|
6ee8a887e0 | ||
|
|
b13eea1e27 | ||
|
|
9fac01fb47 | ||
|
|
5edc9a5358 | ||
|
|
da1bf028ab | ||
|
|
7cedd85f2a | ||
|
|
2cb848f0d3 | ||
|
|
237e918f11 | ||
|
|
ab9c70262d | ||
|
|
c079b2cc32 | ||
|
|
1049e17a43 | ||
|
|
9cf3151a72 | ||
|
|
9483e5cb1f | ||
|
|
38f99e8381 | ||
|
|
16aa57fce4 | ||
|
|
bc3409e340 | ||
|
|
0aa588a9b4 | ||
|
|
ea92155b52 | ||
|
|
047be2308c | ||
|
|
7d0f670b83 | ||
|
|
5b3ebabcaf | ||
|
|
719eef3ff1 | ||
|
|
fe9f19d569 | ||
|
|
56f9b95b0d | ||
|
|
7b99fef2bc | ||
|
|
bd3ae9aaef | ||
|
|
a0634ef96e | ||
|
|
a918979236 | ||
|
|
3a7f64c8a5 | ||
|
|
77ca5f4ed5 | ||
|
|
171b65ac33 | ||
|
|
232c19cb04 | ||
|
|
ca51d739fb | ||
|
|
03f3024c66 | ||
|
|
aad7b16188 | ||
|
|
6cec171772 | ||
|
|
37745ec2ee | ||
|
|
998f927576 | ||
|
|
9f14dfc6c6 | ||
|
|
8750e94d10 | ||
|
|
52c0a5f88f | ||
|
|
6413414907 | ||
|
|
7f708b9e6f | ||
|
|
13d88d22a6 | ||
|
|
6bf4ebbe33 | ||
|
|
5a52b7623e | ||
|
|
89fc554ce5 | ||
|
|
a067d4c2e3 | ||
|
|
8fefd2a532 | ||
|
|
b278d66b2c | ||
|
|
709457cec2 | ||
|
|
9e259e1f8d | ||
|
|
3970855797 | ||
|
|
f612e1a30d | ||
|
|
ecb3b94b43 | ||
|
|
c5c20134df | ||
|
|
58f7a43ec3 | ||
|
|
efb04e26eb | ||
|
|
c52ea23ba2 | ||
|
|
d402a392c3 | ||
|
|
deb80956f3 | ||
|
|
4dcf2921d1 | ||
|
|
dd9c0b0500 | ||
|
|
22e76995c7 | ||
|
|
569d18a59d | ||
|
|
f10fd07481 | ||
|
|
370b5b4890 | ||
|
|
52afbea47a | ||
|
|
85e00f63d6 | ||
|
|
fc1cec9748 | ||
|
|
ad46da552c | ||
|
|
919f09283d | ||
|
|
8d99f030ce | ||
|
|
b4c4e86cbc | ||
|
|
dc057a2314 | ||
|
|
2568422085 | ||
|
|
c118c1c30f | ||
|
|
fc3d1244c0 | ||
|
|
518dc9ddad | ||
|
|
13b614e9d5 | ||
|
|
3b82e0bcdd | ||
|
|
ba9a8b8e59 | ||
|
|
dedcae7cd8 | ||
|
|
2c11525be5 | ||
|
|
ca382992f7 | ||
|
|
669e253809 | ||
|
|
26fab003ee | ||
|
|
697daec733 | ||
|
|
02a1d610df | ||
|
|
8d2797dc03 | ||
|
|
076bb40f2e | ||
|
|
530d1ce514 | ||
|
|
c717cbb42d | ||
|
|
282dd3da56 | ||
|
|
e0fd355dad | ||
|
|
db8131441e | ||
|
|
752683d347 | ||
|
|
9988a46d96 | ||
|
|
27b4fd2e32 | ||
|
|
8fc2bd3489 | ||
|
|
b78a3cdd88 | ||
|
|
2f5417f0ad | ||
|
|
33a28ec8f7 | ||
|
|
f0886bd089 | ||
|
|
39c7b04e5e | ||
|
|
3467d26b1c | ||
|
|
a00e679918 | ||
|
|
c0152e4f3d | ||
|
|
03a9163633 | ||
|
|
4687c33b0f | ||
|
|
de93528fad | ||
|
|
bb7da09b65 | ||
|
|
fe75a45627 | ||
|
|
aa85b2f166 | ||
|
|
e27896e681 | ||
|
|
b67b2856b1 | ||
|
|
52ed84d723 | ||
|
|
cdbea09e1a | ||
|
|
1cb794e516 | ||
|
|
43cb0fa7ab | ||
|
|
74e3f45aa9 | ||
|
|
97ea7cf6a0 | ||
|
|
f43b85096c | ||
|
|
d1b95c2f59 | ||
|
|
8bb08ae1a0 | ||
|
|
5732de60d0 | ||
|
|
b6e19b49ec | ||
|
|
7f1e38491f | ||
|
|
bc0288832e | ||
|
|
e70495c2b8 | ||
|
|
674a66449a | ||
|
|
efeb5489c3 | ||
|
|
8013d0b57e | ||
|
|
0a121b073c | ||
|
|
6af2e64e88 | ||
|
|
66125a80a9 | ||
|
|
55515093a2 | ||
|
|
aa2282ea04 | ||
|
|
1c41aacbac | ||
|
|
cb0d9612ef | ||
|
|
71143598be | ||
|
|
9c73e68528 | ||
|
|
8472e44215 | ||
|
|
2972dec85c | ||
|
|
838bd0fedc | ||
|
|
3028a00b6e | ||
|
|
ac6714de31 | ||
|
|
4deb90f4f5 | ||
|
|
4d58ee945c | ||
|
|
feb839103d | ||
|
|
1c25b5af3b | ||
|
|
375b2fdb1d | ||
|
|
40fb276023 | ||
|
|
6536bc4102 | ||
|
|
1a9e4d1d8d | ||
|
|
aad6f68ae5 | ||
|
|
473a441720 | ||
|
|
55ff148475 | ||
|
|
7f08f31286 | ||
|
|
8b099585c7 | ||
|
|
9c0be46006 | ||
|
|
f92e7e8096 | ||
|
|
4178b61828 | ||
|
|
d9e63a51f1 | ||
|
|
7dc493e613 | ||
|
|
5678ca7757 | ||
|
|
94ba857b78 | ||
|
|
e1ab4f0486 | ||
|
|
535ddbe0d2 | ||
|
|
8353830f97 | ||
|
|
10be484868 | ||
|
|
48b84cc941 | ||
|
|
fac8e59c02 | ||
|
|
87c9e1ce75 | ||
|
|
d40c9a6428 | ||
|
|
cb508d7a36 | ||
|
|
b8e7851234 | ||
|
|
08f69e3d3e | ||
|
|
c8ccb0609d | ||
|
|
663d679f3b | ||
|
|
b1832c9477 | ||
|
|
a858c1d6da | ||
|
|
d9ce7c1fc0 | ||
|
|
4f9d966beb | ||
|
|
b44ffc0101 | ||
|
|
8e14ab1935 | ||
|
|
0945df9ec8 | ||
|
|
ea60efe2fa | ||
|
|
97b9f0f00d | ||
|
|
4df6d963dc | ||
|
|
682ffbfc0d | ||
|
|
b606b38512 | ||
|
|
255371d367 | ||
|
|
3113b72d6f | ||
|
|
3899dcc0d4 | ||
|
|
b8335a532c | ||
|
|
cb16412f88 | ||
|
|
804cd10c71 | ||
|
|
4dff63a84e | ||
|
|
40ecd44ada | ||
|
|
b19a7eedfa | ||
|
|
9cb3f3d1ad | ||
|
|
f8da535d71 | ||
|
|
edaa5a7ff1 | ||
|
|
5be705e414 | ||
|
|
796b4f47c4 | ||
|
|
6b1f45c50c | ||
|
|
8778c26dcf | ||
|
|
41d1f4b0ac | ||
|
|
9c2481fd67 | ||
|
|
8520241dfe | ||
|
|
362868a342 | ||
|
|
d7206126e0 | ||
|
|
b22f381c0d | ||
|
|
ccc44dd00a | ||
|
|
2c2fea8783 | ||
|
|
4b4bd735a3 | ||
|
|
36019ebf1b | ||
|
|
fb152eb824 | ||
|
|
00e5dc1f91 | ||
|
|
eeda669c19 | ||
|
|
ebc61067e8 | ||
|
|
2c2936022c | ||
|
|
816c1160e9 | ||
|
|
bc766c3101 | ||
|
|
f132f748e3 | ||
|
|
ee65758e2b | ||
|
|
a01180955d | ||
|
|
b1ba972978 | ||
|
|
24247c24c9 | ||
|
|
dc7f09a711 | ||
|
|
b72a5850fe | ||
|
|
a351c826ee | ||
|
|
6223d10d84 | ||
|
|
bf33980426 | ||
|
|
a7606c0f14 | ||
|
|
7d9361c716 | ||
|
|
191f33213c | ||
|
|
65ecd5321d | ||
|
|
d2559d7025 | ||
|
|
f85944aafe | ||
|
|
34171efcef | ||
|
|
c8af730b14 | ||
|
|
a4b60aca7f | ||
|
|
2f25e2d575 | ||
|
|
7484eb521a | ||
|
|
2bf655e261 | ||
|
|
f6794685b6 | ||
|
|
333a76535b | ||
|
|
6d0b84ab5b | ||
|
|
497b5885e1 | ||
|
|
33c83a6162 | ||
|
|
f97c8e95a6 | ||
|
|
cfd99ad499 | ||
|
|
96712e1cdf | ||
|
|
2e55bdd3f2 | ||
|
|
eecb723663 | ||
|
|
1a21bdef01 | ||
|
|
f21eb71990 | ||
|
|
b471b5e6f3 | ||
|
|
489ced56ba | ||
|
|
6644f69a96 | ||
|
|
a177a1a6d1 | ||
|
|
c12b8c1763 | ||
|
|
d2ecf6560d | ||
|
|
7a5762fe6a | ||
|
|
9c0c1446ec | ||
|
|
82b8ce4295 | ||
|
|
2cf332db1b | ||
|
|
b1650f884d | ||
|
|
23bd645054 | ||
|
|
bef9c2cb59 | ||
|
|
4f81fc298f | ||
|
|
4a3234496e | ||
|
|
f92d81bbec | ||
|
|
69ee7a836e | ||
|
|
c883952b43 | ||
|
|
b9c1a1c7bb | ||
|
|
46bc65b1ce | ||
|
|
017e1c4c2f | ||
|
|
7562664fd1 | ||
|
|
976c9981a4 | ||
|
|
d3fc056743 | ||
|
|
58ce653908 | ||
|
|
82f8a13f83 | ||
|
|
0f1cbd74fe | ||
|
|
ec60c5b2fe | ||
|
|
e56d37db8c | ||
|
|
33e853e9c9 | ||
|
|
929fab5d98 | ||
|
|
56095f06d2 | ||
|
|
2632a0f52d | ||
|
|
4ab91fbadf | ||
|
|
5c0bedb410 | ||
|
|
d92798d5b0 | ||
|
|
ee922cbde9 | ||
|
|
1df24f1953 | ||
|
|
3033834d64 | ||
|
|
4b00078907 | ||
|
|
2d72f85790 | ||
|
|
855ac838b8 | ||
|
|
a8ec87e3c2 | ||
|
|
9d6c05ad5b | ||
|
|
3ef12cae3e | ||
|
|
8618d0a53e | ||
|
|
71e6b4da4a | ||
|
|
ad74334a85 | ||
|
|
8c3982d65b | ||
|
|
13dec1de05 | ||
|
|
d0a112c60f | ||
|
|
c84756b7f3 | ||
|
|
524affca79 | ||
|
|
32c6e7f40c | ||
|
|
9cf33e81cc | ||
|
|
254e9bbdf0 | ||
|
|
6757c90dbd | ||
|
|
f6264d4ef4 | ||
|
|
dd8dbf6344 | ||
|
|
bf8fb125ad | ||
|
|
2b92ab444d | ||
|
|
abe1b7085c | ||
|
|
bfaca2c449 | ||
|
|
78ed453e38 | ||
|
|
658ab2a38c | ||
|
|
2c41d3627e | ||
|
|
b55d00beed | ||
|
|
525eae7f7e | ||
|
|
ce7bed4823 | ||
|
|
61b0637a6d | ||
|
|
56deda7be3 | ||
|
|
525cdc17ec | ||
|
|
607760e72f | ||
|
|
c7ecdfb998 | ||
|
|
f444ccba3a | ||
|
|
3040d33c31 | ||
|
|
6cc61025cb | ||
|
|
c1034f1d9d | ||
|
|
cee4f26fac | ||
|
|
6f523ede22 | ||
|
|
68d1d3a0fc | ||
|
|
07077d0fc2 | ||
|
|
aeed11f735 | ||
|
|
12405c01e1 | ||
|
|
fc3b98ea09 | ||
|
|
6150f1e317 | ||
|
|
6fca5d83b2 | ||
|
|
465acd9024 | ||
|
|
04fc3fd1ba | ||
|
|
24d76b5d92 | ||
|
|
0f7d04b12b | ||
|
|
9402ebd00a | ||
|
|
d410d188fc | ||
|
|
686c91f94e | ||
|
|
22036732d8 | ||
|
|
c78f8423f6 | ||
|
|
76cca34293 | ||
|
|
9a1e3037b0 | ||
|
|
f14a47ea7d | ||
|
|
36d97235ad | ||
|
|
4afbd87abb | ||
|
|
b562438df9 | ||
|
|
9111699cd2 | ||
|
|
0049b1cdc2 | ||
|
|
3e883fa32c | ||
|
|
baeb829ed4 | ||
|
|
236bcb3987 | ||
|
|
6c3d698959 | ||
|
|
4d806672d6 | ||
|
|
1c7b09d947 | ||
|
|
3963c2ef10 | ||
|
|
84e1a69edc | ||
|
|
6f22393106 | ||
|
|
5a39f63d1e | ||
|
|
964b1418a3 | ||
|
|
cad12bd2c8 | ||
|
|
8d552e6d11 | ||
|
|
ad3bb1a5fe | ||
|
|
a998d13b73 | ||
|
|
418950ad07 | ||
|
|
952e2bb5f8 | ||
|
|
56085f9323 | ||
|
|
dadda123f0 | ||
|
|
b4e1c07817 | ||
|
|
bb21eedabc | ||
|
|
f65bf6ccb7 | ||
|
|
a0ca101aa4 | ||
|
|
bf5ae42085 | ||
|
|
33df8976ca | ||
|
|
41a9fc8859 | ||
|
|
71a20eb787 | ||
|
|
798015b537 | ||
|
|
42086045cf | ||
|
|
bf6d9e8baf | ||
|
|
694de562cc | ||
|
|
45d5176d07 | ||
|
|
537f349f1b | ||
|
|
15139c1e0f | ||
|
|
f205fa3b58 | ||
|
|
4767d77ab5 | ||
|
|
c88d00d452 | ||
|
|
cf8b67e187 | ||
|
|
7c4294b163 | ||
|
|
2f58f4b9f0 | ||
|
|
7777e145d9 | ||
|
|
7e568c1201 | ||
|
|
f4fcd82920 | ||
|
|
3dcbb6e3a9 | ||
|
|
392f8b7dfa | ||
|
|
24b6d31471 | ||
|
|
960e4c0a32 | ||
|
|
df15b8e2a2 | ||
|
|
161a415274 | ||
|
|
e20d79e78b | ||
|
|
a26ee578ae | ||
|
|
d471a6fa42 | ||
|
|
bcd3f8468a | ||
|
|
d79d99f0a9 | ||
|
|
57c54d3f0a | ||
|
|
e976080cbf | ||
|
|
f438a10c7c | ||
|
|
3c4081d30f | ||
|
|
392dbf20c4 | ||
|
|
d068e1c040 | ||
|
|
0369d2a50e | ||
|
|
de2cdc633d | ||
|
|
891736ffc8 | ||
|
|
02015e512a | ||
|
|
3110452c3f | ||
|
|
c4638a936e | ||
|
|
2a7c2e9398 | ||
|
|
e6d6f3cdee | ||
|
|
598148ca67 | ||
|
|
b40b41cf50 | ||
|
|
1f3d9b5fdd | ||
|
|
f7fe48bd6a | ||
|
|
d6136cb22f | ||
|
|
dafab39483 | ||
|
|
09274437fc | ||
|
|
5f1fc6b445 | ||
|
|
779e1f8afd | ||
|
|
177dcadd8c | ||
|
|
ba861cd165 | ||
|
|
926836e0fc | ||
|
|
af88930ffc | ||
|
|
89f5f9c0b9 | ||
|
|
9809b1a4ab | ||
|
|
7b536b578d | ||
|
|
7522eb3f9d | ||
|
|
d550634d8e | ||
|
|
72cb885eb7 | ||
|
|
a877af5575 | ||
|
|
2508d926c0 | ||
|
|
9f123e013a | ||
|
|
60bd9dc849 | ||
|
|
e77d99abd2 | ||
|
|
eb030dab19 | ||
|
|
be06a23fd7 | ||
|
|
d4d3139d5f | ||
|
|
65f8787b48 | ||
|
|
9786e588b7 | ||
|
|
0ac76c8c7e | ||
|
|
79328aa38d | ||
|
|
f7903192a8 | ||
|
|
115b4335d9 | ||
|
|
37e87c78a0 | ||
|
|
14a574a6a8 | ||
|
|
dbd1437aea | ||
|
|
317ae4dad9 | ||
|
|
8e9d25e9be | ||
|
|
c59be99dc4 | ||
|
|
15a5630047 | ||
|
|
f3ada747cf | ||
|
|
cbc8ab020c | ||
|
|
e0e62f6757 | ||
|
|
6c22085214 | ||
|
|
02c1549f80 | ||
|
|
ab14090813 | ||
|
|
546e9d6617 | ||
|
|
33a07969c3 | ||
|
|
8de5db7a3e | ||
|
|
ea90d02c41 | ||
|
|
3e85f46465 | ||
|
|
015440838a | ||
|
|
7050a3151c | ||
|
|
9e84f46e56 | ||
|
|
5e32de1f3f | ||
|
|
5558b24475 | ||
|
|
f892b9e1cb | ||
|
|
a66af9b7f5 | ||
|
|
a5fdd53a3e | ||
|
|
ed0fa8fffe | ||
|
|
098380a46f | ||
|
|
74f7e508a4 | ||
|
|
8130d98bcc | ||
|
|
315269d9a8 | ||
|
|
71c2c63d55 | ||
|
|
b37a9516d0 | ||
|
|
b009773d5c | ||
|
|
a8514da3e8 | ||
|
|
9d4e8e9eb9 | ||
|
|
f3c77e2f4f | ||
|
|
ecec4bc5e0 | ||
|
|
900bc2ed68 | ||
|
|
03c7021270 | ||
|
|
a97374ded0 | ||
|
|
6b58824a39 | ||
|
|
b291a6efb0 | ||
|
|
3b000fce4d | ||
|
|
c59595d065 | ||
|
|
1c16a68df2 | ||
|
|
39bf3e4d9a | ||
|
|
045696641a | ||
|
|
41690cd1d4 | ||
|
|
e45c469709 | ||
|
|
8c9e586662 | ||
|
|
ce844c6259 | ||
|
|
84b46cd1b9 | ||
|
|
0cca67fcd2 | ||
|
|
66fc4c292d | ||
|
|
2baae57b26 | ||
|
|
514b0548fe | ||
|
|
be7db635cc | ||
|
|
a945077b8d | ||
|
|
7b55522213 | ||
|
|
7ca792509b | ||
|
|
4522fb4c44 | ||
|
|
36ff7e6505 | ||
|
|
defb1870da | ||
|
|
b61f04c898 | ||
|
|
64745162df | ||
|
|
97df98b9a0 | ||
|
|
36383b411f | ||
|
|
3e476c2ba6 | ||
|
|
654a00aac9 | ||
|
|
4690d13f88 | ||
|
|
e7bb98de42 | ||
|
|
d4f5c75519 | ||
|
|
09f57a87fa | ||
|
|
b702fcbbc0 | ||
|
|
2c1de4202e | ||
|
|
e65660ffc3 | ||
|
|
f7ae5781b7 | ||
|
|
d09552fc63 | ||
|
|
ed5dbf197f | ||
|
|
df4d7fa062 | ||
|
|
b4ecd14ffa | ||
|
|
26fde7cfda | ||
|
|
8abc812c57 | ||
|
|
940714df0a | ||
|
|
f393ae9825 | ||
|
|
97dee3e4bf | ||
|
|
aec568949c | ||
|
|
ed9044345b | ||
|
|
058ee510a7 | ||
|
|
e91aca54ee | ||
|
|
9c87fdd5bb | ||
|
|
301a556110 | ||
|
|
bb9ec8e638 | ||
|
|
e83d2c777d | ||
|
|
68809bdacb | ||
|
|
3cc545243b | ||
|
|
9ef389baba | ||
|
|
426ac8ab2e | ||
|
|
4de1b6b6c3 | ||
|
|
199c63901f | ||
|
|
369ed643d7 | ||
|
|
6c947cc8d8 | ||
|
|
07d506feb5 | ||
|
|
0124a0f32e | ||
|
|
e7936c3fd0 | ||
|
|
583d556677 | ||
|
|
72ed39d8a1 | ||
|
|
7c4c1edd85 | ||
|
|
5846a38c68 | ||
|
|
89f4b0b38a | ||
|
|
af2b14e9be | ||
|
|
719ba762bc | ||
|
|
d4cce17f66 | ||
|
|
47e5f7c2e2 | ||
|
|
ec782979f0 | ||
|
|
2ab6e6590f | ||
|
|
15e5572a1d | ||
|
|
cde400f466 | ||
|
|
ba8144da89 | ||
|
|
4dc4887134 | ||
|
|
14ebde575f | ||
|
|
337e192abd | ||
|
|
efe4edc3b1 | ||
|
|
0037a3f484 | ||
|
|
a6be9bea31 | ||
|
|
e71ebbce1e | ||
|
|
4c62cab033 | ||
|
|
80b2544396 | ||
|
|
78638a9a37 | ||
|
|
5333409080 | ||
|
|
08b2a0ae55 | ||
|
|
b06f2b9f89 | ||
|
|
9e0db01b6e | ||
|
|
917f271d74 | ||
|
|
00fe1bb5a9 | ||
|
|
5499d157ab | ||
|
|
83dcb4a2f5 | ||
|
|
8374777206 | ||
|
|
a172e4cb6e | ||
|
|
265534c5ad | ||
|
|
5042c76558 | ||
|
|
e81c3b3c8d | ||
|
|
75df2999f4 | ||
|
|
23e0c5c83c | ||
|
|
3ee225f624 | ||
|
|
12b823e4c2 | ||
|
|
f430138895 | ||
|
|
7fa0cc5e70 | ||
|
|
e3b456c4c8 | ||
|
|
e04175b51e | ||
|
|
cc75a22e45 | ||
|
|
b2f749ef41 | ||
|
|
de1db34b08 | ||
|
|
aa599b8af1 | ||
|
|
09cf4f6cc4 | ||
|
|
321edbc62e | ||
|
|
fadd250a98 | ||
|
|
9ff9c9fd8d | ||
|
|
45f04abd38 | ||
|
|
1c0e7d14d5 | ||
|
|
55555eb39e | ||
|
|
6f3e450cd8 | ||
|
|
8bbacd4adb | ||
|
|
6a3e81f813 | ||
|
|
eb3c63fe0f | ||
|
|
68eba52a40 | ||
|
|
721ecc9bec | ||
|
|
df3e4930cc | ||
|
|
f3d55cff84 | ||
|
|
c6051a0b8a | ||
|
|
04cb5f00d4 | ||
|
|
e924a73625 | ||
|
|
e642acaea4 | ||
|
|
f1ddf33ac4 | ||
|
|
f1063321c6 | ||
|
|
62f20c601c | ||
|
|
26645103a6 | ||
|
|
a4b86f7571 | ||
|
|
adc1417b0f | ||
|
|
c4698b623b | ||
|
|
2c373aa47a | ||
|
|
a0faa222c8 | ||
|
|
2b2f5a7c2a | ||
|
|
c7b61f4bfd | ||
|
|
bc101a4578 | ||
|
|
9319f0425e | ||
|
|
8b09559690 | ||
|
|
5d764e8364 | ||
|
|
1db65aa6aa | ||
|
|
318b76de50 | ||
|
|
a85fdd4051 | ||
|
|
92621bca7d | ||
|
|
9348c45f9e | ||
|
|
ad746ce35d | ||
|
|
14ac43ba41 | ||
|
|
0857f83de8 | ||
|
|
18236f27d6 | ||
|
|
974347c758 | ||
|
|
e9aed2da44 | ||
|
|
ecf1757672 | ||
|
|
ceba130e52 | ||
|
|
494cdede53 | ||
|
|
bc896086f1 | ||
|
|
dceb903804 | ||
|
|
39b33ebd22 | ||
|
|
ef05d4846a | ||
|
|
026aa69aad | ||
|
|
ebf53e10b3 | ||
|
|
713af3c314 | ||
|
|
33652bf143 | ||
|
|
cef4e8f495 | ||
|
|
86aaf2daed | ||
|
|
c65b0fbb62 | ||
|
|
385d17c83c | ||
|
|
1a84b4b23c | ||
|
|
b03bba37ce | ||
|
|
2d89075106 | ||
|
|
a810b1bd1a | ||
|
|
5243137f25 | ||
|
|
8c4f348ac1 | ||
|
|
0e49e79610 | ||
|
|
93e41567d9 | ||
|
|
da60d35bc1 | ||
|
|
84b61bcd20 | ||
|
|
0672bfc6aa | ||
|
|
d682f5a164 | ||
|
|
895bcbef00 | ||
|
|
90f06521a2 | ||
|
|
d92d6f57db | ||
|
|
f9c9cd3b61 | ||
|
|
f4b16080da | ||
|
|
7c2fd502c8 | ||
|
|
5eccac5524 | ||
|
|
ee9f83929a | ||
|
|
3bdb1d9f3f | ||
|
|
0e5f7cee9a | ||
|
|
4cc15bab98 | ||
|
|
8d529599f1 | ||
|
|
406521c664 | ||
|
|
1a71b03195 | ||
|
|
f04e01d4a2 | ||
|
|
2d242b4732 | ||
|
|
84ec4611c4 | ||
|
|
2c1e1688e8 | ||
|
|
3f67cf2f5f | ||
|
|
505b956bfd | ||
|
|
0bebcf93b3 | ||
|
|
826c3a6102 | ||
|
|
e83e1cd8e3 | ||
|
|
aa08257d98 | ||
|
|
64171ec062 | ||
|
|
7c0f0a4627 | ||
|
|
219ad02e4a | ||
|
|
6f1970a0bd | ||
|
|
60b8d8fad2 | ||
|
|
2aa30cdbb2 | ||
|
|
d7d2c145c7 | ||
|
|
caee341af9 | ||
|
|
dc8fdc2dc8 | ||
|
|
6a3ff650f1 | ||
|
|
8784f39755 | ||
|
|
fbacd0b0df | ||
|
|
db9d97bcbd | ||
|
|
537332725b | ||
|
|
65ccbb62ca | ||
|
|
5659c869b5 | ||
|
|
d8bf98a88d | ||
|
|
e482072520 | ||
|
|
aaa6df9653 | ||
|
|
8c3e9db3bf | ||
|
|
d1d5c82a8e | ||
|
|
0889635e66 | ||
|
|
2825bb1247 | ||
|
|
3a0ae75bfb | ||
|
|
312703260c | ||
|
|
919ba00198 | ||
|
|
4e869cb11a | ||
|
|
32c933c960 | ||
|
|
46ba4d57e9 | ||
|
|
692fd34697 | ||
|
|
2f043ef682 | ||
|
|
d90cc16786 | ||
|
|
5fc1d0b939 | ||
|
|
fb9bc613a5 | ||
|
|
ebd99bc11b | ||
|
|
286ad553fd | ||
|
|
a39185c8be | ||
|
|
e29488d91f | ||
|
|
95fba17d20 | ||
|
|
7c13281d34 | ||
|
|
8bd155b9f5 | ||
|
|
f6e4714ba0 | ||
|
|
919bda2355 | ||
|
|
1414bcb1b2 | ||
|
|
ec47ecfd16 | ||
|
|
c5f7582470 | ||
|
|
87d4998b9d | ||
|
|
10e56aa67c | ||
|
|
cc686c6621 | ||
|
|
b1688b9633 | ||
|
|
8b49d5d0fb | ||
|
|
66688dffa3 | ||
|
|
b18ef208cb | ||
|
|
5828e58f84 | ||
|
|
dd57e9d444 | ||
|
|
558e682865 | ||
|
|
c5e0c1840b | ||
|
|
63bc6b495d | ||
|
|
70b3db27db | ||
|
|
6e94588615 | ||
|
|
ad9c93c13b | ||
|
|
f979b64338 | ||
|
|
b1591282f6 | ||
|
|
70413f5214 | ||
|
|
856680e3bc | ||
|
|
60b015a094 | ||
|
|
0c2b367ba0 | ||
|
|
6b8b1a8b93 | ||
|
|
0e6f513c14 | ||
|
|
6f81f7d6a0 | ||
|
|
c875bd0f30 | ||
|
|
736e282562 | ||
|
|
542751fcd1 | ||
|
|
6c83e9ff66 | ||
|
|
a55448057b | ||
|
|
88cded5c4d | ||
|
|
0ad2f169d2 | ||
|
|
fa3171ca6e | ||
|
|
117ec67e47 | ||
|
|
5bd7027526 | ||
|
|
ec7d87f121 | ||
|
|
85e5eedef8 | ||
|
|
0a5b1ac538 | ||
|
|
eaf4caa231 | ||
|
|
c29e419b4f | ||
|
|
af3cf934e5 | ||
|
|
5787bb5537 | ||
|
|
0c419e5198 | ||
|
|
d605d1e008 | ||
|
|
57024454bf | ||
|
|
1ae6b55c87 | ||
|
|
bfeb40cebc | ||
|
|
22b7098edb | ||
|
|
38ad8b0bac | ||
|
|
445902f2f0 | ||
|
|
20f6c9dede | ||
|
|
4cb63ed6f1 | ||
|
|
020fd27352 | ||
|
|
60ee3a75b5 | ||
|
|
b1858498d4 | ||
|
|
4b66f216e9 | ||
|
|
5c9d9a40ac | ||
|
|
ee6b83c1dd | ||
|
|
b31ca19962 | ||
|
|
15917c2094 | ||
|
|
f89361cd3d | ||
|
|
fe4de3ca45 | ||
|
|
0f0e19da33 | ||
|
|
21b3dbf904 | ||
|
|
708e887022 | ||
|
|
73a9af70a4 | ||
|
|
78e6c9953c | ||
|
|
e21820fb92 | ||
|
|
51705217d4 | ||
|
|
e979ef0c7c | ||
|
|
5d1a174a95 | ||
|
|
f13eb86c0f | ||
|
|
6e2af26867 | ||
|
|
24ba30444e | ||
|
|
584175351a | ||
|
|
167038ca3c | ||
|
|
9140e9b009 | ||
|
|
fc8eb0434a | ||
|
|
fd61b8742d | ||
|
|
4591cf7df6 | ||
|
|
03ee3401e7 | ||
|
|
4b98c20f5d | ||
|
|
e566e90708 | ||
|
|
a3b6e4455a | ||
|
|
3259b845ed | ||
|
|
9d01e9d7b6 | ||
|
|
e786a9df64 | ||
|
|
51b8459122 | ||
|
|
fa56dbd8b0 | ||
|
|
793e5176ef | ||
|
|
29eb082e2a | ||
|
|
7176d2dea3 | ||
|
|
6cade67360 | ||
|
|
c106281eff | ||
|
|
74ccf93512 | ||
|
|
decccc4e95 | ||
|
|
23c6bf1b71 | ||
|
|
36fbb85c65 | ||
|
|
f077e90a24 | ||
|
|
f88f6c8c05 | ||
|
|
fd517699a4 | ||
|
|
b4833cb7ea | ||
|
|
2fc7ebeebe | ||
|
|
b4b31f167c | ||
|
|
f3fb55d183 | ||
|
|
54c7f9c19b | ||
|
|
81fea96e42 | ||
|
|
b5b02b3961 | ||
|
|
c3ff114c5f | ||
|
|
5ee736b677 | ||
|
|
704e272a00 | ||
|
|
f755bcfb43 | ||
|
|
c96f6e1a1b | ||
|
|
dc6556d102 | ||
|
|
084d111d68 |
75
.devcontainer/devcontainer.json
Normal file
75
.devcontainer/devcontainer.json
Normal file
@@ -0,0 +1,75 @@
|
|||||||
|
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
|
||||||
|
// README at: https://github.com/devcontainers/templates/tree/main/src/python
|
||||||
|
{
|
||||||
|
"name": "SpecKitDevContainer",
|
||||||
|
// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
|
||||||
|
"image": "mcr.microsoft.com/devcontainers/python:3.13-trixie", // based on Debian "Trixie" (13)
|
||||||
|
"features": {
|
||||||
|
"ghcr.io/devcontainers/features/common-utils:2": {
|
||||||
|
"installZsh": true,
|
||||||
|
"installOhMyZsh": true,
|
||||||
|
"installOhMyZshConfig": true,
|
||||||
|
"upgradePackages": true,
|
||||||
|
"username": "devcontainer",
|
||||||
|
"userUid": "automatic",
|
||||||
|
"userGid": "automatic"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/dotnet:2": {
|
||||||
|
"version": "lts"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/git:1": {
|
||||||
|
"ppa": true,
|
||||||
|
"version": "latest"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/node": {
|
||||||
|
"version": "lts"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
// Use 'forwardPorts' to make a list of ports inside the container available locally.
|
||||||
|
"forwardPorts": [
|
||||||
|
8080 // for Spec-Kit documentation site
|
||||||
|
],
|
||||||
|
"containerUser": "devcontainer",
|
||||||
|
"updateRemoteUserUID": true,
|
||||||
|
"postCreateCommand": "chmod +x ./.devcontainer/post-create.sh && ./.devcontainer/post-create.sh",
|
||||||
|
"postStartCommand": "git config --global --add safe.directory ${containerWorkspaceFolder}",
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
"mhutchie.git-graph",
|
||||||
|
"eamodio.gitlens",
|
||||||
|
"anweber.reveal-button",
|
||||||
|
"chrisdias.promptboost",
|
||||||
|
// Github Copilot
|
||||||
|
"GitHub.copilot",
|
||||||
|
"GitHub.copilot-chat",
|
||||||
|
// Codex
|
||||||
|
"openai.chatgpt",
|
||||||
|
// Kilo Code
|
||||||
|
"kilocode.Kilo-Code",
|
||||||
|
// Roo Code
|
||||||
|
"RooVeterinaryInc.roo-cline",
|
||||||
|
// Claude Code
|
||||||
|
"anthropic.claude-code"
|
||||||
|
],
|
||||||
|
"settings": {
|
||||||
|
"debug.javascript.autoAttachFilter": "disabled", // fix running commands in integrated terminal
|
||||||
|
|
||||||
|
// Specify settings for Github Copilot
|
||||||
|
"git.autofetch": true,
|
||||||
|
"chat.promptFilesRecommendations": {
|
||||||
|
"speckit.constitution": true,
|
||||||
|
"speckit.specify": true,
|
||||||
|
"speckit.plan": true,
|
||||||
|
"speckit.tasks": true,
|
||||||
|
"speckit.implement": true
|
||||||
|
},
|
||||||
|
"chat.tools.terminal.autoApprove": {
|
||||||
|
".specify/scripts/bash/": true,
|
||||||
|
".specify/scripts/powershell/": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
114
.devcontainer/post-create.sh
Executable file
114
.devcontainer/post-create.sh
Executable file
@@ -0,0 +1,114 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Exit immediately on error, treat unset variables as an error, and fail if any command in a pipeline fails.
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
# Function to run a command and show logs only on error
|
||||||
|
run_command() {
|
||||||
|
local command_to_run="$*"
|
||||||
|
local output
|
||||||
|
local exit_code
|
||||||
|
|
||||||
|
# Capture all output (stdout and stderr)
|
||||||
|
output=$(eval "$command_to_run" 2>&1) || exit_code=$?
|
||||||
|
exit_code=${exit_code:-0}
|
||||||
|
|
||||||
|
if [ $exit_code -ne 0 ]; then
|
||||||
|
echo -e "\033[0;31m[ERROR] Command failed (Exit Code $exit_code): $command_to_run\033[0m" >&2
|
||||||
|
echo -e "\033[0;31m$output\033[0m" >&2
|
||||||
|
|
||||||
|
exit $exit_code
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
# Installing CLI-based AI Agents
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Copilot CLI..."
|
||||||
|
run_command "npm install -g @github/copilot@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Claude CLI..."
|
||||||
|
run_command "npm install -g @anthropic-ai/claude-code@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Codex CLI..."
|
||||||
|
run_command "npm install -g @openai/codex@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Gemini CLI..."
|
||||||
|
run_command "npm install -g @google/gemini-cli@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Augie CLI..."
|
||||||
|
run_command "npm install -g @augmentcode/auggie@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Qwen Code CLI..."
|
||||||
|
run_command "npm install -g @qwen-code/qwen-code@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing OpenCode CLI..."
|
||||||
|
run_command "npm install -g opencode-ai@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Junie CLI..."
|
||||||
|
run_command "npm install -g @jetbrains/junie-cli@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Pi Coding Agent..."
|
||||||
|
run_command "npm install -g @mariozechner/pi-coding-agent@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Kiro CLI..."
|
||||||
|
# https://kiro.dev/docs/cli/
|
||||||
|
KIRO_INSTALLER_URL="https://kiro.dev/install.sh"
|
||||||
|
KIRO_INSTALLER_SHA256="7487a65cf310b7fb59b357c4b5e6e3f3259d383f4394ecedb39acf70f307cffb"
|
||||||
|
KIRO_INSTALLER_PATH="$(mktemp)"
|
||||||
|
|
||||||
|
cleanup_kiro_installer() {
|
||||||
|
rm -f "$KIRO_INSTALLER_PATH"
|
||||||
|
}
|
||||||
|
trap cleanup_kiro_installer EXIT
|
||||||
|
|
||||||
|
run_command "curl -fsSL \"$KIRO_INSTALLER_URL\" -o \"$KIRO_INSTALLER_PATH\""
|
||||||
|
run_command "echo \"$KIRO_INSTALLER_SHA256 $KIRO_INSTALLER_PATH\" | sha256sum -c -"
|
||||||
|
|
||||||
|
run_command "bash \"$KIRO_INSTALLER_PATH\""
|
||||||
|
|
||||||
|
kiro_binary=""
|
||||||
|
if command -v kiro-cli >/dev/null 2>&1; then
|
||||||
|
kiro_binary="kiro-cli"
|
||||||
|
elif command -v kiro >/dev/null 2>&1; then
|
||||||
|
kiro_binary="kiro"
|
||||||
|
else
|
||||||
|
echo -e "\033[0;31m[ERROR] Kiro CLI installation did not create 'kiro-cli' or 'kiro' in PATH.\033[0m" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
run_command "$kiro_binary --help > /dev/null"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing Kimi CLI..."
|
||||||
|
# https://code.kimi.com
|
||||||
|
run_command "pipx install kimi-cli"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing CodeBuddy CLI..."
|
||||||
|
run_command "npm install -g @tencent-ai/codebuddy-code@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
# Installing UV (Python package manager)
|
||||||
|
echo -e "\n🐍 Installing UV - Python Package Manager..."
|
||||||
|
run_command "pipx install uv"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
# Installing DocFx (for documentation site)
|
||||||
|
echo -e "\n📚 Installing DocFx..."
|
||||||
|
run_command "dotnet tool update -g docfx"
|
||||||
|
echo "✅ Done"
|
||||||
|
|
||||||
|
echo -e "\n🧹 Cleaning cache..."
|
||||||
|
run_command "sudo apt-get autoclean"
|
||||||
|
run_command "sudo apt-get clean"
|
||||||
|
|
||||||
|
echo "✅ Setup completed. Happy coding! 🚀"
|
||||||
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
* text=auto eol=lf
|
||||||
8
.github/CODEOWNERS
vendored
8
.github/CODEOWNERS
vendored
@@ -1,2 +1,8 @@
|
|||||||
# Global code owner
|
# Global code owner
|
||||||
* @localden
|
* @mnriem
|
||||||
|
|
||||||
|
# Community catalog files — explicit ownership for when global ownership expands
|
||||||
|
/extensions/catalog.community.json @mnriem
|
||||||
|
/integrations/catalog.community.json @mnriem
|
||||||
|
/presets/catalog.community.json @mnriem
|
||||||
|
|
||||||
|
|||||||
141
.github/ISSUE_TEMPLATE/agent_request.yml
vendored
Normal file
141
.github/ISSUE_TEMPLATE/agent_request.yml
vendored
Normal file
@@ -0,0 +1,141 @@
|
|||||||
|
name: Agent Request
|
||||||
|
description: Request support for a new AI agent/assistant in Spec Kit
|
||||||
|
title: "[Agent]: Add support for "
|
||||||
|
labels: ["agent-request", "enhancement", "needs-triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for requesting a new agent! Before submitting, please check if the agent is already supported.
|
||||||
|
|
||||||
|
**Currently supported agents**: Claude Code, Gemini CLI, GitHub Copilot, Cursor, Qwen Code, opencode, Codex CLI, Windsurf, Kilo Code, Auggie CLI, Roo Code, CodeBuddy, Qoder CLI, Kiro CLI, Amp, SHAI, Tabnine CLI, Antigravity, IBM Bob, Mistral Vibe, Kimi Code, Trae, Pi Coding Agent, iFlow CLI, Devin for Terminal
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: agent-name
|
||||||
|
attributes:
|
||||||
|
label: Agent Name
|
||||||
|
description: What is the name of the AI agent/assistant?
|
||||||
|
placeholder: "e.g., SuperCoder AI"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: website
|
||||||
|
attributes:
|
||||||
|
label: Official Website
|
||||||
|
description: Link to the agent's official website or documentation
|
||||||
|
placeholder: "https://..."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: agent-type
|
||||||
|
attributes:
|
||||||
|
label: Agent Type
|
||||||
|
description: How is the agent accessed?
|
||||||
|
options:
|
||||||
|
- CLI tool (command-line interface)
|
||||||
|
- IDE extension/plugin
|
||||||
|
- Both CLI and IDE
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: cli-command
|
||||||
|
attributes:
|
||||||
|
label: CLI Command (if applicable)
|
||||||
|
description: What command is used to invoke the agent from terminal?
|
||||||
|
placeholder: "e.g., supercode, ai-assistant"
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: install-method
|
||||||
|
attributes:
|
||||||
|
label: Installation Method
|
||||||
|
description: How is the agent installed?
|
||||||
|
placeholder: "e.g., npm install -g supercode, pip install supercode, IDE marketplace"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: command-structure
|
||||||
|
attributes:
|
||||||
|
label: Command/Workflow Structure
|
||||||
|
description: How does the agent define custom commands or workflows?
|
||||||
|
placeholder: |
|
||||||
|
- Command file format (Markdown, YAML, TOML, etc.)
|
||||||
|
- Directory location (e.g., .supercode/commands/)
|
||||||
|
- Example command file structure
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: argument-pattern
|
||||||
|
attributes:
|
||||||
|
label: Argument Passing Pattern
|
||||||
|
description: How does the agent handle arguments in commands?
|
||||||
|
placeholder: |
|
||||||
|
e.g., Uses {{args}}, $ARGUMENTS, %ARGS%, or other placeholder format
|
||||||
|
Example: "Run test suite with {{args}}"
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: popularity
|
||||||
|
attributes:
|
||||||
|
label: Popularity/Usage
|
||||||
|
description: How widely is this agent used?
|
||||||
|
options:
|
||||||
|
- Widely used (thousands+ of users)
|
||||||
|
- Growing adoption (hundreds of users)
|
||||||
|
- New/emerging (less than 100 users)
|
||||||
|
- Unknown
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: documentation
|
||||||
|
attributes:
|
||||||
|
label: Documentation Links
|
||||||
|
description: Links to relevant documentation for custom commands/workflows
|
||||||
|
placeholder: |
|
||||||
|
- Command documentation: https://...
|
||||||
|
- API/CLI reference: https://...
|
||||||
|
- Examples: https://...
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: use-case
|
||||||
|
attributes:
|
||||||
|
label: Use Case
|
||||||
|
description: Why do you want this agent supported in Spec Kit?
|
||||||
|
placeholder: Explain your workflow and how this agent fits into your development process
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: example-command
|
||||||
|
attributes:
|
||||||
|
label: Example Command File
|
||||||
|
description: If possible, provide an example of a command file for this agent
|
||||||
|
render: markdown
|
||||||
|
placeholder: |
|
||||||
|
```toml
|
||||||
|
description = "Example command"
|
||||||
|
prompt = "Do something with {{args}}"
|
||||||
|
```
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: contribution
|
||||||
|
attributes:
|
||||||
|
label: Contribution
|
||||||
|
description: Are you willing to help implement support for this agent?
|
||||||
|
options:
|
||||||
|
- label: I can help test the integration
|
||||||
|
- label: I can provide example command files
|
||||||
|
- label: I can help with documentation
|
||||||
|
- label: I can submit a pull request for the integration
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: context
|
||||||
|
attributes:
|
||||||
|
label: Additional Context
|
||||||
|
description: Any other relevant information about this agent
|
||||||
|
placeholder: Screenshots, community links, comparison to existing agents, etc.
|
||||||
118
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
118
.github/ISSUE_TEMPLATE/bug_report.yml
vendored
Normal file
@@ -0,0 +1,118 @@
|
|||||||
|
name: Bug Report
|
||||||
|
description: Report a bug or unexpected behavior in Specify CLI or Spec Kit
|
||||||
|
title: "[Bug]: "
|
||||||
|
labels: ["bug", "needs-triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for taking the time to report a bug! Please fill out the sections below to help us diagnose and fix the issue.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Bug Description
|
||||||
|
description: A clear and concise description of what the bug is.
|
||||||
|
placeholder: What went wrong?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: reproduce
|
||||||
|
attributes:
|
||||||
|
label: Steps to Reproduce
|
||||||
|
description: Steps to reproduce the behavior
|
||||||
|
placeholder: |
|
||||||
|
1. Run command '...'
|
||||||
|
2. Execute script '...'
|
||||||
|
3. See error
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: expected
|
||||||
|
attributes:
|
||||||
|
label: Expected Behavior
|
||||||
|
description: What did you expect to happen?
|
||||||
|
placeholder: Describe the expected outcome
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: actual
|
||||||
|
attributes:
|
||||||
|
label: Actual Behavior
|
||||||
|
description: What actually happened?
|
||||||
|
placeholder: Describe what happened instead
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Specify CLI Version
|
||||||
|
description: "Run `specify version` or `pip show spec-kit`"
|
||||||
|
placeholder: "e.g., 1.3.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: ai-agent
|
||||||
|
attributes:
|
||||||
|
label: AI Agent
|
||||||
|
description: Which AI agent are you using?
|
||||||
|
options:
|
||||||
|
- Claude Code
|
||||||
|
- Gemini CLI
|
||||||
|
- GitHub Copilot
|
||||||
|
- Cursor
|
||||||
|
- Qwen Code
|
||||||
|
- opencode
|
||||||
|
- Codex CLI
|
||||||
|
- Windsurf
|
||||||
|
- Kilo Code
|
||||||
|
- Auggie CLI
|
||||||
|
- Roo Code
|
||||||
|
- CodeBuddy
|
||||||
|
- Qoder CLI
|
||||||
|
- Kiro CLI
|
||||||
|
- Amp
|
||||||
|
- SHAI
|
||||||
|
- IBM Bob
|
||||||
|
- Antigravity
|
||||||
|
- Not applicable
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: os
|
||||||
|
attributes:
|
||||||
|
label: Operating System
|
||||||
|
description: Your operating system and version
|
||||||
|
placeholder: "e.g., macOS 14.2, Ubuntu 22.04, Windows 11"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: python
|
||||||
|
attributes:
|
||||||
|
label: Python Version
|
||||||
|
description: "Run `python --version` or `python3 --version`"
|
||||||
|
placeholder: "e.g., Python 3.11.5"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: logs
|
||||||
|
attributes:
|
||||||
|
label: Error Logs
|
||||||
|
description: Please paste any relevant error messages or logs
|
||||||
|
render: shell
|
||||||
|
placeholder: Paste error output here
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: context
|
||||||
|
attributes:
|
||||||
|
label: Additional Context
|
||||||
|
description: Add any other context about the problem
|
||||||
|
placeholder: Screenshots, related issues, workarounds attempted, etc.
|
||||||
17
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
17
.github/ISSUE_TEMPLATE/config.yml
vendored
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: 💬 General Discussion
|
||||||
|
url: https://github.com/github/spec-kit/discussions
|
||||||
|
about: Ask questions, share ideas, or discuss Spec-Driven Development
|
||||||
|
- name: 📖 Documentation
|
||||||
|
url: https://github.com/github/spec-kit/blob/main/README.md
|
||||||
|
about: Read the Spec Kit documentation and guides
|
||||||
|
- name: 🛠️ Extension Development Guide
|
||||||
|
url: https://github.com/github/spec-kit/blob/main/extensions/EXTENSION-DEVELOPMENT-GUIDE.md
|
||||||
|
about: Learn how to develop and publish Spec Kit extensions
|
||||||
|
- name: 🤝 Contributing Guide
|
||||||
|
url: https://github.com/github/spec-kit/blob/main/CONTRIBUTING.md
|
||||||
|
about: Learn how to contribute to Spec Kit
|
||||||
|
- name: 🔒 Security Issues
|
||||||
|
url: https://github.com/github/spec-kit/blob/main/SECURITY.md
|
||||||
|
about: Report security vulnerabilities privately
|
||||||
280
.github/ISSUE_TEMPLATE/extension_submission.yml
vendored
Normal file
280
.github/ISSUE_TEMPLATE/extension_submission.yml
vendored
Normal file
@@ -0,0 +1,280 @@
|
|||||||
|
name: Extension Submission
|
||||||
|
description: Submit your extension to the Spec Kit catalog
|
||||||
|
title: "[Extension]: Add "
|
||||||
|
labels: ["extension-submission", "enhancement", "needs-triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for contributing an extension! This template helps you submit your extension to the community catalog.
|
||||||
|
|
||||||
|
**Before submitting:**
|
||||||
|
- Review the [Extension Publishing Guide](https://github.com/github/spec-kit/blob/main/extensions/EXTENSION-PUBLISHING-GUIDE.md)
|
||||||
|
- Ensure your extension has a valid `extension.yml` manifest
|
||||||
|
- Create a GitHub release with a version tag (e.g., v1.0.0)
|
||||||
|
- Test installation: `specify extension add <extension-name> --from <your-release-url>`
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: extension-id
|
||||||
|
attributes:
|
||||||
|
label: Extension ID
|
||||||
|
description: Unique extension identifier (lowercase with hyphens only)
|
||||||
|
placeholder: "e.g., jira-integration"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: extension-name
|
||||||
|
attributes:
|
||||||
|
label: Extension Name
|
||||||
|
description: Human-readable extension name
|
||||||
|
placeholder: "e.g., Jira Integration"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Semantic version number
|
||||||
|
placeholder: "e.g., 1.0.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: Brief description of what your extension does (under 200 characters)
|
||||||
|
placeholder: Integrates Jira issue tracking with Spec Kit workflows for seamless task management
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: author
|
||||||
|
attributes:
|
||||||
|
label: Author
|
||||||
|
description: Your name or organization
|
||||||
|
placeholder: "e.g., John Doe or Acme Corp"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: repository
|
||||||
|
attributes:
|
||||||
|
label: Repository URL
|
||||||
|
description: GitHub repository URL for your extension
|
||||||
|
placeholder: "https://github.com/your-org/spec-kit-your-extension"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: download-url
|
||||||
|
attributes:
|
||||||
|
label: Download URL
|
||||||
|
description: URL to the GitHub release archive (e.g., v1.0.0.zip)
|
||||||
|
placeholder: "https://github.com/your-org/spec-kit-your-extension/archive/refs/tags/v1.0.0.zip"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: license
|
||||||
|
attributes:
|
||||||
|
label: License
|
||||||
|
description: Open source license type
|
||||||
|
placeholder: "e.g., MIT, Apache-2.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: homepage
|
||||||
|
attributes:
|
||||||
|
label: Homepage (optional)
|
||||||
|
description: Link to extension homepage or documentation site
|
||||||
|
placeholder: "https://..."
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: documentation
|
||||||
|
attributes:
|
||||||
|
label: Documentation URL (optional)
|
||||||
|
description: Link to detailed documentation
|
||||||
|
placeholder: "https://github.com/your-org/spec-kit-your-extension/blob/main/docs/"
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: changelog
|
||||||
|
attributes:
|
||||||
|
label: Changelog URL (optional)
|
||||||
|
description: Link to changelog file
|
||||||
|
placeholder: "https://github.com/your-org/spec-kit-your-extension/blob/main/CHANGELOG.md"
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: speckit-version
|
||||||
|
attributes:
|
||||||
|
label: Required Spec Kit Version
|
||||||
|
description: Minimum Spec Kit version required
|
||||||
|
placeholder: "e.g., >=0.1.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: required-tools
|
||||||
|
attributes:
|
||||||
|
label: Required Tools (optional)
|
||||||
|
description: List any external tools or dependencies required
|
||||||
|
placeholder: |
|
||||||
|
- jira-cli (>=1.0.0) - required
|
||||||
|
- python (>=3.8) - optional
|
||||||
|
render: markdown
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: commands-count
|
||||||
|
attributes:
|
||||||
|
label: Number of Commands
|
||||||
|
description: How many commands does your extension provide?
|
||||||
|
placeholder: "e.g., 3"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: hooks-count
|
||||||
|
attributes:
|
||||||
|
label: Number of Hooks (optional)
|
||||||
|
description: How many hooks does your extension provide?
|
||||||
|
placeholder: "e.g., 0"
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: tags
|
||||||
|
attributes:
|
||||||
|
label: Tags
|
||||||
|
description: 2-5 relevant tags (lowercase, separated by commas)
|
||||||
|
placeholder: "issue-tracking, jira, atlassian, automation"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: features
|
||||||
|
attributes:
|
||||||
|
label: Key Features
|
||||||
|
description: List the main features and capabilities of your extension
|
||||||
|
placeholder: |
|
||||||
|
- Create Jira issues from specs
|
||||||
|
- Sync task status with Jira
|
||||||
|
- Link specs to existing issues
|
||||||
|
- Generate Jira reports
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: testing
|
||||||
|
attributes:
|
||||||
|
label: Testing Checklist
|
||||||
|
description: Confirm that your extension has been tested
|
||||||
|
options:
|
||||||
|
- label: Extension installs successfully via download URL
|
||||||
|
required: true
|
||||||
|
- label: All commands execute without errors
|
||||||
|
required: true
|
||||||
|
- label: Documentation is complete and accurate
|
||||||
|
required: true
|
||||||
|
- label: No security vulnerabilities identified
|
||||||
|
required: true
|
||||||
|
- label: Tested on at least one real project
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: requirements
|
||||||
|
attributes:
|
||||||
|
label: Submission Requirements
|
||||||
|
description: Verify your extension meets all requirements
|
||||||
|
options:
|
||||||
|
- label: Valid `extension.yml` manifest included
|
||||||
|
required: true
|
||||||
|
- label: README.md with installation and usage instructions
|
||||||
|
required: true
|
||||||
|
- label: LICENSE file included
|
||||||
|
required: true
|
||||||
|
- label: GitHub release created with version tag
|
||||||
|
required: true
|
||||||
|
- label: All command files exist and are properly formatted
|
||||||
|
required: true
|
||||||
|
- label: Extension ID follows naming conventions (lowercase-with-hyphens)
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: testing-details
|
||||||
|
attributes:
|
||||||
|
label: Testing Details
|
||||||
|
description: Describe how you tested your extension
|
||||||
|
placeholder: |
|
||||||
|
**Tested on:**
|
||||||
|
- macOS 14.0 with Spec Kit v0.1.0
|
||||||
|
- Linux Ubuntu 22.04 with Spec Kit v0.1.0
|
||||||
|
|
||||||
|
**Test project:** [Link or description]
|
||||||
|
|
||||||
|
**Test scenarios:**
|
||||||
|
1. Installed extension
|
||||||
|
2. Configured settings
|
||||||
|
3. Ran all commands
|
||||||
|
4. Verified outputs
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: example-usage
|
||||||
|
attributes:
|
||||||
|
label: Example Usage
|
||||||
|
description: Provide a simple example of using your extension
|
||||||
|
render: markdown
|
||||||
|
placeholder: |
|
||||||
|
```bash
|
||||||
|
# Install extension
|
||||||
|
specify extension add <extension-name> --from https://github.com/your-org/spec-kit-your-extension/archive/refs/tags/v1.0.0.zip
|
||||||
|
|
||||||
|
# Use a command
|
||||||
|
/speckit.your-extension.command-name arg1 arg2
|
||||||
|
```
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: catalog-entry
|
||||||
|
attributes:
|
||||||
|
label: Proposed Catalog Entry
|
||||||
|
description: Provide the JSON entry for catalog.json (helps reviewers)
|
||||||
|
render: json
|
||||||
|
placeholder: |
|
||||||
|
{
|
||||||
|
"your-extension": {
|
||||||
|
"name": "Your Extension",
|
||||||
|
"id": "your-extension",
|
||||||
|
"description": "Brief description",
|
||||||
|
"author": "Your Name",
|
||||||
|
"version": "1.0.0",
|
||||||
|
"download_url": "https://github.com/your-org/spec-kit-your-extension/archive/refs/tags/v1.0.0.zip",
|
||||||
|
"repository": "https://github.com/your-org/spec-kit-your-extension",
|
||||||
|
"homepage": "https://github.com/your-org/spec-kit-your-extension",
|
||||||
|
"license": "MIT",
|
||||||
|
"requires": {
|
||||||
|
"speckit_version": ">=0.1.0"
|
||||||
|
},
|
||||||
|
"provides": {
|
||||||
|
"commands": 3
|
||||||
|
},
|
||||||
|
"tags": ["category", "tool"],
|
||||||
|
"verified": false,
|
||||||
|
"downloads": 0,
|
||||||
|
"stars": 0,
|
||||||
|
"created_at": "2026-02-20T00:00:00Z",
|
||||||
|
"updated_at": "2026-02-20T00:00:00Z"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: additional-context
|
||||||
|
attributes:
|
||||||
|
label: Additional Context
|
||||||
|
description: Any other information that would help reviewers
|
||||||
|
placeholder: Screenshots, demo videos, links to related projects, etc.
|
||||||
104
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
104
.github/ISSUE_TEMPLATE/feature_request.yml
vendored
Normal file
@@ -0,0 +1,104 @@
|
|||||||
|
name: Feature Request
|
||||||
|
description: Suggest a new feature or enhancement for Specify CLI or Spec Kit
|
||||||
|
title: "[Feature]: "
|
||||||
|
labels: ["enhancement", "needs-triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for suggesting a feature! Please provide details below to help us understand and evaluate your request.
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: problem
|
||||||
|
attributes:
|
||||||
|
label: Problem Statement
|
||||||
|
description: Is your feature request related to a problem? Please describe.
|
||||||
|
placeholder: "I'm frustrated when..."
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: solution
|
||||||
|
attributes:
|
||||||
|
label: Proposed Solution
|
||||||
|
description: Describe the solution you'd like
|
||||||
|
placeholder: What would you like to happen?
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: alternatives
|
||||||
|
attributes:
|
||||||
|
label: Alternatives Considered
|
||||||
|
description: Have you considered any alternative solutions or workarounds?
|
||||||
|
placeholder: What other approaches might work?
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: component
|
||||||
|
attributes:
|
||||||
|
label: Component
|
||||||
|
description: Which component does this feature relate to?
|
||||||
|
options:
|
||||||
|
- Specify CLI (initialization, commands)
|
||||||
|
- Spec templates (BDD, Testing Strategy, etc.)
|
||||||
|
- Agent integrations (command files, workflows)
|
||||||
|
- Scripts (Bash/PowerShell utilities)
|
||||||
|
- Documentation
|
||||||
|
- CI/CD workflows
|
||||||
|
- Other
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: dropdown
|
||||||
|
id: ai-agent
|
||||||
|
attributes:
|
||||||
|
label: AI Agent (if applicable)
|
||||||
|
description: Does this feature relate to a specific AI agent?
|
||||||
|
options:
|
||||||
|
- All agents
|
||||||
|
- Claude Code
|
||||||
|
- Gemini CLI
|
||||||
|
- GitHub Copilot
|
||||||
|
- Cursor
|
||||||
|
- Qwen Code
|
||||||
|
- opencode
|
||||||
|
- Codex CLI
|
||||||
|
- Windsurf
|
||||||
|
- Kilo Code
|
||||||
|
- Auggie CLI
|
||||||
|
- Roo Code
|
||||||
|
- CodeBuddy
|
||||||
|
- Qoder CLI
|
||||||
|
- Kiro CLI
|
||||||
|
- Amp
|
||||||
|
- SHAI
|
||||||
|
- IBM Bob
|
||||||
|
- Antigravity
|
||||||
|
- Not applicable
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: use-cases
|
||||||
|
attributes:
|
||||||
|
label: Use Cases
|
||||||
|
description: Describe specific use cases where this feature would be valuable
|
||||||
|
placeholder: |
|
||||||
|
1. When working on large projects...
|
||||||
|
2. During spec review...
|
||||||
|
3. When integrating with CI/CD...
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: acceptance
|
||||||
|
attributes:
|
||||||
|
label: Acceptance Criteria
|
||||||
|
description: How would you know this feature is complete and working?
|
||||||
|
placeholder: |
|
||||||
|
- [ ] Feature does X
|
||||||
|
- [ ] Documentation is updated
|
||||||
|
- [ ] Works with all supported agents
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: context
|
||||||
|
attributes:
|
||||||
|
label: Additional Context
|
||||||
|
description: Add any other context, screenshots, or examples
|
||||||
|
placeholder: Links to similar features, mockups, related discussions, etc.
|
||||||
185
.github/ISSUE_TEMPLATE/preset_submission.yml
vendored
Normal file
185
.github/ISSUE_TEMPLATE/preset_submission.yml
vendored
Normal file
@@ -0,0 +1,185 @@
|
|||||||
|
name: Preset Submission
|
||||||
|
description: Submit your preset to the Spec Kit preset catalog
|
||||||
|
title: "[Preset]: Add "
|
||||||
|
labels: ["preset-submission", "enhancement", "needs-triage"]
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
Thanks for contributing a preset! This template helps you submit your preset to the community catalog.
|
||||||
|
|
||||||
|
**Before submitting:**
|
||||||
|
- Review the [Preset Publishing Guide](https://github.com/github/spec-kit/blob/main/presets/PUBLISHING.md)
|
||||||
|
- Ensure your preset has a valid `preset.yml` manifest
|
||||||
|
- Create a GitHub release with a version tag (e.g., v1.0.0)
|
||||||
|
- Test installation from the release archive: `specify preset add --from <download-url>`
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: preset-id
|
||||||
|
attributes:
|
||||||
|
label: Preset ID
|
||||||
|
description: Unique preset identifier (lowercase with hyphens only)
|
||||||
|
placeholder: "e.g., healthcare-compliance"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: preset-name
|
||||||
|
attributes:
|
||||||
|
label: Preset Name
|
||||||
|
description: Human-readable preset name
|
||||||
|
placeholder: "e.g., Healthcare Compliance"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: version
|
||||||
|
attributes:
|
||||||
|
label: Version
|
||||||
|
description: Semantic version number
|
||||||
|
placeholder: "e.g., 1.0.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: description
|
||||||
|
attributes:
|
||||||
|
label: Description
|
||||||
|
description: Brief description of what your preset does (under 200 characters)
|
||||||
|
placeholder: Enforces HIPAA-compliant spec workflows with audit templates and compliance checklists
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: author
|
||||||
|
attributes:
|
||||||
|
label: Author
|
||||||
|
description: Your name or organization
|
||||||
|
placeholder: "e.g., John Doe or Acme Corp"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: repository
|
||||||
|
attributes:
|
||||||
|
label: Repository URL
|
||||||
|
description: GitHub repository URL for your preset
|
||||||
|
placeholder: "https://github.com/your-org/spec-kit-your-preset"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: download-url
|
||||||
|
attributes:
|
||||||
|
label: Download URL
|
||||||
|
description: URL to the GitHub release archive for your preset (e.g., https://github.com/your-org/spec-kit-preset-your-preset/archive/refs/tags/v1.0.0.zip)
|
||||||
|
placeholder: "https://github.com/your-org/spec-kit-preset-your-preset/archive/refs/tags/v1.0.0.zip"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: license
|
||||||
|
attributes:
|
||||||
|
label: License
|
||||||
|
description: Open source license type
|
||||||
|
placeholder: "e.g., MIT, Apache-2.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: speckit-version
|
||||||
|
attributes:
|
||||||
|
label: Required Spec Kit Version
|
||||||
|
description: Minimum Spec Kit version required
|
||||||
|
placeholder: "e.g., >=0.3.0"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: required-extensions
|
||||||
|
attributes:
|
||||||
|
label: Required Extensions (optional)
|
||||||
|
description: Comma-separated list of required extension IDs (e.g., aide)
|
||||||
|
placeholder: "e.g., aide, canon"
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: templates-provided
|
||||||
|
attributes:
|
||||||
|
label: Templates Provided
|
||||||
|
description: List the template overrides your preset provides (enter "None" if command-only)
|
||||||
|
placeholder: |
|
||||||
|
- spec-template.md — adds compliance section
|
||||||
|
- plan-template.md — includes audit checkpoints
|
||||||
|
- checklist-template.md — HIPAA compliance checklist
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: commands-provided
|
||||||
|
attributes:
|
||||||
|
label: Commands Provided
|
||||||
|
description: List the command overrides your preset provides (enter "None" if template-only)
|
||||||
|
placeholder: |
|
||||||
|
- speckit.specify.md — customized for compliance workflows
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: input
|
||||||
|
id: scripts-count
|
||||||
|
attributes:
|
||||||
|
label: Number of Scripts (optional)
|
||||||
|
description: How many scripts does your preset provide? (leave empty if none)
|
||||||
|
placeholder: "e.g., 1"
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: tags
|
||||||
|
attributes:
|
||||||
|
label: Tags
|
||||||
|
description: 2-5 relevant tags (lowercase, separated by commas)
|
||||||
|
placeholder: "compliance, healthcare, hipaa, audit"
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: textarea
|
||||||
|
id: features
|
||||||
|
attributes:
|
||||||
|
label: Key Features
|
||||||
|
description: List the main features and capabilities of your preset
|
||||||
|
placeholder: |
|
||||||
|
- HIPAA-compliant spec templates
|
||||||
|
- Audit trail checklists
|
||||||
|
- Compliance review workflow
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: testing
|
||||||
|
attributes:
|
||||||
|
label: Testing Checklist
|
||||||
|
description: Confirm that your preset has been tested
|
||||||
|
options:
|
||||||
|
- label: Preset installs successfully via `specify preset add`
|
||||||
|
required: true
|
||||||
|
- label: Template resolution works correctly after installation
|
||||||
|
required: true
|
||||||
|
- label: Documentation is complete and accurate
|
||||||
|
required: true
|
||||||
|
- label: Tested on at least one real project
|
||||||
|
required: true
|
||||||
|
|
||||||
|
- type: checkboxes
|
||||||
|
id: requirements
|
||||||
|
attributes:
|
||||||
|
label: Submission Requirements
|
||||||
|
description: Verify your preset meets all requirements
|
||||||
|
options:
|
||||||
|
- label: Valid `preset.yml` manifest included
|
||||||
|
required: true
|
||||||
|
- label: README.md with description and usage instructions
|
||||||
|
required: true
|
||||||
|
- label: LICENSE file included
|
||||||
|
required: true
|
||||||
|
- label: GitHub release created with version tag
|
||||||
|
required: true
|
||||||
|
- label: Preset ID follows naming conventions (lowercase-with-hyphens)
|
||||||
|
required: true
|
||||||
22
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
22
.github/PULL_REQUEST_TEMPLATE.md
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
## Description
|
||||||
|
|
||||||
|
<!-- What does this PR do? Why is it needed? -->
|
||||||
|
|
||||||
|
## Testing
|
||||||
|
|
||||||
|
<!-- How did you test your changes? -->
|
||||||
|
|
||||||
|
- [ ] Tested locally with `uv run specify --help`
|
||||||
|
- [ ] Ran existing tests with `uv sync && uv run pytest`
|
||||||
|
- [ ] Tested with a sample project (if applicable)
|
||||||
|
|
||||||
|
## AI Disclosure
|
||||||
|
|
||||||
|
<!-- Per our Contributing guidelines, AI assistance must be disclosed. -->
|
||||||
|
<!-- See: https://github.com/github/spec-kit/blob/main/CONTRIBUTING.md#ai-contributions-in-spec-kit -->
|
||||||
|
|
||||||
|
- [ ] I **did not** use AI assistance for this contribution
|
||||||
|
- [ ] I **did** use AI assistance (describe below)
|
||||||
|
|
||||||
|
<!-- If you used AI, briefly describe how (e.g., "Code generated by Copilot", "Consulted ChatGPT for approach"): -->
|
||||||
|
|
||||||
11
.github/dependabot.yml
vendored
Normal file
11
.github/dependabot.yml
vendored
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
version: 2
|
||||||
|
updates:
|
||||||
|
- package-ecosystem: "pip"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
|
|
||||||
|
- package-ecosystem: "github-actions"
|
||||||
|
directory: "/"
|
||||||
|
schedule:
|
||||||
|
interval: "weekly"
|
||||||
191
.github/workflows/RELEASE-PROCESS.md
vendored
Normal file
191
.github/workflows/RELEASE-PROCESS.md
vendored
Normal file
@@ -0,0 +1,191 @@
|
|||||||
|
# Release Process
|
||||||
|
|
||||||
|
This document describes the automated release process for Spec Kit.
|
||||||
|
|
||||||
|
## Overview
|
||||||
|
|
||||||
|
The release process is split into two workflows to ensure version consistency:
|
||||||
|
|
||||||
|
1. **Release Trigger Workflow** (`release-trigger.yml`) - Manages versioning and triggers release
|
||||||
|
2. **Release Workflow** (`release.yml`) - Builds and publishes artifacts
|
||||||
|
|
||||||
|
This separation ensures that git tags always point to commits with the correct version in `pyproject.toml`.
|
||||||
|
|
||||||
|
## Before Creating a Release
|
||||||
|
|
||||||
|
**Important**: Write clear, descriptive commit messages!
|
||||||
|
|
||||||
|
### How CHANGELOG.md Works
|
||||||
|
|
||||||
|
The CHANGELOG is **automatically generated** from your git commit messages:
|
||||||
|
|
||||||
|
1. **During Development**: Write clear, descriptive commit messages:
|
||||||
|
```bash
|
||||||
|
git commit -m "feat: Add new authentication feature"
|
||||||
|
git commit -m "fix: Resolve timeout issue in API client (#123)"
|
||||||
|
git commit -m "docs: Update installation instructions"
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **When Releasing**: The release trigger workflow automatically:
|
||||||
|
- Finds all commits since the last release tag
|
||||||
|
- Formats them as changelog entries
|
||||||
|
- Inserts them into CHANGELOG.md
|
||||||
|
- Commits the updated changelog before creating the new tag
|
||||||
|
|
||||||
|
### Commit Message Best Practices
|
||||||
|
|
||||||
|
Good commit messages make good changelogs:
|
||||||
|
- **Be descriptive**: "Add user authentication" not "Update files"
|
||||||
|
- **Reference issues/PRs**: Include `(#123)` for automated linking
|
||||||
|
- **Use conventional commits** (optional): `feat:`, `fix:`, `docs:`, `chore:`
|
||||||
|
- **Keep it concise**: One line is ideal, details go in commit body
|
||||||
|
|
||||||
|
**Example commits that become good changelog entries:**
|
||||||
|
```
|
||||||
|
fix: prepend YAML frontmatter to Cursor .mdc files (#1699)
|
||||||
|
feat: add generic agent support with customizable command directories (#1639)
|
||||||
|
docs: document dual-catalog system for extensions (#1689)
|
||||||
|
```
|
||||||
|
|
||||||
|
## Creating a Release
|
||||||
|
|
||||||
|
### Option 1: Auto-Increment (Recommended for patches)
|
||||||
|
|
||||||
|
1. Go to **Actions** → **Release Trigger**
|
||||||
|
2. Click **Run workflow**
|
||||||
|
3. Leave the version field **empty**
|
||||||
|
4. Click **Run workflow**
|
||||||
|
|
||||||
|
The workflow will:
|
||||||
|
- Auto-increment the patch version (e.g., `0.1.10` → `0.1.11`)
|
||||||
|
- Update `pyproject.toml`
|
||||||
|
- Update `CHANGELOG.md` by adding a new section for the release based on commits since the last tag
|
||||||
|
- Commit changes to a `chore/release-vX.Y.Z` branch
|
||||||
|
- Create and push the git tag from that branch
|
||||||
|
- Open a PR to merge the version bump into `main`
|
||||||
|
- Trigger the release workflow automatically via the tag push
|
||||||
|
|
||||||
|
### Option 2: Manual Version (For major/minor bumps)
|
||||||
|
|
||||||
|
1. Go to **Actions** → **Release Trigger**
|
||||||
|
2. Click **Run workflow**
|
||||||
|
3. Enter the desired version (e.g., `0.2.0` or `v0.2.0`)
|
||||||
|
4. Click **Run workflow**
|
||||||
|
|
||||||
|
The workflow will:
|
||||||
|
- Use your specified version
|
||||||
|
- Update `pyproject.toml`
|
||||||
|
- Update `CHANGELOG.md` by adding a new section for the release based on commits since the last tag
|
||||||
|
- Commit changes to a `chore/release-vX.Y.Z` branch
|
||||||
|
- Create and push the git tag from that branch
|
||||||
|
- Open a PR to merge the version bump into `main`
|
||||||
|
- Trigger the release workflow automatically via the tag push
|
||||||
|
|
||||||
|
## What Happens Next
|
||||||
|
|
||||||
|
Once the release trigger workflow completes:
|
||||||
|
|
||||||
|
1. A `chore/release-vX.Y.Z` branch is pushed with the version bump commit
|
||||||
|
2. The git tag is pushed, pointing to that commit
|
||||||
|
3. The **Release Workflow** is automatically triggered by the tag push
|
||||||
|
4. Release artifacts are built for all supported agents
|
||||||
|
5. A GitHub Release is created with all assets
|
||||||
|
6. A PR is opened to merge the version bump branch into `main`
|
||||||
|
|
||||||
|
> **Note**: Merge the auto-opened PR after the release is published to keep `main` in sync.
|
||||||
|
|
||||||
|
## Workflow Details
|
||||||
|
|
||||||
|
### Release Trigger Workflow
|
||||||
|
|
||||||
|
**File**: `.github/workflows/release-trigger.yml`
|
||||||
|
|
||||||
|
**Trigger**: Manual (`workflow_dispatch`)
|
||||||
|
|
||||||
|
**Permissions Required**: `contents: write`
|
||||||
|
|
||||||
|
**Steps**:
|
||||||
|
1. Checkout repository
|
||||||
|
2. Determine version (manual or auto-increment)
|
||||||
|
3. Check if tag already exists (prevents duplicates)
|
||||||
|
4. Create `chore/release-vX.Y.Z` branch
|
||||||
|
5. Update `pyproject.toml`
|
||||||
|
6. Update `CHANGELOG.md` from git commits
|
||||||
|
7. Commit changes
|
||||||
|
8. Push branch and tag
|
||||||
|
9. Open PR to merge version bump into `main`
|
||||||
|
|
||||||
|
### Release Workflow
|
||||||
|
|
||||||
|
**File**: `.github/workflows/release.yml`
|
||||||
|
|
||||||
|
**Trigger**: Tag push (`v*`)
|
||||||
|
|
||||||
|
**Permissions Required**: `contents: write`
|
||||||
|
|
||||||
|
**Steps**:
|
||||||
|
1. Checkout repository at tag
|
||||||
|
2. Extract version from tag name
|
||||||
|
3. Check if release already exists
|
||||||
|
4. Build release package variants (all agents × shell/powershell)
|
||||||
|
5. Generate release notes from commits
|
||||||
|
6. Create GitHub Release with all assets
|
||||||
|
|
||||||
|
## Version Constraints
|
||||||
|
|
||||||
|
- Tags must follow format: `v{MAJOR}.{MINOR}.{PATCH}`
|
||||||
|
- Example valid versions: `v0.1.11`, `v0.2.0`, `v1.0.0`
|
||||||
|
- Auto-increment only bumps patch version
|
||||||
|
- Cannot create duplicate tags (workflow will fail)
|
||||||
|
|
||||||
|
## Benefits of This Approach
|
||||||
|
|
||||||
|
✅ **Version Consistency**: Git tags point to commits with matching `pyproject.toml` version
|
||||||
|
|
||||||
|
✅ **Single Source of Truth**: Version set once, used everywhere
|
||||||
|
|
||||||
|
✅ **Prevents Drift**: No more manual version synchronization needed
|
||||||
|
|
||||||
|
✅ **Clean Separation**: Versioning logic separate from artifact building
|
||||||
|
|
||||||
|
✅ **Flexibility**: Supports both auto-increment and manual versioning
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### No Commits Since Last Release
|
||||||
|
|
||||||
|
If you run the release trigger workflow when there are no new commits since the last tag:
|
||||||
|
- The workflow will still succeed
|
||||||
|
- The CHANGELOG will show "- Initial release" if it's the first release
|
||||||
|
- Or it will be empty if there are no commits
|
||||||
|
- Consider adding meaningful commits before releasing
|
||||||
|
|
||||||
|
**Best Practice**: Use descriptive commit messages - they become your changelog!
|
||||||
|
|
||||||
|
### Tag Already Exists
|
||||||
|
|
||||||
|
If you see "Error: Tag vX.Y.Z already exists!", you need to:
|
||||||
|
- Choose a different version number, or
|
||||||
|
- Delete the existing tag if it was created in error
|
||||||
|
|
||||||
|
### Release Workflow Didn't Trigger
|
||||||
|
|
||||||
|
Check that:
|
||||||
|
- The release trigger workflow completed successfully
|
||||||
|
- The tag was pushed (check repository tags)
|
||||||
|
- The release workflow is enabled in Actions settings
|
||||||
|
|
||||||
|
### Version Mismatch
|
||||||
|
|
||||||
|
If `pyproject.toml` doesn't match the latest tag:
|
||||||
|
- Run the release trigger workflow to sync versions
|
||||||
|
- Or manually update `pyproject.toml` and push changes before running the release trigger
|
||||||
|
|
||||||
|
## Legacy Behavior (Pre-v0.1.10)
|
||||||
|
|
||||||
|
Before this change, the release workflow:
|
||||||
|
- Created tags automatically on main branch pushes
|
||||||
|
- Updated `pyproject.toml` AFTER creating the tag
|
||||||
|
- Resulted in tags pointing to commits with outdated versions
|
||||||
|
|
||||||
|
This has been fixed in v0.1.10+.
|
||||||
59
.github/workflows/catalog-assign.yml
vendored
Normal file
59
.github/workflows/catalog-assign.yml
vendored
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
name: "Catalog: Auto-assign submission"
|
||||||
|
|
||||||
|
on:
|
||||||
|
issues:
|
||||||
|
types: [opened, labeled]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
assign:
|
||||||
|
if: >
|
||||||
|
(github.event.action == 'opened' && (
|
||||||
|
contains(github.event.issue.labels.*.name, 'extension-submission') ||
|
||||||
|
contains(github.event.issue.labels.*.name, 'preset-submission')
|
||||||
|
)) ||
|
||||||
|
(github.event.action == 'labeled' && (
|
||||||
|
github.event.label.name == 'extension-submission' ||
|
||||||
|
github.event.label.name == 'preset-submission'
|
||||||
|
))
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
issues: write
|
||||||
|
steps:
|
||||||
|
- uses: actions/github-script@v7
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const issue = context.payload.issue;
|
||||||
|
const assigned = (issue.assignees || []).map(a => a.login);
|
||||||
|
const marker = '<!-- catalog-assign-bot -->';
|
||||||
|
|
||||||
|
// Assign mnriem if not already assigned
|
||||||
|
if (!assigned.includes('mnriem')) {
|
||||||
|
try {
|
||||||
|
await github.rest.issues.addAssignees({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
assignees: ['mnriem'],
|
||||||
|
});
|
||||||
|
} catch (e) {
|
||||||
|
console.log(`Warning: could not assign mnriem: ${e.message}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Post team notification if not already posted
|
||||||
|
const comments = await github.paginate(
|
||||||
|
github.rest.issues.listComments,
|
||||||
|
{
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
}
|
||||||
|
);
|
||||||
|
if (!comments.some(c => c.body && c.body.includes(marker))) {
|
||||||
|
await github.rest.issues.createComment({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
issue_number: context.issue.number,
|
||||||
|
body: marker + '\ncc @github/spec-kit-maintainers — new catalog submission for review.',
|
||||||
|
});
|
||||||
|
}
|
||||||
32
.github/workflows/codeql.yml
vendored
Normal file
32
.github/workflows/codeql.yml
vendored
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
name: "CodeQL"
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
analyze:
|
||||||
|
name: Analyze
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
security-events: write
|
||||||
|
contents: read
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
language: [ 'actions', 'python' ]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
|
|
||||||
|
- name: Initialize CodeQL
|
||||||
|
uses: github/codeql-action/init@e46ed2cbd01164d986452f91f178727624ae40d7 # v4
|
||||||
|
with:
|
||||||
|
languages: ${{ matrix.language }}
|
||||||
|
|
||||||
|
- name: Perform CodeQL Analysis
|
||||||
|
uses: github/codeql-action/analyze@e46ed2cbd01164d986452f91f178727624ae40d7 # v4
|
||||||
|
with:
|
||||||
|
category: "/language:${{ matrix.language }}"
|
||||||
69
.github/workflows/docs.yml
vendored
Normal file
69
.github/workflows/docs.yml
vendored
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
# Build and deploy DocFX documentation to GitHub Pages
|
||||||
|
name: Deploy Documentation to Pages
|
||||||
|
|
||||||
|
on:
|
||||||
|
# Runs on pushes targeting the default branch
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
|
||||||
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
pages: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
|
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
|
||||||
|
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
|
||||||
|
concurrency:
|
||||||
|
group: "pages"
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
# Build job
|
||||||
|
build:
|
||||||
|
if: github.repository == 'github/spec-kit'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch all history for git info
|
||||||
|
|
||||||
|
- name: Setup .NET
|
||||||
|
uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4
|
||||||
|
with:
|
||||||
|
dotnet-version: '8.x'
|
||||||
|
|
||||||
|
- name: Setup DocFX
|
||||||
|
run: dotnet tool install -g docfx
|
||||||
|
|
||||||
|
- name: Build with DocFX
|
||||||
|
run: |
|
||||||
|
cd docs
|
||||||
|
docfx docfx.json
|
||||||
|
|
||||||
|
- name: Setup Pages
|
||||||
|
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6
|
||||||
|
|
||||||
|
- name: Upload artifact
|
||||||
|
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5
|
||||||
|
with:
|
||||||
|
path: 'docs/_site'
|
||||||
|
|
||||||
|
# Deploy job
|
||||||
|
deploy:
|
||||||
|
if: github.repository == 'github/spec-kit'
|
||||||
|
environment:
|
||||||
|
name: github-pages
|
||||||
|
url: ${{ steps.deployment.outputs.page_url }}
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Deploy to GitHub Pages
|
||||||
|
id: deployment
|
||||||
|
uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5
|
||||||
22
.github/workflows/lint.yml
vendored
Normal file
22
.github/workflows/lint.yml
vendored
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
name: Lint
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
markdownlint:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
|
|
||||||
|
- name: Run markdownlint-cli2
|
||||||
|
uses: DavidAnson/markdownlint-cli2-action@6b51ade7a9e4a75a7ad929842dd298a3804ebe8b # v23
|
||||||
|
with:
|
||||||
|
globs: |
|
||||||
|
'**/*.md'
|
||||||
|
!extensions/**/*.md
|
||||||
191
.github/workflows/manual-release.yml
vendored
191
.github/workflows/manual-release.yml
vendored
@@ -1,191 +0,0 @@
|
|||||||
name: Manual Release
|
|
||||||
|
|
||||||
on:
|
|
||||||
workflow_dispatch:
|
|
||||||
inputs:
|
|
||||||
version_bump:
|
|
||||||
description: 'Version bump type'
|
|
||||||
required: true
|
|
||||||
default: 'patch'
|
|
||||||
type: choice
|
|
||||||
options:
|
|
||||||
- patch
|
|
||||||
- minor
|
|
||||||
- major
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
manual_release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: write
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Calculate new version
|
|
||||||
id: version
|
|
||||||
run: |
|
|
||||||
# Get the latest tag, or use v0.0.0 if no tags exist
|
|
||||||
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
|
|
||||||
echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# Extract version number
|
|
||||||
VERSION=$(echo $LATEST_TAG | sed 's/v//')
|
|
||||||
IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
|
|
||||||
MAJOR=${VERSION_PARTS[0]:-0}
|
|
||||||
MINOR=${VERSION_PARTS[1]:-0}
|
|
||||||
PATCH=${VERSION_PARTS[2]:-0}
|
|
||||||
|
|
||||||
# Increment based on input
|
|
||||||
case "${{ github.event.inputs.version_bump }}" in
|
|
||||||
"major")
|
|
||||||
MAJOR=$((MAJOR + 1))
|
|
||||||
MINOR=0
|
|
||||||
PATCH=0
|
|
||||||
;;
|
|
||||||
"minor")
|
|
||||||
MINOR=$((MINOR + 1))
|
|
||||||
PATCH=0
|
|
||||||
;;
|
|
||||||
"patch")
|
|
||||||
PATCH=$((PATCH + 1))
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
NEW_VERSION="v$MAJOR.$MINOR.$PATCH"
|
|
||||||
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
||||||
echo "New version will be: $NEW_VERSION (was $LATEST_TAG)"
|
|
||||||
|
|
||||||
- name: Create release package
|
|
||||||
run: |
|
|
||||||
# Create base package directory structure
|
|
||||||
mkdir -p sdd-package-base
|
|
||||||
|
|
||||||
# Copy common folders to base
|
|
||||||
echo "Packaging SDD common components..."
|
|
||||||
|
|
||||||
if [ -d "memory" ]; then
|
|
||||||
cp -r memory sdd-package-base/
|
|
||||||
echo "✓ Copied memory folder ($(find memory -type f | wc -l) files)"
|
|
||||||
else
|
|
||||||
echo "⚠️ memory folder not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "scripts" ]; then
|
|
||||||
cp -r scripts sdd-package-base/
|
|
||||||
echo "✓ Copied scripts folder ($(find scripts -type f | wc -l) files)"
|
|
||||||
else
|
|
||||||
echo "⚠️ scripts folder not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create Claude Code package
|
|
||||||
echo "Creating Claude Code package..."
|
|
||||||
mkdir -p sdd-claude-package
|
|
||||||
cp -r sdd-package-base/* sdd-claude-package/
|
|
||||||
if [ -d "agent_templates/claude" ]; then
|
|
||||||
cp -r agent_templates/claude sdd-claude-package/.claude
|
|
||||||
echo "✓ Added Claude Code commands ($(find agent_templates/claude -type f | wc -l) files)"
|
|
||||||
else
|
|
||||||
echo "⚠️ agent_templates/claude folder not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create Gemini CLI package
|
|
||||||
echo "Creating Gemini CLI package..."
|
|
||||||
mkdir -p sdd-gemini-package
|
|
||||||
cp -r sdd-package-base/* sdd-gemini-package/
|
|
||||||
if [ -d "agent_templates/gemini" ]; then
|
|
||||||
cp -r agent_templates/gemini sdd-gemini-package/.gemini
|
|
||||||
# Move GEMINI.md to root for easier access
|
|
||||||
if [ -f "sdd-gemini-package/.gemini/GEMINI.md" ]; then
|
|
||||||
mv sdd-gemini-package/.gemini/GEMINI.md sdd-gemini-package/GEMINI.md
|
|
||||||
echo "✓ Moved GEMINI.md to root of Gemini package"
|
|
||||||
fi
|
|
||||||
# Remove empty .gemini folder if it only contained GEMINI.md
|
|
||||||
if [ -d "sdd-gemini-package/.gemini" ] && [ -z "$(find sdd-gemini-package/.gemini -type f)" ]; then
|
|
||||||
rm -rf sdd-gemini-package/.gemini
|
|
||||||
echo "✓ Removed empty .gemini folder"
|
|
||||||
fi
|
|
||||||
echo "✓ Added Gemini CLI commands ($(find agent_templates/gemini -type f | wc -l) files)"
|
|
||||||
else
|
|
||||||
echo "⚠️ agent_templates/gemini folder not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create GitHub Copilot package
|
|
||||||
echo "Creating GitHub Copilot package..."
|
|
||||||
mkdir -p sdd-copilot-package
|
|
||||||
cp -r sdd-package-base/* sdd-copilot-package/
|
|
||||||
if [ -d "agent_templates/copilot" ]; then
|
|
||||||
mkdir -p sdd-copilot-package/.github
|
|
||||||
cp -r agent_templates/copilot/* sdd-copilot-package/.github/
|
|
||||||
echo "✓ Added Copilot instructions to .github ($(find agent_templates/copilot -type f | wc -l) files)"
|
|
||||||
else
|
|
||||||
echo "⚠️ agent_templates/copilot folder not found"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create archive files for each package
|
|
||||||
echo "Creating archive files..."
|
|
||||||
cd sdd-claude-package && zip -r ../spec-kit-template-claude-${{ steps.version.outputs.new_version }}.zip . && cd ..
|
|
||||||
|
|
||||||
cd sdd-gemini-package && zip -r ../spec-kit-template-gemini-${{ steps.version.outputs.new_version }}.zip . && cd ..
|
|
||||||
|
|
||||||
cd sdd-copilot-package && zip -r ../spec-kit-template-copilot-${{ steps.version.outputs.new_version }}.zip . && cd ..
|
|
||||||
|
|
||||||
echo ""
|
|
||||||
echo "📦 Packages created:"
|
|
||||||
echo "Claude: $(ls -lh spec-kit-template-claude-*.zip | awk '{print $5}')"
|
|
||||||
echo "Gemini: $(ls -lh spec-kit-template-gemini-*.zip | awk '{print $5}')"
|
|
||||||
echo "Copilot: $(ls -lh spec-kit-template-copilot-*.zip | awk '{print $5}')"
|
|
||||||
echo "Copilot: $(ls -lh sdd-template-copilot-*.zip | awk '{print $5}')"
|
|
||||||
|
|
||||||
- name: Generate detailed release notes
|
|
||||||
run: |
|
|
||||||
LAST_TAG=${{ steps.version.outputs.latest_tag }}
|
|
||||||
|
|
||||||
# Get commit range
|
|
||||||
if [ "$LAST_TAG" = "v0.0.0" ]; then
|
|
||||||
COMMIT_RANGE="HEAD~10..HEAD"
|
|
||||||
COMMITS=$(git log --oneline --pretty=format:"- %s" $COMMIT_RANGE 2>/dev/null || echo "- Initial release")
|
|
||||||
else
|
|
||||||
COMMIT_RANGE="$LAST_TAG..HEAD"
|
|
||||||
COMMITS=$(git log --oneline --pretty=format:"- %s" $COMMIT_RANGE 2>/dev/null || echo "- No changes since last release")
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Count files in each directory
|
|
||||||
CLAUDE_COUNT=$(find agent_templates/claude -type f 2>/dev/null | wc -l || echo "0")
|
|
||||||
GEMINI_COUNT=$(find agent_templates/gemini -type f 2>/dev/null | wc -l || echo "0")
|
|
||||||
COPILOT_COUNT=$(find agent_templates/copilot -type f 2>/dev/null | wc -l || echo "0")
|
|
||||||
MEMORY_COUNT=$(find memory -type f 2>/dev/null | wc -l || echo "0")
|
|
||||||
SCRIPTS_COUNT=$(find scripts -type f 2>/dev/null | wc -l || echo "0")
|
|
||||||
|
|
||||||
cat > release_notes.md << EOF
|
|
||||||
Template release ${{ steps.version.outputs.new_version }}
|
|
||||||
|
|
||||||
Updated specification-driven development templates for GitHub Copilot, Claude Code, and Gemini CLI.
|
|
||||||
|
|
||||||
Download the template for your preferred AI assistant:
|
|
||||||
- spec-kit-template-copilot-${{ steps.version.outputs.new_version }}.zip
|
|
||||||
- spec-kit-template-claude-${{ steps.version.outputs.new_version }}.zip
|
|
||||||
- spec-kit-template-gemini-${{ steps.version.outputs.new_version }}.zip
|
|
||||||
|
|
||||||
Changes since $LAST_TAG:
|
|
||||||
$COMMITS
|
|
||||||
EOF
|
|
||||||
|
|
||||||
- name: Create GitHub Release
|
|
||||||
run: |
|
|
||||||
# Remove 'v' prefix from version for release title
|
|
||||||
VERSION_NO_V=${{ steps.version.outputs.new_version }}
|
|
||||||
VERSION_NO_V=${VERSION_NO_V#v}
|
|
||||||
|
|
||||||
gh release create ${{ steps.version.outputs.new_version }} \
|
|
||||||
spec-kit-template-copilot-${{ steps.version.outputs.new_version }}.zip \
|
|
||||||
spec-kit-template-claude-${{ steps.version.outputs.new_version }}.zip \
|
|
||||||
spec-kit-template-gemini-${{ steps.version.outputs.new_version }}.zip \
|
|
||||||
--title "Spec Kit Templates - $VERSION_NO_V" \
|
|
||||||
--notes-file release_notes.md
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
178
.github/workflows/release-trigger.yml
vendored
Normal file
178
.github/workflows/release-trigger.yml
vendored
Normal file
@@ -0,0 +1,178 @@
|
|||||||
|
name: Release Trigger
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: 'Version to release (e.g., 0.1.11). Leave empty to auto-increment patch version.'
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
bump-version:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.RELEASE_PAT }}
|
||||||
|
|
||||||
|
- name: Configure Git
|
||||||
|
run: |
|
||||||
|
git config user.name "github-actions[bot]"
|
||||||
|
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
|
||||||
|
|
||||||
|
- name: Determine version
|
||||||
|
id: version
|
||||||
|
env:
|
||||||
|
INPUT_VERSION: ${{ github.event.inputs.version }}
|
||||||
|
run: |
|
||||||
|
if [[ -n "$INPUT_VERSION" ]]; then
|
||||||
|
# Manual version specified - strip optional v prefix
|
||||||
|
VERSION="${INPUT_VERSION#v}"
|
||||||
|
# Validate strict semver format to prevent injection
|
||||||
|
if [[ ! "$VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||||
|
echo "Error: Invalid version format '$VERSION'. Must be X.Y.Z (e.g. 1.2.3 or v1.2.3)"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
echo "version=$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
echo "tag=v$VERSION" >> $GITHUB_OUTPUT
|
||||||
|
echo "Using manual version: $VERSION"
|
||||||
|
else
|
||||||
|
# Auto-increment patch version
|
||||||
|
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
|
||||||
|
echo "Latest tag: $LATEST_TAG"
|
||||||
|
|
||||||
|
# Extract version number and increment
|
||||||
|
VERSION=$(echo $LATEST_TAG | sed 's/v//')
|
||||||
|
IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
|
||||||
|
MAJOR=${VERSION_PARTS[0]:-0}
|
||||||
|
MINOR=${VERSION_PARTS[1]:-0}
|
||||||
|
PATCH=${VERSION_PARTS[2]:-0}
|
||||||
|
|
||||||
|
# Increment patch version
|
||||||
|
PATCH=$((PATCH + 1))
|
||||||
|
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
|
||||||
|
|
||||||
|
echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
echo "tag=v$NEW_VERSION" >> $GITHUB_OUTPUT
|
||||||
|
echo "Auto-incremented version: $NEW_VERSION"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Check if tag already exists
|
||||||
|
run: |
|
||||||
|
if git rev-parse "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
|
||||||
|
echo "Error: Tag ${{ steps.version.outputs.tag }} already exists!"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create release branch
|
||||||
|
run: |
|
||||||
|
BRANCH="chore/release-${{ steps.version.outputs.tag }}"
|
||||||
|
git checkout -b "$BRANCH"
|
||||||
|
echo "branch=$BRANCH" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Update pyproject.toml
|
||||||
|
run: |
|
||||||
|
sed -i "s/version = \".*\"/version = \"${{ steps.version.outputs.version }}\"/" pyproject.toml
|
||||||
|
echo "Updated pyproject.toml to version ${{ steps.version.outputs.version }}"
|
||||||
|
|
||||||
|
- name: Update CHANGELOG.md
|
||||||
|
run: |
|
||||||
|
if [ -f "CHANGELOG.md" ]; then
|
||||||
|
DATE=$(date +%Y-%m-%d)
|
||||||
|
|
||||||
|
# Get the previous tag by sorting all version tags numerically
|
||||||
|
# (git describe --tags only finds tags reachable from HEAD,
|
||||||
|
# which misses tags on unmerged release branches)
|
||||||
|
PREVIOUS_TAG=$(git tag -l 'v*' --sort=-version:refname | head -n 1)
|
||||||
|
|
||||||
|
echo "Generating changelog from commits..."
|
||||||
|
if [[ -n "$PREVIOUS_TAG" ]]; then
|
||||||
|
echo "Changes since $PREVIOUS_TAG"
|
||||||
|
COMMITS=$(git log --oneline "$PREVIOUS_TAG"..HEAD --no-merges --pretty=format:"- %s" 2>/dev/null || echo "- Initial release")
|
||||||
|
else
|
||||||
|
echo "No previous tag found - this is the first release"
|
||||||
|
COMMITS="- Initial release"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Create new changelog entry — insert after the marker comment
|
||||||
|
NEW_ENTRY=$(printf '%s\n' \
|
||||||
|
"" \
|
||||||
|
"## [${{ steps.version.outputs.version }}] - $DATE" \
|
||||||
|
"" \
|
||||||
|
"### Changed" \
|
||||||
|
"" \
|
||||||
|
"$COMMITS")
|
||||||
|
|
||||||
|
awk -v entry="$NEW_ENTRY" '/<!-- insert new changelog below this comment -->/ { print; print entry; next } {print}' CHANGELOG.md > CHANGELOG.md.tmp
|
||||||
|
mv CHANGELOG.md.tmp CHANGELOG.md
|
||||||
|
|
||||||
|
echo "✅ Updated CHANGELOG.md with commits since $PREVIOUS_TAG"
|
||||||
|
else
|
||||||
|
echo "No CHANGELOG.md found"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Commit version bump
|
||||||
|
run: |
|
||||||
|
if [ -f "CHANGELOG.md" ]; then
|
||||||
|
git add pyproject.toml CHANGELOG.md
|
||||||
|
else
|
||||||
|
git add pyproject.toml
|
||||||
|
fi
|
||||||
|
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "No changes to commit"
|
||||||
|
else
|
||||||
|
git commit -m "chore: bump version to ${{ steps.version.outputs.version }}"
|
||||||
|
echo "Changes committed"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Create and push tag
|
||||||
|
run: |
|
||||||
|
git tag -a "${{ steps.version.outputs.tag }}" -m "Release ${{ steps.version.outputs.tag }}"
|
||||||
|
git push origin "${{ env.branch }}"
|
||||||
|
git push origin "${{ steps.version.outputs.tag }}"
|
||||||
|
echo "Branch ${{ env.branch }} and tag ${{ steps.version.outputs.tag }} pushed"
|
||||||
|
|
||||||
|
- name: Bump to dev version
|
||||||
|
id: dev_version
|
||||||
|
run: |
|
||||||
|
IFS='.' read -r MAJOR MINOR PATCH <<< "${{ steps.version.outputs.version }}"
|
||||||
|
NEXT_DEV="$MAJOR.$MINOR.$((PATCH + 1)).dev0"
|
||||||
|
echo "dev_version=$NEXT_DEV" >> $GITHUB_OUTPUT
|
||||||
|
sed -i "s/version = \".*\"/version = \"$NEXT_DEV\"/" pyproject.toml
|
||||||
|
git add pyproject.toml
|
||||||
|
if git diff --cached --quiet; then
|
||||||
|
echo "No dev version changes to commit"
|
||||||
|
else
|
||||||
|
git commit -m "chore: begin $NEXT_DEV development"
|
||||||
|
git push origin "${{ env.branch }}"
|
||||||
|
echo "Bumped to dev version $NEXT_DEV"
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: Open pull request
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.RELEASE_PAT }}
|
||||||
|
run: |
|
||||||
|
gh pr create \
|
||||||
|
--base main \
|
||||||
|
--head "${{ env.branch }}" \
|
||||||
|
--title "chore: release ${{ steps.version.outputs.version }}, begin ${{ steps.dev_version.outputs.dev_version }} development" \
|
||||||
|
--body "Automated release of ${{ steps.version.outputs.version }}.
|
||||||
|
|
||||||
|
This PR was created by the Release Trigger workflow. The git tag \`${{ steps.version.outputs.tag }}\` has already been pushed and the release artifacts are being built.
|
||||||
|
|
||||||
|
Merging this PR will set \`main\` to \`${{ steps.dev_version.outputs.dev_version }}\` so that development installs are clearly marked as pre-release."
|
||||||
|
|
||||||
|
- name: Summary
|
||||||
|
run: |
|
||||||
|
echo "✅ Version bumped to ${{ steps.version.outputs.version }}"
|
||||||
|
echo "✅ Tag ${{ steps.version.outputs.tag }} created and pushed"
|
||||||
|
echo "✅ Dev version set to ${{ steps.dev_version.outputs.dev_version }}"
|
||||||
|
echo "✅ PR opened to merge version bump into main"
|
||||||
|
echo "🚀 Release workflow is building artifacts from the tag"
|
||||||
291
.github/workflows/release.yml
vendored
291
.github/workflows/release.yml
vendored
@@ -2,230 +2,87 @@ name: Create Release
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
tags:
|
||||||
workflow_dispatch:
|
- 'v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
- name: Get latest tag
|
|
||||||
id: get_tag
|
|
||||||
run: |
|
|
||||||
# Get the latest tag, or use v0.0.0 if no tags exist
|
|
||||||
LATEST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
|
|
||||||
echo "latest_tag=$LATEST_TAG" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
# Extract version number and increment
|
|
||||||
VERSION=$(echo $LATEST_TAG | sed 's/v//')
|
|
||||||
IFS='.' read -ra VERSION_PARTS <<< "$VERSION"
|
|
||||||
MAJOR=${VERSION_PARTS[0]:-0}
|
|
||||||
MINOR=${VERSION_PARTS[1]:-0}
|
|
||||||
PATCH=${VERSION_PARTS[2]:-0}
|
|
||||||
|
|
||||||
# Increment patch version
|
|
||||||
PATCH=$((PATCH + 1))
|
|
||||||
NEW_VERSION="v$MAJOR.$MINOR.$PATCH"
|
|
||||||
|
|
||||||
echo "new_version=$NEW_VERSION" >> $GITHUB_OUTPUT
|
|
||||||
echo "New version will be: $NEW_VERSION"
|
|
||||||
|
|
||||||
- name: Check if release already exists
|
|
||||||
id: check_release
|
|
||||||
run: |
|
|
||||||
if gh release view ${{ steps.get_tag.outputs.new_version }} >/dev/null 2>&1; then
|
|
||||||
echo "exists=true" >> $GITHUB_OUTPUT
|
|
||||||
echo "Release ${{ steps.get_tag.outputs.new_version }} already exists, skipping..."
|
|
||||||
else
|
|
||||||
echo "exists=false" >> $GITHUB_OUTPUT
|
|
||||||
echo "Release ${{ steps.get_tag.outputs.new_version }} does not exist, proceeding..."
|
|
||||||
fi
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
- name: Create release package
|
|
||||||
if: steps.check_release.outputs.exists == 'false'
|
|
||||||
run: |
|
|
||||||
# Create base package directory structure
|
|
||||||
mkdir -p sdd-package-base
|
|
||||||
|
|
||||||
# Copy common folders to base
|
|
||||||
if [ -d "memory" ]; then
|
|
||||||
cp -r memory sdd-package-base/
|
|
||||||
echo "Copied memory folder"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "scripts" ]; then
|
|
||||||
cp -r scripts sdd-package-base/
|
|
||||||
echo "Copied scripts folder"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [ -d "templates" ]; then
|
- name: Extract version from tag
|
||||||
mkdir -p sdd-package-base/templates
|
id: version
|
||||||
# Copy templates folder but exclude the commands directory
|
run: |
|
||||||
find templates -type f -not -path "templates/commands/*" -exec cp --parents {} sdd-package-base/ \;
|
VERSION=${GITHUB_REF#refs/tags/}
|
||||||
echo "Copied templates folder (excluding commands directory)"
|
echo "tag=$VERSION" >> $GITHUB_OUTPUT
|
||||||
fi
|
echo "Building release for $VERSION"
|
||||||
|
|
||||||
# Generate command files for each agent from source templates
|
- name: Check if release already exists
|
||||||
generate_commands() {
|
id: check_release
|
||||||
local agent=$1
|
run: |
|
||||||
local ext=$2
|
VERSION="${{ steps.version.outputs.tag }}"
|
||||||
local arg_format=$3
|
if gh release view "$VERSION" >/dev/null 2>&1; then
|
||||||
local output_dir=$4
|
echo "exists=true" >> $GITHUB_OUTPUT
|
||||||
|
echo "Release $VERSION already exists, skipping..."
|
||||||
mkdir -p "$output_dir"
|
|
||||||
|
|
||||||
for template in templates/commands/*.md; do
|
|
||||||
if [[ -f "$template" ]]; then
|
|
||||||
name=$(basename "$template" .md)
|
|
||||||
description=$(awk '/^description:/ {gsub(/^description: *"?/, ""); gsub(/"$/, ""); print; exit}' "$template" | tr -d '\r')
|
|
||||||
content=$(awk '/^---$/{if(++count==2) start=1; next} start' "$template" | sed "s/{ARGS}/$arg_format/g")
|
|
||||||
|
|
||||||
case $ext in
|
|
||||||
"toml")
|
|
||||||
{
|
|
||||||
echo "description = \"$description\""
|
|
||||||
echo ""
|
|
||||||
echo "prompt = \"\"\""
|
|
||||||
echo "$content"
|
|
||||||
echo "\"\"\""
|
|
||||||
} > "$output_dir/$name.$ext"
|
|
||||||
;;
|
|
||||||
"md")
|
|
||||||
echo "$content" > "$output_dir/$name.$ext"
|
|
||||||
;;
|
|
||||||
"prompt.md")
|
|
||||||
{
|
|
||||||
echo "# $(echo "$description" | sed 's/\. .*//')"
|
|
||||||
echo ""
|
|
||||||
echo "$content"
|
|
||||||
} > "$output_dir/$name.$ext"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
# Create Claude Code package
|
|
||||||
mkdir -p sdd-claude-package
|
|
||||||
cp -r sdd-package-base/* sdd-claude-package/
|
|
||||||
mkdir -p sdd-claude-package/.claude/commands
|
|
||||||
generate_commands "claude" "md" "\$ARGUMENTS" "sdd-claude-package/.claude/commands"
|
|
||||||
echo "Created Claude Code package"
|
|
||||||
|
|
||||||
# Create Gemini CLI package
|
|
||||||
mkdir -p sdd-gemini-package
|
|
||||||
cp -r sdd-package-base/* sdd-gemini-package/
|
|
||||||
mkdir -p sdd-gemini-package/.gemini/commands
|
|
||||||
generate_commands "gemini" "toml" "{{args}}" "sdd-gemini-package/.gemini/commands"
|
|
||||||
if [ -f "agent_templates/gemini/GEMINI.md" ]; then
|
|
||||||
cp agent_templates/gemini/GEMINI.md sdd-gemini-package/GEMINI.md
|
|
||||||
fi
|
|
||||||
echo "Created Gemini CLI package"
|
|
||||||
|
|
||||||
# Create GitHub Copilot package
|
|
||||||
mkdir -p sdd-copilot-package
|
|
||||||
cp -r sdd-package-base/* sdd-copilot-package/
|
|
||||||
mkdir -p sdd-copilot-package/.github/prompts
|
|
||||||
generate_commands "copilot" "prompt.md" "\$ARGUMENTS" "sdd-copilot-package/.github/prompts"
|
|
||||||
echo "Created GitHub Copilot package"
|
|
||||||
|
|
||||||
# Create archive files for each package
|
|
||||||
cd sdd-claude-package && zip -r ../spec-kit-template-claude-${{ steps.get_tag.outputs.new_version }}.zip . && cd ..
|
|
||||||
|
|
||||||
cd sdd-gemini-package && zip -r ../spec-kit-template-gemini-${{ steps.get_tag.outputs.new_version }}.zip . && cd ..
|
|
||||||
|
|
||||||
cd sdd-copilot-package && zip -r ../spec-kit-template-copilot-${{ steps.get_tag.outputs.new_version }}.zip . && cd ..
|
|
||||||
|
|
||||||
# List contents for verification
|
|
||||||
echo "Claude package contents:"
|
|
||||||
unzip -l spec-kit-template-claude-${{ steps.get_tag.outputs.new_version }}.zip | head -10
|
|
||||||
echo "Gemini package contents:"
|
|
||||||
unzip -l spec-kit-template-gemini-${{ steps.get_tag.outputs.new_version }}.zip | head -10
|
|
||||||
echo "Copilot package contents:"
|
|
||||||
unzip -l spec-kit-template-copilot-${{ steps.get_tag.outputs.new_version }}.zip | head -10
|
|
||||||
|
|
||||||
- name: Generate release notes
|
|
||||||
if: steps.check_release.outputs.exists == 'false'
|
|
||||||
id: release_notes
|
|
||||||
run: |
|
|
||||||
# Get commits since last tag
|
|
||||||
LAST_TAG=${{ steps.get_tag.outputs.latest_tag }}
|
|
||||||
if [ "$LAST_TAG" = "v0.0.0" ]; then
|
|
||||||
# Check how many commits we have and use that as the limit
|
|
||||||
COMMIT_COUNT=$(git rev-list --count HEAD)
|
|
||||||
if [ "$COMMIT_COUNT" -gt 10 ]; then
|
|
||||||
COMMITS=$(git log --oneline --pretty=format:"- %s" HEAD~10..HEAD)
|
|
||||||
else
|
else
|
||||||
COMMITS=$(git log --oneline --pretty=format:"- %s" HEAD~$COMMIT_COUNT..HEAD 2>/dev/null || git log --oneline --pretty=format:"- %s")
|
echo "exists=false" >> $GITHUB_OUTPUT
|
||||||
|
echo "Release $VERSION does not exist, proceeding..."
|
||||||
fi
|
fi
|
||||||
else
|
env:
|
||||||
COMMITS=$(git log --oneline --pretty=format:"- %s" $LAST_TAG..HEAD)
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
fi
|
|
||||||
|
- name: Generate release notes
|
||||||
# Create release notes
|
if: steps.check_release.outputs.exists == 'false'
|
||||||
cat > release_notes.md << EOF
|
run: |
|
||||||
Template release ${{ steps.get_tag.outputs.new_version }}
|
VERSION="${{ steps.version.outputs.tag }}"
|
||||||
|
VERSION_NO_V=${VERSION#v}
|
||||||
Updated specification-driven development templates for GitHub Copilot, Claude Code, and Gemini CLI.
|
|
||||||
|
# Find previous tag
|
||||||
Download the template for your preferred AI assistant:
|
PREVIOUS_TAG=$(git tag -l 'v*' --sort=-version:refname | grep -v "^${VERSION}$" | head -n 1)
|
||||||
- spec-kit-template-copilot-${{ steps.get_tag.outputs.new_version }}.zip
|
if [ -z "$PREVIOUS_TAG" ]; then
|
||||||
- spec-kit-template-claude-${{ steps.get_tag.outputs.new_version }}.zip
|
PREVIOUS_TAG=""
|
||||||
- spec-kit-template-gemini-${{ steps.get_tag.outputs.new_version }}.zip
|
fi
|
||||||
EOF
|
|
||||||
|
# Get commits since previous tag
|
||||||
echo "Generated release notes:"
|
if [ -z "$PREVIOUS_TAG" ]; then
|
||||||
cat release_notes.md
|
COMMIT_COUNT=$(git rev-list --count HEAD)
|
||||||
|
if [ "$COMMIT_COUNT" -gt 20 ]; then
|
||||||
- name: Create GitHub Release
|
COMMITS=$(git log --oneline --pretty=format:"- %s" --no-merges HEAD~20..HEAD)
|
||||||
if: steps.check_release.outputs.exists == 'false'
|
else
|
||||||
run: |
|
COMMITS=$(git log --oneline --pretty=format:"- %s" --no-merges)
|
||||||
# Remove 'v' prefix from version for release title
|
fi
|
||||||
VERSION_NO_V=${{ steps.get_tag.outputs.new_version }}
|
else
|
||||||
VERSION_NO_V=${VERSION_NO_V#v}
|
COMMITS=$(git log --oneline --pretty=format:"- %s" --no-merges "$PREVIOUS_TAG"..HEAD)
|
||||||
|
fi
|
||||||
gh release create ${{ steps.get_tag.outputs.new_version }} \
|
|
||||||
spec-kit-template-copilot-${{ steps.get_tag.outputs.new_version }}.zip \
|
cat > release_notes.md << NOTES_EOF
|
||||||
spec-kit-template-claude-${{ steps.get_tag.outputs.new_version }}.zip \
|
## Install
|
||||||
spec-kit-template-gemini-${{ steps.get_tag.outputs.new_version }}.zip \
|
|
||||||
--title "Spec Kit Templates - $VERSION_NO_V" \
|
\`\`\`bash
|
||||||
--notes-file release_notes.md
|
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git@${VERSION}
|
||||||
env:
|
specify init my-project
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
\`\`\`
|
||||||
|
|
||||||
- name: Update version in pyproject.toml
|
NOTES_EOF
|
||||||
if: steps.check_release.outputs.exists == 'false'
|
|
||||||
run: |
|
echo "## What's Changed" >> release_notes.md
|
||||||
# Update version in pyproject.toml (remove 'v' prefix for Python versioning)
|
echo "" >> release_notes.md
|
||||||
VERSION=${{ steps.get_tag.outputs.new_version }}
|
echo "$COMMITS" >> release_notes.md
|
||||||
PYTHON_VERSION=${VERSION#v}
|
|
||||||
|
- name: Create GitHub Release
|
||||||
if [ -f "pyproject.toml" ]; then
|
if: steps.check_release.outputs.exists == 'false'
|
||||||
sed -i "s/version = \".*\"/version = \"$PYTHON_VERSION\"/" pyproject.toml
|
run: |
|
||||||
echo "Updated pyproject.toml version to $PYTHON_VERSION"
|
VERSION="${{ steps.version.outputs.tag }}"
|
||||||
fi
|
VERSION_NO_V=${VERSION#v}
|
||||||
|
gh release create "$VERSION" \
|
||||||
- name: Commit version update
|
--title "Spec Kit - $VERSION_NO_V" \
|
||||||
if: steps.check_release.outputs.exists == 'false'
|
--notes-file release_notes.md
|
||||||
run: |
|
env:
|
||||||
git config --local user.email "action@github.com"
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
git config --local user.name "GitHub Action"
|
|
||||||
|
|
||||||
if git diff --quiet; then
|
|
||||||
echo "No changes to commit"
|
|
||||||
else
|
|
||||||
git add pyproject.toml
|
|
||||||
git commit -m "chore: bump version to ${{ steps.get_tag.outputs.new_version }}"
|
|
||||||
git push
|
|
||||||
fi
|
|
||||||
|
|||||||
43
.github/workflows/stale.yml
vendored
Normal file
43
.github/workflows/stale.yml
vendored
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
name: 'Close stale issues and PRs'
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 0 * * *' # Run daily at midnight UTC
|
||||||
|
workflow_dispatch: # Allow manual triggering
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
actions: write
|
||||||
|
issues: write
|
||||||
|
pull-requests: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
stale:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10
|
||||||
|
with:
|
||||||
|
# Days of inactivity before an issue or PR becomes stale
|
||||||
|
days-before-stale: 150
|
||||||
|
# Days of inactivity before a stale issue or PR is closed (after being marked stale)
|
||||||
|
days-before-close: 30
|
||||||
|
|
||||||
|
# Stale issue settings
|
||||||
|
stale-issue-message: 'This issue has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.'
|
||||||
|
close-issue-message: 'This issue has been automatically closed due to inactivity (180 days total). If you believe this issue is still relevant, please reopen it or create a new issue.'
|
||||||
|
stale-issue-label: 'stale'
|
||||||
|
|
||||||
|
# Stale PR settings
|
||||||
|
stale-pr-message: 'This pull request has been automatically marked as stale because it has not had any activity for 150 days. It will be closed in 30 days if no further activity occurs.'
|
||||||
|
close-pr-message: 'This pull request has been automatically closed due to inactivity (180 days total). If you believe this PR is still relevant, please reopen it or create a new PR.'
|
||||||
|
stale-pr-label: 'stale'
|
||||||
|
|
||||||
|
# Exempt issues and PRs with these labels from being marked as stale
|
||||||
|
exempt-issue-labels: 'pinned,security'
|
||||||
|
exempt-pr-labels: 'pinned,security'
|
||||||
|
|
||||||
|
# Only issues or PRs with all of these labels are checked
|
||||||
|
# Leave empty to check all issues and PRs
|
||||||
|
any-of-labels: ''
|
||||||
|
|
||||||
|
# Operations per run (helps avoid rate limits)
|
||||||
|
operations-per-run: 250
|
||||||
55
.github/workflows/test.yml
vendored
Normal file
55
.github/workflows/test.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
|||||||
|
name: Test & Lint Python
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: ["main"]
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
ruff:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||||
|
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
||||||
|
with:
|
||||||
|
python-version: "3.13"
|
||||||
|
|
||||||
|
- name: Run ruff check
|
||||||
|
run: uvx ruff check src/
|
||||||
|
|
||||||
|
pytest:
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
python-version: ["3.11", "3.12", "3.13"]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
|
||||||
|
|
||||||
|
- name: Install uv
|
||||||
|
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
|
||||||
|
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: uv sync --extra test
|
||||||
|
|
||||||
|
# On windows-latest, bash tests auto-skip unless Git-for-Windows
|
||||||
|
# bash (MSYS2/MINGW) is detected. The WSL launcher is rejected
|
||||||
|
# because it cannot handle native Windows paths in test fixtures.
|
||||||
|
# See tests/conftest.py::_has_working_bash() for details.
|
||||||
|
- name: Run tests
|
||||||
|
run: uv run pytest
|
||||||
12
.gitignore
vendored
12
.gitignore
vendored
@@ -32,9 +32,21 @@ env/
|
|||||||
*.swp
|
*.swp
|
||||||
*.swo
|
*.swo
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
*.tmp
|
||||||
|
|
||||||
# Project specific
|
# Project specific
|
||||||
*.log
|
*.log
|
||||||
.env
|
.env
|
||||||
.env.local
|
.env.local
|
||||||
*.lock
|
*.lock
|
||||||
|
|
||||||
|
# Spec Kit-specific files
|
||||||
|
.genreleases/
|
||||||
|
*.zip
|
||||||
|
sdd-*/
|
||||||
|
docs/dev
|
||||||
|
|
||||||
|
# Extension system
|
||||||
|
.specify/extensions/.cache/
|
||||||
|
.specify/extensions/.backup/
|
||||||
|
.specify/extensions/*/local-config.yml
|
||||||
|
|||||||
29
.markdownlint-cli2.jsonc
Normal file
29
.markdownlint-cli2.jsonc
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
// https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md
|
||||||
|
"config": {
|
||||||
|
"default": true,
|
||||||
|
"MD003": {
|
||||||
|
"style": "atx"
|
||||||
|
},
|
||||||
|
"MD007": {
|
||||||
|
"indent": 2
|
||||||
|
},
|
||||||
|
"MD013": false,
|
||||||
|
"MD024": {
|
||||||
|
"siblings_only": true
|
||||||
|
},
|
||||||
|
"MD033": false,
|
||||||
|
"MD041": false,
|
||||||
|
"MD049": {
|
||||||
|
"style": "asterisk"
|
||||||
|
},
|
||||||
|
"MD050": {
|
||||||
|
"style": "asterisk"
|
||||||
|
},
|
||||||
|
"MD036": false,
|
||||||
|
"MD060": false
|
||||||
|
},
|
||||||
|
"ignores": [
|
||||||
|
".genreleases/"
|
||||||
|
]
|
||||||
|
}
|
||||||
29
.zenodo.json
Normal file
29
.zenodo.json
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{
|
||||||
|
"title": "Spec Kit",
|
||||||
|
"description": "Spec Kit is an open source toolkit for Spec-Driven Development (SDD) — a methodology that helps software teams build high-quality software faster by focusing on product scenarios and predictable outcomes. It provides the Specify CLI, slash-command templates, extensions, presets, workflows, and integrations for popular AI coding agents.",
|
||||||
|
"creators": [
|
||||||
|
{
|
||||||
|
"name": "Delimarsky, Den"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Riem, Manfred"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"license": "MIT",
|
||||||
|
"upload_type": "software",
|
||||||
|
"keywords": [
|
||||||
|
"spec-driven development",
|
||||||
|
"ai coding agents",
|
||||||
|
"software engineering",
|
||||||
|
"cli",
|
||||||
|
"copilot",
|
||||||
|
"specification"
|
||||||
|
],
|
||||||
|
"related_identifiers": [
|
||||||
|
{
|
||||||
|
"identifier": "https://github.com/github/spec-kit",
|
||||||
|
"relation": "isSupplementTo",
|
||||||
|
"scheme": "url"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
392
AGENTS.md
Normal file
392
AGENTS.md
Normal file
@@ -0,0 +1,392 @@
|
|||||||
|
# AGENTS.md
|
||||||
|
|
||||||
|
## About Spec Kit and Specify
|
||||||
|
|
||||||
|
**GitHub Spec Kit** is a comprehensive toolkit for implementing Spec-Driven Development (SDD) - a methodology that emphasizes creating clear specifications before implementation. The toolkit includes templates, scripts, and workflows that guide development teams through a structured approach to building software.
|
||||||
|
|
||||||
|
**Specify CLI** is the command-line interface that bootstraps projects with the Spec Kit framework. It sets up the necessary directory structures, templates, and AI agent integrations to support the Spec-Driven Development workflow.
|
||||||
|
|
||||||
|
The toolkit supports multiple AI coding assistants, allowing teams to use their preferred tools while maintaining consistent project structure and development practices.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Integration Architecture
|
||||||
|
|
||||||
|
Each AI agent is a self-contained **integration subpackage** under `src/specify_cli/integrations/<key>/`. The subpackage exposes a single class that declares all metadata and inherits setup/teardown logic from a base class. Built-in integrations are then instantiated and added to the global `INTEGRATION_REGISTRY` by `src/specify_cli/integrations/__init__.py` via `_register_builtins()`.
|
||||||
|
|
||||||
|
```
|
||||||
|
src/specify_cli/integrations/
|
||||||
|
├── __init__.py # INTEGRATION_REGISTRY + _register_builtins()
|
||||||
|
├── base.py # IntegrationBase, MarkdownIntegration, TomlIntegration, YamlIntegration, SkillsIntegration
|
||||||
|
├── manifest.py # IntegrationManifest (file tracking)
|
||||||
|
├── claude/ # Example: SkillsIntegration subclass
|
||||||
|
│ └── __init__.py # ClaudeIntegration class
|
||||||
|
├── gemini/ # Example: TomlIntegration subclass
|
||||||
|
│ └── __init__.py
|
||||||
|
├── windsurf/ # Example: MarkdownIntegration subclass
|
||||||
|
│ └── __init__.py
|
||||||
|
├── copilot/ # Example: IntegrationBase subclass (custom setup)
|
||||||
|
│ └── __init__.py
|
||||||
|
└── ... # One subpackage per supported agent
|
||||||
|
```
|
||||||
|
|
||||||
|
The registry is the **single source of truth for Python integration metadata**. Supported agents, their directories, formats, capabilities, and context files are derived from the integration classes for the Python integration layer.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Adding a New Integration
|
||||||
|
|
||||||
|
### 1. Choose a base class
|
||||||
|
|
||||||
|
| Your agent needs… | Subclass |
|
||||||
|
|---|---|
|
||||||
|
| Standard markdown commands (`.md`) | `MarkdownIntegration` |
|
||||||
|
| TOML-format commands (`.toml`) | `TomlIntegration` |
|
||||||
|
| YAML recipe files (`.yaml`) | `YamlIntegration` |
|
||||||
|
| Skill directories (`speckit-<name>/SKILL.md`) | `SkillsIntegration` |
|
||||||
|
| Fully custom output (companion files, settings merge, etc.) | `IntegrationBase` directly |
|
||||||
|
|
||||||
|
Most agents only need `MarkdownIntegration` — a minimal subclass with zero method overrides.
|
||||||
|
|
||||||
|
### 2. Create the subpackage
|
||||||
|
|
||||||
|
Create `src/specify_cli/integrations/<package_dir>/__init__.py`, where `<package_dir>` is the Python-safe directory name derived from `<key>`: use the key as-is when it contains no hyphens (e.g., key `"gemini"` → `gemini/`), or replace hyphens with underscores when it does (e.g., key `"kiro-cli"` → `kiro_cli/`). The `IntegrationBase.key` class attribute always retains the original hyphenated value, since that is what the CLI and registry use. For CLI-based integrations (`requires_cli: True`), the `key` should match the actual CLI tool name (the executable users install and run) so CLI checks can resolve it correctly. For IDE-based integrations (`requires_cli: False`), use the canonical integration identifier instead.
|
||||||
|
|
||||||
|
**Minimal example — Markdown agent (Windsurf):**
|
||||||
|
|
||||||
|
```python
|
||||||
|
"""Windsurf IDE integration."""
|
||||||
|
|
||||||
|
from ..base import MarkdownIntegration
|
||||||
|
|
||||||
|
|
||||||
|
class WindsurfIntegration(MarkdownIntegration):
|
||||||
|
key = "windsurf"
|
||||||
|
config = {
|
||||||
|
"name": "Windsurf",
|
||||||
|
"folder": ".windsurf/",
|
||||||
|
"commands_subdir": "workflows",
|
||||||
|
"install_url": None,
|
||||||
|
"requires_cli": False,
|
||||||
|
}
|
||||||
|
registrar_config = {
|
||||||
|
"dir": ".windsurf/workflows",
|
||||||
|
"format": "markdown",
|
||||||
|
"args": "$ARGUMENTS",
|
||||||
|
"extension": ".md",
|
||||||
|
}
|
||||||
|
context_file = ".windsurf/rules/specify-rules.md"
|
||||||
|
```
|
||||||
|
|
||||||
|
**TOML agent (Gemini):**
|
||||||
|
|
||||||
|
```python
|
||||||
|
"""Gemini CLI integration."""
|
||||||
|
|
||||||
|
from ..base import TomlIntegration
|
||||||
|
|
||||||
|
|
||||||
|
class GeminiIntegration(TomlIntegration):
|
||||||
|
key = "gemini"
|
||||||
|
config = {
|
||||||
|
"name": "Gemini CLI",
|
||||||
|
"folder": ".gemini/",
|
||||||
|
"commands_subdir": "commands",
|
||||||
|
"install_url": "https://github.com/google-gemini/gemini-cli",
|
||||||
|
"requires_cli": True,
|
||||||
|
}
|
||||||
|
registrar_config = {
|
||||||
|
"dir": ".gemini/commands",
|
||||||
|
"format": "toml",
|
||||||
|
"args": "{{args}}",
|
||||||
|
"extension": ".toml",
|
||||||
|
}
|
||||||
|
context_file = "GEMINI.md"
|
||||||
|
```
|
||||||
|
|
||||||
|
**Skills agent (Codex):**
|
||||||
|
|
||||||
|
```python
|
||||||
|
"""Codex CLI integration — skills-based agent."""
|
||||||
|
|
||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from ..base import IntegrationOption, SkillsIntegration
|
||||||
|
|
||||||
|
|
||||||
|
class CodexIntegration(SkillsIntegration):
|
||||||
|
key = "codex"
|
||||||
|
config = {
|
||||||
|
"name": "Codex CLI",
|
||||||
|
"folder": ".agents/",
|
||||||
|
"commands_subdir": "skills",
|
||||||
|
"install_url": "https://github.com/openai/codex",
|
||||||
|
"requires_cli": True,
|
||||||
|
}
|
||||||
|
registrar_config = {
|
||||||
|
"dir": ".agents/skills",
|
||||||
|
"format": "markdown",
|
||||||
|
"args": "$ARGUMENTS",
|
||||||
|
"extension": "/SKILL.md",
|
||||||
|
}
|
||||||
|
context_file = "AGENTS.md"
|
||||||
|
|
||||||
|
@classmethod
|
||||||
|
def options(cls) -> list[IntegrationOption]:
|
||||||
|
return [
|
||||||
|
IntegrationOption(
|
||||||
|
"--skills",
|
||||||
|
is_flag=True,
|
||||||
|
default=True,
|
||||||
|
help="Install as agent skills (default for Codex)",
|
||||||
|
),
|
||||||
|
]
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Required fields
|
||||||
|
|
||||||
|
| Field | Location | Purpose |
|
||||||
|
|---|---|---|
|
||||||
|
| `key` | Class attribute | Unique identifier; for CLI-based integrations (`requires_cli: True`), must match the CLI executable name |
|
||||||
|
| `config` | Class attribute (dict) | Agent metadata: `name`, `folder`, `commands_subdir`, `install_url`, `requires_cli` |
|
||||||
|
| `registrar_config` | Class attribute (dict) | Command output config: `dir`, `format`, `args` placeholder, file `extension` |
|
||||||
|
| `context_file` | Class attribute (str or None) | Path to agent context/instructions file (e.g., `"CLAUDE.md"`, `".github/copilot-instructions.md"`) |
|
||||||
|
|
||||||
|
**Key design rule:** For CLI-based integrations (`requires_cli: True`), `key` must be the actual executable name (e.g., `"cursor-agent"` not `"cursor"`). This ensures `shutil.which(key)` works for CLI-tool checks without special-case mappings. IDE-based integrations (`requires_cli: False`) should use their canonical identifier (e.g., `"windsurf"`, `"copilot"`).
|
||||||
|
|
||||||
|
### 3. Register it
|
||||||
|
|
||||||
|
In `src/specify_cli/integrations/__init__.py`, add one import and one `_register()` call inside `_register_builtins()`. Both lists are alphabetical:
|
||||||
|
|
||||||
|
```python
|
||||||
|
def _register_builtins() -> None:
|
||||||
|
# -- Imports (alphabetical) -------------------------------------------
|
||||||
|
from .claude import ClaudeIntegration
|
||||||
|
# ...
|
||||||
|
from .newagent import NewAgentIntegration # ← add import
|
||||||
|
# ...
|
||||||
|
|
||||||
|
# -- Registration (alphabetical) --------------------------------------
|
||||||
|
_register(ClaudeIntegration())
|
||||||
|
# ...
|
||||||
|
_register(NewAgentIntegration()) # ← add registration
|
||||||
|
# ...
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. Context file behavior
|
||||||
|
|
||||||
|
Set `context_file` on the integration class. The base integration setup creates or updates the managed Spec Kit section in that file, and uninstall removes the managed section when appropriate.
|
||||||
|
|
||||||
|
Only add custom setup logic when the agent needs non-standard behavior. Most integrations do not need wrapper scripts or separate context-update dispatch code.
|
||||||
|
|
||||||
|
### 5. Test it
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install into a test project
|
||||||
|
specify init my-project --integration <key>
|
||||||
|
|
||||||
|
# Verify files were created in the commands directory configured by
|
||||||
|
# config["folder"] + config["commands_subdir"] (for example, .windsurf/workflows/)
|
||||||
|
ls -R my-project/.windsurf/workflows/
|
||||||
|
|
||||||
|
# Uninstall cleanly
|
||||||
|
cd my-project && specify integration uninstall <key>
|
||||||
|
```
|
||||||
|
|
||||||
|
Each integration also has a dedicated test file at `tests/integrations/test_integration_<key>.py`. Note that hyphens in the key are replaced with underscores in the filename (e.g., key `cursor-agent` → `test_integration_cursor_agent.py`, key `kiro-cli` → `test_integration_kiro_cli.py`). Run it with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pytest tests/integrations/test_integration_<key_with_underscores>.py -v
|
||||||
|
```
|
||||||
|
|
||||||
|
### 6. Optional overrides
|
||||||
|
|
||||||
|
The base classes handle most work automatically. Override only when the agent deviates from standard patterns:
|
||||||
|
|
||||||
|
| Override | When to use | Example |
|
||||||
|
|---|---|---|
|
||||||
|
| `command_filename(template_name)` | Custom file naming or extension | Copilot → `speckit.{name}.agent.md` |
|
||||||
|
| `options()` | Integration-specific CLI flags via `--integration-options` | Codex → `--skills` flag, Copilot → `--skills` flag |
|
||||||
|
| `setup()` | Custom install logic (companion files, settings merge) | Copilot → `.agent.md` + `.prompt.md` + `.vscode/settings.json` (default) or `speckit-<name>/SKILL.md` (skills mode) |
|
||||||
|
| `teardown()` | Custom uninstall logic | Rarely needed; base handles manifest-tracked files |
|
||||||
|
|
||||||
|
**Example — Copilot (fully custom `setup`):**
|
||||||
|
|
||||||
|
Copilot extends `IntegrationBase` directly because it creates `.agent.md` commands, companion `.prompt.md` files, and merges `.vscode/settings.json`. It also supports a `--skills` mode that scaffolds `speckit-<name>/SKILL.md` under `.github/skills/` using composition with an internal `_CopilotSkillsHelper`. See `src/specify_cli/integrations/copilot/__init__.py` for the full implementation.
|
||||||
|
|
||||||
|
### 7. Update Devcontainer files (Optional)
|
||||||
|
|
||||||
|
For agents that have VS Code extensions or require CLI installation, update the devcontainer configuration files:
|
||||||
|
|
||||||
|
#### VS Code Extension-based Agents
|
||||||
|
|
||||||
|
For agents available as VS Code extensions, add them to `.devcontainer/devcontainer.json`:
|
||||||
|
|
||||||
|
```jsonc
|
||||||
|
{
|
||||||
|
"customizations": {
|
||||||
|
"vscode": {
|
||||||
|
"extensions": [
|
||||||
|
// ... existing extensions ...
|
||||||
|
"[New Agent Extension ID]"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
#### CLI-based Agents
|
||||||
|
|
||||||
|
For agents that require CLI tools, add installation commands to `.devcontainer/post-create.sh`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Existing installations...
|
||||||
|
|
||||||
|
echo -e "\n🤖 Installing [New Agent Name] CLI..."
|
||||||
|
# run_command "npm install -g [agent-cli-package]@latest"
|
||||||
|
echo "✅ Done"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Command File Formats
|
||||||
|
|
||||||
|
### Markdown Format
|
||||||
|
|
||||||
|
**Standard format:**
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
description: "Command description"
|
||||||
|
---
|
||||||
|
|
||||||
|
Command content with {SCRIPT} and $ARGUMENTS placeholders.
|
||||||
|
```
|
||||||
|
|
||||||
|
**GitHub Copilot Chat Mode format:**
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
description: "Command description"
|
||||||
|
mode: speckit.command-name
|
||||||
|
---
|
||||||
|
|
||||||
|
Command content with {SCRIPT} and $ARGUMENTS placeholders.
|
||||||
|
```
|
||||||
|
|
||||||
|
### TOML Format
|
||||||
|
|
||||||
|
```toml
|
||||||
|
description = "Command description"
|
||||||
|
|
||||||
|
prompt = """
|
||||||
|
Command content with {SCRIPT} and {{args}} placeholders.
|
||||||
|
"""
|
||||||
|
```
|
||||||
|
|
||||||
|
### YAML Format
|
||||||
|
|
||||||
|
Used by: Goose
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
version: 1.0.0
|
||||||
|
title: "Command Title"
|
||||||
|
description: "Command description"
|
||||||
|
author:
|
||||||
|
contact: spec-kit
|
||||||
|
extensions:
|
||||||
|
- type: builtin
|
||||||
|
name: developer
|
||||||
|
activities:
|
||||||
|
- Spec-Driven Development
|
||||||
|
prompt: |
|
||||||
|
Command content with {SCRIPT} and {{args}} placeholders.
|
||||||
|
```
|
||||||
|
|
||||||
|
## Argument Patterns
|
||||||
|
|
||||||
|
Different agents use different argument placeholders. The placeholder used in command files is always taken from `registrar_config["args"]` for each integration — check there first when in doubt:
|
||||||
|
|
||||||
|
- **Markdown/prompt-based**: `$ARGUMENTS` (default for most markdown agents)
|
||||||
|
- **TOML-based**: `{{args}}` (e.g., Gemini)
|
||||||
|
- **YAML-based**: `{{args}}` (e.g., Goose)
|
||||||
|
- **Custom**: some agents override the default (e.g., Forge uses `{{parameters}}`)
|
||||||
|
- **Script placeholders**: `{SCRIPT}` (replaced with actual script path)
|
||||||
|
- **Agent placeholders**: `__AGENT__` (replaced with agent name)
|
||||||
|
|
||||||
|
## Special Processing Requirements
|
||||||
|
|
||||||
|
Some agents require custom processing beyond the standard template transformations:
|
||||||
|
|
||||||
|
### Copilot Integration
|
||||||
|
|
||||||
|
GitHub Copilot has unique requirements:
|
||||||
|
- Commands use `.agent.md` extension (not `.md`)
|
||||||
|
- Each command gets a companion `.prompt.md` file in `.github/prompts/`
|
||||||
|
- Installs `.vscode/settings.json` with prompt file recommendations
|
||||||
|
- Context file lives at `.github/copilot-instructions.md`
|
||||||
|
|
||||||
|
Implementation: Extends `IntegrationBase` with custom `setup()` method that:
|
||||||
|
1. Processes templates with `process_template()`
|
||||||
|
2. Generates companion `.prompt.md` files
|
||||||
|
3. Merges VS Code settings
|
||||||
|
|
||||||
|
**Skills mode (`--skills`):** Copilot also supports an alternative skills-based layout
|
||||||
|
via `--integration-options="--skills"`. When enabled:
|
||||||
|
- Commands are scaffolded as `speckit-<name>/SKILL.md` under `.github/skills/`
|
||||||
|
- No companion `.prompt.md` files are generated
|
||||||
|
- No `.vscode/settings.json` merge
|
||||||
|
- `post_process_skill_content()` injects a `mode: speckit.<stem>` frontmatter field
|
||||||
|
- `build_command_invocation()` returns `/speckit-<stem>` instead of bare args
|
||||||
|
|
||||||
|
The two modes are mutually exclusive — a project uses one or the other:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Default mode: .agent.md agents + .prompt.md companions + settings merge
|
||||||
|
specify init my-project --integration copilot
|
||||||
|
|
||||||
|
# Skills mode: speckit-<name>/SKILL.md under .github/skills/
|
||||||
|
specify init my-project --integration copilot --integration-options="--skills"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Forge Integration
|
||||||
|
|
||||||
|
Forge has special frontmatter and argument requirements:
|
||||||
|
- Uses `{{parameters}}` instead of `$ARGUMENTS`
|
||||||
|
- Strips `handoffs` frontmatter key (Forge-specific collaboration feature)
|
||||||
|
- Injects `name` field into frontmatter when missing
|
||||||
|
|
||||||
|
Implementation: Extends `MarkdownIntegration` with custom `setup()` method that:
|
||||||
|
1. Inherits standard template processing from `MarkdownIntegration`
|
||||||
|
2. Adds extra `$ARGUMENTS` → `{{parameters}}` replacement after template processing
|
||||||
|
3. Applies Forge-specific transformations via `_apply_forge_transformations()`
|
||||||
|
4. Strips `handoffs` frontmatter key
|
||||||
|
5. Injects missing `name` fields
|
||||||
|
|
||||||
|
### Goose Integration
|
||||||
|
|
||||||
|
Goose is a YAML-format agent using Block's recipe system:
|
||||||
|
- Uses `.goose/recipes/` directory for YAML recipe files
|
||||||
|
- Uses `{{args}}` argument placeholder
|
||||||
|
- Produces YAML with `prompt: |` block scalar for command content
|
||||||
|
|
||||||
|
Implementation: Extends `YamlIntegration` (parallel to `TomlIntegration`):
|
||||||
|
1. Processes templates through the standard placeholder pipeline
|
||||||
|
2. Extracts title and description from frontmatter
|
||||||
|
3. Renders output as Goose recipe YAML (version, title, description, author, extensions, activities, prompt)
|
||||||
|
4. Uses `yaml.safe_dump()` for header fields to ensure proper escaping
|
||||||
|
5. Sets `context_file = "AGENTS.md"` so the base setup manages the Spec Kit context section there
|
||||||
|
|
||||||
|
## Common Pitfalls
|
||||||
|
|
||||||
|
1. **Using shorthand keys for CLI-based integrations**: For CLI-based integrations (`requires_cli: True`), the `key` must match the executable name (e.g., `"cursor-agent"` not `"cursor"`). `shutil.which(key)` is used for CLI tool checks — mismatches require special-case mappings. IDE-based integrations (`requires_cli: False`) are not subject to this constraint.
|
||||||
|
2. **Forgetting update scripts**: Both bash and PowerShell thin wrappers and the shared context-update scripts must be updated.
|
||||||
|
3. **Incorrect `requires_cli` value**: Set to `True` only for agents that have a CLI tool; set to `False` for IDE-based agents.
|
||||||
|
4. **Wrong argument format**: Use `$ARGUMENTS` for Markdown agents, `{{args}}` for TOML agents.
|
||||||
|
5. **Skipping registration**: The import and `_register()` call in `_register_builtins()` must both be added.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*This documentation should be updated whenever new integrations are added to maintain accuracy and completeness.*
|
||||||
1458
CHANGELOG.md
Normal file
1458
CHANGELOG.md
Normal file
File diff suppressed because it is too large
Load Diff
31
CITATION.cff
Normal file
31
CITATION.cff
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
cff-version: 1.2.0
|
||||||
|
message: >-
|
||||||
|
If you use Spec Kit in your research or reference it in a paper,
|
||||||
|
please cite it using the metadata below.
|
||||||
|
type: software
|
||||||
|
title: "Spec Kit"
|
||||||
|
abstract: >-
|
||||||
|
Spec Kit is an open source toolkit for Spec-Driven Development (SDD) —
|
||||||
|
a methodology that helps software teams build high-quality software faster
|
||||||
|
by focusing on product scenarios and predictable outcomes. It provides the
|
||||||
|
Specify CLI, slash-command templates, extensions, presets, workflows, and
|
||||||
|
integrations for popular AI coding agents.
|
||||||
|
authors:
|
||||||
|
- given-names: Den
|
||||||
|
family-names: Delimarsky
|
||||||
|
alias: localden
|
||||||
|
- given-names: Manfred
|
||||||
|
family-names: Riem
|
||||||
|
alias: mnriem
|
||||||
|
repository-code: "https://github.com/github/spec-kit"
|
||||||
|
url: "https://github.github.io/spec-kit/"
|
||||||
|
license: MIT
|
||||||
|
version: "0.7.3"
|
||||||
|
date-released: "2026-04-17"
|
||||||
|
keywords:
|
||||||
|
- spec-driven development
|
||||||
|
- ai coding agents
|
||||||
|
- software engineering
|
||||||
|
- cli
|
||||||
|
- copilot
|
||||||
|
- specification
|
||||||
@@ -14,21 +14,21 @@ orientation.
|
|||||||
Examples of behavior that contributes to creating a positive environment
|
Examples of behavior that contributes to creating a positive environment
|
||||||
include:
|
include:
|
||||||
|
|
||||||
* Using welcoming and inclusive language
|
- Using welcoming and inclusive language
|
||||||
* Being respectful of differing viewpoints and experiences
|
- Being respectful of differing viewpoints and experiences
|
||||||
* Gracefully accepting constructive criticism
|
- Gracefully accepting constructive criticism
|
||||||
* Focusing on what is best for the community
|
- Focusing on what is best for the community
|
||||||
* Showing empathy towards other community members
|
- Showing empathy towards other community members
|
||||||
|
|
||||||
Examples of unacceptable behavior by participants include:
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
- The use of sexualized language or imagery and unwelcome sexual attention or
|
||||||
advances
|
advances
|
||||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
- Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
* Public or private harassment
|
- Public or private harassment
|
||||||
* Publishing others' private information, such as a physical or electronic
|
- Publishing others' private information, such as a physical or electronic
|
||||||
address, without explicit permission
|
address, without explicit permission
|
||||||
* Other conduct which could reasonably be considered inappropriate in a
|
- Other conduct which could reasonably be considered inappropriate in a
|
||||||
professional setting
|
professional setting
|
||||||
|
|
||||||
## Our Responsibilities
|
## Our Responsibilities
|
||||||
@@ -71,4 +71,4 @@ This Code of Conduct is adapted from the [Contributor Covenant][homepage], versi
|
|||||||
available at [http://contributor-covenant.org/version/1/4][version]
|
available at [http://contributor-covenant.org/version/1/4][version]
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
[homepage]: http://contributor-covenant.org
|
||||||
[version]: http://contributor-covenant.org/version/1/4/
|
[version]: http://contributor-covenant.org/version/1/4/
|
||||||
|
|||||||
187
CONTRIBUTING.md
187
CONTRIBUTING.md
@@ -1,4 +1,4 @@
|
|||||||
## Contributing to Spec Kit
|
# Contributing to Spec Kit
|
||||||
|
|
||||||
Hi there! We're thrilled that you'd like to contribute to Spec Kit. Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).
|
Hi there! We're thrilled that you'd like to contribute to Spec Kit. Contributions to this project are [released](https://help.github.com/articles/github-terms-of-service/#6-contributions-under-repository-license) to the public under the [project's open source license](LICENSE).
|
||||||
|
|
||||||
@@ -11,12 +11,32 @@ These are one time installations required to be able to test your changes locall
|
|||||||
1. Install [Python 3.11+](https://www.python.org/downloads/)
|
1. Install [Python 3.11+](https://www.python.org/downloads/)
|
||||||
1. Install [uv](https://docs.astral.sh/uv/) for package management
|
1. Install [uv](https://docs.astral.sh/uv/) for package management
|
||||||
1. Install [Git](https://git-scm.com/downloads)
|
1. Install [Git](https://git-scm.com/downloads)
|
||||||
1. Have an AI coding agent available: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), or [Gemini CLI](https://github.com/google-gemini/gemini-cli)
|
1. Have an [AI coding agent available](README.md#-supported-ai-coding-agent-integrations)
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary><b>💡 Hint if you are using <code>VSCode</code> or <code>GitHub Codespaces</code> as your IDE</b></summary>
|
||||||
|
|
||||||
|
<br>
|
||||||
|
|
||||||
|
Provided you have [Docker](https://docker.com) installed on your machine, you can leverage [Dev Containers](https://containers.dev) through this [VSCode extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers), to easily set up your development environment, with aforementioned tools already installed and configured, thanks to the `.devcontainer/devcontainer.json` file (located at the root of the project).
|
||||||
|
|
||||||
|
To do so, simply:
|
||||||
|
|
||||||
|
- Checkout the repo
|
||||||
|
- Open it with VSCode
|
||||||
|
- Open the [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) and select "Dev Containers: Open Folder in Container..."
|
||||||
|
|
||||||
|
On [GitHub Codespaces](https://github.com/features/codespaces) it's even simpler, as it leverages the `.devcontainer/devcontainer.json` automatically upon opening the codespace.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
## Submitting a pull request
|
## Submitting a pull request
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> If your pull request introduces a large change that materially impacts the work of the CLI or the rest of the repository (e.g., you're introducing new templates, arguments, or otherwise major changes), make sure that it was **discussed and agreed upon** by the project maintainers. Pull requests with large changes that did not have a prior conversation and agreement will be closed.
|
||||||
|
|
||||||
1. Fork and clone the repository
|
1. Fork and clone the repository
|
||||||
1. Configure and install the dependencies: `uv sync`
|
1. Configure and install the dependencies: `uv sync --extra test`
|
||||||
1. Make sure the CLI works on your machine: `uv run specify --help`
|
1. Make sure the CLI works on your machine: `uv run specify --help`
|
||||||
1. Create a new branch: `git checkout -b my-branch-name`
|
1. Create a new branch: `git checkout -b my-branch-name`
|
||||||
1. Make your change, add tests, and make sure everything still works
|
1. Make your change, add tests, and make sure everything still works
|
||||||
@@ -24,11 +44,13 @@ These are one time installations required to be able to test your changes locall
|
|||||||
1. Push to your fork and submit a pull request
|
1. Push to your fork and submit a pull request
|
||||||
1. Wait for your pull request to be reviewed and merged.
|
1. Wait for your pull request to be reviewed and merged.
|
||||||
|
|
||||||
|
Activate the project virtual environment (see [Testing setup](#testing-setup) below), then install the CLI from your working tree (`uv pip install -e .` after `uv sync --extra test`) or otherwise ensure the shell uses the local `specify` binary before running the manual slash-command tests described below.
|
||||||
|
|
||||||
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
|
Here are a few things you can do that will increase the likelihood of your pull request being accepted:
|
||||||
|
|
||||||
- Follow the project's coding conventions.
|
- Follow the project's coding conventions.
|
||||||
- Write tests for new functionality.
|
- Write tests for new functionality.
|
||||||
- Update documentation (`README.md,` `spec-driven.md`) if your changes affect user-facing features.
|
- Update documentation (`README.md`, `spec-driven.md`) if your changes affect user-facing features.
|
||||||
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
|
- Keep your change as focused as possible. If there are multiple changes you would like to make that are not dependent upon each other, consider submitting them as separate pull requests.
|
||||||
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
|
||||||
- Test your changes with the Spec-Driven Development workflow to ensure compatibility.
|
- Test your changes with the Spec-Driven Development workflow to ensure compatibility.
|
||||||
@@ -37,11 +59,166 @@ Here are a few things you can do that will increase the likelihood of your pull
|
|||||||
|
|
||||||
When working on spec-kit:
|
When working on spec-kit:
|
||||||
|
|
||||||
1. Test changes with the `specify` CLI commands (`/specify`, `/plan`, `/tasks`) in your coding agent of choice
|
1. Test changes with the `specify` CLI commands (`/speckit.specify`, `/speckit.plan`, `/speckit.tasks`) in your coding agent of choice
|
||||||
2. Verify templates are working correctly in `templates/` directory
|
2. Verify templates are working correctly in `templates/` directory
|
||||||
3. Test script functionality in the `scripts/` directory
|
3. Test script functionality in the `scripts/` directory
|
||||||
4. Ensure memory files (`memory/constitution.md`) are updated if major process changes are made
|
4. Ensure memory files (`memory/constitution.md`) are updated if major process changes are made
|
||||||
|
|
||||||
|
### Recommended validation flow
|
||||||
|
|
||||||
|
For the smoothest review experience, validate changes in this order:
|
||||||
|
|
||||||
|
1. **Run focused automated checks first** — use the quick verification commands [below](#automated-checks) to catch scaffolding and configuration regressions early.
|
||||||
|
2. **Run manual workflow tests second** — if your change affects slash commands or the developer workflow, follow the [manual testing](#manual-testing) section to choose the right commands, run them in an agent, and capture results for your PR.
|
||||||
|
|
||||||
|
### Automated checks
|
||||||
|
|
||||||
|
#### Agent configuration and wiring consistency
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv run python -m pytest tests/test_agent_config_consistency.py -q
|
||||||
|
```
|
||||||
|
|
||||||
|
Run this when you change agent metadata, context update scripts, or integration wiring.
|
||||||
|
|
||||||
|
### Manual testing
|
||||||
|
|
||||||
|
#### Testing setup
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install the project and test dependencies from your local branch
|
||||||
|
cd <spec-kit-repo>
|
||||||
|
uv sync --extra test
|
||||||
|
source .venv/bin/activate # On Windows (CMD): .venv\Scripts\activate | (PowerShell): .venv\Scripts\Activate.ps1
|
||||||
|
uv pip install -e .
|
||||||
|
# Ensure the `specify` binary in this environment points at your working tree so the agent runs the branch you're testing.
|
||||||
|
|
||||||
|
# Initialize a test project using your local changes
|
||||||
|
uv run specify init <temp-dir>/speckit-test --integration <agent>
|
||||||
|
cd <temp-dir>/speckit-test
|
||||||
|
|
||||||
|
# Open in your agent
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Manual testing process
|
||||||
|
|
||||||
|
Any change that affects a slash command's behavior requires manually testing that command through a coding agent and submitting results with the PR.
|
||||||
|
|
||||||
|
1. **Identify affected commands** — use the [prompt below](#determining-which-tests-to-run) to have your agent analyze your changed files and determine which commands need testing.
|
||||||
|
2. **Set up a test project** — scaffold from your local branch (see [Testing setup](#testing-setup)).
|
||||||
|
3. **Run each affected command** — invoke it in your agent, verify it completes successfully, and confirm it produces the expected output (files created, scripts executed, artifacts populated).
|
||||||
|
4. **Run prerequisites first** — commands that depend on earlier commands (e.g., `/speckit.tasks` requires `/speckit.plan` which requires `/speckit.specify`) must be run in order.
|
||||||
|
5. **Report results** — paste the [reporting template](#reporting-results) into your PR with pass/fail for each command tested.
|
||||||
|
|
||||||
|
#### Reporting results
|
||||||
|
|
||||||
|
Paste this into your PR:
|
||||||
|
|
||||||
|
~~~markdown
|
||||||
|
## Manual test results
|
||||||
|
|
||||||
|
**Agent**: [e.g., GitHub Copilot in VS Code] | **OS/Shell**: [e.g., macOS/zsh]
|
||||||
|
|
||||||
|
| Command tested | Notes |
|
||||||
|
|----------------|-------|
|
||||||
|
| `/speckit.command` | |
|
||||||
|
~~~
|
||||||
|
|
||||||
|
#### Determining which tests to run
|
||||||
|
|
||||||
|
Copy this prompt into your agent. Include the agent's response (selected tests plus a brief explanation of the mapping) in your PR.
|
||||||
|
|
||||||
|
~~~text
|
||||||
|
Read CONTRIBUTING.md, then run `git diff --name-only main` to get my changed files.
|
||||||
|
For each changed file, determine which slash commands it affects by reading
|
||||||
|
the command templates in templates/commands/ to understand what each command
|
||||||
|
invokes. Use these mapping rules:
|
||||||
|
|
||||||
|
- templates/commands/X.md → the command it defines
|
||||||
|
- scripts/bash/Y.sh or scripts/powershell/Y.ps1 → every command that invokes that script (grep templates/commands/ for the script name). Also check transitive dependencies: if the changed script is sourced by other scripts (e.g., common.sh is sourced by create-new-feature.sh, check-prerequisites.sh, setup-plan.sh, update-agent-context.sh), then every command invoking those downstream scripts is also affected
|
||||||
|
- templates/Z-template.md → every command that consumes that template during execution
|
||||||
|
- src/specify_cli/*.py → CLI commands (`specify init`, `specify check`, `specify extension *`, `specify preset *`); test the affected CLI command and, for init/scaffolding changes, at minimum test /speckit.specify
|
||||||
|
- extensions/X/commands/* → the extension command it defines
|
||||||
|
- extensions/X/scripts/* → every extension command that invokes that script
|
||||||
|
- extensions/X/extension.yml or config-template.yml → every command in that extension. Also check if the manifest defines hooks (look for `hooks:` entries like `before_specify`, `after_implement`, etc.) — if so, the core commands those hooks attach to are also affected
|
||||||
|
- presets/*/* → test preset scaffolding via `specify init` with the preset
|
||||||
|
- pyproject.toml → packaging/bundling; test `specify init` and verify bundled assets
|
||||||
|
|
||||||
|
Include prerequisite tests (e.g., T5 requires T3 requires T1).
|
||||||
|
|
||||||
|
Output in this format:
|
||||||
|
|
||||||
|
### Test selection reasoning
|
||||||
|
|
||||||
|
| Changed file | Affects | Test | Why |
|
||||||
|
|---|---|---|---|
|
||||||
|
| (path) | (command) | T# | (reason) |
|
||||||
|
|
||||||
|
### Required tests
|
||||||
|
|
||||||
|
Number each test sequentially (T1, T2, ...). List prerequisite tests first.
|
||||||
|
|
||||||
|
- T1: /speckit.command — (reason)
|
||||||
|
- T2: /speckit.command — (reason)
|
||||||
|
~~~
|
||||||
|
|
||||||
|
## AI contributions in Spec Kit
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
>
|
||||||
|
> If you are using **any kind of AI assistance** to contribute to Spec Kit,
|
||||||
|
> it must be disclosed in the pull request or issue.
|
||||||
|
|
||||||
|
We welcome and encourage the use of AI tools to help improve Spec Kit! Many valuable contributions have been enhanced with AI assistance for code generation, issue detection, and feature definition.
|
||||||
|
|
||||||
|
That being said, if you are using any kind of AI assistance (e.g., agents, ChatGPT) while contributing to Spec Kit,
|
||||||
|
**this must be disclosed in the pull request or issue**, along with the extent to which AI assistance was used (e.g., documentation comments vs. code generation).
|
||||||
|
|
||||||
|
If your PR responses or comments are being generated by an AI, disclose that as well.
|
||||||
|
|
||||||
|
As an exception, trivial spacing or typo fixes don't need to be disclosed, so long as the changes are limited to small parts of the code or short phrases.
|
||||||
|
|
||||||
|
An example disclosure:
|
||||||
|
|
||||||
|
> This PR was written primarily by GitHub Copilot.
|
||||||
|
|
||||||
|
Or a more detailed disclosure:
|
||||||
|
|
||||||
|
> I consulted ChatGPT to understand the codebase but the solution
|
||||||
|
> was fully authored manually by myself.
|
||||||
|
|
||||||
|
Failure to disclose this is first and foremost rude to the human operators on the other end of the pull request, but it also makes it difficult to
|
||||||
|
determine how much scrutiny to apply to the contribution.
|
||||||
|
|
||||||
|
In a perfect world, AI assistance would produce equal or higher quality work than any human. That isn't the world we live in today, and in most cases
|
||||||
|
where human supervision or expertise is not in the loop, it's generating code that cannot be reasonably maintained or evolved.
|
||||||
|
|
||||||
|
### What we're looking for
|
||||||
|
|
||||||
|
When submitting AI-assisted contributions, please ensure they include:
|
||||||
|
|
||||||
|
- **Clear disclosure of AI use** - You are transparent about AI use and degree to which you're using it for the contribution
|
||||||
|
- **Human understanding and testing** - You've personally tested the changes and understand what they do
|
||||||
|
- **Clear rationale** - You can explain why the change is needed and how it fits within Spec Kit's goals
|
||||||
|
- **Concrete evidence** - Include test cases, scenarios, or examples that demonstrate the improvement
|
||||||
|
- **Your own analysis** - Share your thoughts on the end-to-end developer experience
|
||||||
|
|
||||||
|
### What we'll close
|
||||||
|
|
||||||
|
We reserve the right to close contributions that appear to be:
|
||||||
|
|
||||||
|
- Untested changes submitted without verification
|
||||||
|
- Generic suggestions that don't address specific Spec Kit needs
|
||||||
|
- Bulk submissions that show no human review or understanding
|
||||||
|
|
||||||
|
### Guidelines for success
|
||||||
|
|
||||||
|
The key is demonstrating that you understand and have validated your proposed changes. If a maintainer can easily tell that a contribution was generated entirely by AI without human input or testing, it likely needs more work before submission.
|
||||||
|
|
||||||
|
Contributors who consistently submit low-effort AI-generated changes may be restricted from further contributions at the maintainers' discretion.
|
||||||
|
|
||||||
|
Please be respectful to maintainers and disclose AI assistance.
|
||||||
|
|
||||||
## Resources
|
## Resources
|
||||||
|
|
||||||
- [Spec-Driven Development Methodology](./spec-driven.md)
|
- [Spec-Driven Development Methodology](./spec-driven.md)
|
||||||
|
|||||||
24
DEVELOPMENT.md
Normal file
24
DEVELOPMENT.md
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
# Development Notes
|
||||||
|
|
||||||
|
Spec Kit is a toolkit for spec-driven development. At its core, it is a coordinated set of prompts, templates, scripts, and CLI/integration assets that define and deliver a spec-driven workflow for AI coding agents. This document is a starting point for people modifying Spec Kit itself, with a compact orientation to the key project documents and repository organization.
|
||||||
|
|
||||||
|
**Essential project documents:**
|
||||||
|
|
||||||
|
| Document | Role |
|
||||||
|
| ---------------------------------------------------------- | ------------------------------------------------------------------------------------- |
|
||||||
|
| [README.md](README.md) | Primary user-facing overview of Spec Kit and its workflow. |
|
||||||
|
| [DEVELOPMENT.md](DEVELOPMENT.md) | This document. |
|
||||||
|
| [spec-driven.md](spec-driven.md) | End-to-end explanation of the Spec-Driven Development workflow supported by Spec Kit. |
|
||||||
|
| [RELEASE-PROCESS.md](.github/workflows/RELEASE-PROCESS.md) | Release workflow, versioning rules, and changelog generation process. |
|
||||||
|
| [docs/index.md](docs/index.md) | Entry point to the `docs/` documentation set. |
|
||||||
|
| [CONTRIBUTING.md](CONTRIBUTING.md) | Contribution process, review expectations, testing, and required development practices. |
|
||||||
|
|
||||||
|
**Main repository components:**
|
||||||
|
|
||||||
|
| Directory | Role |
|
||||||
|
| ------------------ | ------------------------------------------------------------------------------------------- |
|
||||||
|
| `templates/` | Prompt assets and templates that define the core workflow behavior and generated artifacts. |
|
||||||
|
| `scripts/` | Supporting scripts used by the workflow, setup, and repository tooling. |
|
||||||
|
| `src/specify_cli/` | Python source for the `specify` CLI, including agent-specific assets. |
|
||||||
|
| `extensions/` | Extension-related docs, catalogs, and supporting assets. |
|
||||||
|
| `presets/` | Preset-related docs, catalogs, and supporting assets. |
|
||||||
1
LICENSE
1
LICENSE
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
SOFTWARE.
|
SOFTWARE.
|
||||||
|
|
||||||
|
|||||||
629
README.md
629
README.md
@@ -1,11 +1,18 @@
|
|||||||
<div align="center">
|
<div align="center">
|
||||||
<img src="./media/logo_small.webp"/>
|
<img src="./media/logo_large.webp" alt="Spec Kit Logo" width="200" height="200"/>
|
||||||
<h1>🌱 Spec Kit</h1>
|
<h1>🌱 Spec Kit</h1>
|
||||||
<h3><em>Build high-quality software faster.</em></h3>
|
<h3><em>Build high-quality software faster.</em></h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
<strong>An effort to allow organizations to focus on product scenarios rather than writing undifferentiated code with the help of Spec-Driven Development.</strong>
|
<strong>An open source toolkit that allows you to focus on product scenarios and predictable outcomes instead of vibe coding every piece from scratch.</strong>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<p align="center">
|
||||||
|
<a href="https://github.com/github/spec-kit/releases/latest"><img src="https://img.shields.io/github/v/release/github/spec-kit" alt="Latest Release"/></a>
|
||||||
|
<a href="https://github.com/github/spec-kit/stargazers"><img src="https://img.shields.io/github/stars/github/spec-kit?style=social" alt="GitHub stars"/></a>
|
||||||
|
<a href="https://github.com/github/spec-kit/blob/main/LICENSE"><img src="https://img.shields.io/github/license/github/spec-kit" alt="License"/></a>
|
||||||
|
<a href="https://github.github.io/spec-kit/"><img src="https://img.shields.io/badge/docs-GitHub_Pages-blue" alt="Documentation"/></a>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
---
|
---
|
||||||
@@ -13,69 +20,409 @@
|
|||||||
## Table of Contents
|
## Table of Contents
|
||||||
|
|
||||||
- [🤔 What is Spec-Driven Development?](#-what-is-spec-driven-development)
|
- [🤔 What is Spec-Driven Development?](#-what-is-spec-driven-development)
|
||||||
- [⚡ Get started](#-get-started)
|
- [⚡ Get Started](#-get-started)
|
||||||
- [📚 Core philosophy](#-core-philosophy)
|
- [📽️ Video Overview](#️-video-overview)
|
||||||
- [🌟 Development phases](#-development-phases)
|
- [🧩 Community Extensions](#-community-extensions)
|
||||||
- [🎯 Experimental goals](#-experimental-goals)
|
- [🎨 Community Presets](#-community-presets)
|
||||||
|
- [🚶 Community Walkthroughs](#-community-walkthroughs)
|
||||||
|
- [🛠️ Community Friends](#️-community-friends)
|
||||||
|
- [🤖 Supported AI Coding Agent Integrations](#-supported-ai-coding-agent-integrations)
|
||||||
|
- [🔧 Specify CLI Reference](#-specify-cli-reference)
|
||||||
|
- [🧩 Making Spec Kit Your Own: Extensions & Presets](#-making-spec-kit-your-own-extensions--presets)
|
||||||
|
- [📚 Core Philosophy](#-core-philosophy)
|
||||||
|
- [🌟 Development Phases](#-development-phases)
|
||||||
|
- [🎯 Experimental Goals](#-experimental-goals)
|
||||||
- [🔧 Prerequisites](#-prerequisites)
|
- [🔧 Prerequisites](#-prerequisites)
|
||||||
- [📖 Learn more](#-learn-more)
|
- [📖 Learn More](#-learn-more)
|
||||||
- [Detailed process](#detailed-process)
|
- [📋 Detailed Process](#-detailed-process)
|
||||||
- [Troubleshooting](#troubleshooting)
|
- [🔍 Troubleshooting](#-troubleshooting)
|
||||||
|
- [💬 Support](#-support)
|
||||||
|
- [🙏 Acknowledgements](#-acknowledgements)
|
||||||
|
- [📄 License](#-license)
|
||||||
|
|
||||||
## 🤔 What is Spec-Driven Development?
|
## 🤔 What is Spec-Driven Development?
|
||||||
|
|
||||||
Spec-Driven Development **flips the script** on traditional software development. For decades, code has been king — specifications were just scaffolding we built and discarded once the "real work" of coding began. Spec-Driven Development changes this: **specifications become executable**, directly generating working implementations rather than just guiding them.
|
Spec-Driven Development **flips the script** on traditional software development. For decades, code has been king — specifications were just scaffolding we built and discarded once the "real work" of coding began. Spec-Driven Development changes this: **specifications become executable**, directly generating working implementations rather than just guiding them.
|
||||||
|
|
||||||
## ⚡ Get started
|
## ⚡ Get Started
|
||||||
|
|
||||||
### 1. Install Specify
|
### 1. Install Specify CLI
|
||||||
|
|
||||||
Initialize your project depending on the coding agent you're using:
|
Choose your preferred installation method:
|
||||||
|
|
||||||
|
> **Important:** The only official, maintained packages for Spec Kit are published from this GitHub repository. Any packages with the same name on PyPI are **not** affiliated with this project and are not maintained by the Spec Kit maintainers. Always install directly from GitHub as shown below.
|
||||||
|
|
||||||
|
#### Option 1: Persistent Installation (Recommended)
|
||||||
|
|
||||||
|
Install once and use everywhere. Pin a specific release tag for stability (check [Releases](https://github.com/github/spec-kit/releases) for the latest):
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> The `uv tool install` commands below require **[uv](https://docs.astral.sh/uv/)** — a fast Python package manager. If you see `command not found: uv`, [install uv first](./docs/install/uv.md). The `pipx` alternative does not require uv.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>
|
# Install a specific stable release (recommended — replace vX.Y.Z with the latest tag)
|
||||||
|
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
|
||||||
|
# Or install latest from main (may include unreleased changes)
|
||||||
|
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
|
||||||
|
|
||||||
|
# Alternative: using pipx (also works)
|
||||||
|
pipx install git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
pipx install git+https://github.com/github/spec-kit.git
|
||||||
```
|
```
|
||||||
|
|
||||||
### 2. Create the spec
|
Then verify the correct version is installed:
|
||||||
|
|
||||||
Use the `/specify` command to describe what you want to build. Focus on the **what** and **why**, not the tech stack.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/specify Build an application that can help me organize my photos in separate photo albums. Albums are grouped by date and can be re-organized by dragging and dropping on the main page. Albums never other nested albums. Within each album, photos are previewed in a tile-like interface.
|
specify version
|
||||||
```
|
```
|
||||||
|
|
||||||
### 3. Create a technical implementation plan
|
And use the tool directly:
|
||||||
|
|
||||||
Use the `/plan` command to provide your tech stack and architecture choices.
|
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
/plan The application uses Vite with minimal number of libraries. Use vanilla HTML, CSS, and JavaScript as much as possible. Images are not uploaded anywhere and metadata is stored in a local SQLite database.
|
# Create new project
|
||||||
|
specify init <PROJECT_NAME>
|
||||||
|
|
||||||
|
# Or initialize in existing project
|
||||||
|
specify init . --integration copilot
|
||||||
|
# or
|
||||||
|
specify init --here --integration copilot
|
||||||
|
|
||||||
|
# Check installed tools
|
||||||
|
specify check
|
||||||
```
|
```
|
||||||
|
|
||||||
### 4. Break down and implement
|
To upgrade Specify, see the [Upgrade Guide](./docs/upgrade.md) for detailed instructions. Quick upgrade:
|
||||||
|
|
||||||
Use `/tasks` to create an actionable task list, then ask your agent to implement the feature.
|
```bash
|
||||||
|
uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
# pipx users: pipx install --force git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
```
|
||||||
|
|
||||||
|
#### Option 2: One-time Usage
|
||||||
|
|
||||||
|
Run directly without installing:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create new project (pinned to a stable release — replace vX.Y.Z with the latest tag)
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <PROJECT_NAME>
|
||||||
|
|
||||||
|
# Or initialize in existing project
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init . --integration copilot
|
||||||
|
# or
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init --here --integration copilot
|
||||||
|
```
|
||||||
|
|
||||||
|
**Benefits of persistent installation:**
|
||||||
|
|
||||||
|
- Tool stays installed and available in PATH
|
||||||
|
- No need to create shell aliases
|
||||||
|
- Better tool management with `uv tool list`, `uv tool upgrade`, `uv tool uninstall`
|
||||||
|
- Cleaner shell configuration
|
||||||
|
|
||||||
|
#### Option 3: Enterprise / Air-Gapped Installation
|
||||||
|
|
||||||
|
If your environment blocks access to PyPI or GitHub, see the [Enterprise / Air-Gapped Installation](./docs/installation.md#enterprise--air-gapped-installation) guide for step-by-step instructions on using `pip download` to create portable, OS-specific wheel bundles on a connected machine.
|
||||||
|
|
||||||
|
### 2. Establish project principles
|
||||||
|
|
||||||
|
Launch your coding agent in the project directory. Most agents expose spec-kit as `/speckit.*` slash commands; Codex CLI in skills mode uses `$speckit-*` instead.
|
||||||
|
|
||||||
|
Use the **`/speckit.constitution`** command to create your project's governing principles and development guidelines that will guide all subsequent development.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.constitution Create principles focused on code quality, testing standards, user experience consistency, and performance requirements
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Create the spec
|
||||||
|
|
||||||
|
Use the **`/speckit.specify`** command to describe what you want to build. Focus on the **what** and **why**, not the tech stack.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.specify Build an application that can help me organize my photos in separate photo albums. Albums are grouped by date and can be re-organized by dragging and dropping on the main page. Albums are never in other nested albums. Within each album, photos are previewed in a tile-like interface.
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. Create a technical implementation plan
|
||||||
|
|
||||||
|
Use the **`/speckit.plan`** command to provide your tech stack and architecture choices.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.plan The application uses Vite with minimal number of libraries. Use vanilla HTML, CSS, and JavaScript as much as possible. Images are not uploaded anywhere and metadata is stored in a local SQLite database.
|
||||||
|
```
|
||||||
|
|
||||||
|
### 5. Break down into tasks
|
||||||
|
|
||||||
|
Use **`/speckit.tasks`** to create an actionable task list from your implementation plan.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.tasks
|
||||||
|
```
|
||||||
|
|
||||||
|
### 6. Execute implementation
|
||||||
|
|
||||||
|
Use **`/speckit.implement`** to execute all tasks and build your feature according to the plan.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.implement
|
||||||
|
```
|
||||||
|
|
||||||
For detailed step-by-step instructions, see our [comprehensive guide](./spec-driven.md).
|
For detailed step-by-step instructions, see our [comprehensive guide](./spec-driven.md).
|
||||||
|
|
||||||
## 📚 Core philosophy
|
## 📽️ Video Overview
|
||||||
|
|
||||||
|
Want to see Spec Kit in action? Watch our [video overview](https://www.youtube.com/watch?v=a9eR1xsfvHg&pp=0gcJCckJAYcqIYzv)!
|
||||||
|
|
||||||
|
[](https://www.youtube.com/watch?v=a9eR1xsfvHg&pp=0gcJCckJAYcqIYzv)
|
||||||
|
|
||||||
|
## 🧩 Community Extensions
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Community extensions are independently created and maintained by their respective authors. Maintainers only verify that catalog entries are complete and correctly formatted — they do **not review, audit, endorse, or support the extension code itself**. The Community Extensions website is also a third-party resource. Review extension source code before installation and use at your own discretion.
|
||||||
|
|
||||||
|
🔍 **Browse and search community extensions on the [Community Extensions website](https://speckit-community.github.io/extensions/).**
|
||||||
|
|
||||||
|
The following community-contributed extensions are available in [`catalog.community.json`](extensions/catalog.community.json):
|
||||||
|
|
||||||
|
**Categories:**
|
||||||
|
|
||||||
|
- `docs` — reads, validates, or generates spec artifacts
|
||||||
|
- `code` — reviews, validates, or modifies source code
|
||||||
|
- `process` — orchestrates workflow across phases
|
||||||
|
- `integration` — syncs with external platforms
|
||||||
|
- `visibility` — reports on project health or progress
|
||||||
|
|
||||||
|
**Effect:**
|
||||||
|
|
||||||
|
- `Read-only` — produces reports without modifying files
|
||||||
|
- `Read+Write` — modifies files, creates artifacts, or updates specs
|
||||||
|
|
||||||
|
| Extension | Purpose | Category | Effect | URL |
|
||||||
|
|-----------|---------|----------|--------|-----|
|
||||||
|
| Agent Assign | Assign specialized Claude Code agents to spec-kit tasks for targeted execution | `process` | Read+Write | [spec-kit-agent-assign](https://github.com/xymelon/spec-kit-agent-assign) |
|
||||||
|
| AI-Driven Engineering (AIDE) | A structured 7-step workflow for building new projects from scratch with AI assistants — from vision through implementation | `process` | Read+Write | [aide](https://github.com/mnriem/spec-kit-extensions/tree/main/aide) |
|
||||||
|
| Architect Impact Previewer | Predicts architectural impact, complexity, and risks of proposed changes before implementation. | `visibility` | Read-only | [spec-kit-architect-preview](https://github.com/UmmeHabiba1312/spec-kit-architect-preview) |
|
||||||
|
| Architecture Guard | Continuous architecture governance for AI-assisted development. Reviews specs, plans, and code for architecture drift, producing structured refactor tasks and evolution proposals. | `process` | Read+Write | [spec-kit-architecture-guard](https://github.com/DyanGalih/spec-kit-architecture-guard) |
|
||||||
|
| Archive Extension | Archive merged features into main project memory. | `docs` | Read+Write | [spec-kit-archive](https://github.com/stn1slv/spec-kit-archive) |
|
||||||
|
| Azure DevOps Integration | Sync user stories and tasks to Azure DevOps work items using OAuth authentication | `integration` | Read+Write | [spec-kit-azure-devops](https://github.com/pragya247/spec-kit-azure-devops) |
|
||||||
|
| Blueprint | Stay code-literate in AI-driven development: review a complete code blueprint for every task from spec artifacts before /speckit.implement runs | `docs` | Read+Write | [spec-kit-blueprint](https://github.com/chordpli/spec-kit-blueprint) |
|
||||||
|
| Branch Convention | Configurable branch and folder naming conventions for /specify with presets and custom patterns | `process` | Read+Write | [spec-kit-branch-convention](https://github.com/Quratulain-bilal/spec-kit-branch-convention) |
|
||||||
|
| Brownfield Bootstrap | Bootstrap spec-kit for existing codebases — auto-discover architecture and adopt SDD incrementally | `process` | Read+Write | [spec-kit-brownfield](https://github.com/Quratulain-bilal/spec-kit-brownfield) |
|
||||||
|
| Bugfix Workflow | Structured bugfix workflow — capture bugs, trace to spec artifacts, and patch specs surgically | `process` | Read+Write | [spec-kit-bugfix](https://github.com/Quratulain-bilal/spec-kit-bugfix) |
|
||||||
|
| Canon | Adds canon-driven (baseline-driven) workflows: spec-first, code-first, spec-drift. Requires Canon Core preset installation. | `process` | Read+Write | [spec-kit-canon](https://github.com/maximiliamus/spec-kit-canon/tree/master/extension) |
|
||||||
|
| Catalog CI | Automated validation for spec-kit community catalog entries — structure, URLs, diffs, and linting | `process` | Read-only | [spec-kit-catalog-ci](https://github.com/Quratulain-bilal/spec-kit-catalog-ci) |
|
||||||
|
| CI Guard | Spec compliance gates for CI/CD — verify specs exist, check drift, and block merges on gaps | `process` | Read-only | [spec-kit-ci-guard](https://github.com/Quratulain-bilal/spec-kit-ci-guard) |
|
||||||
|
| Checkpoint Extension | Commit the changes made during the middle of the implementation, so you don't end up with just one very large commit at the end | `code` | Read+Write | [spec-kit-checkpoint](https://github.com/aaronrsun/spec-kit-checkpoint) |
|
||||||
|
| Cleanup Extension | Post-implementation quality gate that reviews changes, fixes small issues (scout rule), creates tasks for medium issues, and generates analysis for large issues | `code` | Read+Write | [spec-kit-cleanup](https://github.com/dsrednicki/spec-kit-cleanup) |
|
||||||
|
| Conduct Extension | Orchestrates spec-kit phases via sub-agent delegation to reduce context pollution. | `process` | Read+Write | [spec-kit-conduct-ext](https://github.com/twbrandon7/spec-kit-conduct-ext) |
|
||||||
|
| Confluence Extension | Create a doc in Confluence summarizing the specifications and planning files | `integration` | Read+Write | [spec-kit-confluence](https://github.com/aaronrsun/spec-kit-confluence) |
|
||||||
|
| Cost Tracker | Track real LLM dollar cost across SDD workflows — per-feature budgets, per-integration comparison, and finance-ready exports | `visibility` | Read+Write | [spec-kit-cost](https://github.com/Quratulain-bilal/spec-kit-cost) |
|
||||||
|
| DocGuard — CDD Enforcement | Canonical-Driven Development enforcement. Validates, scores, and traces project documentation with automated checks, AI-driven workflows, and spec-kit hooks. Zero NPM runtime dependencies. | `docs` | Read+Write | [spec-kit-docguard](https://github.com/raccioly/docguard) |
|
||||||
|
| Extensify | Create and validate extensions and extension catalogs | `process` | Read+Write | [extensify](https://github.com/mnriem/spec-kit-extensions/tree/main/extensify) |
|
||||||
|
| Fix Findings | Automated analyze-fix-reanalyze loop that resolves spec findings until clean | `code` | Read+Write | [spec-kit-fix-findings](https://github.com/Quratulain-bilal/spec-kit-fix-findings) |
|
||||||
|
| FixIt Extension | Spec-aware bug fixing — maps bugs to spec artifacts, proposes a plan, applies minimal changes | `code` | Read+Write | [spec-kit-fixit](https://github.com/speckit-community/spec-kit-fixit) |
|
||||||
|
| Fleet Orchestrator | Orchestrate a full feature lifecycle with human-in-the-loop gates across all SpecKit phases | `process` | Read+Write | [spec-kit-fleet](https://github.com/sharathsatish/spec-kit-fleet) |
|
||||||
|
| GitHub Issues Integration 1 | Generate spec artifacts from GitHub Issues - import issues, sync updates, and maintain bidirectional traceability | `integration` | Read+Write | [spec-kit-github-issues](https://github.com/Fatima367/spec-kit-github-issues) |
|
||||||
|
| GitHub Issues Integration 2 | Creates and syncs local specs from an existing GitHub issue | `integration` | Read+Write | [spec-kit-issue](https://github.com/aaronrsun/spec-kit-issue) |
|
||||||
|
| Intelligent Agent Orchestrator | Cross-catalog agent discovery and intelligent prompt-to-command routing | `process` | Read+Write | [spec-kit-orchestrator](https://github.com/pragya247/spec-kit-orchestrator) |
|
||||||
|
| Iterate | Iterate on spec documents with a two-phase define-and-apply workflow — refine specs mid-implementation and go straight back to building | `docs` | Read+Write | [spec-kit-iterate](https://github.com/imviancagrace/spec-kit-iterate) |
|
||||||
|
| Jira Integration | Create Jira Epics, Stories, and Issues from spec-kit specifications and task breakdowns with configurable hierarchy and custom field support | `integration` | Read+Write | [spec-kit-jira](https://github.com/mbachorik/spec-kit-jira) |
|
||||||
|
| Learning Extension | Generate educational guides from implementations and enhance clarifications with mentoring context | `docs` | Read+Write | [spec-kit-learn](https://github.com/imviancagrace/spec-kit-learn) |
|
||||||
|
| MAQA — Multi-Agent & Quality Assurance | Coordinator → feature → QA agent workflow with parallel worktree-based implementation. Language-agnostic. Auto-detects installed board plugins. Optional CI gate. | `process` | Read+Write | [spec-kit-maqa-ext](https://github.com/GenieRobot/spec-kit-maqa-ext) |
|
||||||
|
| MAQA Azure DevOps Integration | Azure DevOps Boards integration for MAQA — syncs User Stories and Task children as features progress | `integration` | Read+Write | [spec-kit-maqa-azure-devops](https://github.com/GenieRobot/spec-kit-maqa-azure-devops) |
|
||||||
|
| MAQA CI/CD Gate | Auto-detects GitHub Actions, CircleCI, GitLab CI, and Bitbucket Pipelines. Blocks QA handoff until pipeline is green. | `process` | Read+Write | [spec-kit-maqa-ci](https://github.com/GenieRobot/spec-kit-maqa-ci) |
|
||||||
|
| MAQA GitHub Projects Integration | GitHub Projects v2 integration for MAQA — syncs draft issues and Status columns as features progress | `integration` | Read+Write | [spec-kit-maqa-github-projects](https://github.com/GenieRobot/spec-kit-maqa-github-projects) |
|
||||||
|
| MAQA Jira Integration | Jira integration for MAQA — syncs Stories and Subtasks as features progress through the board | `integration` | Read+Write | [spec-kit-maqa-jira](https://github.com/GenieRobot/spec-kit-maqa-jira) |
|
||||||
|
| MAQA Linear Integration | Linear integration for MAQA — syncs issues and sub-issues across workflow states as features progress | `integration` | Read+Write | [spec-kit-maqa-linear](https://github.com/GenieRobot/spec-kit-maqa-linear) |
|
||||||
|
| MAQA Trello Integration | Trello board integration for MAQA — populates board from specs, moves cards, real-time checklist ticking | `integration` | Read+Write | [spec-kit-maqa-trello](https://github.com/GenieRobot/spec-kit-maqa-trello) |
|
||||||
|
| MarkItDown Document Converter | Convert documents (PDF, Word, PowerPoint, Excel, and more) to Markdown for use as spec reference material | `docs` | Read+Write | [spec-kit-markitdown](https://github.com/BenBtg/spec-kit-markitdown) |
|
||||||
|
| Memory Loader | Loads .specify/memory/ files before lifecycle commands so LLM agents have project governance context | `docs` | Read-only | [spec-kit-memory-loader](https://github.com/KevinBrown5280/spec-kit-memory-loader) |
|
||||||
|
| Memory MD | Spec Kit extension for repository-native Markdown memory that captures durable decisions, bugs, and project context | `docs` | Read+Write | [spec-kit-memory-hub](https://github.com/DyanGalih/spec-kit-memory-hub) |
|
||||||
|
| MemoryLint | Agent memory governance tool: Automatically audits and fixes boundary conflicts between AGENTS.md and the constitution. | `process` | Read+Write | [memorylint](https://github.com/RbBtSn0w/spec-kit-extensions/tree/main/memorylint) |
|
||||||
|
| Microsoft 365 Integration | Fetch Teams messages, meeting transcripts, and SharePoint/OneDrive files as local Markdown for spec generation | `integration` | Read+Write | [spec-kit-m365](https://github.com/BenBtg/spec-kit-m365) |
|
||||||
|
| Multi-Model Review | Cross-model Spec Kit handoffs for spec authoring, implementation routing, and review. | `process` | Read+Write | [multi-model-review](https://github.com/formin/multi-model-review) |
|
||||||
|
| .NET Framework to Modern .NET Migration | Orchestrate end-to-end .NET Framework to modern .NET migration across 7 phases, with SDD lifecycle integration | `process` | Read+Write | [spec-kit-fx-to-net](https://github.com/RogerBestMsft/spec-kit-FxToNet) |
|
||||||
|
| Onboard | Contextual onboarding and progressive growth for developers new to spec-kit projects. Explains specs, maps dependencies, validates understanding, and guides the next step | `process` | Read+Write | [spec-kit-onboard](https://github.com/dmux/spec-kit-onboard) |
|
||||||
|
| Optimize | Audit and optimize AI governance for context efficiency — token budgets, rule health, interpretability, compression, coherence, and echo detection | `process` | Read+Write | [spec-kit-optimize](https://github.com/sakitA/spec-kit-optimize) |
|
||||||
|
| OWASP LLM Threat Model | OWASP Top 10 for LLM Applications 2025 threat analysis on agent artifacts | `code` | Read-only | [spec-kit-threatmodel](https://github.com/NaviaSamal/spec-kit-threatmodel) |
|
||||||
|
| Plan Review Gate | Require spec.md and plan.md to be merged via MR/PR before allowing task generation | `process` | Read-only | [spec-kit-plan-review-gate](https://github.com/luno/spec-kit-plan-review-gate) |
|
||||||
|
| PR Bridge | Auto-generate pull request descriptions, checklists, and summaries from spec artifacts | `process` | Read-only | [spec-kit-pr-bridge-](https://github.com/Quratulain-bilal/spec-kit-pr-bridge-) |
|
||||||
|
| Presetify | Create and validate presets and preset catalogs | `process` | Read+Write | [presetify](https://github.com/mnriem/spec-kit-extensions/tree/main/presetify) |
|
||||||
|
| Product Forge | Full product lifecycle from research to release — portfolio, lite mode, monorepo, optional V-Model | `process` | Read+Write | [speckit-product-forge](https://github.com/VaiYav/speckit-product-forge) |
|
||||||
|
| Project Health Check | Diagnose a Spec Kit project and report health issues across structure, agents, features, scripts, extensions, and git | `visibility` | Read-only | [spec-kit-doctor](https://github.com/KhawarHabibKhan/spec-kit-doctor) |
|
||||||
|
| Project Status | Show current SDD workflow progress — active feature, artifact status, task completion, workflow phase, and extensions summary | `visibility` | Read-only | [spec-kit-status](https://github.com/KhawarHabibKhan/spec-kit-status) |
|
||||||
|
| QA Testing Extension | Systematic QA testing with browser-driven or CLI-based validation of acceptance criteria from spec | `code` | Read-only | [spec-kit-qa](https://github.com/arunt14/spec-kit-qa) |
|
||||||
|
| Ralph Loop | Autonomous implementation loop using AI agent CLI | `code` | Read+Write | [spec-kit-ralph](https://github.com/Rubiss-Projects/spec-kit-ralph) |
|
||||||
|
| Reconcile Extension | Reconcile implementation drift by surgically updating feature artifacts. | `docs` | Read+Write | [spec-kit-reconcile](https://github.com/stn1slv/spec-kit-reconcile) |
|
||||||
|
| Red Team | Adversarial review of specs before /speckit.plan — parallel lens agents surface risks that clarify/analyze structurally can't (prompt injection, integrity gaps, cross-spec drift, silent failures). Produces a structured findings report; no auto-edits to specs. | `docs` | Read+Write | [spec-kit-red-team](https://github.com/ashbrener/spec-kit-red-team) |
|
||||||
|
| Repository Index | Generate index for existing repo for overview, architecture and module level. | `docs` | Read-only | [spec-kit-repoindex](https://github.com/liuyiyu/spec-kit-repoindex) |
|
||||||
|
| Retro Extension | Sprint retrospective analysis with metrics, spec accuracy assessment, and improvement suggestions | `process` | Read+Write | [spec-kit-retro](https://github.com/arunt14/spec-kit-retro) |
|
||||||
|
| Retrospective Extension | Post-implementation retrospective with spec adherence scoring, drift analysis, and human-gated spec updates | `docs` | Read+Write | [spec-kit-retrospective](https://github.com/emi-dm/spec-kit-retrospective) |
|
||||||
|
| Review Extension | Post-implementation comprehensive code review with specialized agents for code quality, comments, tests, error handling, type design, and simplification | `code` | Read-only | [spec-kit-review](https://github.com/ismaelJimenez/spec-kit-review) |
|
||||||
|
| Ripple | Detect side effects that tests can't catch after implementation — delta-anchored analysis across 9 domain-agnostic categories | `code` | Read+Write | [spec-kit-ripple](https://github.com/chordpli/spec-kit-ripple) |
|
||||||
|
| SDD Utilities | Resume interrupted workflows, validate project health, and verify spec-to-task traceability | `process` | Read+Write | [speckit-utils](https://github.com/mvanhorn/speckit-utils) |
|
||||||
|
| Security Review | Full-project secure-by-design security audits plus staged, branch/PR, plan, task, follow-up, and apply reviews | `code` | Read+Write | [spec-kit-security-review](https://github.com/DyanGalih/spec-kit-security-review) |
|
||||||
|
| SFSpeckit | Enterprise Salesforce SDLC with 18 commands for the full SDD lifecycle. | `process` | Read+Write | [spec-kit-sf](https://github.com/ysumanth06/spec-kit-sf) |
|
||||||
|
| Ship Release Extension | Automates release pipeline: pre-flight checks, branch sync, changelog generation, CI verification, and PR creation | `process` | Read+Write | [spec-kit-ship](https://github.com/arunt14/spec-kit-ship) |
|
||||||
|
| Spec Reference Loader | Reads the ## References section from the feature spec and loads only the listed docs into context | `docs` | Read-only | [spec-kit-spec-reference-loader](https://github.com/KevinBrown5280/spec-kit-spec-reference-loader) |
|
||||||
|
| Spec Critique Extension | Dual-lens critical review of spec and plan from product strategy and engineering risk perspectives | `docs` | Read-only | [spec-kit-critique](https://github.com/arunt14/spec-kit-critique) |
|
||||||
|
| Spec Diagram | Auto-generate Mermaid diagrams of SDD workflow state, feature progress, and task dependencies | `visibility` | Read-only | [spec-kit-diagram-](https://github.com/Quratulain-bilal/spec-kit-diagram-) |
|
||||||
|
| Spec Orchestrator | Cross-feature orchestration — track state, select tasks, and detect conflicts across parallel specs | `process` | Read-only | [spec-kit-orchestrator](https://github.com/Quratulain-bilal/spec-kit-orchestrator) |
|
||||||
|
| Spec Refine | Update specs in-place, propagate changes to plan and tasks, and diff impact across artifacts | `process` | Read+Write | [spec-kit-refine](https://github.com/Quratulain-bilal/spec-kit-refine) |
|
||||||
|
| Spec Scope | Effort estimation and scope tracking — estimate work, detect creep, and budget time per phase | `process` | Read-only | [spec-kit-scope-](https://github.com/Quratulain-bilal/spec-kit-scope-) |
|
||||||
|
| Spec Sync | Detect and resolve drift between specs and implementation. AI-assisted resolution with human approval | `docs` | Read+Write | [spec-kit-sync](https://github.com/bgervin/spec-kit-sync) |
|
||||||
|
| Spec Validate | Comprehension validation, review gating, and approval state for spec-kit artifacts — staged quizzes, peer review SLA, and a hard gate before /speckit.implement | `process` | Read+Write | [spec-kit-spec-validate](https://github.com/aeltayeb/spec-kit-spec-validate) |
|
||||||
|
| Spec2Cloud | Spec-driven workflow tuned for shipping to Azure | `process` | Read+Write | [spec2cloud](https://github.com/Azure-Samples/Spec2Cloud) |
|
||||||
|
| SpecTest | Auto-generate test scaffolds from spec criteria, map coverage, and find untested requirements | `code` | Read+Write | [spec-kit-spectest](https://github.com/Quratulain-bilal/spec-kit-spectest) |
|
||||||
|
| Squad Bridge | Bootstrap and synchronize a Squad agent team from your Speckit spec and tasks | `process` | Read+Write | [spec-kit-squad](https://github.com/jwill824/spec-kit-squad) |
|
||||||
|
| Staff Review Extension | Staff-engineer-level code review that validates implementation against spec, checks security, performance, and test coverage | `code` | Read-only | [spec-kit-staff-review](https://github.com/arunt14/spec-kit-staff-review) |
|
||||||
|
| Status Report | Project status, feature progress, and next-action recommendations for spec-driven workflows | `visibility` | Read-only | [Open-Agent-Tools/spec-kit-status](https://github.com/Open-Agent-Tools/spec-kit-status) |
|
||||||
|
| Superpowers Bridge | Orchestrates obra/superpowers skills within the spec-kit SDD workflow across the full lifecycle (clarification, TDD, review, verification, critique, debugging, branch completion) | `process` | Read+Write | [superpowers-bridge](https://github.com/RbBtSn0w/spec-kit-extensions/tree/main/superpowers-bridge) |
|
||||||
|
| Superpowers Bridge (WangX0111) | Bridges spec-kit with obra/superpowers (brainstorming, TDD, subagent, code-review) into a unified, resumable workflow with graceful degradation and session progress tracking | `process` | Read+Write | [superspec](https://github.com/WangX0111/superspec) |
|
||||||
|
| TinySpec | Lightweight single-file workflow for small tasks — skip the heavy multi-step SDD process | `process` | Read+Write | [spec-kit-tinyspec](https://github.com/Quratulain-bilal/spec-kit-tinyspec) |
|
||||||
|
| Token Consumption Analyzer | Captures, analyzes, and compares token consumption across SDD workflows | `visibility` | Read-only | [spec-kit-token-analyzer](https://github.com/coderandhiker/spec-kit-token-analyzer) |
|
||||||
|
| V-Model Extension Pack | Enforces V-Model paired generation of development specs and test specs with full traceability | `docs` | Read+Write | [spec-kit-v-model](https://github.com/leocamello/spec-kit-v-model) |
|
||||||
|
| Verify Extension | Post-implementation quality gate that validates implemented code against specification artifacts | `code` | Read-only | [spec-kit-verify](https://github.com/ismaelJimenez/spec-kit-verify) |
|
||||||
|
| Verify Tasks Extension | Detect phantom completions: tasks marked [X] in tasks.md with no real implementation | `code` | Read-only | [spec-kit-verify-tasks](https://github.com/datastone-inc/spec-kit-verify-tasks) |
|
||||||
|
| Version Guard | Verify tech stack versions against live npm registries before planning and implementation | `process` | Read-only | [spec-kit-version-guard](https://github.com/KevinBrown5280/spec-kit-version-guard) |
|
||||||
|
| What-if Analysis | Preview the downstream impact (complexity, effort, tasks, risks) of requirement changes before committing to them | `visibility` | Read-only | [spec-kit-whatif](https://github.com/DevAbdullah90/spec-kit-whatif) |
|
||||||
|
| Wireframe Visual Feedback Loop | SVG wireframe generation, review, and sign-off for spec-driven development. Approved wireframes become spec constraints honored by /speckit.plan, /speckit.tasks, and /speckit.implement | `visibility` | Read+Write | [spec-kit-extension-wireframe](https://github.com/TortoiseWolfe/spec-kit-extension-wireframe) |
|
||||||
|
| Work IQ | Integrate Microsoft 365 organizational knowledge into spec-driven development workflows | `integration` | Read-only | [spec-kit-workiq](https://github.com/sakitA/spec-kit-workiq) |
|
||||||
|
| Worktree Isolation | Spawn isolated git worktrees for parallel feature development without checkout switching | `process` | Read+Write | [spec-kit-worktree](https://github.com/Quratulain-bilal/spec-kit-worktree) |
|
||||||
|
| Worktrees | Default-on worktree isolation for parallel agents — sibling or nested layout | `process` | Read+Write | [spec-kit-worktree-parallel](https://github.com/dango85/spec-kit-worktree-parallel) |
|
||||||
|
|
||||||
|
To submit your own extension, see the [Extension Publishing Guide](extensions/EXTENSION-PUBLISHING-GUIDE.md).
|
||||||
|
|
||||||
|
## 🎨 Community Presets
|
||||||
|
|
||||||
|
Community-contributed presets customize how Spec Kit behaves — overriding templates, commands, and terminology without changing any tooling. See the full list on the [Community Presets](https://github.github.io/spec-kit/community/presets.html) page.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Community presets are third-party contributions and are not maintained by the Spec Kit team. Review them carefully before use, and see the docs page above for the full disclaimer.
|
||||||
|
|
||||||
|
To submit your own preset, see the [Presets Publishing Guide](presets/PUBLISHING.md).
|
||||||
|
|
||||||
|
## 🚶 Community Walkthroughs
|
||||||
|
|
||||||
|
See Spec-Driven Development in action across different scenarios with community-contributed walkthroughs; find the full list on the [Community Walkthroughs](https://github.github.io/spec-kit/community/walkthroughs.html) page.
|
||||||
|
|
||||||
|
## 🛠️ Community Friends
|
||||||
|
|
||||||
|
Community projects that extend, visualize, or build on Spec Kit. See the full list on the [Community Friends](https://github.github.io/spec-kit/community/friends.html) page.
|
||||||
|
|
||||||
|
## 🤖 Supported AI Coding Agent Integrations
|
||||||
|
|
||||||
|
Spec Kit works with 30+ AI coding agents — both CLI tools and IDE-based assistants. See the full list with notes and usage details in the [Supported AI Coding Agent Integrations](https://github.github.io/spec-kit/reference/integrations.html) guide.
|
||||||
|
|
||||||
|
Run `specify integration list` to see all available integrations in your installed version.
|
||||||
|
|
||||||
|
## Available Slash Commands
|
||||||
|
|
||||||
|
After running `specify init`, your AI coding agent will have access to these slash commands for structured development. For integrations that support skills mode, passing `--integration <agent> --integration-options="--skills"` installs agent skills instead of slash-command prompt files.
|
||||||
|
|
||||||
|
#### Core Commands
|
||||||
|
|
||||||
|
Essential commands for the Spec-Driven Development workflow:
|
||||||
|
|
||||||
|
| Command | Agent Skill | Description |
|
||||||
|
| ------------------------ | ---------------------- | -------------------------------------------------------------------------- |
|
||||||
|
| `/speckit.constitution` | `speckit-constitution` | Create or update project governing principles and development guidelines |
|
||||||
|
| `/speckit.specify` | `speckit-specify` | Define what you want to build (requirements and user stories) |
|
||||||
|
| `/speckit.plan` | `speckit-plan` | Create technical implementation plans with your chosen tech stack |
|
||||||
|
| `/speckit.tasks` | `speckit-tasks` | Generate actionable task lists for implementation |
|
||||||
|
| `/speckit.taskstoissues` | `speckit-taskstoissues`| Convert generated task lists into GitHub issues for tracking and execution |
|
||||||
|
| `/speckit.implement` | `speckit-implement` | Execute all tasks to build the feature according to the plan |
|
||||||
|
|
||||||
|
#### Optional Commands
|
||||||
|
|
||||||
|
Additional commands for enhanced quality and validation:
|
||||||
|
|
||||||
|
| Command | Agent Skill | Description |
|
||||||
|
| -------------------- | ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
|
| `/speckit.clarify` | `speckit-clarify` | Clarify underspecified areas (recommended before `/speckit.plan`; formerly `/quizme`) |
|
||||||
|
| `/speckit.analyze` | `speckit-analyze` | Cross-artifact consistency & coverage analysis (run after `/speckit.tasks`, before `/speckit.implement`) |
|
||||||
|
| `/speckit.checklist` | `speckit-checklist` | Generate custom quality checklists that validate requirements completeness, clarity, and consistency (like "unit tests for English") |
|
||||||
|
|
||||||
|
## 🔧 Specify CLI Reference
|
||||||
|
|
||||||
|
For full command details, options, and examples, see the [CLI Reference](https://github.github.io/spec-kit/reference/overview.html).
|
||||||
|
|
||||||
|
## 🧩 Making Spec Kit Your Own: Extensions & Presets
|
||||||
|
|
||||||
|
Spec Kit can be tailored to your needs through two complementary systems — **extensions** and **presets** — plus project-local overrides for one-off adjustments:
|
||||||
|
|
||||||
|
| Priority | Component Type | Location |
|
||||||
|
| -------: | ------------------------------------------------- | -------------------------------- |
|
||||||
|
| ⬆ 1 | Project-Local Overrides | `.specify/templates/overrides/` |
|
||||||
|
| 2 | Presets — Customize core & extensions | `.specify/presets/templates/` |
|
||||||
|
| 3 | Extensions — Add new capabilities | `.specify/extensions/templates/` |
|
||||||
|
| ⬇ 4 | Spec Kit Core — Built-in SDD commands & templates | `.specify/templates/` |
|
||||||
|
|
||||||
|
- **Templates** are resolved at **runtime** — Spec Kit walks the stack top-down and uses the first match.
|
||||||
|
- Project-local overrides (`.specify/templates/overrides/`) let you make one-off adjustments for a single project without creating a full preset.
|
||||||
|
- **Extension/preset commands** are applied at **install time** — when you run `specify extension add` or `specify preset add`, command files are written into agent directories (e.g., `.claude/commands/`).
|
||||||
|
- If multiple presets or extensions provide the same command, the highest-priority version wins. On removal, the next-highest-priority version is restored automatically.
|
||||||
|
- If no overrides or customizations exist, Spec Kit uses its core defaults.
|
||||||
|
|
||||||
|
### Extensions — Add New Capabilities
|
||||||
|
|
||||||
|
Use **extensions** when you need functionality that goes beyond Spec Kit's core. Extensions introduce new commands and templates — for example, adding domain-specific workflows that are not covered by the built-in SDD commands, integrating with external tools, or adding entirely new development phases. They expand *what Spec Kit can do*.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Search available extensions
|
||||||
|
specify extension search
|
||||||
|
|
||||||
|
# Install an extension
|
||||||
|
specify extension add <extension-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
For example, extensions could add Jira integration, post-implementation code review, V-Model test traceability, or project health diagnostics.
|
||||||
|
|
||||||
|
See the [Extensions reference](https://github.github.io/spec-kit/reference/extensions.html) for the full command guide. Browse the [community extensions](#-community-extensions) above for what's available.
|
||||||
|
|
||||||
|
### Presets — Customize Existing Workflows
|
||||||
|
|
||||||
|
Use **presets** when you want to change *how* Spec Kit works without adding new capabilities. Presets override the templates and commands that ship with the core *and* with installed extensions — for example, enforcing a compliance-oriented spec format, using domain-specific terminology, or applying organizational standards to plans and tasks. They customize the artifacts and instructions that Spec Kit and its extensions produce.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Search available presets
|
||||||
|
specify preset search
|
||||||
|
|
||||||
|
# Install a preset
|
||||||
|
specify preset add <preset-name>
|
||||||
|
```
|
||||||
|
|
||||||
|
For example, presets could restructure spec templates to require regulatory traceability, adapt the workflow to fit the methodology you use (e.g., Agile, Kanban, Waterfall, jobs-to-be-done, or domain-driven design), add mandatory security review gates to plans, enforce test-first task ordering, or localize the entire workflow to a different language. The [pirate-speak demo](https://github.com/mnriem/spec-kit-pirate-speak-preset-demo) shows just how deep the customization can go. Multiple presets can be stacked with priority ordering.
|
||||||
|
|
||||||
|
See the [Presets reference](https://github.github.io/spec-kit/reference/presets.html) for the full command guide, including resolution order and priority stacking.
|
||||||
|
|
||||||
|
### When to Use Which
|
||||||
|
|
||||||
|
| Goal | Use |
|
||||||
|
| --- | --- |
|
||||||
|
| Add a brand-new command or workflow | Extension |
|
||||||
|
| Customize the format of specs, plans, or tasks | Preset |
|
||||||
|
| Integrate an external tool or service | Extension |
|
||||||
|
| Enforce organizational or regulatory standards | Preset |
|
||||||
|
| Ship reusable domain-specific templates | Either — presets for template overrides, extensions for templates bundled with new commands |
|
||||||
|
|
||||||
|
## 📚 Core Philosophy
|
||||||
|
|
||||||
Spec-Driven Development is a structured process that emphasizes:
|
Spec-Driven Development is a structured process that emphasizes:
|
||||||
|
|
||||||
- **Intent-driven development** where specifications define the "_what_" before the "_how_"
|
- **Intent-driven development** where specifications define the "*what*" before the "*how*"
|
||||||
- **Rich specification creation** using guardrails and organizational principles
|
- **Rich specification creation** using guardrails and organizational principles
|
||||||
- **Multi-step refinement** rather than one-shot code generation from prompts
|
- **Multi-step refinement** rather than one-shot code generation from prompts
|
||||||
- **Heavy reliance** on advanced AI model capabilities for specification interpretation
|
- **Heavy reliance** on advanced AI model capabilities for specification interpretation
|
||||||
|
|
||||||
## 🌟 Development phases
|
## 🌟 Development Phases
|
||||||
|
|
||||||
| Phase | Focus | Key Activities |
|
| Phase | Focus | Key Activities |
|
||||||
|-------|-------|----------------|
|
| ---------------------------------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||||
| **0-to-1 Development** ("Greenfield") | Generate from scratch | <ul><li>Start with high-level requirements</li><li>Generate specifications</li><li>Plan implementation steps</li><li>Build production-ready applications</li></ul> |
|
| **0-to-1 Development** ("Greenfield") | Generate from scratch | <ul><li>Start with high-level requirements</li><li>Generate specifications</li><li>Plan implementation steps</li><li>Build production-ready applications</li></ul> |
|
||||||
| **Creative Exploration** | Parallel implementations | <ul><li>Explore diverse solutions</li><li>Support multiple technology stacks & architectures</li><li>Experiment with UX patterns</li></ul> |
|
| **Creative Exploration** | Parallel implementations | <ul><li>Explore diverse solutions</li><li>Support multiple technology stacks & architectures</li><li>Experiment with UX patterns</li></ul> |
|
||||||
| **Iterative Enhancement** ("Brownfield") | Brownfield modernization | <ul><li>Add features iteratively</li><li>Modernize legacy systems</li><li>Adapt processes</li></ul> |
|
| **Iterative Enhancement** ("Brownfield") | Brownfield modernization | <ul><li>Add features iteratively</li><li>Modernize legacy systems</li><li>Adapt processes</li></ul> |
|
||||||
|
|
||||||
## 🎯 Experimental goals
|
## 🎯 Experimental Goals
|
||||||
|
|
||||||
Our research and experimentation focus on:
|
Our research and experimentation focus on:
|
||||||
|
|
||||||
@@ -99,24 +446,26 @@ Our research and experimentation focus on:
|
|||||||
|
|
||||||
- Validate the concept of parallel implementation exploration
|
- Validate the concept of parallel implementation exploration
|
||||||
- Provide robust iterative feature development workflows
|
- Provide robust iterative feature development workflows
|
||||||
- Extend processes to handle upgrades and modernization tasks
|
- Extend processes to handle upgrades and modernization tasks
|
||||||
|
|
||||||
## 🔧 Prerequisites
|
## 🔧 Prerequisites
|
||||||
|
|
||||||
- **Linux/macOS** (or WSL2 on Windows)
|
- **Linux/macOS/Windows**
|
||||||
- AI coding agent: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), or [Gemini CLI](https://github.com/google-gemini/gemini-cli)
|
- [Supported](#-supported-ai-coding-agent-integrations) AI coding agent.
|
||||||
- [uv](https://docs.astral.sh/uv/) for package management
|
- [uv](https://docs.astral.sh/uv/) for package management (recommended) or [pipx](https://pypa.github.io/pipx/) for persistent installation
|
||||||
- [Python 3.11+](https://www.python.org/downloads/)
|
- [Python 3.11+](https://www.python.org/downloads/)
|
||||||
- [Git](https://git-scm.com/downloads)
|
- [Git](https://git-scm.com/downloads)
|
||||||
|
|
||||||
## 📖 Learn more
|
If you encounter issues with an agent, please open an issue so we can refine the integration.
|
||||||
|
|
||||||
|
## 📖 Learn More
|
||||||
|
|
||||||
- **[Complete Spec-Driven Development Methodology](./spec-driven.md)** - Deep dive into the full process
|
- **[Complete Spec-Driven Development Methodology](./spec-driven.md)** - Deep dive into the full process
|
||||||
- **[Detailed Walkthrough](#detailed-process)** - Step-by-step implementation guide
|
- **[Detailed Walkthrough](#-detailed-process)** - Step-by-step implementation guide
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Detailed process
|
## 📋 Detailed Process
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Click to expand the detailed step-by-step walkthrough</summary>
|
<summary>Click to expand the detailed step-by-step walkthrough</summary>
|
||||||
@@ -130,39 +479,67 @@ specify init <project_name>
|
|||||||
Or initialize in the current directory:
|
Or initialize in the current directory:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
specify init .
|
||||||
|
# or use the --here flag
|
||||||
specify init --here
|
specify init --here
|
||||||
|
# Skip confirmation when the directory already has files
|
||||||
|
specify init . --force
|
||||||
|
# or
|
||||||
|
specify init --here --force
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You will be prompted to select the AI agent you are using. You can also proactively specify it directly in the terminal:
|
In an interactive terminal, you will be prompted to select the coding agent integration you are using. In non-interactive sessions, such as CI or piped runs, `specify init` defaults to GitHub Copilot unless you pass `--integration`. You can also proactively specify the integration directly in the terminal:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
specify init <project_name> --ai claude
|
specify init <project_name> --integration copilot
|
||||||
specify init <project_name> --ai gemini
|
specify init <project_name> --integration gemini
|
||||||
specify init <project_name> --ai copilot
|
specify init <project_name> --integration codex
|
||||||
|
|
||||||
# Or in current directory:
|
# Or in current directory:
|
||||||
specify init --here --ai claude
|
specify init . --integration copilot
|
||||||
|
specify init . --integration codex --integration-options="--skills"
|
||||||
|
|
||||||
|
# or use --here flag
|
||||||
|
specify init --here --integration copilot
|
||||||
|
specify init --here --integration codex --integration-options="--skills"
|
||||||
|
|
||||||
|
# Force merge into a non-empty current directory
|
||||||
|
specify init . --force --integration copilot
|
||||||
|
|
||||||
|
# or
|
||||||
|
specify init --here --force --integration copilot
|
||||||
```
|
```
|
||||||
|
|
||||||
The CLI will check if you have Claude Code or Gemini CLI installed. If you do not, or you prefer to get the templates without checking for the right tools, use `--ignore-agent-tools` with your command:
|
The CLI will check if you have Claude Code, Gemini CLI, Cursor CLI, Qwen CLI, opencode, Codex CLI, Qoder CLI, Tabnine CLI, Kiro CLI, Pi, Forge, Goose, or Mistral Vibe installed. If you do not, or you prefer to get the templates without checking for the right tools, use `--ignore-agent-tools` with your command:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
specify init <project_name> --ai claude --ignore-agent-tools
|
specify init <project_name> --integration copilot --ignore-agent-tools
|
||||||
```
|
```
|
||||||
|
|
||||||
### **STEP 1:** Bootstrap the project
|
### **STEP 1:** Establish project principles
|
||||||
|
|
||||||
Go to the project folder and run your AI agent. In our example, we're using `claude`.
|
Go to the project folder and run your coding agent. In our example, we're using `claude`.
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
You will know that things are configured correctly if you see the `/specify`, `/plan`, and `/tasks` commands available.
|
You will know that things are configured correctly if you see the `/speckit.constitution`, `/speckit.specify`, `/speckit.plan`, `/speckit.tasks`, and `/speckit.implement` commands available.
|
||||||
|
|
||||||
The first step should be creating a new project scaffolding. Use `/specify` command and then provide the concrete requirements for the project you want to develop.
|
The first step should be establishing your project's governing principles using the `/speckit.constitution` command. This helps ensure consistent decision-making throughout all subsequent development phases:
|
||||||
|
|
||||||
>[!IMPORTANT]
|
```text
|
||||||
>Be as explicit as possible about _what_ you are trying to build and _why_. **Do not focus on the tech stack at this point**.
|
/speckit.constitution Create principles focused on code quality, testing standards, user experience consistency, and performance requirements. Include governance for how these principles should guide technical decisions and implementation choices.
|
||||||
|
```
|
||||||
|
|
||||||
|
This step creates or updates the `.specify/memory/constitution.md` file with your project's foundational guidelines that the coding agent will reference during specification, planning, and implementation phases.
|
||||||
|
|
||||||
|
### **STEP 2:** Create project specifications
|
||||||
|
|
||||||
|
With your project principles established, you can now create the functional specifications. Use the `/speckit.specify` command and then provide the concrete requirements for the project you want to develop.
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> Be as explicit as possible about *what* you are trying to build and *why*. **Do not focus on the tech stack at this point**.
|
||||||
|
|
||||||
An example prompt:
|
An example prompt:
|
||||||
|
|
||||||
@@ -194,29 +571,38 @@ The produced specification should contain a set of user stories and functional r
|
|||||||
At this stage, your project folder contents should resemble the following:
|
At this stage, your project folder contents should resemble the following:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
├── memory
|
└── .specify
|
||||||
│ ├── constitution.md
|
├── memory
|
||||||
│ └── constitution_update_checklist.md
|
│ └── constitution.md
|
||||||
├── scripts
|
├── scripts
|
||||||
│ ├── check-task-prerequisites.sh
|
│ ├── check-prerequisites.sh
|
||||||
│ ├── common.sh
|
│ ├── common.sh
|
||||||
│ ├── create-new-feature.sh
|
│ ├── create-new-feature.sh
|
||||||
│ ├── get-feature-paths.sh
|
│ ├── setup-plan.sh
|
||||||
│ ├── setup-plan.sh
|
│ └── update-claude-md.sh
|
||||||
│ └── update-claude-md.sh
|
├── specs
|
||||||
├── specs
|
│ └── 001-create-taskify
|
||||||
│ └── 002-create-taskify
|
│ └── spec.md
|
||||||
│ └── spec.md
|
└── templates
|
||||||
└── templates
|
├── plan-template.md
|
||||||
├── CLAUDE-template.md
|
├── spec-template.md
|
||||||
├── plan-template.md
|
└── tasks-template.md
|
||||||
├── spec-template.md
|
|
||||||
└── tasks-template.md
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### **STEP 2:** Functional specification clarification
|
### **STEP 3:** Functional specification clarification (required before planning)
|
||||||
|
|
||||||
With the baseline specification created, you can go ahead and clarify any of the requirements that were not captured properly within the first shot attempt. For example, you could use a prompt like this within the same Claude Code session:
|
With the baseline specification created, you can go ahead and clarify any of the requirements that were not captured properly within the first shot attempt.
|
||||||
|
|
||||||
|
You should run the structured clarification workflow **before** creating a technical plan to reduce rework downstream.
|
||||||
|
|
||||||
|
Preferred order:
|
||||||
|
|
||||||
|
1. Use `/speckit.clarify` (structured) – sequential, coverage-based questioning that records answers in a Clarifications section.
|
||||||
|
2. Optionally follow up with ad-hoc free-form refinement if something still feels vague.
|
||||||
|
|
||||||
|
If you intentionally want to skip clarification (e.g., spike or exploratory prototype), explicitly state that so the agent doesn't block on missing clarifications.
|
||||||
|
|
||||||
|
Example free-form refinement prompt (after `/speckit.clarify` if still needed):
|
||||||
|
|
||||||
```text
|
```text
|
||||||
For each sample project or project that you create there should be a variable number of tasks between 5 and 15
|
For each sample project or project that you create there should be a variable number of tasks between 5 and 15
|
||||||
@@ -232,9 +618,9 @@ Read the review and acceptance checklist, and check off each item in the checkli
|
|||||||
|
|
||||||
It's important to use the interaction with Claude Code as an opportunity to clarify and ask questions around the specification - **do not treat its first attempt as final**.
|
It's important to use the interaction with Claude Code as an opportunity to clarify and ask questions around the specification - **do not treat its first attempt as final**.
|
||||||
|
|
||||||
### **STEP 3:** Generate a plan
|
### **STEP 4:** Generate a plan
|
||||||
|
|
||||||
You can now be specific about the tech stack and other technical requirements. You can use the `/plan` command that is built into the project template with a prompt like this:
|
You can now be specific about the tech stack and other technical requirements. You can use the `/speckit.plan` command that is built into the project template with a prompt like this:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
We are going to generate this using .NET Aspire, using Postgres as the database. The frontend should use
|
We are going to generate this using .NET Aspire, using Postgres as the database. The frontend should use
|
||||||
@@ -248,25 +634,23 @@ The output of this step will include a number of implementation detail documents
|
|||||||
.
|
.
|
||||||
├── CLAUDE.md
|
├── CLAUDE.md
|
||||||
├── memory
|
├── memory
|
||||||
│ ├── constitution.md
|
│ └── constitution.md
|
||||||
│ └── constitution_update_checklist.md
|
|
||||||
├── scripts
|
├── scripts
|
||||||
│ ├── check-task-prerequisites.sh
|
│ ├── check-prerequisites.sh
|
||||||
│ ├── common.sh
|
│ ├── common.sh
|
||||||
│ ├── create-new-feature.sh
|
│ ├── create-new-feature.sh
|
||||||
│ ├── get-feature-paths.sh
|
│ ├── setup-plan.sh
|
||||||
│ ├── setup-plan.sh
|
│ └── update-claude-md.sh
|
||||||
│ └── update-claude-md.sh
|
|
||||||
├── specs
|
├── specs
|
||||||
│ └── 002-create-taskify
|
│ └── 001-create-taskify
|
||||||
│ ├── contracts
|
│ ├── contracts
|
||||||
│ │ ├── api-spec.json
|
│ │ ├── api-spec.json
|
||||||
│ │ └── signalr-spec.md
|
│ │ └── signalr-spec.md
|
||||||
│ ├── data-model.md
|
│ ├── data-model.md
|
||||||
│ ├── plan.md
|
│ ├── plan.md
|
||||||
│ ├── quickstart.md
|
│ ├── quickstart.md
|
||||||
│ ├── research.md
|
│ ├── research.md
|
||||||
│ └── spec.md
|
│ └── spec.md
|
||||||
└── templates
|
└── templates
|
||||||
├── CLAUDE-template.md
|
├── CLAUDE-template.md
|
||||||
├── plan-template.md
|
├── plan-template.md
|
||||||
@@ -298,10 +682,10 @@ researching .NET Aspire in general and I don't think that's gonna do much for us
|
|||||||
That's way too untargeted research. The research needs to help you solve a specific targeted question.
|
That's way too untargeted research. The research needs to help you solve a specific targeted question.
|
||||||
```
|
```
|
||||||
|
|
||||||
>[!NOTE]
|
> [!NOTE]
|
||||||
>Claude Code might be over-eager and add components that you did not ask for. Ask it to clarify the rationale and the source of the change.
|
> Claude Code might be over-eager and add components that you did not ask for. Ask it to clarify the rationale and the source of the change.
|
||||||
|
|
||||||
### **STEP 4:** Have Claude Code validate the plan
|
### **STEP 5:** Have Claude Code validate the plan
|
||||||
|
|
||||||
With the plan in place, you should have Claude Code run through it to make sure that there are no missing pieces. You can use a prompt like this:
|
With the plan in place, you should have Claude Code run through it to make sure that there are no missing pieces. You can use a prompt like this:
|
||||||
|
|
||||||
@@ -317,36 +701,61 @@ This helps refine the implementation plan and helps you avoid potential blind sp
|
|||||||
|
|
||||||
You can also ask Claude Code (if you have the [GitHub CLI](https://docs.github.com/en/github-cli/github-cli) installed) to go ahead and create a pull request from your current branch to `main` with a detailed description, to make sure that the effort is properly tracked.
|
You can also ask Claude Code (if you have the [GitHub CLI](https://docs.github.com/en/github-cli/github-cli) installed) to go ahead and create a pull request from your current branch to `main` with a detailed description, to make sure that the effort is properly tracked.
|
||||||
|
|
||||||
>[!NOTE]
|
> [!NOTE]
|
||||||
>Before you have the agent implement it, it's also worth prompting Claude Code to cross-check the details to see if there are any over-engineered pieces (remember - it can be over-eager). If over-engineered components or decisions exist, you can ask Claude Code to resolve them. Ensure that Claude Code follows the [constitution](base/memory/constitution.md) as the foundational piece that it must adhere to when establishing the plan.
|
> Before you have the agent implement it, it's also worth prompting Claude Code to cross-check the details to see if there are any over-engineered pieces (remember - it can be over-eager). If over-engineered components or decisions exist, you can ask Claude Code to resolve them. Ensure that Claude Code follows the [constitution](base/memory/constitution.md) as the foundational piece that it must adhere to when establishing the plan.
|
||||||
|
|
||||||
### STEP 5: Implementation
|
### **STEP 6:** Generate task breakdown with /speckit.tasks
|
||||||
|
|
||||||
Once ready, instruct Claude Code to implement your solution (example path included):
|
With the implementation plan validated, you can now break down the plan into specific, actionable tasks that can be executed in the correct order. Use the `/speckit.tasks` command to automatically generate a detailed task breakdown from your implementation plan:
|
||||||
|
|
||||||
```text
|
```text
|
||||||
implement specs/002-create-taskify/plan.md
|
/speckit.tasks
|
||||||
```
|
```
|
||||||
|
|
||||||
Claude Code will spring into action and will start creating the implementation.
|
This step creates a `tasks.md` file in your feature specification directory that contains:
|
||||||
|
|
||||||
>[!IMPORTANT]
|
- **Task breakdown organized by user story** - Each user story becomes a separate implementation phase with its own set of tasks
|
||||||
>Claude Code will execute local CLI commands (such as `dotnet`) - make sure you have them installed on your machine.
|
- **Dependency management** - Tasks are ordered to respect dependencies between components (e.g., models before services, services before endpoints)
|
||||||
|
- **Parallel execution markers** - Tasks that can run in parallel are marked with `[P]` to optimize development workflow
|
||||||
|
- **File path specifications** - Each task includes the exact file paths where implementation should occur
|
||||||
|
- **Test-driven development structure** - If tests are requested, test tasks are included and ordered to be written before implementation
|
||||||
|
- **Checkpoint validation** - Each user story phase includes checkpoints to validate independent functionality
|
||||||
|
|
||||||
Once the implementation step is done, ask Claude Code to try to run the application and resolve any emerging build errors. If the application runs, but there are _runtime errors_ that are not directly available to Claude Code through CLI logs (e.g., errors rendered in browser logs), copy and paste the error in Claude Code and have it attempt to resolve it.
|
The generated tasks.md provides a clear roadmap for the `/speckit.implement` command, ensuring systematic implementation that maintains code quality and allows for incremental delivery of user stories.
|
||||||
|
|
||||||
|
### **STEP 7:** Implementation
|
||||||
|
|
||||||
|
Once ready, use the `/speckit.implement` command to execute your implementation plan:
|
||||||
|
|
||||||
|
```text
|
||||||
|
/speckit.implement
|
||||||
|
```
|
||||||
|
|
||||||
|
The `/speckit.implement` command will:
|
||||||
|
|
||||||
|
- Validate that all prerequisites are in place (constitution, spec, plan, and tasks)
|
||||||
|
- Parse the task breakdown from `tasks.md`
|
||||||
|
- Execute tasks in the correct order, respecting dependencies and parallel execution markers
|
||||||
|
- Follow the TDD approach defined in your task plan
|
||||||
|
- Provide progress updates and handle errors appropriately
|
||||||
|
|
||||||
|
> [!IMPORTANT]
|
||||||
|
> The coding agent will execute local CLI commands (such as `dotnet`, `npm`, etc.) - make sure you have the required tools installed on your machine.
|
||||||
|
|
||||||
|
Once the implementation is complete, test the application and resolve any runtime errors that may not be visible in CLI logs (e.g., browser console errors). You can copy and paste such errors back to your coding agent for resolution.
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
## Troubleshooting
|
## 🔍 Troubleshooting
|
||||||
|
|
||||||
### Git Credential Manager on Linux
|
### Git Credential Manager on Linux
|
||||||
|
|
||||||
If you're having issues with Git authentication on Linux, you can install Git Credential Manager:
|
If you're having issues with Git authentication on Linux, you can install Git Credential Manager:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
#!/bin/bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
echo "Downloading Git Credential Manager v2.6.1..."
|
echo "Downloading Git Credential Manager v2.6.1..."
|
||||||
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb
|
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb
|
||||||
@@ -358,18 +767,14 @@ echo "Cleaning up..."
|
|||||||
rm gcm-linux_amd64.2.6.1.deb
|
rm gcm-linux_amd64.2.6.1.deb
|
||||||
```
|
```
|
||||||
|
|
||||||
## Maintainers
|
## 💬 Support
|
||||||
|
|
||||||
- Den Delimarsky ([@localden](https://github.com/localden))
|
|
||||||
|
|
||||||
## Support
|
|
||||||
|
|
||||||
For support, please open a [GitHub issue](https://github.com/github/spec-kit/issues/new). We welcome bug reports, feature requests, and questions about using Spec-Driven Development.
|
For support, please open a [GitHub issue](https://github.com/github/spec-kit/issues/new). We welcome bug reports, feature requests, and questions about using Spec-Driven Development.
|
||||||
|
|
||||||
## Acknowledgements
|
## 🙏 Acknowledgements
|
||||||
|
|
||||||
This project is heavily influenced by and based on the work and research of [John Lam](https://github.com/jflam).
|
This project is heavily influenced by and based on the work and research of [John Lam](https://github.com/jflam).
|
||||||
|
|
||||||
## License
|
## 📄 License
|
||||||
|
|
||||||
This project is licensed under the terms of the MIT open source license. Please refer to the [LICENSE](./LICENSE) file for the full terms.
|
This project is licensed under the terms of the MIT open source license. Please refer to the [LICENSE](./LICENSE) file for the full terms.
|
||||||
|
|||||||
22
SECURITY.md
22
SECURITY.md
@@ -1,10 +1,10 @@
|
|||||||
Thanks for helping make GitHub safe for everyone.
|
# Security Policy
|
||||||
|
|
||||||
# Security
|
Thanks for helping make GitHub safe for everyone.
|
||||||
|
|
||||||
GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
|
GitHub takes the security of our software products and services seriously, including all of the open source code repositories managed through our GitHub organizations, such as [GitHub](https://github.com/GitHub).
|
||||||
|
|
||||||
Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
|
Even though [open source repositories are outside of the scope of our bug bounty program](https://bounty.github.com/index.html#scope) and therefore not eligible for bounty rewards, we will ensure that your finding gets passed along to the appropriate maintainers for remediation.
|
||||||
|
|
||||||
## Reporting Security Issues
|
## Reporting Security Issues
|
||||||
|
|
||||||
@@ -16,16 +16,16 @@ Instead, please send an email to opensource-security[@]github.com.
|
|||||||
|
|
||||||
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
|
Please include as much of the information listed below as you can to help us better understand and resolve the issue:
|
||||||
|
|
||||||
* The type of issue (e.g., buffer overflow, SQL injection, or cross-site scripting)
|
- The type of issue (e.g., buffer overflow, SQL injection, or cross-site scripting)
|
||||||
* Full paths of source file(s) related to the manifestation of the issue
|
- Full paths of source file(s) related to the manifestation of the issue
|
||||||
* The location of the affected source code (tag/branch/commit or direct URL)
|
- The location of the affected source code (tag/branch/commit or direct URL)
|
||||||
* Any special configuration required to reproduce the issue
|
- Any special configuration required to reproduce the issue
|
||||||
* Step-by-step instructions to reproduce the issue
|
- Step-by-step instructions to reproduce the issue
|
||||||
* Proof-of-concept or exploit code (if possible)
|
- Proof-of-concept or exploit code (if possible)
|
||||||
* Impact of the issue, including how an attacker might exploit the issue
|
- Impact of the issue, including how an attacker might exploit the issue
|
||||||
|
|
||||||
This information will help us triage your report more quickly.
|
This information will help us triage your report more quickly.
|
||||||
|
|
||||||
## Policy
|
## Policy
|
||||||
|
|
||||||
See [GitHub's Safe Harbor Policy](https://docs.github.com/en/site-policy/security-policies/github-bug-bounty-program-legal-safe-harbor#1-safe-harbor-terms)
|
See [GitHub's Safe Harbor Policy](https://docs.github.com/en/site-policy/security-policies/github-bug-bounty-program-legal-safe-harbor#1-safe-harbor-terms)
|
||||||
|
|||||||
15
SUPPORT.md
15
SUPPORT.md
@@ -1,18 +1,17 @@
|
|||||||
# Support
|
# Support
|
||||||
|
|
||||||
## How to file issues and get help
|
## How to get help
|
||||||
|
|
||||||
This project uses GitHub issues to track bugs and feature requests. Please search the existing issues before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new issue.
|
Please search existing [issues](https://github.com/github/spec-kit/issues) and [discussions](https://github.com/github/spec-kit/discussions) before creating new ones to avoid duplicates.
|
||||||
|
|
||||||
For help or questions about using this project, please:
|
|
||||||
|
|
||||||
- Open a [GitHub issue](https://github.com/github/spec-kit/issues/new) for bug reports, feature requests, or questions about the Spec-Driven Development methodology
|
|
||||||
- Check the [comprehensive guide](./spec-driven.md) for detailed documentation on the Spec-Driven Development process
|
|
||||||
- Review the [README](./README.md) for getting started instructions and troubleshooting tips
|
- Review the [README](./README.md) for getting started instructions and troubleshooting tips
|
||||||
|
- Check the [comprehensive guide](./spec-driven.md) for detailed documentation on the Spec-Driven Development process
|
||||||
|
- Ask in [GitHub Discussions](https://github.com/github/spec-kit/discussions) for questions about using Spec Kit or the Spec-Driven Development methodology
|
||||||
|
- Open a [GitHub issue](https://github.com/github/spec-kit/issues/new) for bug reports and feature requests
|
||||||
|
|
||||||
## Project Status
|
## Project Status
|
||||||
|
|
||||||
**Spec Kit** is under active development and maintained by GitHub staff **AND THE COMMUNITY**. We will do our best to respond to support, feature requests, and community questions in a timely manner.
|
**Spec Kit** is under active development and maintained by GitHub staff and the community. We will do our best to respond to support, feature requests, and community questions as time permits.
|
||||||
|
|
||||||
## GitHub Support Policy
|
## GitHub Support Policy
|
||||||
|
|
||||||
|
|||||||
9
docs/.gitignore
vendored
Normal file
9
docs/.gitignore
vendored
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
# DocFX build output
|
||||||
|
_site/
|
||||||
|
obj/
|
||||||
|
.docfx/
|
||||||
|
|
||||||
|
# Temporary files
|
||||||
|
*.tmp
|
||||||
|
*.log
|
||||||
|
|
||||||
35
docs/README.md
Normal file
35
docs/README.md
Normal file
@@ -0,0 +1,35 @@
|
|||||||
|
# Documentation
|
||||||
|
|
||||||
|
This folder contains the documentation source files for Spec Kit, built using [DocFX](https://dotnet.github.io/docfx/).
|
||||||
|
|
||||||
|
## Building Locally
|
||||||
|
|
||||||
|
To build the documentation locally:
|
||||||
|
|
||||||
|
1. Install DocFX:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dotnet tool install -g docfx
|
||||||
|
```
|
||||||
|
|
||||||
|
2. Build the documentation:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd docs
|
||||||
|
docfx docfx.json --serve
|
||||||
|
```
|
||||||
|
|
||||||
|
3. Open your browser to `http://localhost:8080` to view the documentation.
|
||||||
|
|
||||||
|
## Structure
|
||||||
|
|
||||||
|
- `docfx.json` - DocFX configuration file
|
||||||
|
- `index.md` - Main documentation homepage
|
||||||
|
- `toc.yml` - Table of contents configuration
|
||||||
|
- `installation.md` - Installation guide
|
||||||
|
- `quickstart.md` - Quick start guide
|
||||||
|
- `_site/` - Generated documentation output (ignored by git)
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
Documentation is automatically built and deployed to GitHub Pages when changes are pushed to the `main` branch. The workflow is defined in `.github/workflows/docs.yml`.
|
||||||
14
docs/community/friends.md
Normal file
14
docs/community/friends.md
Normal file
@@ -0,0 +1,14 @@
|
|||||||
|
# Community Friends
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Community projects listed here are independently created and maintained by their respective authors. They are **not reviewed, nor endorsed, nor supported by GitHub**. Review their source code before installation and use at your own discretion.
|
||||||
|
|
||||||
|
Community projects that extend, visualize, or build on Spec Kit:
|
||||||
|
|
||||||
|
- **[cc-spex](https://github.com/rhuss/cc-spex)** — A Claude Code plugin that adds composable traits on top of Spec Kit with [Superpowers](https://github.com/obra/superpowers)-based quality gates, spec/code review, git worktree isolation, and parallel implementation via agent teams.
|
||||||
|
|
||||||
|
- **[Spec Kit Assistant](https://marketplace.visualstudio.com/items?itemName=rfsales.speckit-assistant)** — A VS Code extension that provides a visual orchestrator for the full SDD workflow (constitution → specification → planning → tasks → implementation) with phase status visualization, an interactive task checklist, DAG visualization, and support for Claude, Gemini, GitHub Copilot, and OpenAI backends. Requires the `specify` CLI in your PATH.
|
||||||
|
|
||||||
|
- **[SpecKit Companion](https://marketplace.visualstudio.com/items?itemName=alfredoperez.speckit-companion)** — A VS Code extension that brings a visual GUI to Spec Kit. Browse specs in a rich markdown viewer with clickable file references, create specifications with image attachments, comment and refine each step inline (GitHub-style review), track your progress through the SDD workflow with a visual phase stepper, and manage steering documents like constitutions and templates.
|
||||||
|
|
||||||
|
- **[cc-spec-kit](https://github.com/speckit-community/cc-spec-kit)** — Community-maintained plugin for Claude Code and GitHub Copilot CLI that installs Spec Kit skills via the plugin marketplace.
|
||||||
29
docs/community/presets.md
Normal file
29
docs/community/presets.md
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# Community Presets
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Community presets are independently created and maintained by their respective authors. Maintainers only verify that catalog entries are complete and correctly formatted — they do **not review, audit, endorse, or support the preset code itself**. Review preset source code before installation and use at your own discretion.
|
||||||
|
|
||||||
|
The following community-contributed presets customize how Spec Kit behaves — overriding templates, commands, and terminology without changing any tooling. Presets are available in [`catalog.community.json`](https://github.com/github/spec-kit/blob/main/presets/catalog.community.json):
|
||||||
|
|
||||||
|
| Preset | Purpose | Provides | Requires | URL |
|
||||||
|
|--------|---------|----------|----------|-----|
|
||||||
|
| A11Y Governance | Adds WCAG 2.2 AA accessibility checks, bilingual DE/EN delivery, CEFR-B2 readability, CLI accessibility, and inclusive-content guidance | 9 templates, 3 commands | — | [spec-kit-preset-a11y-governance](https://github.com/hindermath/spec-kit-preset-a11y-governance) |
|
||||||
|
| Agent Parity Governance | Keeps shared AI-agent instructions aligned across project-defined agent guidance surfaces and documents intentional deviations | 6 templates, 3 commands | — | [spec-kit-preset-agent-parity-governance](https://github.com/hindermath/spec-kit-preset-agent-parity-governance) |
|
||||||
|
| AIDE In-Place Migration | Adapts the AIDE extension workflow for in-place technology migrations (X → Y pattern) — adds migration objectives, verification gates, knowledge documents, and behavioral equivalence criteria | 2 templates, 8 commands | AIDE extension | [spec-kit-presets](https://github.com/mnriem/spec-kit-presets) |
|
||||||
|
| Architecture Governance | Adds secure architecture governance: trust boundaries, threat modeling, STRIDE/CAPEC, S-ADRs, Zero Trust applicability, and OWASP SAMM | 11 templates, 3 commands | — | [spec-kit-preset-architecture-governance](https://github.com/hindermath/spec-kit-preset-architecture-governance) |
|
||||||
|
| Canon Core | Adapts original Spec Kit workflow to work together with Canon extension | 2 templates, 8 commands | — | [spec-kit-canon](https://github.com/maximiliamus/spec-kit-canon) |
|
||||||
|
| Claude AskUserQuestion | Upgrades `/speckit.clarify` and `/speckit.checklist` on Claude Code from Markdown-table prompts to the native AskUserQuestion picker, with a recommended option and reasoning on every question | 2 commands | — | [spec-kit-preset-claude-ask-questions](https://github.com/0xrafasec/spec-kit-preset-claude-ask-questions) |
|
||||||
|
| Cross-Platform Governance | Adds Bash/PowerShell parity, dry-run/WhatIf parity, Unix man-page expectations, PowerShell comment-based help, and Verb-Noun Cmdlet discipline | 8 templates, 3 commands | — | [spec-kit-preset-cross-platform-governance](https://github.com/hindermath/spec-kit-preset-cross-platform-governance) |
|
||||||
|
| Explicit Task Dependencies | Adds explicit `(depends on T###)` dependency declarations and an Execution Wave DAG to tasks.md for parallel scheduling | 1 template, 1 command | — | [spec-kit-preset-explicit-task-dependencies](https://github.com/Quratulain-bilal/spec-kit-preset-explicit-task-dependencies) |
|
||||||
|
| Fiction Book Writing | It adapts the Spec-Driven Development workflow for storytelling to create books or audiobooks (with annotations) in 12 languages: features become story elements, specs become story briefs, plans become story structures, and tasks become scene-by-scene writing tasks. Supports single and multi-POV, all major plot structure frameworks, and two style modes: an author voice sample or humanized AI prose. Supports interactive elements like brainstorming, interview, roleplay and extras like statistics, cover builder and bio command. Export with templates for KDP, D2D etc. | 22 templates, 27 commands, 2 scripts | — | [speckit-preset-fiction-book-writing](https://github.com/adaumann/speckit-preset-fiction-book-writing) |
|
||||||
|
| iSAQB Architecture Governance | Adds general iSAQB/CPSA-F and arc42 architecture governance: goals, context, building blocks, runtime and deployment views, quality scenarios, ADRs, risks, and technical debt | 13 templates, 3 commands | — | [spec-kit-preset-isaqb-architecture-governance](https://github.com/hindermath/spec-kit-preset-isaqb-architecture-governance) |
|
||||||
|
| Jira Issue Tracking | Overrides `speckit.taskstoissues` to create Jira epics, stories, and tasks instead of GitHub Issues via Atlassian MCP tools | 1 command | — | [spec-kit-preset-jira](https://github.com/luno/spec-kit-preset-jira) |
|
||||||
|
| Multi-Repo Branching | Coordinates feature branch creation across multiple git repositories (independent repos and submodules) during plan and tasks phases | 2 commands | — | [spec-kit-preset-multi-repo-branching](https://github.com/sakitA/spec-kit-preset-multi-repo-branching) |
|
||||||
|
| Pirate Speak (Full) | Transforms all Spec Kit output into pirate speak — specs become "Voyage Manifests", plans become "Battle Plans", tasks become "Crew Assignments" | 6 templates, 9 commands | — | [spec-kit-presets](https://github.com/mnriem/spec-kit-presets) |
|
||||||
|
| Screenwriting | Spec-Driven Development for screenwriting/scriptwriting/tutorials: feature films, television (pilot, episode, limited series), and stage plays. Adapts the Spec Kit workflow to screenplay craft — slug lines, action lines, act breaks, beat sheets, and industry-standard pitch documents. Supports three-act, Save the Cat, TV pilot, network episode, cable/streaming episode, and stage-play structural frameworks. Export to Fountain, FTX, PDF | 26 templates, 32 commands, 1 script | — | [speckit-preset-screenwriting](https://github.com/adaumann/speckit-preset-screenwriting) |
|
||||||
|
| Security Governance | Adds secure development governance: memory-safe-language preference, secure code generation, NIST SSDF, CWE Top 25, OWASP ASVS, SBOM/VEX/SLSA, OpenSSF Scorecard, and EU CRA applicability | 12 templates, 3 commands | — | [spec-kit-preset-security-governance](https://github.com/hindermath/spec-kit-preset-security-governance) |
|
||||||
|
| Spec2Cloud | Spec-driven workflow tuned for shipping to Azure: spec → plan → tasks → implement → deploy | 5 templates, 8 commands | — | [spec2cloud](https://github.com/Azure-Samples/Spec2Cloud) |
|
||||||
|
| Table of Contents Navigation | Adds a navigable Table of Contents to generated spec.md, plan.md, and tasks.md documents | 3 templates, 3 commands | — | [spec-kit-preset-toc-navigation](https://github.com/Quratulain-bilal/spec-kit-preset-toc-navigation) |
|
||||||
|
| VS Code Ask Questions | Enhances the clarify command to use `vscode/askQuestions` for batched interactive questioning. | 1 command | — | [spec-kit-presets](https://github.com/fdcastel/spec-kit-presets) |
|
||||||
|
|
||||||
|
To build and publish your own preset, see the [Presets Publishing Guide](https://github.com/github/spec-kit/blob/main/presets/PUBLISHING.md).
|
||||||
20
docs/community/walkthroughs.md
Normal file
20
docs/community/walkthroughs.md
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
# Community Walkthroughs
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> Community walkthroughs are independently created and maintained by their respective authors. They are **not reviewed, nor endorsed, nor supported by GitHub**. Review their content before following along and use at your own discretion.
|
||||||
|
|
||||||
|
See Spec-Driven Development in action across different scenarios with these community-contributed walkthroughs:
|
||||||
|
|
||||||
|
- **[Greenfield .NET CLI tool](https://github.com/mnriem/spec-kit-dotnet-cli-demo)** — Builds a Timezone Utility as a .NET single-binary CLI tool from a blank directory, covering the full spec-kit workflow: constitution, specify, plan, tasks, and multi-pass implement using GitHub Copilot agents.
|
||||||
|
|
||||||
|
- **[Greenfield Spring Boot + React platform](https://github.com/mnriem/spec-kit-spring-react-demo)** — Builds an LLM performance analytics platform (REST API, graphs, iteration tracking) from scratch using Spring Boot, embedded React, PostgreSQL, and Docker Compose, with a clarify step and a cross-artifact consistency analysis pass included.
|
||||||
|
|
||||||
|
- **[Brownfield ASP.NET CMS extension](https://github.com/mnriem/spec-kit-aspnet-brownfield-demo)** — Extends an existing open-source .NET CMS (CarrotCakeCMS-Core, ~307,000 lines of C#, Razor, SQL, JavaScript, and config files) with two new features — cross-platform Docker Compose infrastructure and a token-authenticated headless REST API — demonstrating how spec-kit fits into existing codebases without prior specs or a constitution.
|
||||||
|
|
||||||
|
- **[Brownfield Java runtime extension](https://github.com/mnriem/spec-kit-java-brownfield-demo)** — Extends an existing open-source Jakarta EE runtime (Piranha, ~420,000 lines of Java, XML, JSP, HTML, and config files across 180 Maven modules) with a password-protected Server Admin Console, demonstrating spec-kit on a large multi-module Java project with no prior specs or constitution.
|
||||||
|
|
||||||
|
- **[Brownfield Go / React dashboard demo](https://github.com/mnriem/spec-kit-go-brownfield-demo)** — Demonstrates spec-kit driven entirely from the **terminal using GitHub Copilot CLI**. Extends NASA's open-source Hermes ground support system (Go) with a lightweight React-based web telemetry dashboard, showing that the full constitution → specify → plan → tasks → implement workflow works from the terminal.
|
||||||
|
|
||||||
|
- **[Greenfield Spring Boot MVC with a custom preset](https://github.com/mnriem/spec-kit-pirate-speak-preset-demo)** — Builds a Spring Boot MVC application from scratch using a custom pirate-speak preset, demonstrating how presets can reshape the entire spec-kit experience: specifications become "Voyage Manifests," plans become "Battle Plans," and tasks become "Crew Assignments" — all generated in full pirate vernacular without changing any tooling.
|
||||||
|
|
||||||
|
- **[Greenfield Spring Boot + React with a custom extension](https://github.com/mnriem/spec-kit-aide-extension-demo)** — Walks through the **AIDE extension**, a community extension that adds an alternative spec-driven workflow to spec-kit with high-level specs (vision) and low-level specs (work items) organized in a 7-step iterative lifecycle: vision → roadmap → progress tracking → work queue → work items → execution → feedback loops. Uses a family trading platform (Spring Boot 4, React 19, PostgreSQL, Docker Compose) as the scenario to illustrate how the extension mechanism lets you plug in a different style of spec-driven development without changing any core tooling — truly utilizing the "Kit" in Spec Kit.
|
||||||
73
docs/docfx.json
Normal file
73
docs/docfx.json
Normal file
@@ -0,0 +1,73 @@
|
|||||||
|
{
|
||||||
|
"build": {
|
||||||
|
"content": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.md",
|
||||||
|
"toc.yml",
|
||||||
|
"community/*.md",
|
||||||
|
"reference/*.md"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"../README.md",
|
||||||
|
"../CONTRIBUTING.md",
|
||||||
|
"../CODE_OF_CONDUCT.md",
|
||||||
|
"../SECURITY.md",
|
||||||
|
"../SUPPORT.md"
|
||||||
|
],
|
||||||
|
"dest": "."
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"resource": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"images/**"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"../media/**"
|
||||||
|
],
|
||||||
|
"dest": "media"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"overwrite": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"apidoc/**.md"
|
||||||
|
],
|
||||||
|
"exclude": [
|
||||||
|
"obj/**",
|
||||||
|
"_site/**"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"dest": "_site",
|
||||||
|
"globalMetadataFiles": [],
|
||||||
|
"fileMetadataFiles": [],
|
||||||
|
"template": [
|
||||||
|
"default",
|
||||||
|
"modern"
|
||||||
|
],
|
||||||
|
"postProcessors": [],
|
||||||
|
"markdownEngineName": "markdig",
|
||||||
|
"noLangKeyword": false,
|
||||||
|
"keepFileLink": false,
|
||||||
|
"cleanupCacheHistory": false,
|
||||||
|
"disableGitFeatures": false,
|
||||||
|
"globalMetadata": {
|
||||||
|
"_appTitle": "Spec Kit Documentation",
|
||||||
|
"_appName": "Spec Kit",
|
||||||
|
"_appFooter": "Spec Kit - A specification-driven development toolkit",
|
||||||
|
"_enableSearch": true,
|
||||||
|
"_disableContribution": false,
|
||||||
|
"_gitContribute": {
|
||||||
|
"repo": "https://github.com/github/spec-kit",
|
||||||
|
"branch": "main"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
67
docs/index.md
Normal file
67
docs/index.md
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
# Spec Kit
|
||||||
|
|
||||||
|
*Build high-quality software faster.*
|
||||||
|
|
||||||
|
**An effort to allow organizations to focus on product scenarios rather than writing undifferentiated code with the help of Spec-Driven Development.**
|
||||||
|
|
||||||
|
## What is Spec-Driven Development?
|
||||||
|
|
||||||
|
Spec-Driven Development **flips the script** on traditional software development. For decades, code has been king — specifications were just scaffolding we built and discarded once the "real work" of coding began. Spec-Driven Development changes this: **specifications become executable**, directly generating working implementations rather than just guiding them.
|
||||||
|
|
||||||
|
## Getting Started
|
||||||
|
|
||||||
|
- [Installation Guide](installation.md)
|
||||||
|
- [Quick Start Guide](quickstart.md)
|
||||||
|
- [Upgrade Guide](upgrade.md)
|
||||||
|
- [Local Development](local-development.md)
|
||||||
|
|
||||||
|
## Core Philosophy
|
||||||
|
|
||||||
|
Spec-Driven Development is a structured process that emphasizes:
|
||||||
|
|
||||||
|
- **Intent-driven development** where specifications define the "*what*" before the "*how*"
|
||||||
|
- **Rich specification creation** using guardrails and organizational principles
|
||||||
|
- **Multi-step refinement** rather than one-shot code generation from prompts
|
||||||
|
- **Heavy reliance** on advanced AI model capabilities for specification interpretation
|
||||||
|
|
||||||
|
## Development Phases
|
||||||
|
|
||||||
|
| Phase | Focus | Key Activities |
|
||||||
|
|-------|-------|----------------|
|
||||||
|
| **0-to-1 Development** ("Greenfield") | Generate from scratch | <ul><li>Start with high-level requirements</li><li>Generate specifications</li><li>Plan implementation steps</li><li>Build production-ready applications</li></ul> |
|
||||||
|
| **Creative Exploration** | Parallel implementations | <ul><li>Explore diverse solutions</li><li>Support multiple technology stacks & architectures</li><li>Experiment with UX patterns</li></ul> |
|
||||||
|
| **Iterative Enhancement** ("Brownfield") | Brownfield modernization | <ul><li>Add features iteratively</li><li>Modernize legacy systems</li><li>Adapt processes</li></ul> |
|
||||||
|
|
||||||
|
## Experimental Goals
|
||||||
|
|
||||||
|
Our research and experimentation focus on:
|
||||||
|
|
||||||
|
### Technology Independence
|
||||||
|
|
||||||
|
- Create applications using diverse technology stacks
|
||||||
|
- Validate the hypothesis that Spec-Driven Development is a process not tied to specific technologies, programming languages, or frameworks
|
||||||
|
|
||||||
|
### Enterprise Constraints
|
||||||
|
|
||||||
|
- Demonstrate mission-critical application development
|
||||||
|
- Incorporate organizational constraints (cloud providers, tech stacks, engineering practices)
|
||||||
|
- Support enterprise design systems and compliance requirements
|
||||||
|
|
||||||
|
### User-Centric Development
|
||||||
|
|
||||||
|
- Build applications for different user cohorts and preferences
|
||||||
|
- Support various development approaches (from vibe-coding to AI-native development)
|
||||||
|
|
||||||
|
### Creative & Iterative Processes
|
||||||
|
|
||||||
|
- Validate the concept of parallel implementation exploration
|
||||||
|
- Provide robust iterative feature development workflows
|
||||||
|
- Extend processes to handle upgrades and modernization tasks
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
Please see our [Contributing Guide](https://github.com/github/spec-kit/blob/main/CONTRIBUTING.md) for information on how to contribute to this project.
|
||||||
|
|
||||||
|
## Support
|
||||||
|
|
||||||
|
For support, please check our [Support Guide](https://github.com/github/spec-kit/blob/main/SUPPORT.md) or open an issue on GitHub.
|
||||||
60
docs/install/uv.md
Normal file
60
docs/install/uv.md
Normal file
@@ -0,0 +1,60 @@
|
|||||||
|
# Installing uv
|
||||||
|
|
||||||
|
[uv](https://docs.astral.sh/uv/) is a fast Python package manager by [Astral](https://astral.sh/). Spec Kit uses `uv` (via `uvx` or `uv tool install`) to run the `specify` CLI without polluting your global Python environment.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> **Already have uv?** Run `uv --version` to confirm it is installed, then head back to the [Installation Guide](../installation.md).
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
### macOS and Linux — Standalone Installer
|
||||||
|
|
||||||
|
The quickest way to install uv on macOS or Linux is the official shell script:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||||
|
```
|
||||||
|
|
||||||
|
After the script finishes, follow any instructions printed by the installer to add uv to your `PATH`, then open a new terminal.
|
||||||
|
|
||||||
|
### Windows — Standalone Installer
|
||||||
|
|
||||||
|
Run the following in **Command Prompt or PowerShell**:
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
|
||||||
|
```
|
||||||
|
|
||||||
|
After the script finishes, open a new terminal so the `uv` binary is on your `PATH`.
|
||||||
|
|
||||||
|
### macOS — Homebrew
|
||||||
|
|
||||||
|
```bash
|
||||||
|
brew install uv
|
||||||
|
```
|
||||||
|
|
||||||
|
### Windows — WinGet
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
winget install --id=astral-sh.uv -e
|
||||||
|
```
|
||||||
|
|
||||||
|
### Windows — Scoop
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
scoop install uv
|
||||||
|
```
|
||||||
|
|
||||||
|
## Verification
|
||||||
|
|
||||||
|
Confirm that uv is installed and on your `PATH`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv --version
|
||||||
|
```
|
||||||
|
|
||||||
|
You should see output similar to `uv 0.x.y (...)`.
|
||||||
|
|
||||||
|
## Further Reading
|
||||||
|
|
||||||
|
For advanced options (self-update, proxy settings, uninstall, etc.) see the official [uv installation docs](https://docs.astral.sh/uv/getting-started/installation/).
|
||||||
163
docs/installation.md
Normal file
163
docs/installation.md
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
# Installation Guide
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
- **Linux/macOS** (or Windows; PowerShell scripts now supported without WSL)
|
||||||
|
- AI coding agent: [Claude Code](https://www.anthropic.com/claude-code), [GitHub Copilot](https://code.visualstudio.com/), [Codebuddy CLI](https://www.codebuddy.ai/cli), [Gemini CLI](https://github.com/google-gemini/gemini-cli), or [Pi Coding Agent](https://pi.dev)
|
||||||
|
- [uv](https://docs.astral.sh/uv/) for package management (recommended) or [pipx](https://pypa.github.io/pipx/) for persistent installation
|
||||||
|
- [Python 3.11+](https://www.python.org/downloads/)
|
||||||
|
- [Git](https://git-scm.com/downloads)
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
|
||||||
|
> **Important:** The only official, maintained packages for Spec Kit come from the [github/spec-kit](https://github.com/github/spec-kit) GitHub repository. Any packages with the same name available on PyPI (e.g. `specify-cli` on pypi.org) are **not** affiliated with this project and are not maintained by the Spec Kit maintainers. For normal installs, use the GitHub-based commands shown below. For offline or air-gapped environments, locally built wheels created from this repository are also valid.
|
||||||
|
|
||||||
|
### Initialize a New Project
|
||||||
|
|
||||||
|
The easiest way to get started is to initialize a new project. Pin a specific release tag for stability (check [Releases](https://github.com/github/spec-kit/releases) for the latest):
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> The `uvx` commands below require **[uv](https://docs.astral.sh/uv/)**. If you see `command not found: uvx`, [install uv first](./install/uv.md). The `pipx` alternative does not require uv.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Install from a specific stable release (recommended — replace vX.Y.Z with the latest tag)
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <PROJECT_NAME>
|
||||||
|
|
||||||
|
# Or install latest from main (may include unreleased changes)
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> For a persistent installation, `pipx` works equally well:
|
||||||
|
> ```bash
|
||||||
|
> pipx install git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
> ```
|
||||||
|
> The project uses a standard `hatchling` build backend and has no uv-specific dependencies.
|
||||||
|
|
||||||
|
Or initialize in the current directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init .
|
||||||
|
# or use the --here flag
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init --here
|
||||||
|
```
|
||||||
|
|
||||||
|
### Specify Integration
|
||||||
|
|
||||||
|
Interactive terminals prompt you to choose a coding agent integration during initialization. Non-interactive sessions, such as CI or piped runs, default to GitHub Copilot unless you pass `--integration`.
|
||||||
|
|
||||||
|
You can proactively specify your coding agent integration during initialization:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --integration claude
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --integration gemini
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --integration copilot
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --integration codebuddy
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --integration pi
|
||||||
|
```
|
||||||
|
|
||||||
|
### Specify Script Type (Shell vs PowerShell)
|
||||||
|
|
||||||
|
All automation scripts now have both Bash (`.sh`) and PowerShell (`.ps1`) variants.
|
||||||
|
|
||||||
|
Auto behavior:
|
||||||
|
|
||||||
|
- Windows default: `ps`
|
||||||
|
- Other OS default: `sh`
|
||||||
|
- Interactive mode: you'll be prompted unless you pass `--script`
|
||||||
|
|
||||||
|
Force a specific script type:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --script sh
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --script ps
|
||||||
|
```
|
||||||
|
|
||||||
|
### Ignore Agent Tools Check
|
||||||
|
|
||||||
|
If you prefer to get the templates without checking for the right tools:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init <project_name> --integration claude --ignore-agent-tools
|
||||||
|
```
|
||||||
|
|
||||||
|
## Verification
|
||||||
|
|
||||||
|
After installation, run the following command to confirm the correct version is installed:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify version
|
||||||
|
```
|
||||||
|
|
||||||
|
This helps verify you are running the official Spec Kit build from GitHub, not an unrelated package with the same name.
|
||||||
|
|
||||||
|
After initialization, you should see the following commands available in your coding agent:
|
||||||
|
|
||||||
|
- `/speckit.specify` - Create specifications
|
||||||
|
- `/speckit.plan` - Generate implementation plans
|
||||||
|
- `/speckit.tasks` - Break down into actionable tasks
|
||||||
|
|
||||||
|
The `.specify/scripts` directory will contain both `.sh` and `.ps1` scripts.
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### Enterprise / Air-Gapped Installation
|
||||||
|
|
||||||
|
If your environment blocks access to PyPI (you see 403 errors when running `uv tool install` or `pip install`), you can create a portable wheel bundle on a connected machine and transfer it to the air-gapped target.
|
||||||
|
|
||||||
|
**Step 1: Build the wheel on a connected machine (same OS and Python version as the target)**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Clone the repository
|
||||||
|
git clone https://github.com/github/spec-kit.git
|
||||||
|
cd spec-kit
|
||||||
|
|
||||||
|
# Build the wheel
|
||||||
|
pip install build
|
||||||
|
python -m build --wheel --outdir dist/
|
||||||
|
|
||||||
|
# Download the wheel and all its runtime dependencies
|
||||||
|
pip download -d dist/ dist/specify_cli-*.whl
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Important:** `pip download` resolves platform-specific wheels (e.g., PyYAML includes native extensions). You must run this step on a machine with the **same OS and Python version** as the air-gapped target. If you need to support multiple platforms, repeat this step on each target OS (Linux, macOS, Windows) and Python version.
|
||||||
|
|
||||||
|
**Step 2: Transfer the `dist/` directory to the air-gapped machine**
|
||||||
|
|
||||||
|
Copy the entire `dist/` directory (which contains the `specify-cli` wheel and all dependency wheels) to the target machine via USB, network share, or other approved transfer method.
|
||||||
|
|
||||||
|
**Step 3: Install on the air-gapped machine**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pip install --no-index --find-links=./dist specify-cli
|
||||||
|
```
|
||||||
|
|
||||||
|
**Step 4: Initialize a project (no network required)**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Initialize a project — no GitHub access needed
|
||||||
|
specify init my-project --integration claude
|
||||||
|
```
|
||||||
|
|
||||||
|
Bundled assets are used by default — no network access is required.
|
||||||
|
|
||||||
|
> **Note:** Python 3.11+ is required.
|
||||||
|
|
||||||
|
> **Windows note:** Offline scaffolding requires PowerShell 7+ (`pwsh`), not Windows PowerShell 5.x (`powershell.exe`). Install from https://aka.ms/powershell.
|
||||||
|
|
||||||
|
### Git Credential Manager on Linux
|
||||||
|
|
||||||
|
If you're having issues with Git authentication on Linux, you can install Git Credential Manager:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
set -e
|
||||||
|
echo "Downloading Git Credential Manager v2.6.1..."
|
||||||
|
wget https://github.com/git-ecosystem/git-credential-manager/releases/download/v2.6.1/gcm-linux_amd64.2.6.1.deb
|
||||||
|
echo "Installing Git Credential Manager..."
|
||||||
|
sudo dpkg -i gcm-linux_amd64.2.6.1.deb
|
||||||
|
echo "Configuring Git to use GCM..."
|
||||||
|
git config --global credential.helper manager
|
||||||
|
echo "Cleaning up..."
|
||||||
|
rm gcm-linux_amd64.2.6.1.deb
|
||||||
|
```
|
||||||
173
docs/local-development.md
Normal file
173
docs/local-development.md
Normal file
@@ -0,0 +1,173 @@
|
|||||||
|
# Local Development Guide
|
||||||
|
|
||||||
|
This guide shows how to iterate on the `specify` CLI locally without publishing a release or committing to `main` first.
|
||||||
|
|
||||||
|
> Scripts now have both Bash (`.sh`) and PowerShell (`.ps1`) variants. The CLI auto-selects based on OS unless you pass `--script sh|ps`.
|
||||||
|
|
||||||
|
## 1. Clone and Switch Branches
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/github/spec-kit.git
|
||||||
|
cd spec-kit
|
||||||
|
# Work on a feature branch
|
||||||
|
git checkout -b your-feature-branch
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2. Run the CLI Directly (Fastest Feedback)
|
||||||
|
|
||||||
|
You can execute the CLI via the module entrypoint without installing anything:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# From repo root
|
||||||
|
python -m src.specify_cli --help
|
||||||
|
python -m src.specify_cli init demo-project --integration claude --ignore-agent-tools --script sh
|
||||||
|
```
|
||||||
|
|
||||||
|
If you prefer invoking the script file style (uses shebang):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python src/specify_cli/__init__.py init demo-project --script ps
|
||||||
|
```
|
||||||
|
|
||||||
|
## 3. Use Editable Install (Isolated Environment)
|
||||||
|
|
||||||
|
Create an isolated environment using `uv` so dependencies resolve exactly like end users get them:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create & activate virtual env (uv auto-manages .venv)
|
||||||
|
uv venv
|
||||||
|
source .venv/bin/activate # or on Windows PowerShell: .venv\Scripts\Activate.ps1
|
||||||
|
|
||||||
|
# Install project in editable mode
|
||||||
|
uv pip install -e .
|
||||||
|
|
||||||
|
# Now 'specify' entrypoint is available
|
||||||
|
specify --help
|
||||||
|
```
|
||||||
|
|
||||||
|
Re-running after code edits requires no reinstall because of editable mode.
|
||||||
|
|
||||||
|
## 4. Invoke with uvx Directly From Git (Current Branch)
|
||||||
|
|
||||||
|
`uvx` can run from a local path (or a Git ref) to simulate user flows:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from . specify init demo-uvx --integration copilot --ignore-agent-tools --script sh
|
||||||
|
```
|
||||||
|
|
||||||
|
You can also point uvx at a specific branch without merging:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Push your working branch first
|
||||||
|
git push origin your-feature-branch
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@your-feature-branch specify init demo-branch-test --script ps
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4a. Absolute Path uvx (Run From Anywhere)
|
||||||
|
|
||||||
|
If you're in another directory, use an absolute path instead of `.`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from /mnt/c/GitHub/spec-kit specify --help
|
||||||
|
uvx --from /mnt/c/GitHub/spec-kit specify init demo-anywhere --integration copilot --ignore-agent-tools --script sh
|
||||||
|
```
|
||||||
|
|
||||||
|
Set an environment variable for convenience:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
export SPEC_KIT_SRC=/mnt/c/GitHub/spec-kit
|
||||||
|
uvx --from "$SPEC_KIT_SRC" specify init demo-env --integration copilot --ignore-agent-tools --script ps
|
||||||
|
```
|
||||||
|
|
||||||
|
(Optional) Define a shell function:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify-dev() { uvx --from /mnt/c/GitHub/spec-kit specify "$@"; }
|
||||||
|
# Then
|
||||||
|
specify-dev --help
|
||||||
|
```
|
||||||
|
|
||||||
|
## 5. Testing Script Permission Logic
|
||||||
|
|
||||||
|
After running an `init`, check that shell scripts are executable on POSIX systems:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ls -l scripts | grep .sh
|
||||||
|
# Expect owner execute bit (e.g. -rwxr-xr-x)
|
||||||
|
```
|
||||||
|
|
||||||
|
On Windows you will instead use the `.ps1` scripts (no chmod needed).
|
||||||
|
|
||||||
|
## 6. Run Lint / Basic Checks (Add Your Own)
|
||||||
|
|
||||||
|
Currently no enforced lint config is bundled, but you can quickly sanity check importability:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
python -c "import specify_cli; print('Import OK')"
|
||||||
|
```
|
||||||
|
|
||||||
|
## 7. Build a Wheel Locally (Optional)
|
||||||
|
|
||||||
|
Validate packaging before publishing:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv build
|
||||||
|
ls dist/
|
||||||
|
```
|
||||||
|
|
||||||
|
Install the built artifact into a fresh throwaway environment if needed.
|
||||||
|
|
||||||
|
## 8. Using a Temporary Workspace
|
||||||
|
|
||||||
|
When testing `init --here` in a dirty directory, create a temp workspace:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir /tmp/spec-test && cd /tmp/spec-test
|
||||||
|
python -m src.specify_cli init --here --integration claude --ignore-agent-tools --script sh # if repo copied here
|
||||||
|
```
|
||||||
|
|
||||||
|
Or copy only the modified CLI portion if you want a lighter sandbox.
|
||||||
|
|
||||||
|
## 9. Debug Network / TLS Issues
|
||||||
|
|
||||||
|
> **Deprecated:** The `--skip-tls` flag is a no-op and has no effect.
|
||||||
|
> It was previously used to bypass TLS validation during local testing.
|
||||||
|
> If you encounter TLS errors (e.g., on a corporate network), configure your
|
||||||
|
> environment's certificate store or proxy instead.
|
||||||
|
>
|
||||||
|
> For example, set `SSL_CERT_FILE` or configure `HTTPS_PROXY` / `HTTP_PROXY`.
|
||||||
|
|
||||||
|
## 10. Rapid Edit Loop Summary
|
||||||
|
|
||||||
|
| Action | Command |
|
||||||
|
|--------|---------|
|
||||||
|
| Run CLI directly | `python -m src.specify_cli --help` |
|
||||||
|
| Editable install | `uv pip install -e .` then `specify ...` |
|
||||||
|
| Local uvx run (repo root) | `uvx --from . specify ...` |
|
||||||
|
| Local uvx run (abs path) | `uvx --from /mnt/c/GitHub/spec-kit specify ...` |
|
||||||
|
| Git branch uvx | `uvx --from git+URL@branch specify ...` |
|
||||||
|
| Build wheel | `uv build` |
|
||||||
|
|
||||||
|
## 11. Cleaning Up
|
||||||
|
|
||||||
|
Remove build artifacts / virtual env quickly:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
rm -rf .venv dist build *.egg-info
|
||||||
|
```
|
||||||
|
|
||||||
|
## 12. Common Issues
|
||||||
|
|
||||||
|
| Symptom | Fix |
|
||||||
|
|---------|-----|
|
||||||
|
| `ModuleNotFoundError: typer` | Run `uv pip install -e .` |
|
||||||
|
| Scripts not executable (Linux) | Re-run init or `chmod +x scripts/*.sh` |
|
||||||
|
| Git step skipped | You passed `--no-git` or Git not installed |
|
||||||
|
| Wrong script type downloaded | Pass `--script sh` or `--script ps` explicitly |
|
||||||
|
| TLS errors on corporate network | Configure your environment's certificate store or proxy. The `--skip-tls` flag is deprecated and has no effect. |
|
||||||
|
|
||||||
|
## 13. Next Steps
|
||||||
|
|
||||||
|
- Update docs and run through Quick Start using your modified CLI
|
||||||
|
- Open a PR when satisfied
|
||||||
|
- (Optional) Tag a release once changes land in `main`
|
||||||
189
docs/quickstart.md
Normal file
189
docs/quickstart.md
Normal file
@@ -0,0 +1,189 @@
|
|||||||
|
# Quick Start Guide
|
||||||
|
|
||||||
|
This guide will help you get started with Spec-Driven Development using Spec Kit.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> All automation scripts now provide both Bash (`.sh`) and PowerShell (`.ps1`) variants. The `specify` CLI auto-selects based on OS unless you pass `--script sh|ps`.
|
||||||
|
|
||||||
|
## The 6-Step Process
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> **Context Awareness**: Spec Kit commands automatically detect the active feature based on your current Git branch (e.g., `001-feature-name`). To switch between different specifications, simply switch Git branches.
|
||||||
|
|
||||||
|
### Step 1: Install Specify
|
||||||
|
|
||||||
|
**In your terminal**, run the `specify` CLI command to initialize your project:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create a new project directory
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME>
|
||||||
|
|
||||||
|
# OR initialize in the current directory
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git specify init .
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> You can also install the CLI persistently with `pipx`:
|
||||||
|
> ```bash
|
||||||
|
> pipx install git+https://github.com/github/spec-kit.git
|
||||||
|
> ```
|
||||||
|
> After installing with `pipx`, run `specify` directly instead of `uvx --from ... specify`, for example:
|
||||||
|
> ```bash
|
||||||
|
> specify init <PROJECT_NAME>
|
||||||
|
> specify init .
|
||||||
|
> ```
|
||||||
|
|
||||||
|
Pick script type explicitly (optional):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME> --script ps # Force PowerShell
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git specify init <PROJECT_NAME> --script sh # Force POSIX shell
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 2: Define Your Constitution
|
||||||
|
|
||||||
|
**In your coding agent's chat interface**, use the `/speckit.constitution` slash command to establish the core rules and principles for your project. You should provide your project's specific principles as arguments.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.constitution This project follows a "Library-First" approach. All features must be implemented as standalone libraries first. We use TDD strictly. We prefer functional programming patterns.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 3: Create the Spec
|
||||||
|
|
||||||
|
**In the chat**, use the `/speckit.specify` slash command to describe what you want to build. Focus on the **what** and **why**, not the tech stack.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.specify Build an application that can help me organize my photos in separate photo albums. Albums are grouped by date and can be re-organized by dragging and dropping on the main page. Albums are never in other nested albums. Within each album, photos are previewed in a tile-like interface.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 4: Refine the Spec
|
||||||
|
|
||||||
|
**In the chat**, use the `/speckit.clarify` slash command to identify and resolve ambiguities in your specification. You can provide specific focus areas as arguments.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.clarify Focus on security and performance requirements.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 5: Create a Technical Implementation Plan
|
||||||
|
|
||||||
|
**In the chat**, use the `/speckit.plan` slash command to provide your tech stack and architecture choices.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.plan The application uses Vite with minimal number of libraries. Use vanilla HTML, CSS, and JavaScript as much as possible. Images are not uploaded anywhere and metadata is stored in a local SQLite database.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 6: Break Down and Implement
|
||||||
|
|
||||||
|
**In the chat**, use the `/speckit.tasks` slash command to create an actionable task list.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.tasks
|
||||||
|
```
|
||||||
|
|
||||||
|
Optionally, validate the plan with `/speckit.analyze`:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.analyze
|
||||||
|
```
|
||||||
|
|
||||||
|
Then, use the `/speckit.implement` slash command to execute the plan.
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.implement
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> **Phased Implementation**: For complex projects, implement in phases to avoid overwhelming the agent's context. Start with core functionality, validate it works, then add features incrementally.
|
||||||
|
|
||||||
|
## Detailed Example: Building Taskify
|
||||||
|
|
||||||
|
Here's a complete example of building a team productivity platform:
|
||||||
|
|
||||||
|
### Step 1: Define Constitution
|
||||||
|
|
||||||
|
Initialize the project's constitution to set ground rules:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
/speckit.constitution Taskify is a "Security-First" application. All user inputs must be validated. We use a microservices architecture. Code must be fully documented.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 2: Define Requirements with `/speckit.specify`
|
||||||
|
|
||||||
|
```text
|
||||||
|
Develop Taskify, a team productivity platform. It should allow users to create projects, add team members,
|
||||||
|
assign tasks, comment and move tasks between boards in Kanban style. In this initial phase for this feature,
|
||||||
|
let's call it "Create Taskify," let's have multiple users but the users will be declared ahead of time, predefined.
|
||||||
|
I want five users in two different categories, one product manager and four engineers. Let's create three
|
||||||
|
different sample projects. Let's have the standard Kanban columns for the status of each task, such as "To Do,"
|
||||||
|
"In Progress," "In Review," and "Done." There will be no login for this application as this is just the very
|
||||||
|
first testing thing to ensure that our basic features are set up.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 3: Refine the Specification
|
||||||
|
|
||||||
|
Use the `/speckit.clarify` command to interactively resolve any ambiguities in your specification. You can also provide specific details you want to ensure are included.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.clarify I want to clarify the task card details. For each task in the UI for a task card, you should be able to change the current status of the task between the different columns in the Kanban work board. You should be able to leave an unlimited number of comments for a particular card. You should be able to, from that task card, assign one of the valid users.
|
||||||
|
```
|
||||||
|
|
||||||
|
You can continue to refine the spec with more details using `/speckit.clarify`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.clarify When you first launch Taskify, it's going to give you a list of the five users to pick from. There will be no password required. When you click on a user, you go into the main view, which displays the list of projects. When you click on a project, you open the Kanban board for that project. You're going to see the columns. You'll be able to drag and drop cards back and forth between different columns. You will see any cards that are assigned to you, the currently logged in user, in a different color from all the other ones, so you can quickly see yours. You can edit any comments that you make, but you can't edit comments that other people made. You can delete any comments that you made, but you can't delete comments anybody else made.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 4: Validate the Spec
|
||||||
|
|
||||||
|
Validate the specification checklist using the `/speckit.checklist` command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.checklist
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 5: Generate Technical Plan with `/speckit.plan`
|
||||||
|
|
||||||
|
Be specific about your tech stack and technical requirements:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.plan We are going to generate this using .NET Aspire, using Postgres as the database. The frontend should use Blazor server with drag-and-drop task boards, real-time updates. There should be a REST API created with a projects API, tasks API, and a notifications API.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 6: Define Tasks
|
||||||
|
|
||||||
|
Generate an actionable task list using the `/speckit.tasks` command:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.tasks
|
||||||
|
```
|
||||||
|
|
||||||
|
### Step 7: Validate and Implement
|
||||||
|
|
||||||
|
Have your coding agent audit the implementation plan using `/speckit.analyze`:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.analyze
|
||||||
|
```
|
||||||
|
|
||||||
|
Finally, implement the solution:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
/speckit.implement
|
||||||
|
```
|
||||||
|
|
||||||
|
> [!TIP]
|
||||||
|
> **Phased Implementation**: For large projects like Taskify, consider implementing in phases (e.g., Phase 1: Basic project/task structure, Phase 2: Kanban functionality, Phase 3: Comments and assignments). This prevents context saturation and allows for validation at each stage.
|
||||||
|
|
||||||
|
## Key Principles
|
||||||
|
|
||||||
|
- **Be explicit** about what you're building and why
|
||||||
|
- **Don't focus on tech stack** during specification phase
|
||||||
|
- **Iterate and refine** your specifications before implementation
|
||||||
|
- **Validate** the plan before coding begins
|
||||||
|
- **Let the coding agent handle** the implementation details
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
|
||||||
|
- Read the [complete methodology](https://github.com/github/spec-kit/blob/main/spec-driven.md) for in-depth guidance
|
||||||
|
- Check out [more examples](https://github.com/github/spec-kit/tree/main/templates) in the repository
|
||||||
|
- Explore the [source code on GitHub](https://github.com/github/spec-kit)
|
||||||
85
docs/reference/core.md
Normal file
85
docs/reference/core.md
Normal file
@@ -0,0 +1,85 @@
|
|||||||
|
# Core Commands
|
||||||
|
|
||||||
|
The core `specify` commands handle project initialization, system checks, and version information.
|
||||||
|
|
||||||
|
## Initialize a Project
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify init [<project_name>]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------------------ | ------------------------------------------------------------------------ |
|
||||||
|
| `--integration <key>` | AI coding agent integration to use (e.g. `copilot`, `claude`, `gemini`). See the [Integrations reference](integrations.md) for all available keys |
|
||||||
|
| `--integration-options` | Options for the integration (e.g. `--integration-options="--commands-dir .myagent/cmds"`) |
|
||||||
|
| `--script sh\|ps` | Script type: `sh` (bash/zsh) or `ps` (PowerShell) |
|
||||||
|
| `--here` | Initialize in the current directory instead of creating a new one |
|
||||||
|
| `--force` | Force merge/overwrite when initializing in an existing directory |
|
||||||
|
| `--no-git` | Skip git repository initialization |
|
||||||
|
| `--ignore-agent-tools` | Skip checks for AI coding agent CLI tools |
|
||||||
|
| `--preset <id>` | Install a preset during initialization |
|
||||||
|
| `--branch-numbering` | Branch numbering strategy: `sequential` (default) or `timestamp` |
|
||||||
|
|
||||||
|
Creates a new Spec Kit project with the necessary directory structure, templates, scripts, and AI coding agent integration files.
|
||||||
|
|
||||||
|
> [!NOTE]
|
||||||
|
> The git extension is currently enabled by default during `specify init`.
|
||||||
|
> Starting in `v0.10.0`, it will require explicit opt-in. To add it after init, run `specify extension add git`.
|
||||||
|
|
||||||
|
Use `<project_name>` to create a new directory, or `--here` (or `.`) to initialize in the current directory. If the directory already has files, use `--force` to merge without confirmation.
|
||||||
|
|
||||||
|
When `--integration` is omitted, interactive terminals prompt you to choose an integration. Non-interactive sessions, such as CI or piped runs, default to GitHub Copilot; pass `--integration <key>` to choose a different integration explicitly.
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Create a new project with an integration
|
||||||
|
specify init my-project --integration copilot
|
||||||
|
|
||||||
|
# Initialize in the current directory
|
||||||
|
specify init --here --integration copilot
|
||||||
|
|
||||||
|
# Force merge into a non-empty directory
|
||||||
|
specify init --here --force --integration copilot
|
||||||
|
|
||||||
|
# Use PowerShell scripts (Windows/cross-platform)
|
||||||
|
specify init my-project --integration copilot --script ps
|
||||||
|
|
||||||
|
# Skip git initialization
|
||||||
|
specify init my-project --integration copilot --no-git
|
||||||
|
|
||||||
|
# Install a preset during initialization
|
||||||
|
specify init my-project --integration copilot --preset compliance
|
||||||
|
|
||||||
|
# Use timestamp-based branch numbering (useful for distributed teams)
|
||||||
|
specify init my-project --integration copilot --branch-numbering timestamp
|
||||||
|
```
|
||||||
|
|
||||||
|
### Environment Variables
|
||||||
|
|
||||||
|
| Variable | Description |
|
||||||
|
| ----------------- | ------------------------------------------------------------------------ |
|
||||||
|
| `SPECIFY_FEATURE` | Override feature detection for non-Git repositories. Set to the feature directory name (e.g., `001-photo-albums`) to work on a specific feature when not using Git branches. Must be set in the context of the agent prior to using `/speckit.plan` or follow-up commands. |
|
||||||
|
|
||||||
|
## Check Installed Tools
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify check
|
||||||
|
```
|
||||||
|
|
||||||
|
Checks that required tools are available on your system: `git` and any CLI-based AI coding agents. IDE-based agents are skipped since they don't require a CLI tool.
|
||||||
|
|
||||||
|
## Version Information
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify version
|
||||||
|
```
|
||||||
|
|
||||||
|
Displays the Spec Kit CLI version, Python version, platform, and architecture.
|
||||||
|
|
||||||
|
A quick version check is also available via:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify --version
|
||||||
|
specify -V
|
||||||
|
```
|
||||||
201
docs/reference/extensions.md
Normal file
201
docs/reference/extensions.md
Normal file
@@ -0,0 +1,201 @@
|
|||||||
|
# Extensions
|
||||||
|
|
||||||
|
Extensions add new capabilities to Spec Kit — domain-specific commands, external tool integrations, quality gates, and more. They introduce new commands and templates that go beyond the built-in Spec-Driven Development workflow.
|
||||||
|
|
||||||
|
## Search Available Extensions
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension search [query]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------ | ------------------------------------ |
|
||||||
|
| `--tag` | Filter by tag |
|
||||||
|
| `--author` | Filter by author |
|
||||||
|
| `--verified` | Show only verified extensions |
|
||||||
|
|
||||||
|
Searches all active catalogs for extensions matching the query. Without a query, lists all available extensions.
|
||||||
|
|
||||||
|
## Install an Extension
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension add <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| --------------- | -------------------------------------------------------- |
|
||||||
|
| `--dev` | Install from a local directory (for development) |
|
||||||
|
| `--from <url>` | Install from a custom URL instead of the catalog |
|
||||||
|
| `--priority <N>`| Resolution priority (default: 10; lower = higher precedence) |
|
||||||
|
|
||||||
|
Installs an extension from the catalog, a URL, or a local directory. Extension commands are automatically registered with the currently installed AI coding agent integration.
|
||||||
|
|
||||||
|
> **Note:** All extension commands require a project already initialized with `specify init`.
|
||||||
|
|
||||||
|
## Remove an Extension
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension remove <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| --------------- | ---------------------------------------------- |
|
||||||
|
| `--keep-config` | Preserve configuration files during removal |
|
||||||
|
| `--force` | Skip confirmation prompt |
|
||||||
|
|
||||||
|
Removes an installed extension. Configuration files are backed up by default; use `--keep-config` to leave them in place or `--force` to skip the confirmation.
|
||||||
|
|
||||||
|
## List Installed Extensions
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension list
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------- | -------------------------------------------------- |
|
||||||
|
| `--available` | Show available (uninstalled) extensions |
|
||||||
|
| `--all` | Show both installed and available extensions |
|
||||||
|
|
||||||
|
Lists installed extensions with their status, version, and command counts.
|
||||||
|
|
||||||
|
## Extension Info
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension info <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows detailed information about an installed or available extension, including its description, version, commands, and configuration.
|
||||||
|
|
||||||
|
## Update Extensions
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension update [<name>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Updates a specific extension, or all installed extensions if no name is given.
|
||||||
|
|
||||||
|
## Enable / Disable an Extension
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension enable <name>
|
||||||
|
specify extension disable <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Disable an extension without removing it. Disabled extensions are not loaded and their commands are not available. Re-enable with `enable`.
|
||||||
|
|
||||||
|
## Set Extension Priority
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension set-priority <name> <priority>
|
||||||
|
```
|
||||||
|
|
||||||
|
Changes the resolution priority of an extension. When multiple extensions provide a command with the same name, the extension with the lowest priority number takes precedence.
|
||||||
|
|
||||||
|
## Catalog Management
|
||||||
|
|
||||||
|
Extension catalogs control where `search` and `add` look for extensions. Catalogs are checked in priority order (lower number = higher precedence).
|
||||||
|
|
||||||
|
### List Catalogs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension catalog list
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows all active catalogs in the stack with their priorities and install permissions.
|
||||||
|
|
||||||
|
### Add a Catalog
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension catalog add <url>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------------------------------ | -------------------------------------------------- |
|
||||||
|
| `--name <name>` | Required. Unique name for the catalog |
|
||||||
|
| `--priority <N>` | Priority (default: 10; lower = higher precedence) |
|
||||||
|
| `--install-allowed / --no-install-allowed` | Whether extensions can be installed from this catalog |
|
||||||
|
| `--description <text>` | Optional description |
|
||||||
|
|
||||||
|
Adds a catalog to the project's `.specify/extension-catalogs.yml`.
|
||||||
|
|
||||||
|
### Remove a Catalog
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension catalog remove <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Removes a catalog from the project configuration.
|
||||||
|
|
||||||
|
### Catalog Resolution Order
|
||||||
|
|
||||||
|
Catalogs are resolved in this order (first match wins):
|
||||||
|
|
||||||
|
1. **Environment variable** — `SPECKIT_CATALOG_URL` overrides all catalogs
|
||||||
|
2. **Project config** — `.specify/extension-catalogs.yml`
|
||||||
|
3. **User config** — `~/.specify/extension-catalogs.yml`
|
||||||
|
4. **Built-in defaults** — official catalog + community catalog
|
||||||
|
|
||||||
|
Example `.specify/extension-catalogs.yml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
catalogs:
|
||||||
|
- name: "my-org-catalog"
|
||||||
|
url: "https://example.com/catalog.json"
|
||||||
|
priority: 5
|
||||||
|
install_allowed: true
|
||||||
|
description: "Our approved extensions"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Extension Configuration
|
||||||
|
|
||||||
|
Most extensions include configuration files in their install directory:
|
||||||
|
|
||||||
|
```text
|
||||||
|
.specify/extensions/<ext>/
|
||||||
|
├── <ext>-config.yml # Project config (version controlled)
|
||||||
|
├── <ext>-config.local.yml # Local overrides (gitignored)
|
||||||
|
└── <ext>-config.template.yml # Template reference
|
||||||
|
```
|
||||||
|
|
||||||
|
Configuration is merged in this order (highest priority last):
|
||||||
|
|
||||||
|
1. **Extension defaults** (from `extension.yml`)
|
||||||
|
2. **Project config** (`<ext>-config.yml`)
|
||||||
|
3. **Local overrides** (`<ext>-config.local.yml`)
|
||||||
|
4. **Environment variables** (`SPECKIT_<EXT>_*`)
|
||||||
|
|
||||||
|
To set up configuration for a newly installed extension, copy the template:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp .specify/extensions/<ext>/<ext>-config.template.yml \
|
||||||
|
.specify/extensions/<ext>/<ext>-config.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### Why can't I find an extension with `search`?
|
||||||
|
|
||||||
|
Check the spelling of the extension name. The extension may not be published yet, or it may be in a catalog you haven't added. Use `specify extension catalog list` to see which catalogs are active.
|
||||||
|
|
||||||
|
### Why doesn't the extension command appear in my AI coding agent?
|
||||||
|
|
||||||
|
Verify the extension is installed and enabled with `specify extension list`. If it shows as installed, restart your AI coding agent — it may need to reload for it to take effect.
|
||||||
|
|
||||||
|
### How do I set up extension configuration?
|
||||||
|
|
||||||
|
Copy the config template that ships with the extension:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cp .specify/extensions/<ext>/<ext>-config.template.yml \
|
||||||
|
.specify/extensions/<ext>/<ext>-config.yml
|
||||||
|
```
|
||||||
|
|
||||||
|
See [Extension Configuration](#extension-configuration) for details on config layers and overrides.
|
||||||
|
|
||||||
|
### How do I resolve an incompatible version error?
|
||||||
|
|
||||||
|
Update Spec Kit to the version required by the extension.
|
||||||
|
|
||||||
|
### Who maintains extensions?
|
||||||
|
|
||||||
|
Most extensions are independently created and maintained by their respective authors. The Spec Kit maintainers do not review, audit, endorse, or support extension code. Review an extension's source code before installing and use at your own discretion. For issues with a specific extension, contact its author or file an issue on the extension's repository.
|
||||||
189
docs/reference/integrations.md
Normal file
189
docs/reference/integrations.md
Normal file
@@ -0,0 +1,189 @@
|
|||||||
|
# Supported AI Coding Agent Integrations
|
||||||
|
|
||||||
|
The Specify CLI supports a wide range of AI coding agents. When you run `specify init`, the CLI sets up the appropriate command files, context rules, and directory structures for your chosen AI coding agent — so you can start using Spec-Driven Development immediately, regardless of which tool you prefer.
|
||||||
|
|
||||||
|
## Supported AI Coding Agents
|
||||||
|
|
||||||
|
| Agent | Key | Notes |
|
||||||
|
| ------------------------------------------------------------------------------------ | ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
||||||
|
| [Amp](https://ampcode.com/) | `amp` | |
|
||||||
|
| [Antigravity (agy)](https://antigravity.google/) | `agy` | Skills-based integration; skills are installed automatically |
|
||||||
|
| [Auggie CLI](https://docs.augmentcode.com/cli/overview) | `auggie` | |
|
||||||
|
| [Claude Code](https://www.anthropic.com/claude-code) | `claude` | Skills-based integration; installs skills in `.claude/skills` |
|
||||||
|
| [CodeBuddy CLI](https://www.codebuddy.ai/cli) | `codebuddy` | |
|
||||||
|
| [Codex CLI](https://github.com/openai/codex) | `codex` | Skills-based integration; installs skills into `.agents/skills` and invokes them as `$speckit-<command>` |
|
||||||
|
| [Cursor](https://cursor.sh/) | `cursor-agent` | |
|
||||||
|
| [Devin for Terminal](https://cli.devin.ai/docs) | `devin` | Skills-based integration; installs skills into `.devin/skills/` and invokes them as `/speckit-<command>` |
|
||||||
|
| [Forge](https://forgecode.dev/) | `forge` | |
|
||||||
|
| [Gemini CLI](https://github.com/google-gemini/gemini-cli) | `gemini` | |
|
||||||
|
| [GitHub Copilot](https://code.visualstudio.com/) | `copilot` | |
|
||||||
|
| [Goose](https://block.github.io/goose/) | `goose` | Uses YAML recipe format in `.goose/recipes/` |
|
||||||
|
| [IBM Bob](https://www.ibm.com/products/bob) | `bob` | IDE-based agent |
|
||||||
|
| [iFlow CLI](https://docs.iflow.cn/en/cli/quickstart) | `iflow` | |
|
||||||
|
| [Junie](https://junie.jetbrains.com/) | `junie` | |
|
||||||
|
| [Kilo Code](https://github.com/Kilo-Org/kilocode) | `kilocode` | |
|
||||||
|
| [Kimi Code](https://code.kimi.com/) | `kimi` | Skills-based integration; supports `--migrate-legacy` for dotted→hyphenated directory migration |
|
||||||
|
| [Kiro CLI](https://kiro.dev/docs/cli/) | `kiro-cli` | Alias: `--integration kiro` |
|
||||||
|
| [Lingma](https://lingma.aliyun.com/) | `lingma` | Skills-based integration; skills are installed automatically |
|
||||||
|
| [Mistral Vibe](https://github.com/mistralai/mistral-vibe) | `vibe` | |
|
||||||
|
| [opencode](https://opencode.ai/) | `opencode` | |
|
||||||
|
| [Pi Coding Agent](https://pi.dev) | `pi` | Pi doesn't have MCP support out of the box, so `taskstoissues` won't work as intended. MCP support can be added via [extensions](https://github.com/badlogic/pi-mono/tree/main/packages/coding-agent#extensions) |
|
||||||
|
| [Qoder CLI](https://qoder.com/cli) | `qodercli` | |
|
||||||
|
| [Qwen Code](https://github.com/QwenLM/qwen-code) | `qwen` | |
|
||||||
|
| [Roo Code](https://roocode.com/) | `roo` | |
|
||||||
|
| [SHAI (OVHcloud)](https://github.com/ovh/shai) | `shai` | |
|
||||||
|
| [Tabnine CLI](https://docs.tabnine.com/main/getting-started/tabnine-cli) | `tabnine` | |
|
||||||
|
| [Trae](https://www.trae.ai/) | `trae` | Skills-based integration; skills are installed automatically |
|
||||||
|
| [Windsurf](https://windsurf.com/) | `windsurf` | |
|
||||||
|
| Generic | `generic` | Bring your own agent — use `--integration generic --integration-options="--commands-dir <path>"` for AI coding agents not listed above |
|
||||||
|
|
||||||
|
## List Available Integrations
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration list
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows all available integrations, which one is currently installed, and whether each requires a CLI tool or is IDE-based.
|
||||||
|
When multiple integrations are installed, the list marks the default integration separately from the other installed integrations.
|
||||||
|
The list also shows whether each built-in integration is declared multi-install safe.
|
||||||
|
|
||||||
|
## Install an Integration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration install <key>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------------------ | ------------------------------------------------------------------------ |
|
||||||
|
| `--script sh\|ps` | Script type: `sh` (bash/zsh) or `ps` (PowerShell) |
|
||||||
|
| `--force` | Opt in to installing alongside integrations that are not declared multi-install safe |
|
||||||
|
| `--integration-options` | Integration-specific options (e.g. `--integration-options="--commands-dir .myagent/cmds"`) |
|
||||||
|
|
||||||
|
Installs the specified integration into the current project. If another integration is already installed, the command only proceeds automatically when all involved integrations are declared multi-install safe. Otherwise, use `switch` to replace the default integration or pass `--force` to explicitly opt in to multi-install. If the installation fails partway through, it automatically rolls back to a clean state.
|
||||||
|
|
||||||
|
Installing an additional integration does not change the default integration. Use `specify integration use <key>` to change the default.
|
||||||
|
|
||||||
|
> **Note:** All integration management commands require a project already initialized with `specify init`. To start a new project with a specific agent, use `specify init <project> --integration <key>` instead.
|
||||||
|
|
||||||
|
## Uninstall an Integration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration uninstall [<key>]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| --------- | --------------------------------------------------- |
|
||||||
|
| `--force` | Remove files even if they have been modified |
|
||||||
|
|
||||||
|
Uninstalls the current integration (or the specified one). Spec Kit tracks every file created during install along with a SHA-256 hash of the original content:
|
||||||
|
|
||||||
|
- **Unmodified files** are removed automatically.
|
||||||
|
- **Modified files** (where you've made manual edits) are preserved so your customizations are not lost.
|
||||||
|
- Use `--force` to remove all integration files regardless of modifications.
|
||||||
|
|
||||||
|
## Switch to a Different Integration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration switch <key>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------------------ | ------------------------------------------------------------------------ |
|
||||||
|
| `--script sh\|ps` | Script type: `sh` (bash/zsh) or `ps` (PowerShell) |
|
||||||
|
| `--force` | Force removal of modified files during uninstall; when the target is already installed, overwrite managed shared templates while changing the default |
|
||||||
|
| `--integration-options` | Options for the target integration when it is not already installed |
|
||||||
|
|
||||||
|
If the target integration is not already installed, equivalent to running `uninstall` followed by `install` in a single step. In this mode, `--force` controls whether modified files from the removed integration are deleted. If the target integration is already installed, `switch` only changes the default integration, like `use`; in this mode, `--force` controls whether managed shared templates are overwritten while the default changes. `--integration-options` is rejected for already-installed targets because changing integration options requires reinstalling managed files; run `upgrade <key> --integration-options ...` first, then `use <key>`.
|
||||||
|
|
||||||
|
## Use an Installed Integration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration use <key>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| --------- | --------------------------------------------------- |
|
||||||
|
| `--force` | Overwrite managed shared templates while changing the default |
|
||||||
|
|
||||||
|
Sets the default integration without uninstalling any other installed integrations. This also refreshes managed shared templates so command references match the new default integration's invocation style. Modified or untracked shared templates are preserved unless `--force` is used.
|
||||||
|
|
||||||
|
## Upgrade an Integration
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration upgrade [<key>]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------------------ | ------------------------------------------------------------------------ |
|
||||||
|
| `--force` | Overwrite files even if they have been modified |
|
||||||
|
| `--script sh\|ps` | Script type: `sh` (bash/zsh) or `ps` (PowerShell) |
|
||||||
|
| `--integration-options` | Options for the integration |
|
||||||
|
|
||||||
|
Reinstalls an installed integration with updated templates and commands (e.g., after upgrading Spec Kit). Defaults to the default integration; if a key is provided, it must be one of the installed integrations. Detects locally modified files and blocks the upgrade unless `--force` is used. Stale files from the previous install that are no longer needed are removed automatically. Shared templates stay aligned with the default integration even when upgrading a non-default integration.
|
||||||
|
|
||||||
|
## Integration-Specific Options
|
||||||
|
|
||||||
|
Some integrations accept additional options via `--integration-options`:
|
||||||
|
|
||||||
|
| Integration | Option | Description |
|
||||||
|
| ----------- | ------------------- | -------------------------------------------------------------- |
|
||||||
|
| `generic` | `--commands-dir` | Required. Directory for command files |
|
||||||
|
| `kimi` | `--migrate-legacy` | Migrate legacy dotted skill directories to hyphenated format |
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify integration install generic --integration-options="--commands-dir .myagent/cmds"
|
||||||
|
```
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### Can I install multiple integrations in the same project?
|
||||||
|
|
||||||
|
Yes, but it is intended for team portability rather than the default workflow. Multiple integrations are allowed automatically only when the installed integration and the new integration are declared multi-install safe by Spec Kit. For other combinations, pass `--force` to acknowledge that multiple agents may see unrelated agent-specific instructions or commands.
|
||||||
|
|
||||||
|
Spec Kit tracks one default integration in `.specify/integration.json` with `default_integration`, all installed integrations with `installed_integrations`, per-integration runtime settings with `integration_settings`, and a dedicated `integration_state_schema` for future state migrations. The legacy `integration` field remains as an alias for the default integration.
|
||||||
|
|
||||||
|
### Which integrations are multi-install safe?
|
||||||
|
|
||||||
|
An integration is multi-install safe when it uses isolated agent directories, a dedicated context file that does not collide with another safe integration, stable command invocation settings, and a separate install manifest. Shared Spec Kit templates remain aligned to the single default integration.
|
||||||
|
|
||||||
|
The currently declared multi-install safe integrations are:
|
||||||
|
|
||||||
|
| Key | Isolation |
|
||||||
|
| --- | --------- |
|
||||||
|
| `auggie` | `.augment/commands`, `.augment/rules/specify-rules.md` |
|
||||||
|
| `claude` | `.claude/skills`, `CLAUDE.md` |
|
||||||
|
| `codebuddy` | `.codebuddy/commands`, `CODEBUDDY.md` |
|
||||||
|
| `codex` | `.agents/skills`, `AGENTS.md` |
|
||||||
|
| `cursor-agent` | `.cursor/skills`, `.cursor/rules/specify-rules.mdc` |
|
||||||
|
| `gemini` | `.gemini/commands`, `GEMINI.md` |
|
||||||
|
| `iflow` | `.iflow/commands`, `IFLOW.md` |
|
||||||
|
| `junie` | `.junie/commands`, `.junie/AGENTS.md` |
|
||||||
|
| `kilocode` | `.kilocode/workflows`, `.kilocode/rules/specify-rules.md` |
|
||||||
|
| `kimi` | `.kimi/skills`, `KIMI.md` |
|
||||||
|
| `qodercli` | `.qoder/commands`, `QODER.md` |
|
||||||
|
| `qwen` | `.qwen/commands`, `QWEN.md` |
|
||||||
|
| `roo` | `.roo/commands`, `.roo/rules/specify-rules.md` |
|
||||||
|
| `shai` | `.shai/commands`, `SHAI.md` |
|
||||||
|
| `tabnine` | `.tabnine/agent/commands`, `TABNINE.md` |
|
||||||
|
| `trae` | `.trae/skills`, `.trae/rules/project_rules.md` |
|
||||||
|
| `windsurf` | `.windsurf/workflows`, `.windsurf/rules/specify-rules.md` |
|
||||||
|
|
||||||
|
Integrations that share a context file or command directory with another integration, require dynamic install paths such as `--commands-dir`, or merge shared tool settings are not declared safe by default. They can still be installed alongside another integration with `--force`.
|
||||||
|
|
||||||
|
### What happens to my changes when I uninstall or switch?
|
||||||
|
|
||||||
|
Files you've modified are preserved automatically. Only unmodified files (matching their original SHA-256 hash) are removed. Use `--force` to override this.
|
||||||
|
|
||||||
|
### How do I know which key to use?
|
||||||
|
|
||||||
|
Run `specify integration list` to see all available integrations with their keys, or check the [Supported AI Coding Agents](#supported-ai-coding-agents) table above.
|
||||||
|
|
||||||
|
### Do I need the AI coding agent installed to use an integration?
|
||||||
|
|
||||||
|
CLI-based integrations (like Claude Code, Gemini CLI) require the tool to be installed. IDE-based integrations (like Windsurf, Cursor) work through the IDE itself. Some agents like GitHub Copilot support both IDE and CLI usage. `specify integration list` shows which type each integration is.
|
||||||
|
|
||||||
|
### When should I use `upgrade` vs `switch`?
|
||||||
|
|
||||||
|
Use `upgrade` when you've upgraded Spec Kit and want to refresh an installed integration's managed files. Use `switch` when you want to replace the current default with another integration; if the target is already installed, `switch` behaves like `use`.
|
||||||
33
docs/reference/overview.md
Normal file
33
docs/reference/overview.md
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
# CLI Reference
|
||||||
|
|
||||||
|
The Specify CLI (`specify`) manages the full lifecycle of Spec-Driven Development — from project initialization to workflow automation.
|
||||||
|
|
||||||
|
## Core Commands
|
||||||
|
|
||||||
|
The foundational commands for creating and managing Spec Kit projects. Initialize a new project with the necessary directory structure, templates, and scripts. Verify that your system has the required tools installed. Check version and system information.
|
||||||
|
|
||||||
|
[Core Commands reference →](core.md)
|
||||||
|
|
||||||
|
## Integrations
|
||||||
|
|
||||||
|
Integrations connect Spec Kit to your AI coding agent. Each integration sets up the appropriate command files, context rules, and directory structures for a specific agent. Only one integration is active per project at a time, and you can switch between them at any point.
|
||||||
|
|
||||||
|
[Integrations reference →](integrations.md)
|
||||||
|
|
||||||
|
## Extensions
|
||||||
|
|
||||||
|
Extensions add new capabilities to Spec Kit — domain-specific commands, external tool integrations, quality gates, and more. They are discovered through catalogs and can be installed, updated, enabled, disabled, or removed independently. Multiple extensions can coexist in a single project.
|
||||||
|
|
||||||
|
[Extensions reference →](extensions.md)
|
||||||
|
|
||||||
|
## Presets
|
||||||
|
|
||||||
|
Presets customize how Spec Kit works — overriding command files, template files, and script files without changing any tooling. They let you enforce organizational standards, adapt the workflow to your methodology, or localize the entire experience. Multiple presets can be stacked with priority ordering to layer customizations.
|
||||||
|
|
||||||
|
[Presets reference →](presets.md)
|
||||||
|
|
||||||
|
## Workflows
|
||||||
|
|
||||||
|
Workflows automate multi-step Spec-Driven Development processes into repeatable sequences. They chain commands, prompts, shell steps, and human checkpoints together, with support for conditional logic, loops, fan-out/fan-in, and the ability to pause and resume from the exact point of interruption.
|
||||||
|
|
||||||
|
[Workflows reference →](workflows.md)
|
||||||
224
docs/reference/presets.md
Normal file
224
docs/reference/presets.md
Normal file
@@ -0,0 +1,224 @@
|
|||||||
|
# Presets
|
||||||
|
|
||||||
|
Presets customize how Spec Kit works — overriding templates, commands, and terminology without changing any tooling. They let you enforce organizational standards, adapt the workflow to your methodology, or localize the entire experience. Multiple presets can be stacked with priority ordering.
|
||||||
|
|
||||||
|
## Search Available Presets
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset search [query]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ---------- | -------------------- |
|
||||||
|
| `--tag` | Filter by tag |
|
||||||
|
| `--author` | Filter by author |
|
||||||
|
|
||||||
|
Searches all active catalogs for presets matching the query. Without a query, lists all available presets.
|
||||||
|
|
||||||
|
## Install a Preset
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset add [<preset_id>]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ---------------- | -------------------------------------------------------- |
|
||||||
|
| `--dev <path>` | Install from a local directory (for development) |
|
||||||
|
| `--from <url>` | Install from a custom URL instead of the catalog |
|
||||||
|
| `--priority <N>` | Resolution priority (default: 10; lower = higher precedence) |
|
||||||
|
|
||||||
|
Installs a preset from the catalog, a URL, or a local directory. Preset commands are automatically registered with the currently installed AI coding agent integration.
|
||||||
|
|
||||||
|
> **Note:** All preset commands require a project already initialized with `specify init`.
|
||||||
|
|
||||||
|
## Remove a Preset
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset remove <preset_id>
|
||||||
|
```
|
||||||
|
|
||||||
|
Removes an installed preset and cleans up its registered commands.
|
||||||
|
|
||||||
|
## List Installed Presets
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset list
|
||||||
|
```
|
||||||
|
|
||||||
|
Lists installed presets with their versions, descriptions, template counts, and current status.
|
||||||
|
|
||||||
|
## Preset Info
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset info <preset_id>
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows detailed information about an installed or available preset, including its templates, metadata, and tags.
|
||||||
|
|
||||||
|
## Resolve a File
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset resolve <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows which file will be used for a given name by tracing the full resolution stack. Useful for debugging when multiple presets provide the same file.
|
||||||
|
|
||||||
|
## Enable / Disable a Preset
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset enable <preset_id>
|
||||||
|
specify preset disable <preset_id>
|
||||||
|
```
|
||||||
|
|
||||||
|
Disable a preset without removing it. Disabled presets are skipped during file resolution but their commands remain registered. Re-enable with `enable`.
|
||||||
|
|
||||||
|
## Set Preset Priority
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset set-priority <preset_id> <priority>
|
||||||
|
```
|
||||||
|
|
||||||
|
Changes the resolution priority of an installed preset. Lower numbers take precedence. When multiple presets provide the same file, the one with the lowest priority number wins.
|
||||||
|
|
||||||
|
## Catalog Management
|
||||||
|
|
||||||
|
Preset catalogs control where `search` and `add` look for presets. Catalogs are checked in priority order (lower number = higher precedence).
|
||||||
|
|
||||||
|
### List Catalogs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset catalog list
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows all active catalogs with their priorities and install permissions.
|
||||||
|
|
||||||
|
### Add a Catalog
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset catalog add <url>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| -------------------------------------------- | -------------------------------------------------- |
|
||||||
|
| `--name <name>` | Required. Unique name for the catalog |
|
||||||
|
| `--priority <N>` | Priority (default: 10; lower = higher precedence) |
|
||||||
|
| `--install-allowed / --no-install-allowed` | Whether presets can be installed from this catalog (default: discovery only) |
|
||||||
|
| `--description <text>` | Optional description |
|
||||||
|
|
||||||
|
Adds a catalog to the project's `.specify/preset-catalogs.yml`.
|
||||||
|
|
||||||
|
### Remove a Catalog
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset catalog remove <name>
|
||||||
|
```
|
||||||
|
|
||||||
|
Removes a catalog from the project configuration.
|
||||||
|
|
||||||
|
### Catalog Resolution Order
|
||||||
|
|
||||||
|
Catalogs are resolved in this order (first match wins):
|
||||||
|
|
||||||
|
1. **Environment variable** — `SPECKIT_PRESET_CATALOG_URL` overrides all catalogs
|
||||||
|
2. **Project config** — `.specify/preset-catalogs.yml`
|
||||||
|
3. **User config** — `~/.specify/preset-catalogs.yml`
|
||||||
|
4. **Built-in defaults** — official catalog + community catalog
|
||||||
|
|
||||||
|
Example `.specify/preset-catalogs.yml`:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
catalogs:
|
||||||
|
- name: "my-org-presets"
|
||||||
|
url: "https://example.com/preset-catalog.json"
|
||||||
|
priority: 5
|
||||||
|
install_allowed: true
|
||||||
|
description: "Our approved presets"
|
||||||
|
```
|
||||||
|
|
||||||
|
## File Resolution
|
||||||
|
|
||||||
|
Presets can provide command files, template files (like `plan-template.md`), and script files. These are resolved at runtime using a **replace** strategy — the first match in the priority stack wins and is used entirely. Each file is looked up independently, so different files can come from different layers.
|
||||||
|
|
||||||
|
> **Note:** Additional composition strategies (`append`, `prepend`, `wrap`) are planned for a future release.
|
||||||
|
|
||||||
|
The resolution stack, from highest to lowest precedence:
|
||||||
|
|
||||||
|
1. **Project-local overrides** — `.specify/templates/overrides/`
|
||||||
|
2. **Installed presets** — sorted by priority (lower = checked first)
|
||||||
|
3. **Installed extensions** — sorted by priority
|
||||||
|
4. **Spec Kit core** — `.specify/templates/`
|
||||||
|
|
||||||
|
Commands are registered at install time (not resolved through the stack at runtime).
|
||||||
|
|
||||||
|
### Resolution Stack
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart TB
|
||||||
|
subgraph stack [" "]
|
||||||
|
direction TB
|
||||||
|
A["⬆ Highest precedence<br/><br/>1. Project-local overrides<br/>.specify/templates/overrides/"]
|
||||||
|
B["2. Presets — by priority<br/>.specify/presets/‹id›/"]
|
||||||
|
C["3. Extensions — by priority<br/>.specify/extensions/‹id›/"]
|
||||||
|
D["4. Spec Kit core<br/>.specify/templates/<br/><br/>⬇ Lowest precedence"]
|
||||||
|
end
|
||||||
|
|
||||||
|
A --> B --> C --> D
|
||||||
|
|
||||||
|
style A fill:#4a9,color:#fff
|
||||||
|
style B fill:#49a,color:#fff
|
||||||
|
style C fill:#a94,color:#fff
|
||||||
|
style D fill:#999,color:#fff
|
||||||
|
```
|
||||||
|
|
||||||
|
Within each layer, files are organized by type:
|
||||||
|
|
||||||
|
| Type | Subdirectory | Override path |
|
||||||
|
| --------- | -------------- | ------------------------------------------ |
|
||||||
|
| Templates | `templates/` | `.specify/templates/overrides/` |
|
||||||
|
| Commands | `commands/` | `.specify/templates/overrides/` |
|
||||||
|
| Scripts | `scripts/` | `.specify/templates/overrides/scripts/` |
|
||||||
|
|
||||||
|
### Resolution in Action
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart TB
|
||||||
|
A["File requested:<br/>plan-template.md"] --> B{"Project-local override?"}
|
||||||
|
B -- Found --> Z["✓ Use this file"]
|
||||||
|
B -- Not found --> C{"Preset: compliance<br/>(priority 5)"}
|
||||||
|
C -- Found --> Z
|
||||||
|
C -- Not found --> D{"Preset: team-workflow<br/>(priority 10)"}
|
||||||
|
D -- Found --> Z
|
||||||
|
D -- Not found --> E{"Extension files?"}
|
||||||
|
E -- Found --> Z
|
||||||
|
E -- Not found --> F["Spec Kit core"]
|
||||||
|
F --> Z
|
||||||
|
```
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify preset add compliance --priority 5
|
||||||
|
specify preset add team-workflow --priority 10
|
||||||
|
```
|
||||||
|
|
||||||
|
For any file that both provide, `compliance` wins (priority 5 < 10). For files only one provides, that one is used. For files neither provides, the core default is used.
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### Can I use multiple presets at the same time?
|
||||||
|
|
||||||
|
Yes. Presets stack by priority — each file is resolved independently from the highest-priority source that provides it. Use `specify preset set-priority` to control the order.
|
||||||
|
|
||||||
|
### How do I see which file is actually being used?
|
||||||
|
|
||||||
|
Run `specify preset resolve <name>` to trace the resolution stack and see which file wins.
|
||||||
|
|
||||||
|
### What's the difference between disabling and removing a preset?
|
||||||
|
|
||||||
|
**Disabling** (`specify preset disable`) keeps the preset installed but excludes its files from the resolution stack. Commands the preset registered remain available in your AI coding agent. This is useful for temporarily testing behavior without a preset, or comparing output with and without it. Re-enable anytime with `specify preset enable`.
|
||||||
|
|
||||||
|
**Removing** (`specify preset remove`) fully uninstalls the preset — deletes its files, unregisters its commands from your AI coding agent, and removes it from the registry.
|
||||||
|
|
||||||
|
### Who maintains presets?
|
||||||
|
|
||||||
|
Most presets are independently created and maintained by their respective authors. The Spec Kit maintainers do not review, audit, endorse, or support preset code. Review a preset's source code before installing and use at your own discretion. For issues with a specific preset, contact its author or file an issue on the preset's repository.
|
||||||
289
docs/reference/workflows.md
Normal file
289
docs/reference/workflows.md
Normal file
@@ -0,0 +1,289 @@
|
|||||||
|
# Workflows
|
||||||
|
|
||||||
|
Workflows automate multi-step Spec-Driven Development processes — chaining commands, prompts, shell steps, and human checkpoints into repeatable sequences. They support conditional logic, loops, fan-out/fan-in, and can be paused and resumed from the exact point of interruption.
|
||||||
|
|
||||||
|
## Run a Workflow
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow run <source>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------------------- | -------------------------------------------------------- |
|
||||||
|
| `-i` / `--input` | Pass input values as `key=value` (repeatable) |
|
||||||
|
|
||||||
|
Runs a workflow from a catalog ID, URL, or local file path. Inputs declared by the workflow can be provided via `--input` or will be prompted interactively.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow run speckit -i spec="Build a kanban board with drag-and-drop task management" -i scope=full
|
||||||
|
```
|
||||||
|
|
||||||
|
> **Note:** All workflow commands require a project already initialized with `specify init`.
|
||||||
|
|
||||||
|
## Resume a Workflow
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow resume <run_id>
|
||||||
|
```
|
||||||
|
|
||||||
|
Resumes a paused or failed workflow run from the exact step where it stopped. Useful after responding to a gate step or fixing an issue that caused a failure.
|
||||||
|
|
||||||
|
## Workflow Status
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow status [<run_id>]
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows the status of a specific run, or lists all runs if no ID is given. Run states: `created`, `running`, `completed`, `paused`, `failed`, `aborted`.
|
||||||
|
|
||||||
|
## List Installed Workflows
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow list
|
||||||
|
```
|
||||||
|
|
||||||
|
Lists workflows installed in the current project.
|
||||||
|
|
||||||
|
## Install a Workflow
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow add <source>
|
||||||
|
```
|
||||||
|
|
||||||
|
Installs a workflow from the catalog, a URL (HTTPS required), or a local file path.
|
||||||
|
|
||||||
|
## Remove a Workflow
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow remove <workflow_id>
|
||||||
|
```
|
||||||
|
|
||||||
|
Removes an installed workflow from the project.
|
||||||
|
|
||||||
|
## Search Available Workflows
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow search [query]
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| ------- | --------------- |
|
||||||
|
| `--tag` | Filter by tag |
|
||||||
|
|
||||||
|
Searches all active catalogs for workflows matching the query.
|
||||||
|
|
||||||
|
## Workflow Info
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow info <workflow_id>
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows detailed information about a workflow, including its steps, inputs, and requirements.
|
||||||
|
|
||||||
|
## Catalog Management
|
||||||
|
|
||||||
|
Workflow catalogs control where `search` and `add` look for workflows. Catalogs are checked in priority order.
|
||||||
|
|
||||||
|
### List Catalogs
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow catalog list
|
||||||
|
```
|
||||||
|
|
||||||
|
Shows all active catalog sources.
|
||||||
|
|
||||||
|
### Add a Catalog
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow catalog add <url>
|
||||||
|
```
|
||||||
|
|
||||||
|
| Option | Description |
|
||||||
|
| --------------- | -------------------------------- |
|
||||||
|
| `--name <name>` | Optional name for the catalog |
|
||||||
|
|
||||||
|
Adds a custom catalog URL to the project's `.specify/workflow-catalogs.yml`.
|
||||||
|
|
||||||
|
### Remove a Catalog
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow catalog remove <index>
|
||||||
|
```
|
||||||
|
|
||||||
|
Removes a catalog by its index in the catalog list.
|
||||||
|
|
||||||
|
### Catalog Resolution Order
|
||||||
|
|
||||||
|
Catalogs are resolved in this order (first match wins):
|
||||||
|
|
||||||
|
1. **Environment variable** — `SPECKIT_WORKFLOW_CATALOG_URL` overrides all catalogs
|
||||||
|
2. **Project config** — `.specify/workflow-catalogs.yml`
|
||||||
|
3. **User config** — `~/.specify/workflow-catalogs.yml`
|
||||||
|
4. **Built-in defaults** — official catalog + community catalog
|
||||||
|
|
||||||
|
## Workflow Definition
|
||||||
|
|
||||||
|
Workflows are defined in YAML files. Here is the built-in **Full SDD Cycle** workflow that ships with Spec Kit:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
schema_version: "1.0"
|
||||||
|
workflow:
|
||||||
|
id: "speckit"
|
||||||
|
name: "Full SDD Cycle"
|
||||||
|
version: "1.0.0"
|
||||||
|
author: "GitHub"
|
||||||
|
description: "Runs specify → plan → tasks → implement with review gates"
|
||||||
|
|
||||||
|
requires:
|
||||||
|
speckit_version: ">=0.7.2"
|
||||||
|
integrations:
|
||||||
|
any: ["copilot", "claude", "gemini"]
|
||||||
|
|
||||||
|
inputs:
|
||||||
|
spec:
|
||||||
|
type: string
|
||||||
|
required: true
|
||||||
|
prompt: "Describe what you want to build"
|
||||||
|
integration:
|
||||||
|
type: string
|
||||||
|
default: "copilot"
|
||||||
|
prompt: "Integration to use (e.g. claude, copilot, gemini)"
|
||||||
|
scope:
|
||||||
|
type: string
|
||||||
|
default: "full"
|
||||||
|
enum: ["full", "backend-only", "frontend-only"]
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- id: specify
|
||||||
|
command: speckit.specify
|
||||||
|
integration: "{{ inputs.integration }}"
|
||||||
|
input:
|
||||||
|
args: "{{ inputs.spec }}"
|
||||||
|
|
||||||
|
- id: review-spec
|
||||||
|
type: gate
|
||||||
|
message: "Review the generated spec before planning."
|
||||||
|
options: [approve, reject]
|
||||||
|
on_reject: abort
|
||||||
|
|
||||||
|
- id: plan
|
||||||
|
command: speckit.plan
|
||||||
|
integration: "{{ inputs.integration }}"
|
||||||
|
input:
|
||||||
|
args: "{{ inputs.spec }}"
|
||||||
|
|
||||||
|
- id: review-plan
|
||||||
|
type: gate
|
||||||
|
message: "Review the plan before generating tasks."
|
||||||
|
options: [approve, reject]
|
||||||
|
on_reject: abort
|
||||||
|
|
||||||
|
- id: tasks
|
||||||
|
command: speckit.tasks
|
||||||
|
integration: "{{ inputs.integration }}"
|
||||||
|
input:
|
||||||
|
args: "{{ inputs.spec }}"
|
||||||
|
|
||||||
|
- id: implement
|
||||||
|
command: speckit.implement
|
||||||
|
integration: "{{ inputs.integration }}"
|
||||||
|
input:
|
||||||
|
args: "{{ inputs.spec }}"
|
||||||
|
```
|
||||||
|
|
||||||
|
This produces the following execution flow:
|
||||||
|
|
||||||
|
```mermaid
|
||||||
|
flowchart TB
|
||||||
|
A["specify<br/>(command)"] --> B{"review-spec<br/>(gate)"}
|
||||||
|
B -- approve --> C["plan<br/>(command)"]
|
||||||
|
B -- reject --> X1["⏹ Abort"]
|
||||||
|
C --> D{"review-plan<br/>(gate)"}
|
||||||
|
D -- approve --> E["tasks<br/>(command)"]
|
||||||
|
D -- reject --> X2["⏹ Abort"]
|
||||||
|
E --> F["implement<br/>(command)"]
|
||||||
|
|
||||||
|
style A fill:#49a,color:#fff
|
||||||
|
style B fill:#a94,color:#fff
|
||||||
|
style C fill:#49a,color:#fff
|
||||||
|
style D fill:#a94,color:#fff
|
||||||
|
style E fill:#49a,color:#fff
|
||||||
|
style F fill:#49a,color:#fff
|
||||||
|
style X1 fill:#999,color:#fff
|
||||||
|
style X2 fill:#999,color:#fff
|
||||||
|
```
|
||||||
|
|
||||||
|
Run it with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify workflow run speckit -i spec="Build a kanban board with drag-and-drop task management"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Step Types
|
||||||
|
|
||||||
|
| Type | Purpose |
|
||||||
|
| ------------ | ------------------------------------------------ |
|
||||||
|
| `command` | Invoke a Spec Kit command (e.g., `speckit.plan`) |
|
||||||
|
| `prompt` | Send an arbitrary prompt to the AI coding agent |
|
||||||
|
| `shell` | Execute a shell command and capture output |
|
||||||
|
| `gate` | Pause for human approval before continuing |
|
||||||
|
| `if` | Conditional branching (then/else) |
|
||||||
|
| `switch` | Multi-branch dispatch on an expression |
|
||||||
|
| `while` | Loop while a condition is true |
|
||||||
|
| `do-while` | Execute at least once, then loop on condition |
|
||||||
|
| `fan-out` | Dispatch a step for each item in a list |
|
||||||
|
| `fan-in` | Aggregate results from a fan-out step |
|
||||||
|
|
||||||
|
## Expressions
|
||||||
|
|
||||||
|
Steps can reference inputs and previous step outputs using `{{ expression }}` syntax:
|
||||||
|
|
||||||
|
| Namespace | Description |
|
||||||
|
| ------------------------------ | ------------------------------------ |
|
||||||
|
| `inputs.spec` | Workflow input values |
|
||||||
|
| `steps.specify.output.file` | Output from a previous step |
|
||||||
|
| `item` | Current item in a fan-out iteration |
|
||||||
|
|
||||||
|
Available filters: `default`, `join`, `contains`, `map`.
|
||||||
|
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
condition: "{{ steps.test.output.exit_code == 0 }}"
|
||||||
|
args: "{{ inputs.spec }}"
|
||||||
|
message: "{{ status | default('pending') }}"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Input Types
|
||||||
|
|
||||||
|
| Type | Coercion |
|
||||||
|
| --------- | ------------------------------------------------- |
|
||||||
|
| `string` | Pass-through |
|
||||||
|
| `number` | `"42"` → `42`, `"3.14"` → `3.14` |
|
||||||
|
| `boolean` | `"true"` / `"1"` / `"yes"` → `True` |
|
||||||
|
|
||||||
|
## State and Resume
|
||||||
|
|
||||||
|
Each workflow run persists its state at `.specify/workflows/runs/<run_id>/`:
|
||||||
|
|
||||||
|
- `state.json` — current run state and step progress
|
||||||
|
- `inputs.json` — resolved input values
|
||||||
|
- `log.jsonl` — step-by-step execution log
|
||||||
|
|
||||||
|
This enables `specify workflow resume` to continue from the exact step where a run was paused (e.g., at a gate) or failed.
|
||||||
|
|
||||||
|
## FAQ
|
||||||
|
|
||||||
|
### What happens when a workflow hits a gate step?
|
||||||
|
|
||||||
|
The workflow pauses and waits for human input. Run `specify workflow resume <run_id>` after reviewing to continue.
|
||||||
|
|
||||||
|
### Can I run the same workflow multiple times?
|
||||||
|
|
||||||
|
Yes. Each run gets a unique ID and its own state directory. Use `specify workflow status` to see all runs.
|
||||||
|
|
||||||
|
### Who maintains workflows?
|
||||||
|
|
||||||
|
Most workflows are independently created and maintained by their respective authors. The Spec Kit maintainers do not review, audit, endorse, or support workflow code. Review a workflow's source before installing and use at your own discretion.
|
||||||
47
docs/toc.yml
Normal file
47
docs/toc.yml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
# Home page
|
||||||
|
- name: Home
|
||||||
|
href: index.md
|
||||||
|
|
||||||
|
# Getting started section
|
||||||
|
- name: Getting Started
|
||||||
|
items:
|
||||||
|
- name: Installation
|
||||||
|
href: installation.md
|
||||||
|
- name: Quick Start
|
||||||
|
href: quickstart.md
|
||||||
|
- name: Upgrade
|
||||||
|
href: upgrade.md
|
||||||
|
- name: Install uv
|
||||||
|
href: install/uv.md
|
||||||
|
|
||||||
|
# Reference
|
||||||
|
- name: Reference
|
||||||
|
items:
|
||||||
|
- name: Overview
|
||||||
|
href: reference/overview.md
|
||||||
|
- name: Core Commands
|
||||||
|
href: reference/core.md
|
||||||
|
- name: Integrations
|
||||||
|
href: reference/integrations.md
|
||||||
|
- name: Extensions
|
||||||
|
href: reference/extensions.md
|
||||||
|
- name: Presets
|
||||||
|
href: reference/presets.md
|
||||||
|
- name: Workflows
|
||||||
|
href: reference/workflows.md
|
||||||
|
|
||||||
|
# Development workflows
|
||||||
|
- name: Development
|
||||||
|
items:
|
||||||
|
- name: Local Development
|
||||||
|
href: local-development.md
|
||||||
|
|
||||||
|
# Community
|
||||||
|
- name: Community
|
||||||
|
items:
|
||||||
|
- name: Presets
|
||||||
|
href: community/presets.md
|
||||||
|
- name: Walkthroughs
|
||||||
|
href: community/walkthroughs.md
|
||||||
|
- name: Friends
|
||||||
|
href: community/friends.md
|
||||||
462
docs/upgrade.md
Normal file
462
docs/upgrade.md
Normal file
@@ -0,0 +1,462 @@
|
|||||||
|
# Upgrade Guide
|
||||||
|
|
||||||
|
> You have Spec Kit installed and want to upgrade to the latest version to get new features, bug fixes, or updated slash commands. This guide covers both upgrading the CLI tool and updating your project files.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Quick Reference
|
||||||
|
|
||||||
|
| What to Upgrade | Command | When to Use |
|
||||||
|
|----------------|---------|-------------|
|
||||||
|
| **CLI Tool Only** | `uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git@vX.Y.Z` | Get latest CLI features without touching project files |
|
||||||
|
| **CLI Tool Only (pipx)** | `pipx install --force git+https://github.com/github/spec-kit.git@vX.Y.Z` | Reinstall/upgrade a pipx-installed CLI to a specific release |
|
||||||
|
| **Project Files** | `specify init --here --force --integration <your-agent>` | Update slash commands, templates, and scripts in your project |
|
||||||
|
| **Both** | Run CLI upgrade, then project update | Recommended for major version updates |
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 1: Upgrade the CLI Tool
|
||||||
|
|
||||||
|
The CLI tool (`specify`) is separate from your project files. Upgrade it to get the latest features and bug fixes.
|
||||||
|
|
||||||
|
### If you installed with `uv tool install`
|
||||||
|
|
||||||
|
Upgrade to a specific release (check [Releases](https://github.com/github/spec-kit/releases) for the latest tag):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
```
|
||||||
|
|
||||||
|
### If you use one-shot `uvx` commands
|
||||||
|
|
||||||
|
Specify the desired release tag:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uvx --from git+https://github.com/github/spec-kit.git@vX.Y.Z specify init --here --integration copilot
|
||||||
|
```
|
||||||
|
|
||||||
|
### If you installed with `pipx`
|
||||||
|
|
||||||
|
Upgrade to a specific release:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
pipx install --force git+https://github.com/github/spec-kit.git@vX.Y.Z
|
||||||
|
```
|
||||||
|
|
||||||
|
### Verify the upgrade
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify check
|
||||||
|
```
|
||||||
|
|
||||||
|
This shows installed tools and confirms the CLI is working.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Part 2: Updating Project Files
|
||||||
|
|
||||||
|
When Spec Kit releases new features (like new slash commands or updated templates), you need to refresh your project's Spec Kit files.
|
||||||
|
|
||||||
|
### What gets updated?
|
||||||
|
|
||||||
|
Running `specify init --here --force` will update:
|
||||||
|
|
||||||
|
- ✅ **Slash command files** (`.claude/commands/`, `.github/prompts/`, etc.)
|
||||||
|
- ✅ **Script files** (`.specify/scripts/`) — **only with `--force`**; without it, only missing files are added
|
||||||
|
- ✅ **Template files** (`.specify/templates/`) — **only with `--force`**; without it, only missing files are added
|
||||||
|
- ✅ **Shared memory files** (`.specify/memory/`) - **⚠️ See warnings below**
|
||||||
|
|
||||||
|
### What stays safe?
|
||||||
|
|
||||||
|
These files are **never touched** by the upgrade—the template packages don't even contain them:
|
||||||
|
|
||||||
|
- ✅ **Your specifications** (`specs/001-my-feature/spec.md`, etc.) - **CONFIRMED SAFE**
|
||||||
|
- ✅ **Your implementation plans** (`specs/001-my-feature/plan.md`, `tasks.md`, etc.) - **CONFIRMED SAFE**
|
||||||
|
- ✅ **Your source code** - **CONFIRMED SAFE**
|
||||||
|
- ✅ **Your git history** - **CONFIRMED SAFE**
|
||||||
|
|
||||||
|
The `specs/` directory is completely excluded from template packages and will never be modified during upgrades.
|
||||||
|
|
||||||
|
### Update command
|
||||||
|
|
||||||
|
Run this inside your project directory:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify init --here --force --integration <your-agent>
|
||||||
|
```
|
||||||
|
|
||||||
|
Replace `<your-agent>` with your AI coding agent. Refer to this list of [Supported AI Coding Agent Integrations](reference/integrations.md)
|
||||||
|
|
||||||
|
**Example:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify init --here --force --integration copilot
|
||||||
|
```
|
||||||
|
|
||||||
|
### Understanding the `--force` flag
|
||||||
|
|
||||||
|
Without `--force`, the CLI warns you and asks for confirmation:
|
||||||
|
|
||||||
|
```text
|
||||||
|
Warning: Current directory is not empty (25 items)
|
||||||
|
Template files will be merged with existing content and may overwrite existing files
|
||||||
|
Proceed? [y/N]
|
||||||
|
```
|
||||||
|
|
||||||
|
With `--force`, it skips the confirmation and proceeds immediately. It also **overwrites shared infrastructure files** (`.specify/scripts/` and `.specify/templates/`) with the latest versions from the installed Spec Kit release.
|
||||||
|
|
||||||
|
Without `--force`, shared infrastructure files that already exist are skipped — the CLI will print a warning listing the skipped files so you know which ones were not updated.
|
||||||
|
|
||||||
|
**Important: Your `specs/` directory is always safe.** The `--force` flag only affects template files (commands, scripts, templates, memory). Your feature specifications, plans, and tasks in `specs/` are never included in upgrade packages and cannot be overwritten.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## ⚠️ Important Warnings
|
||||||
|
|
||||||
|
### 1. Constitution file will be overwritten
|
||||||
|
|
||||||
|
**Known issue:** `specify init --here --force` currently overwrites `.specify/memory/constitution.md` with the default template, erasing any customizations you made.
|
||||||
|
|
||||||
|
**Workaround:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Back up your constitution before upgrading
|
||||||
|
cp .specify/memory/constitution.md .specify/memory/constitution-backup.md
|
||||||
|
|
||||||
|
# 2. Run the upgrade
|
||||||
|
specify init --here --force --integration copilot
|
||||||
|
|
||||||
|
# 3. Restore your customized constitution
|
||||||
|
mv .specify/memory/constitution-backup.md .specify/memory/constitution.md
|
||||||
|
```
|
||||||
|
|
||||||
|
Or use git to restore it:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# After upgrade, restore from git history
|
||||||
|
git restore .specify/memory/constitution.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Custom script or template modifications
|
||||||
|
|
||||||
|
If you customized files in `.specify/scripts/` or `.specify/templates/`, the `--force` flag will overwrite them. Back them up first:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Back up custom templates and scripts
|
||||||
|
cp -r .specify/templates .specify/templates-backup
|
||||||
|
cp -r .specify/scripts .specify/scripts-backup
|
||||||
|
|
||||||
|
# After upgrade, merge your changes back manually
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Duplicate slash commands (IDE-based agents)
|
||||||
|
|
||||||
|
Some IDE-based agents (like Kilo Code, Windsurf) may show **duplicate slash commands** after upgrading—both old and new versions appear.
|
||||||
|
|
||||||
|
**Solution:** Manually delete the old command files from your agent's folder.
|
||||||
|
|
||||||
|
**Example for Kilo Code:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Navigate to the agent's commands folder
|
||||||
|
cd .kilocode/rules/
|
||||||
|
|
||||||
|
# List files and identify duplicates
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
# Delete old versions (example filenames - yours may differ)
|
||||||
|
rm speckit.specify-old.md
|
||||||
|
rm speckit.plan-v1.md
|
||||||
|
```
|
||||||
|
|
||||||
|
Restart your IDE to refresh the command list.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Common Scenarios
|
||||||
|
|
||||||
|
### Scenario 1: "I just want new slash commands"
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Upgrade CLI (if using persistent install)
|
||||||
|
uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git
|
||||||
|
|
||||||
|
# Update project files to get new commands
|
||||||
|
specify init --here --force --integration copilot
|
||||||
|
|
||||||
|
# Restore your constitution if customized
|
||||||
|
git restore .specify/memory/constitution.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### Scenario 2: "I customized templates and constitution"
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# 1. Back up customizations
|
||||||
|
cp .specify/memory/constitution.md /tmp/constitution-backup.md
|
||||||
|
cp -r .specify/templates /tmp/templates-backup
|
||||||
|
|
||||||
|
# 2. Upgrade CLI
|
||||||
|
uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git
|
||||||
|
|
||||||
|
# 3. Update project
|
||||||
|
specify init --here --force --integration copilot
|
||||||
|
|
||||||
|
# 4. Restore customizations
|
||||||
|
mv /tmp/constitution-backup.md .specify/memory/constitution.md
|
||||||
|
# Manually merge template changes if needed
|
||||||
|
```
|
||||||
|
|
||||||
|
### Scenario 3: "I see duplicate slash commands in my IDE"
|
||||||
|
|
||||||
|
This happens with IDE-based agents (Kilo Code, Windsurf, Roo Code, etc.).
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Find the agent folder (example: .kilocode/rules/)
|
||||||
|
cd .kilocode/rules/
|
||||||
|
|
||||||
|
# List all files
|
||||||
|
ls -la
|
||||||
|
|
||||||
|
# Delete old command files
|
||||||
|
rm speckit.old-command-name.md
|
||||||
|
|
||||||
|
# Restart your IDE
|
||||||
|
```
|
||||||
|
|
||||||
|
### Scenario 4: "I'm working on a project without Git"
|
||||||
|
|
||||||
|
If you initialized your project with `--no-git`, you can still upgrade:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Manually back up files you customized
|
||||||
|
cp .specify/memory/constitution.md /tmp/constitution-backup.md
|
||||||
|
|
||||||
|
# Run upgrade
|
||||||
|
specify init --here --force --integration copilot --no-git
|
||||||
|
|
||||||
|
# Restore customizations
|
||||||
|
mv /tmp/constitution-backup.md .specify/memory/constitution.md
|
||||||
|
```
|
||||||
|
|
||||||
|
The `--no-git` flag skips git initialization but doesn't affect file updates.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Using `--no-git` Flag
|
||||||
|
|
||||||
|
The `--no-git` flag tells Spec Kit to **skip git repository initialization**. This is useful when:
|
||||||
|
|
||||||
|
- You manage version control differently (Mercurial, SVN, etc.)
|
||||||
|
- Your project is part of a larger monorepo with existing git setup
|
||||||
|
- You're experimenting and don't want version control yet
|
||||||
|
|
||||||
|
**During initial setup:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify init my-project --integration copilot --no-git
|
||||||
|
```
|
||||||
|
|
||||||
|
**During upgrade:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify init --here --force --integration copilot --no-git
|
||||||
|
```
|
||||||
|
|
||||||
|
### What `--no-git` does NOT do
|
||||||
|
|
||||||
|
❌ Does NOT prevent file updates
|
||||||
|
❌ Does NOT skip slash command installation
|
||||||
|
❌ Does NOT affect template merging
|
||||||
|
|
||||||
|
It **only** skips running `git init` and creating the initial commit.
|
||||||
|
|
||||||
|
### Working without Git
|
||||||
|
|
||||||
|
If you use `--no-git`, you'll need to manage feature directories manually:
|
||||||
|
|
||||||
|
**Set the `SPECIFY_FEATURE` environment variable** before using planning commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Bash/Zsh
|
||||||
|
export SPECIFY_FEATURE="001-my-feature"
|
||||||
|
|
||||||
|
# PowerShell
|
||||||
|
$env:SPECIFY_FEATURE = "001-my-feature"
|
||||||
|
```
|
||||||
|
|
||||||
|
This tells Spec Kit which feature directory to use when creating specs, plans, and tasks.
|
||||||
|
|
||||||
|
**Why this matters:** Without git, Spec Kit can't detect your current branch name to determine the active feature. The environment variable provides that context manually.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### "Slash commands not showing up after upgrade"
|
||||||
|
|
||||||
|
**Cause:** Agent didn't reload the command files.
|
||||||
|
|
||||||
|
**Fix:**
|
||||||
|
|
||||||
|
1. **Restart your IDE/editor** completely (not just reload window)
|
||||||
|
2. **For CLI-based agents**, verify files exist:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ls -la .claude/commands/ # Claude Code
|
||||||
|
ls -la .gemini/commands/ # Gemini
|
||||||
|
ls -la .cursor/skills/ # Cursor
|
||||||
|
ls -la .pi/prompts/ # Pi Coding Agent
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Check agent-specific setup:**
|
||||||
|
- Codex requires `CODEX_HOME` environment variable
|
||||||
|
- Some agents need workspace restart or cache clearing
|
||||||
|
|
||||||
|
### "I lost my constitution customizations"
|
||||||
|
|
||||||
|
**Fix:** Restore from git or backup:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# If you committed before upgrading
|
||||||
|
git restore .specify/memory/constitution.md
|
||||||
|
|
||||||
|
# If you backed up manually
|
||||||
|
cp /tmp/constitution-backup.md .specify/memory/constitution.md
|
||||||
|
```
|
||||||
|
|
||||||
|
**Prevention:** Always commit or back up `constitution.md` before upgrading.
|
||||||
|
|
||||||
|
### "Warning: Current directory is not empty"
|
||||||
|
|
||||||
|
**Full warning message:**
|
||||||
|
|
||||||
|
```text
|
||||||
|
Warning: Current directory is not empty (25 items)
|
||||||
|
Template files will be merged with existing content and may overwrite existing files
|
||||||
|
Do you want to continue? [y/N]
|
||||||
|
```
|
||||||
|
|
||||||
|
**What this means:**
|
||||||
|
|
||||||
|
This warning appears when you run `specify init --here` (or `specify init .`) in a directory that already has files. It's telling you:
|
||||||
|
|
||||||
|
1. **The directory has existing content** - In the example, 25 files/folders
|
||||||
|
2. **Files will be merged** - New template files will be added alongside your existing files
|
||||||
|
3. **Some files may be overwritten** - If you already have Spec Kit files (`.claude/`, `.specify/`, etc.), they'll be replaced with the new versions
|
||||||
|
|
||||||
|
**What gets overwritten:**
|
||||||
|
|
||||||
|
Only Spec Kit infrastructure files:
|
||||||
|
|
||||||
|
- Agent command files (`.claude/commands/`, `.github/prompts/`, etc.)
|
||||||
|
- Scripts in `.specify/scripts/`
|
||||||
|
- Templates in `.specify/templates/`
|
||||||
|
- Memory files in `.specify/memory/` (including constitution)
|
||||||
|
|
||||||
|
**What stays untouched:**
|
||||||
|
|
||||||
|
- Your `specs/` directory (specifications, plans, tasks)
|
||||||
|
- Your source code files
|
||||||
|
- Your `.git/` directory and git history
|
||||||
|
- Any other files not part of Spec Kit templates
|
||||||
|
|
||||||
|
**How to respond:**
|
||||||
|
|
||||||
|
- **Type `y` and press Enter** - Proceed with the merge (recommended if upgrading)
|
||||||
|
- **Type `n` and press Enter** - Cancel the operation
|
||||||
|
- **Use `--force` flag** - Skip this confirmation entirely:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify init --here --force --integration copilot
|
||||||
|
```
|
||||||
|
|
||||||
|
**When you see this warning:**
|
||||||
|
|
||||||
|
- ✅ **Expected** when upgrading an existing Spec Kit project
|
||||||
|
- ✅ **Expected** when adding Spec Kit to an existing codebase
|
||||||
|
- ⚠️ **Unexpected** if you thought you were creating a new project in an empty directory
|
||||||
|
|
||||||
|
**Prevention tip:** Before upgrading, commit or back up your `.specify/memory/constitution.md` if you customized it.
|
||||||
|
|
||||||
|
### "CLI upgrade doesn't seem to work"
|
||||||
|
|
||||||
|
Verify the installation:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Check installed tools
|
||||||
|
uv tool list
|
||||||
|
|
||||||
|
# Should show specify-cli
|
||||||
|
|
||||||
|
# Verify path
|
||||||
|
which specify
|
||||||
|
|
||||||
|
# Should point to the uv tool installation directory
|
||||||
|
```
|
||||||
|
|
||||||
|
If not found, reinstall:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
uv tool uninstall specify-cli
|
||||||
|
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
|
||||||
|
```
|
||||||
|
|
||||||
|
### "Do I need to run specify every time I open my project?"
|
||||||
|
|
||||||
|
**Short answer:** No, you only run `specify init` once per project (or when upgrading).
|
||||||
|
|
||||||
|
**Explanation:**
|
||||||
|
|
||||||
|
The `specify` CLI tool is used for:
|
||||||
|
|
||||||
|
- **Initial setup:** `specify init` to bootstrap Spec Kit in your project
|
||||||
|
- **Upgrades:** `specify init --here --force` to update templates and commands
|
||||||
|
- **Diagnostics:** `specify check` to verify tool installation
|
||||||
|
|
||||||
|
Once you've run `specify init`, the slash commands (like `/speckit.specify`, `/speckit.plan`, etc.) are **permanently installed** in your project's agent folder (`.claude/`, `.github/prompts/`, `.pi/prompts/`, etc.). Your AI coding agent reads these command files directly—no need to run `specify` again.
|
||||||
|
|
||||||
|
**If your agent isn't recognizing slash commands:**
|
||||||
|
|
||||||
|
1. **Verify command files exist:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# For GitHub Copilot
|
||||||
|
ls -la .github/prompts/
|
||||||
|
|
||||||
|
# For Claude
|
||||||
|
ls -la .claude/commands/
|
||||||
|
|
||||||
|
# For Pi
|
||||||
|
ls -la .pi/prompts/
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **Restart your IDE/editor completely** (not just reload window)
|
||||||
|
|
||||||
|
3. **Check you're in the correct directory** where you ran `specify init`
|
||||||
|
|
||||||
|
4. **For some agents**, you may need to reload the workspace or clear cache
|
||||||
|
|
||||||
|
**Related issue:** If Copilot can't open local files or uses PowerShell commands unexpectedly, this is typically an IDE context issue, not related to `specify`. Try:
|
||||||
|
|
||||||
|
- Restarting VS Code
|
||||||
|
- Checking file permissions
|
||||||
|
- Ensuring the workspace folder is properly opened
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version Compatibility
|
||||||
|
|
||||||
|
Spec Kit follows semantic versioning for major releases. The CLI and project files are designed to be compatible within the same major version.
|
||||||
|
|
||||||
|
**Best practice:** Keep both CLI and project files in sync by upgrading both together during major version changes.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
|
||||||
|
After upgrading:
|
||||||
|
|
||||||
|
- **Test new slash commands:** Run `/speckit.constitution` or another command to verify everything works
|
||||||
|
- **Review release notes:** Check [GitHub Releases](https://github.com/github/spec-kit/releases) for new features and breaking changes
|
||||||
|
- **Update workflows:** If new commands were added, update your team's development workflows
|
||||||
|
- **Check documentation:** Visit [github.io/spec-kit](https://github.github.io/spec-kit/) for updated guides
|
||||||
830
extensions/EXTENSION-API-REFERENCE.md
Normal file
830
extensions/EXTENSION-API-REFERENCE.md
Normal file
@@ -0,0 +1,830 @@
|
|||||||
|
# Extension API Reference
|
||||||
|
|
||||||
|
Technical reference for Spec Kit extension system APIs and manifest schema.
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
1. [Extension Manifest](#extension-manifest)
|
||||||
|
2. [Python API](#python-api)
|
||||||
|
3. [Command File Format](#command-file-format)
|
||||||
|
4. [Configuration Schema](#configuration-schema)
|
||||||
|
5. [Hook System](#hook-system)
|
||||||
|
6. [CLI Commands](#cli-commands)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Extension Manifest
|
||||||
|
|
||||||
|
### Schema Version 1.0
|
||||||
|
|
||||||
|
File: `extension.yml`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
schema_version: "1.0" # Required
|
||||||
|
|
||||||
|
extension:
|
||||||
|
id: string # Required, pattern: ^[a-z0-9-]+$
|
||||||
|
name: string # Required, human-readable name
|
||||||
|
version: string # Required, semantic version (X.Y.Z)
|
||||||
|
description: string # Required, brief description (<200 chars)
|
||||||
|
author: string # Required
|
||||||
|
repository: string # Required, valid URL
|
||||||
|
license: string # Required (e.g., "MIT", "Apache-2.0")
|
||||||
|
homepage: string # Optional, valid URL
|
||||||
|
|
||||||
|
requires:
|
||||||
|
speckit_version: string # Required, version specifier (>=X.Y.Z)
|
||||||
|
tools: # Optional, array of tool requirements
|
||||||
|
- name: string # Tool name
|
||||||
|
version: string # Optional, version specifier
|
||||||
|
required: boolean # Optional, default: false
|
||||||
|
|
||||||
|
provides:
|
||||||
|
commands: # Required, at least one command
|
||||||
|
- name: string # Required, pattern: ^speckit\.[a-z0-9-]+\.[a-z0-9-]+$
|
||||||
|
file: string # Required, relative path to command file
|
||||||
|
description: string # Required
|
||||||
|
aliases: [string] # Optional, same pattern as name; namespace must match extension.id and must not shadow core or installed extension commands
|
||||||
|
|
||||||
|
config: # Optional, array of config files
|
||||||
|
- name: string # Config file name
|
||||||
|
template: string # Template file path
|
||||||
|
description: string
|
||||||
|
required: boolean # Default: false
|
||||||
|
|
||||||
|
hooks: # Optional, event hooks
|
||||||
|
event_name: # e.g., "after_specify", "after_plan", "after_tasks", "after_implement"
|
||||||
|
command: string # Command to execute
|
||||||
|
optional: boolean # Default: true
|
||||||
|
prompt: string # Prompt text for optional hooks
|
||||||
|
description: string # Hook description
|
||||||
|
condition: string # Optional, condition expression
|
||||||
|
|
||||||
|
tags: # Optional, array of tags (2-10 recommended)
|
||||||
|
- string
|
||||||
|
|
||||||
|
defaults: # Optional, default configuration values
|
||||||
|
key: value # Any YAML structure
|
||||||
|
```
|
||||||
|
|
||||||
|
### Field Specifications
|
||||||
|
|
||||||
|
#### `extension.id`
|
||||||
|
|
||||||
|
- **Type**: string
|
||||||
|
- **Pattern**: `^[a-z0-9-]+$`
|
||||||
|
- **Description**: Unique extension identifier
|
||||||
|
- **Examples**: `jira`, `linear`, `azure-devops`
|
||||||
|
- **Invalid**: `Jira`, `my_extension`, `extension.id`
|
||||||
|
|
||||||
|
#### `extension.version`
|
||||||
|
|
||||||
|
- **Type**: string
|
||||||
|
- **Format**: Semantic versioning (X.Y.Z)
|
||||||
|
- **Description**: Extension version
|
||||||
|
- **Examples**: `1.0.0`, `0.9.5`, `2.1.3`
|
||||||
|
- **Invalid**: `v1.0`, `1.0`, `1.0.0-beta`
|
||||||
|
|
||||||
|
#### `requires.speckit_version`
|
||||||
|
|
||||||
|
- **Type**: string
|
||||||
|
- **Format**: Version specifier
|
||||||
|
- **Description**: Required spec-kit version range
|
||||||
|
- **Examples**:
|
||||||
|
- `>=0.1.0` - Any version 0.1.0 or higher
|
||||||
|
- `>=0.1.0,<2.0.0` - Version 0.1.x or 1.x
|
||||||
|
- `==0.1.0` - Exactly 0.1.0
|
||||||
|
- **Invalid**: `0.1.0`, `>= 0.1.0` (space), `latest`
|
||||||
|
|
||||||
|
#### `provides.commands[].name`
|
||||||
|
|
||||||
|
- **Type**: string
|
||||||
|
- **Pattern**: `^speckit\.[a-z0-9-]+\.[a-z0-9-]+$`
|
||||||
|
- **Description**: Namespaced command name
|
||||||
|
- **Format**: `speckit.{extension-id}.{command-name}`
|
||||||
|
- **Examples**: `speckit.jira.specstoissues`, `speckit.linear.sync`
|
||||||
|
- **Invalid**: `jira.specstoissues`, `speckit.command`, `speckit.jira.CreateIssues`
|
||||||
|
|
||||||
|
#### `hooks`
|
||||||
|
|
||||||
|
- **Type**: object
|
||||||
|
- **Keys**: Event names (e.g., `after_specify`, `after_plan`, `after_tasks`, `after_implement`, `before_analyze`)
|
||||||
|
- **Description**: Hooks that execute at lifecycle events
|
||||||
|
- **Events**: Defined by core spec-kit commands
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Python API
|
||||||
|
|
||||||
|
### ExtensionManifest
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import ExtensionManifest
|
||||||
|
|
||||||
|
manifest = ExtensionManifest(Path("extension.yml"))
|
||||||
|
```
|
||||||
|
|
||||||
|
**Properties**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
manifest.id # str: Extension ID
|
||||||
|
manifest.name # str: Extension name
|
||||||
|
manifest.version # str: Version
|
||||||
|
manifest.description # str: Description
|
||||||
|
manifest.requires_speckit_version # str: Required spec-kit version
|
||||||
|
manifest.commands # List[Dict]: Command definitions
|
||||||
|
manifest.hooks # Dict: Hook definitions
|
||||||
|
```
|
||||||
|
|
||||||
|
**Methods**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
manifest.get_hash() # str: SHA256 hash of manifest file
|
||||||
|
```
|
||||||
|
|
||||||
|
**Exceptions**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
ValidationError # Invalid manifest structure
|
||||||
|
CompatibilityError # Incompatible with current spec-kit version
|
||||||
|
```
|
||||||
|
|
||||||
|
### ExtensionRegistry
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import ExtensionRegistry
|
||||||
|
|
||||||
|
registry = ExtensionRegistry(extensions_dir)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Methods**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# Add extension to registry
|
||||||
|
registry.add(extension_id: str, metadata: dict)
|
||||||
|
|
||||||
|
# Remove extension from registry
|
||||||
|
registry.remove(extension_id: str)
|
||||||
|
|
||||||
|
# Get extension metadata
|
||||||
|
metadata = registry.get(extension_id: str) # Optional[dict]
|
||||||
|
|
||||||
|
# List all extensions
|
||||||
|
extensions = registry.list() # Dict[str, dict]
|
||||||
|
|
||||||
|
# Check if installed
|
||||||
|
is_installed = registry.is_installed(extension_id: str) # bool
|
||||||
|
```
|
||||||
|
|
||||||
|
**Registry Format**:
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"schema_version": "1.0",
|
||||||
|
"extensions": {
|
||||||
|
"jira": {
|
||||||
|
"version": "1.0.0",
|
||||||
|
"source": "catalog",
|
||||||
|
"manifest_hash": "sha256...",
|
||||||
|
"enabled": true,
|
||||||
|
"registered_commands": ["speckit.jira.specstoissues", ...],
|
||||||
|
"installed_at": "2026-01-28T..."
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
### ExtensionManager
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import ExtensionManager
|
||||||
|
|
||||||
|
manager = ExtensionManager(project_root)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Methods**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# Install from directory
|
||||||
|
manifest = manager.install_from_directory(
|
||||||
|
source_dir: Path,
|
||||||
|
speckit_version: str,
|
||||||
|
register_commands: bool = True
|
||||||
|
) # Returns: ExtensionManifest
|
||||||
|
|
||||||
|
# Install from ZIP
|
||||||
|
manifest = manager.install_from_zip(
|
||||||
|
zip_path: Path,
|
||||||
|
speckit_version: str
|
||||||
|
) # Returns: ExtensionManifest
|
||||||
|
|
||||||
|
# Remove extension
|
||||||
|
success = manager.remove(
|
||||||
|
extension_id: str,
|
||||||
|
keep_config: bool = False
|
||||||
|
) # Returns: bool
|
||||||
|
|
||||||
|
# List installed extensions
|
||||||
|
extensions = manager.list_installed() # List[Dict]
|
||||||
|
|
||||||
|
# Get extension manifest
|
||||||
|
manifest = manager.get_extension(extension_id: str) # Optional[ExtensionManifest]
|
||||||
|
|
||||||
|
# Check compatibility
|
||||||
|
manager.check_compatibility(
|
||||||
|
manifest: ExtensionManifest,
|
||||||
|
speckit_version: str
|
||||||
|
) # Raises: CompatibilityError if incompatible
|
||||||
|
```
|
||||||
|
|
||||||
|
### CatalogEntry
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
Represents a single catalog in the active catalog stack.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import CatalogEntry
|
||||||
|
|
||||||
|
entry = CatalogEntry(
|
||||||
|
url="https://example.com/catalog.json",
|
||||||
|
name="default",
|
||||||
|
priority=1,
|
||||||
|
install_allowed=True,
|
||||||
|
description="Built-in catalog of installable extensions",
|
||||||
|
)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Fields**:
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
|-------|------|-------------|
|
||||||
|
| `url` | `str` | Catalog URL (must use HTTPS, or HTTP for localhost) |
|
||||||
|
| `name` | `str` | Human-readable catalog name |
|
||||||
|
| `priority` | `int` | Sort order (lower = higher priority, wins on conflicts) |
|
||||||
|
| `install_allowed` | `bool` | Whether extensions from this catalog can be installed |
|
||||||
|
| `description` | `str` | Optional human-readable description of the catalog (default: empty) |
|
||||||
|
|
||||||
|
### ExtensionCatalog
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import ExtensionCatalog
|
||||||
|
|
||||||
|
catalog = ExtensionCatalog(project_root)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Class attributes**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
ExtensionCatalog.DEFAULT_CATALOG_URL # default catalog URL
|
||||||
|
ExtensionCatalog.COMMUNITY_CATALOG_URL # community catalog URL
|
||||||
|
```
|
||||||
|
|
||||||
|
**Methods**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# Get the ordered list of active catalogs
|
||||||
|
entries = catalog.get_active_catalogs() # List[CatalogEntry]
|
||||||
|
|
||||||
|
# Fetch catalog (primary catalog, backward compat)
|
||||||
|
catalog_data = catalog.fetch_catalog(force_refresh: bool = False) # Dict
|
||||||
|
|
||||||
|
# Search extensions across all active catalogs
|
||||||
|
# Each result includes _catalog_name and _install_allowed
|
||||||
|
results = catalog.search(
|
||||||
|
query: Optional[str] = None,
|
||||||
|
tag: Optional[str] = None,
|
||||||
|
author: Optional[str] = None,
|
||||||
|
verified_only: bool = False
|
||||||
|
) # Returns: List[Dict] — each dict includes _catalog_name, _install_allowed
|
||||||
|
|
||||||
|
# Get extension info (searches all active catalogs)
|
||||||
|
# Returns None if not found; includes _catalog_name and _install_allowed
|
||||||
|
ext_info = catalog.get_extension_info(extension_id: str) # Optional[Dict]
|
||||||
|
|
||||||
|
# Check cache validity (primary catalog)
|
||||||
|
is_valid = catalog.is_cache_valid() # bool
|
||||||
|
|
||||||
|
# Clear all catalog caches
|
||||||
|
catalog.clear_cache()
|
||||||
|
```
|
||||||
|
|
||||||
|
**Result annotation fields**:
|
||||||
|
|
||||||
|
Each extension dict returned by `search()` and `get_extension_info()` includes:
|
||||||
|
|
||||||
|
| Field | Type | Description |
|
||||||
|
|-------|------|-------------|
|
||||||
|
| `_catalog_name` | `str` | Name of the source catalog |
|
||||||
|
| `_install_allowed` | `bool` | Whether installation is allowed from this catalog |
|
||||||
|
|
||||||
|
**Catalog config file** (`.specify/extension-catalogs.yml`):
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
catalogs:
|
||||||
|
- name: "default"
|
||||||
|
url: "https://raw.githubusercontent.com/github/spec-kit/main/extensions/catalog.json"
|
||||||
|
priority: 1
|
||||||
|
install_allowed: true
|
||||||
|
description: "Built-in catalog of installable extensions"
|
||||||
|
- name: "community"
|
||||||
|
url: "https://raw.githubusercontent.com/github/spec-kit/main/extensions/catalog.community.json"
|
||||||
|
priority: 2
|
||||||
|
install_allowed: false
|
||||||
|
description: "Community-contributed extensions (discovery only)"
|
||||||
|
```
|
||||||
|
|
||||||
|
### HookExecutor
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import HookExecutor
|
||||||
|
|
||||||
|
hook_executor = HookExecutor(project_root)
|
||||||
|
```
|
||||||
|
|
||||||
|
**Methods**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# Get project config
|
||||||
|
config = hook_executor.get_project_config() # Dict
|
||||||
|
|
||||||
|
# Save project config
|
||||||
|
hook_executor.save_project_config(config: Dict)
|
||||||
|
|
||||||
|
# Register hooks
|
||||||
|
hook_executor.register_hooks(manifest: ExtensionManifest)
|
||||||
|
|
||||||
|
# Unregister hooks
|
||||||
|
hook_executor.unregister_hooks(extension_id: str)
|
||||||
|
|
||||||
|
# Get hooks for event
|
||||||
|
hooks = hook_executor.get_hooks_for_event(event_name: str) # List[Dict]
|
||||||
|
|
||||||
|
# Check if hook should execute
|
||||||
|
should_run = hook_executor.should_execute_hook(hook: Dict) # bool
|
||||||
|
|
||||||
|
# Format hook message
|
||||||
|
message = hook_executor.format_hook_message(
|
||||||
|
event_name: str,
|
||||||
|
hooks: List[Dict]
|
||||||
|
) # str
|
||||||
|
```
|
||||||
|
|
||||||
|
### CommandRegistrar
|
||||||
|
|
||||||
|
**Module**: `specify_cli.extensions`
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import CommandRegistrar
|
||||||
|
|
||||||
|
registrar = CommandRegistrar()
|
||||||
|
```
|
||||||
|
|
||||||
|
**Methods**:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# Register commands for Claude Code
|
||||||
|
registered = registrar.register_commands_for_claude(
|
||||||
|
manifest: ExtensionManifest,
|
||||||
|
extension_dir: Path,
|
||||||
|
project_root: Path
|
||||||
|
) # Returns: List[str] (command names)
|
||||||
|
|
||||||
|
# Parse frontmatter
|
||||||
|
frontmatter, body = registrar.parse_frontmatter(content: str)
|
||||||
|
|
||||||
|
# Render frontmatter
|
||||||
|
yaml_text = registrar.render_frontmatter(frontmatter: Dict) # str
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Command File Format
|
||||||
|
|
||||||
|
### Universal Command Format
|
||||||
|
|
||||||
|
**File**: `commands/{command-name}.md`
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
description: "Command description"
|
||||||
|
tools:
|
||||||
|
- 'mcp-server/tool_name'
|
||||||
|
- 'other-mcp-server/other_tool'
|
||||||
|
---
|
||||||
|
|
||||||
|
# Command Title
|
||||||
|
|
||||||
|
Command documentation in Markdown.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
1. Requirement 1
|
||||||
|
2. Requirement 2
|
||||||
|
|
||||||
|
## User Input
|
||||||
|
|
||||||
|
$ARGUMENTS
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
### Step 1: Description
|
||||||
|
|
||||||
|
Instruction text...
|
||||||
|
|
||||||
|
\`\`\`bash
|
||||||
|
# Shell commands
|
||||||
|
\`\`\`
|
||||||
|
|
||||||
|
### Step 2: Another Step
|
||||||
|
|
||||||
|
More instructions...
|
||||||
|
|
||||||
|
## Configuration Reference
|
||||||
|
|
||||||
|
Information about configuration options.
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
Additional notes and tips.
|
||||||
|
```
|
||||||
|
|
||||||
|
### Frontmatter Fields
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
description: string # Required, brief command description
|
||||||
|
tools: [string] # Optional, MCP tools required
|
||||||
|
```
|
||||||
|
|
||||||
|
### Special Variables
|
||||||
|
|
||||||
|
- `$ARGUMENTS` - Placeholder for user-provided arguments
|
||||||
|
- Extension context automatically injected:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
<!-- Extension: {extension-id} -->
|
||||||
|
<!-- Config: .specify/extensions/{extension-id}/ -->
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Configuration Schema
|
||||||
|
|
||||||
|
### Extension Config File
|
||||||
|
|
||||||
|
**File**: `.specify/extensions/{extension-id}/{extension-id}-config.yml`
|
||||||
|
|
||||||
|
Extensions define their own config schema. Common patterns:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Connection settings
|
||||||
|
connection:
|
||||||
|
url: string
|
||||||
|
api_key: string
|
||||||
|
|
||||||
|
# Project settings
|
||||||
|
project:
|
||||||
|
key: string
|
||||||
|
workspace: string
|
||||||
|
|
||||||
|
# Feature flags
|
||||||
|
features:
|
||||||
|
enabled: boolean
|
||||||
|
auto_sync: boolean
|
||||||
|
|
||||||
|
# Defaults
|
||||||
|
defaults:
|
||||||
|
labels: [string]
|
||||||
|
assignee: string
|
||||||
|
|
||||||
|
# Custom fields
|
||||||
|
field_mappings:
|
||||||
|
internal_name: "external_field_id"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Config Layers
|
||||||
|
|
||||||
|
1. **Extension Defaults** (from `extension.yml` `defaults` section)
|
||||||
|
2. **Project Config** (`{extension-id}-config.yml`)
|
||||||
|
3. **Local Override** (`{extension-id}-config.local.yml`, gitignored)
|
||||||
|
4. **Environment Variables** (`SPECKIT_{EXTENSION}_*`)
|
||||||
|
|
||||||
|
### Environment Variable Pattern
|
||||||
|
|
||||||
|
Format: `SPECKIT_{EXTENSION}_{KEY}`
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
- `SPECKIT_JIRA_PROJECT_KEY`
|
||||||
|
- `SPECKIT_LINEAR_API_KEY`
|
||||||
|
- `SPECKIT_GITHUB_TOKEN`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Hook System
|
||||||
|
|
||||||
|
### Hook Definition
|
||||||
|
|
||||||
|
**In extension.yml**:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
hooks:
|
||||||
|
after_tasks:
|
||||||
|
command: "speckit.jira.specstoissues"
|
||||||
|
optional: true
|
||||||
|
prompt: "Create Jira issues from tasks?"
|
||||||
|
description: "Automatically create Jira hierarchy"
|
||||||
|
condition: null
|
||||||
|
```
|
||||||
|
|
||||||
|
### Hook Events
|
||||||
|
|
||||||
|
Standard events (defined by core):
|
||||||
|
|
||||||
|
- `before_specify` - Before specification generation
|
||||||
|
- `after_specify` - After specification generation
|
||||||
|
- `before_plan` - Before implementation planning
|
||||||
|
- `after_plan` - After implementation planning
|
||||||
|
- `before_tasks` - Before task generation
|
||||||
|
- `after_tasks` - After task generation
|
||||||
|
- `before_implement` - Before implementation
|
||||||
|
- `after_implement` - After implementation
|
||||||
|
- `before_analyze` - Before cross-artifact analysis
|
||||||
|
- `after_analyze` - After cross-artifact analysis
|
||||||
|
- `before_checklist` - Before checklist generation
|
||||||
|
- `after_checklist` - After checklist generation
|
||||||
|
- `before_clarify` - Before spec clarification
|
||||||
|
- `after_clarify` - After spec clarification
|
||||||
|
- `before_constitution` - Before constitution update
|
||||||
|
- `after_constitution` - After constitution update
|
||||||
|
- `before_taskstoissues` - Before tasks-to-issues conversion
|
||||||
|
- `after_taskstoissues` - After tasks-to-issues conversion
|
||||||
|
|
||||||
|
### Hook Configuration
|
||||||
|
|
||||||
|
**In `.specify/extensions.yml`**:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
hooks:
|
||||||
|
after_tasks:
|
||||||
|
- extension: jira
|
||||||
|
command: speckit.jira.specstoissues
|
||||||
|
enabled: true
|
||||||
|
optional: true
|
||||||
|
prompt: "Create Jira issues from tasks?"
|
||||||
|
description: "..."
|
||||||
|
condition: null
|
||||||
|
```
|
||||||
|
|
||||||
|
### Hook Message Format
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
## Extension Hooks
|
||||||
|
|
||||||
|
**Optional Hook**: {extension}
|
||||||
|
Command: `/{command}`
|
||||||
|
Description: {description}
|
||||||
|
|
||||||
|
Prompt: {prompt}
|
||||||
|
To execute: `/{command}`
|
||||||
|
```
|
||||||
|
|
||||||
|
Or for mandatory hooks:
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
**Automatic Hook**: {extension}
|
||||||
|
Executing: `/{command}`
|
||||||
|
EXECUTE_COMMAND: {command}
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## CLI Commands
|
||||||
|
|
||||||
|
### extension list
|
||||||
|
|
||||||
|
**Usage**: `specify extension list [OPTIONS]`
|
||||||
|
|
||||||
|
**Options**:
|
||||||
|
|
||||||
|
- `--available` - Show available extensions from catalog
|
||||||
|
- `--all` - Show both installed and available
|
||||||
|
|
||||||
|
**Output**: List of installed extensions with metadata
|
||||||
|
|
||||||
|
### extension catalog list
|
||||||
|
|
||||||
|
**Usage**: `specify extension catalog list`
|
||||||
|
|
||||||
|
Lists all active catalogs in the current catalog stack, showing name, description, URL, priority, and `install_allowed` status.
|
||||||
|
|
||||||
|
### extension catalog add
|
||||||
|
|
||||||
|
**Usage**: `specify extension catalog add URL [OPTIONS]`
|
||||||
|
|
||||||
|
**Options**:
|
||||||
|
|
||||||
|
- `--name NAME` - Catalog name (required)
|
||||||
|
- `--priority INT` - Priority (lower = higher priority, default: 10)
|
||||||
|
- `--install-allowed / --no-install-allowed` - Allow installs from this catalog (default: false)
|
||||||
|
- `--description TEXT` - Optional description of the catalog
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `URL` - Catalog URL (must use HTTPS)
|
||||||
|
|
||||||
|
Adds a catalog entry to `.specify/extension-catalogs.yml`.
|
||||||
|
|
||||||
|
### extension catalog remove
|
||||||
|
|
||||||
|
**Usage**: `specify extension catalog remove NAME`
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `NAME` - Catalog name to remove
|
||||||
|
|
||||||
|
Removes a catalog entry from `.specify/extension-catalogs.yml`.
|
||||||
|
|
||||||
|
### extension add
|
||||||
|
|
||||||
|
**Usage**: `specify extension add EXTENSION [OPTIONS]`
|
||||||
|
|
||||||
|
**Options**:
|
||||||
|
|
||||||
|
- `--from URL` - Install from custom URL
|
||||||
|
- `--dev PATH` - Install from local directory
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `EXTENSION` - Extension name or URL
|
||||||
|
|
||||||
|
**Note**: Extensions from catalogs with `install_allowed: false` cannot be installed via this command.
|
||||||
|
|
||||||
|
### extension remove
|
||||||
|
|
||||||
|
**Usage**: `specify extension remove EXTENSION [OPTIONS]`
|
||||||
|
|
||||||
|
**Options**:
|
||||||
|
|
||||||
|
- `--keep-config` - Preserve config files
|
||||||
|
- `--force` - Skip confirmation
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `EXTENSION` - Extension ID
|
||||||
|
|
||||||
|
### extension search
|
||||||
|
|
||||||
|
**Usage**: `specify extension search [QUERY] [OPTIONS]`
|
||||||
|
|
||||||
|
Searches all active catalogs simultaneously. Results include source catalog name and install_allowed status.
|
||||||
|
|
||||||
|
**Options**:
|
||||||
|
|
||||||
|
- `--tag TAG` - Filter by tag
|
||||||
|
- `--author AUTHOR` - Filter by author
|
||||||
|
- `--verified` - Show only verified extensions
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `QUERY` - Optional search query
|
||||||
|
|
||||||
|
### extension info
|
||||||
|
|
||||||
|
**Usage**: `specify extension info EXTENSION`
|
||||||
|
|
||||||
|
Shows source catalog and install_allowed status.
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `EXTENSION` - Extension ID
|
||||||
|
|
||||||
|
### extension update
|
||||||
|
|
||||||
|
**Usage**: `specify extension update [EXTENSION]`
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `EXTENSION` - Optional, extension ID (default: all)
|
||||||
|
|
||||||
|
### extension enable
|
||||||
|
|
||||||
|
**Usage**: `specify extension enable EXTENSION`
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `EXTENSION` - Extension ID
|
||||||
|
|
||||||
|
### extension disable
|
||||||
|
|
||||||
|
**Usage**: `specify extension disable EXTENSION`
|
||||||
|
|
||||||
|
**Arguments**:
|
||||||
|
|
||||||
|
- `EXTENSION` - Extension ID
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Exceptions
|
||||||
|
|
||||||
|
### ValidationError
|
||||||
|
|
||||||
|
Raised when extension manifest validation fails.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import ValidationError
|
||||||
|
|
||||||
|
try:
|
||||||
|
manifest = ExtensionManifest(path)
|
||||||
|
except ValidationError as e:
|
||||||
|
print(f"Invalid manifest: {e}")
|
||||||
|
```
|
||||||
|
|
||||||
|
### CompatibilityError
|
||||||
|
|
||||||
|
Raised when extension is incompatible with current spec-kit version.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import CompatibilityError
|
||||||
|
|
||||||
|
try:
|
||||||
|
manager.check_compatibility(manifest, "0.1.0")
|
||||||
|
except CompatibilityError as e:
|
||||||
|
print(f"Incompatible: {e}")
|
||||||
|
```
|
||||||
|
|
||||||
|
### ExtensionError
|
||||||
|
|
||||||
|
Base exception for all extension-related errors.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import ExtensionError
|
||||||
|
|
||||||
|
try:
|
||||||
|
manager.install_from_directory(path, "0.1.0")
|
||||||
|
except ExtensionError as e:
|
||||||
|
print(f"Extension error: {e}")
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Version Functions
|
||||||
|
|
||||||
|
### version_satisfies
|
||||||
|
|
||||||
|
Check if a version satisfies a specifier.
|
||||||
|
|
||||||
|
```python
|
||||||
|
from specify_cli.extensions import version_satisfies
|
||||||
|
|
||||||
|
# True if 1.2.3 satisfies >=1.0.0,<2.0.0
|
||||||
|
satisfied = version_satisfies("1.2.3", ">=1.0.0,<2.0.0") # bool
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## File System Layout
|
||||||
|
|
||||||
|
```text
|
||||||
|
.specify/
|
||||||
|
├── extensions/
|
||||||
|
│ ├── .registry # Extension registry (JSON)
|
||||||
|
│ ├── .cache/ # Catalog cache
|
||||||
|
│ │ ├── catalog.json
|
||||||
|
│ │ └── catalog-metadata.json
|
||||||
|
│ ├── .backup/ # Config backups
|
||||||
|
│ │ └── {ext}-{config}.yml
|
||||||
|
│ ├── {extension-id}/ # Extension directory
|
||||||
|
│ │ ├── extension.yml # Manifest
|
||||||
|
│ │ ├── {ext}-config.yml # User config
|
||||||
|
│ │ ├── {ext}-config.local.yml # Local overrides (gitignored)
|
||||||
|
│ │ ├── {ext}-config.template.yml # Template
|
||||||
|
│ │ ├── commands/ # Command files
|
||||||
|
│ │ │ └── *.md
|
||||||
|
│ │ ├── scripts/ # Helper scripts
|
||||||
|
│ │ │ └── *.sh
|
||||||
|
│ │ ├── docs/ # Documentation
|
||||||
|
│ │ └── README.md
|
||||||
|
│ └── extensions.yml # Project extension config
|
||||||
|
└── scripts/ # (existing spec-kit)
|
||||||
|
|
||||||
|
.claude/
|
||||||
|
└── commands/
|
||||||
|
└── speckit.{ext}.{cmd}.md # Registered commands
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
*Last Updated: 2026-01-28*
|
||||||
|
*API Version: 1.0*
|
||||||
|
*Spec Kit Version: 0.1.0*
|
||||||
717
extensions/EXTENSION-DEVELOPMENT-GUIDE.md
Normal file
717
extensions/EXTENSION-DEVELOPMENT-GUIDE.md
Normal file
@@ -0,0 +1,717 @@
|
|||||||
|
# Extension Development Guide
|
||||||
|
|
||||||
|
A guide for creating Spec Kit extensions.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Quick Start
|
||||||
|
|
||||||
|
### 1. Create Extension Directory
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir my-extension
|
||||||
|
cd my-extension
|
||||||
|
```
|
||||||
|
|
||||||
|
### 2. Create `extension.yml` Manifest
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
schema_version: "1.0"
|
||||||
|
|
||||||
|
extension:
|
||||||
|
id: "my-ext" # Lowercase, alphanumeric + hyphens only
|
||||||
|
name: "My Extension"
|
||||||
|
version: "1.0.0" # Semantic versioning
|
||||||
|
description: "My custom extension"
|
||||||
|
author: "Your Name"
|
||||||
|
repository: "https://github.com/you/spec-kit-my-ext"
|
||||||
|
license: "MIT"
|
||||||
|
|
||||||
|
requires:
|
||||||
|
speckit_version: ">=0.1.0" # Minimum spec-kit version
|
||||||
|
tools: # Optional: External tools required
|
||||||
|
- name: "my-tool"
|
||||||
|
required: true
|
||||||
|
version: ">=1.0.0"
|
||||||
|
commands: # Optional: Core commands needed
|
||||||
|
- "speckit.tasks"
|
||||||
|
|
||||||
|
provides:
|
||||||
|
commands:
|
||||||
|
- name: "speckit.my-ext.hello" # Must follow pattern: speckit.{ext-id}.{cmd}
|
||||||
|
file: "commands/hello.md"
|
||||||
|
description: "Say hello"
|
||||||
|
aliases: ["speckit.my-ext.hi"] # Optional aliases, same pattern
|
||||||
|
|
||||||
|
config: # Optional: Config files
|
||||||
|
- name: "my-ext-config.yml"
|
||||||
|
template: "my-ext-config.template.yml"
|
||||||
|
description: "Extension configuration"
|
||||||
|
required: false
|
||||||
|
|
||||||
|
hooks: # Optional: Integration hooks
|
||||||
|
after_tasks:
|
||||||
|
command: "speckit.my-ext.hello"
|
||||||
|
optional: true
|
||||||
|
prompt: "Run hello command?"
|
||||||
|
|
||||||
|
tags: # Optional: For catalog search
|
||||||
|
- "example"
|
||||||
|
- "utility"
|
||||||
|
```
|
||||||
|
|
||||||
|
### 3. Create Commands Directory
|
||||||
|
|
||||||
|
```bash
|
||||||
|
mkdir commands
|
||||||
|
```
|
||||||
|
|
||||||
|
### 4. Create Command File
|
||||||
|
|
||||||
|
**File**: `commands/hello.md`
|
||||||
|
|
||||||
|
```markdown
|
||||||
|
---
|
||||||
|
description: "Say hello command"
|
||||||
|
tools: # Optional: AI tools this command uses
|
||||||
|
- 'some-tool/function'
|
||||||
|
scripts: # Optional: Helper scripts
|
||||||
|
sh: ../../scripts/bash/helper.sh
|
||||||
|
ps: ../../scripts/powershell/helper.ps1
|
||||||
|
---
|
||||||
|
|
||||||
|
# Hello Command
|
||||||
|
|
||||||
|
This command says hello!
|
||||||
|
|
||||||
|
## User Input
|
||||||
|
|
||||||
|
$ARGUMENTS
|
||||||
|
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. Greet the user
|
||||||
|
2. Show extension is working
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "Hello from my extension!"
|
||||||
|
echo "Arguments: $ARGUMENTS"
|
||||||
|
```
|
||||||
|
|
||||||
|
## Extension Configuration
|
||||||
|
|
||||||
|
Load extension config from `.specify/extensions/my-ext/my-ext-config.yml`.
|
||||||
|
|
||||||
|
### 5. Test Locally
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd /path/to/spec-kit-project
|
||||||
|
specify extension add --dev /path/to/my-extension
|
||||||
|
```
|
||||||
|
|
||||||
|
### 6. Verify Installation
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension list
|
||||||
|
|
||||||
|
# Should show:
|
||||||
|
# ✓ My Extension (v1.0.0)
|
||||||
|
# My custom extension
|
||||||
|
# Commands: 1 | Hooks: 1 | Status: Enabled
|
||||||
|
```
|
||||||
|
|
||||||
|
### 7. Test Command
|
||||||
|
|
||||||
|
If using Claude:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
claude
|
||||||
|
> /speckit.my-ext.hello world
|
||||||
|
```
|
||||||
|
|
||||||
|
The command will be available in `.claude/commands/speckit.my-ext.hello.md`.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Manifest Schema Reference
|
||||||
|
|
||||||
|
### Required Fields
|
||||||
|
|
||||||
|
#### `schema_version`
|
||||||
|
|
||||||
|
Extension manifest schema version. Currently: `"1.0"`
|
||||||
|
|
||||||
|
#### `extension`
|
||||||
|
|
||||||
|
Extension metadata block.
|
||||||
|
|
||||||
|
**Required sub-fields**:
|
||||||
|
|
||||||
|
- `id`: Extension identifier (lowercase, alphanumeric, hyphens)
|
||||||
|
- `name`: Human-readable name
|
||||||
|
- `version`: Semantic version (e.g., "1.0.0")
|
||||||
|
- `description`: Short description
|
||||||
|
|
||||||
|
**Optional sub-fields**:
|
||||||
|
|
||||||
|
- `author`: Extension author
|
||||||
|
- `repository`: Source code URL
|
||||||
|
- `license`: SPDX license identifier
|
||||||
|
- `homepage`: Extension homepage URL
|
||||||
|
|
||||||
|
#### `requires`
|
||||||
|
|
||||||
|
Compatibility requirements.
|
||||||
|
|
||||||
|
**Required sub-fields**:
|
||||||
|
|
||||||
|
- `speckit_version`: Semantic version specifier (e.g., ">=0.1.0,<2.0.0")
|
||||||
|
|
||||||
|
**Optional sub-fields**:
|
||||||
|
|
||||||
|
- `tools`: External tools required (array of tool objects)
|
||||||
|
- `commands`: Core spec-kit commands needed (array of command names)
|
||||||
|
- `scripts`: Core scripts required (array of script names)
|
||||||
|
|
||||||
|
#### `provides`
|
||||||
|
|
||||||
|
What the extension provides.
|
||||||
|
|
||||||
|
**Optional sub-fields**:
|
||||||
|
|
||||||
|
- `commands`: Array of command objects (at least one command or hook is required)
|
||||||
|
|
||||||
|
**Command object**:
|
||||||
|
|
||||||
|
- `name`: Command name (must match `speckit.{ext-id}.{command}`)
|
||||||
|
- `file`: Path to command file (relative to extension root)
|
||||||
|
- `description`: Command description (optional)
|
||||||
|
- `aliases`: Alternative command names (optional, array; each must match `speckit.{ext-id}.{command}`)
|
||||||
|
|
||||||
|
### Optional Fields
|
||||||
|
|
||||||
|
#### `hooks`
|
||||||
|
|
||||||
|
Integration hooks for automatic execution.
|
||||||
|
|
||||||
|
Available hook points:
|
||||||
|
|
||||||
|
- `before_specify` / `after_specify`: Before/after specification generation
|
||||||
|
- `before_plan` / `after_plan`: Before/after implementation planning
|
||||||
|
- `before_tasks` / `after_tasks`: Before/after task generation
|
||||||
|
- `before_implement` / `after_implement`: Before/after implementation
|
||||||
|
- `before_analyze` / `after_analyze`: Before/after cross-artifact analysis
|
||||||
|
- `before_checklist` / `after_checklist`: Before/after checklist generation
|
||||||
|
- `before_clarify` / `after_clarify`: Before/after spec clarification
|
||||||
|
- `before_constitution` / `after_constitution`: Before/after constitution update
|
||||||
|
- `before_taskstoissues` / `after_taskstoissues`: Before/after tasks-to-issues conversion
|
||||||
|
|
||||||
|
Hook object:
|
||||||
|
|
||||||
|
- `command`: Command to execute (typically from `provides.commands`, but can reference any registered command)
|
||||||
|
- `optional`: If true, prompt user before executing
|
||||||
|
- `prompt`: Prompt text for optional hooks
|
||||||
|
- `description`: Hook description
|
||||||
|
- `condition`: Execution condition (future)
|
||||||
|
|
||||||
|
#### `tags`
|
||||||
|
|
||||||
|
Array of tags for catalog discovery.
|
||||||
|
|
||||||
|
#### `defaults`
|
||||||
|
|
||||||
|
Default extension configuration values.
|
||||||
|
|
||||||
|
#### `config_schema`
|
||||||
|
|
||||||
|
JSON Schema for validating extension configuration.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Command File Format
|
||||||
|
|
||||||
|
### Frontmatter (YAML)
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
---
|
||||||
|
description: "Command description" # Required
|
||||||
|
tools: # Optional
|
||||||
|
- 'tool-name/function'
|
||||||
|
scripts: # Optional
|
||||||
|
sh: ../../scripts/bash/helper.sh
|
||||||
|
ps: ../../scripts/powershell/helper.ps1
|
||||||
|
---
|
||||||
|
```
|
||||||
|
|
||||||
|
### Body (Markdown)
|
||||||
|
|
||||||
|
Use standard Markdown with special placeholders:
|
||||||
|
|
||||||
|
- `$ARGUMENTS`: User-provided arguments
|
||||||
|
- `{SCRIPT}`: Replaced with script path during registration
|
||||||
|
|
||||||
|
**Example**:
|
||||||
|
|
||||||
|
````markdown
|
||||||
|
## Steps
|
||||||
|
|
||||||
|
1. Parse arguments
|
||||||
|
2. Execute logic
|
||||||
|
|
||||||
|
```bash
|
||||||
|
args="$ARGUMENTS"
|
||||||
|
echo "Running with args: $args"
|
||||||
|
```
|
||||||
|
````
|
||||||
|
|
||||||
|
### Script Path Rewriting
|
||||||
|
|
||||||
|
Extension commands use relative paths that get rewritten during registration:
|
||||||
|
|
||||||
|
**In extension**:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
scripts:
|
||||||
|
sh: ../../scripts/bash/helper.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
**After registration**:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
scripts:
|
||||||
|
sh: .specify/scripts/bash/helper.sh
|
||||||
|
```
|
||||||
|
|
||||||
|
This allows scripts to reference core spec-kit scripts.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Configuration Files
|
||||||
|
|
||||||
|
### Config Template
|
||||||
|
|
||||||
|
**File**: `my-ext-config.template.yml`
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# My Extension Configuration
|
||||||
|
# Copy this to my-ext-config.yml and customize
|
||||||
|
|
||||||
|
# Example configuration
|
||||||
|
api:
|
||||||
|
endpoint: "https://api.example.com"
|
||||||
|
timeout: 30
|
||||||
|
|
||||||
|
features:
|
||||||
|
feature_a: true
|
||||||
|
feature_b: false
|
||||||
|
|
||||||
|
credentials:
|
||||||
|
# DO NOT commit credentials!
|
||||||
|
# Use environment variables instead
|
||||||
|
api_key: "${MY_EXT_API_KEY}"
|
||||||
|
```
|
||||||
|
|
||||||
|
### Config Loading
|
||||||
|
|
||||||
|
In your command, load config with layered precedence:
|
||||||
|
|
||||||
|
1. Extension defaults (`extension.yml` → `defaults`)
|
||||||
|
2. Project config (`.specify/extensions/my-ext/my-ext-config.yml`)
|
||||||
|
3. Local overrides (`.specify/extensions/my-ext/my-ext-config.local.yml` - gitignored)
|
||||||
|
4. Environment variables (`SPECKIT_MY_EXT_*`)
|
||||||
|
|
||||||
|
**Example loading script**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
EXT_DIR=".specify/extensions/my-ext"
|
||||||
|
|
||||||
|
# Load and merge config
|
||||||
|
config=$(yq eval '.' "$EXT_DIR/my-ext-config.yml" -o=json)
|
||||||
|
|
||||||
|
# Apply env overrides
|
||||||
|
if [ -n "${SPECKIT_MY_EXT_API_KEY:-}" ]; then
|
||||||
|
config=$(echo "$config" | jq ".api.api_key = \"$SPECKIT_MY_EXT_API_KEY\"")
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "$config"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Excluding Files with `.extensionignore`
|
||||||
|
|
||||||
|
Extension authors can create a `.extensionignore` file in the extension root to exclude files and folders from being copied when a user installs the extension with `specify extension add`. This is useful for keeping development-only files (tests, CI configs, docs source, etc.) out of the installed copy.
|
||||||
|
|
||||||
|
### Format
|
||||||
|
|
||||||
|
The file uses `.gitignore`-compatible patterns (one per line), powered by the [`pathspec`](https://pypi.org/project/pathspec/) library:
|
||||||
|
|
||||||
|
- Blank lines are ignored
|
||||||
|
- Lines starting with `#` are comments
|
||||||
|
- `*` matches anything **except** `/` (does not cross directory boundaries)
|
||||||
|
- `**` matches zero or more directories (e.g., `docs/**/*.draft.md`)
|
||||||
|
- `?` matches any single character except `/`
|
||||||
|
- A trailing `/` restricts a pattern to directories only
|
||||||
|
- Patterns containing `/` (other than a trailing slash) are anchored to the extension root
|
||||||
|
- Patterns without `/` match at any depth in the tree
|
||||||
|
- `!` negates a previously excluded pattern (re-includes a file)
|
||||||
|
- Backslashes in patterns are normalised to forward slashes for cross-platform compatibility
|
||||||
|
- The `.extensionignore` file itself is always excluded automatically
|
||||||
|
|
||||||
|
### Example
|
||||||
|
|
||||||
|
```gitignore
|
||||||
|
# .extensionignore
|
||||||
|
|
||||||
|
# Development files
|
||||||
|
tests/
|
||||||
|
.github/
|
||||||
|
.gitignore
|
||||||
|
|
||||||
|
# Build artifacts
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
dist/
|
||||||
|
|
||||||
|
# Documentation source (keep only the built README)
|
||||||
|
docs/
|
||||||
|
CONTRIBUTING.md
|
||||||
|
```
|
||||||
|
|
||||||
|
### Pattern Matching
|
||||||
|
|
||||||
|
| Pattern | Matches | Does NOT match |
|
||||||
|
|---------|---------|----------------|
|
||||||
|
| `*.pyc` | Any `.pyc` file in any directory | — |
|
||||||
|
| `tests/` | The `tests` directory (and all its contents) | A file named `tests` |
|
||||||
|
| `docs/*.draft.md` | `docs/api.draft.md` (directly inside `docs/`) | `docs/sub/api.draft.md` (nested) |
|
||||||
|
| `.env` | The `.env` file at any level | — |
|
||||||
|
| `!README.md` | Re-includes `README.md` even if matched by an earlier pattern | — |
|
||||||
|
| `docs/**/*.draft.md` | `docs/api.draft.md`, `docs/sub/api.draft.md` | — |
|
||||||
|
|
||||||
|
### Unsupported Features
|
||||||
|
|
||||||
|
The following `.gitignore` features are **not applicable** in this context:
|
||||||
|
|
||||||
|
- **Multiple `.extensionignore` files**: Only a single file at the extension root is supported (`.gitignore` supports files in subdirectories)
|
||||||
|
- **`$GIT_DIR/info/exclude` and `core.excludesFile`**: These are Git-specific and have no equivalent here
|
||||||
|
- **Negation inside excluded directories**: Because file copying uses `shutil.copytree`, excluding a directory prevents recursion into it entirely. A negation pattern cannot re-include a file inside a directory that was itself excluded. For example, the combination `tests/` followed by `!tests/important.py` will **not** preserve `tests/important.py` — the `tests/` directory is skipped at the root level and its contents are never evaluated. To work around this, exclude the directory's contents individually instead of the directory itself (e.g., `tests/*.pyc` and `tests/.cache/` rather than `tests/`).
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Validation Rules
|
||||||
|
|
||||||
|
### Extension ID
|
||||||
|
|
||||||
|
- **Pattern**: `^[a-z0-9-]+$`
|
||||||
|
- **Valid**: `my-ext`, `tool-123`, `awesome-plugin`
|
||||||
|
- **Invalid**: `MyExt` (uppercase), `my_ext` (underscore), `my ext` (space)
|
||||||
|
|
||||||
|
### Extension Version
|
||||||
|
|
||||||
|
- **Format**: Semantic versioning (MAJOR.MINOR.PATCH)
|
||||||
|
- **Valid**: `1.0.0`, `0.1.0`, `2.5.3`
|
||||||
|
- **Invalid**: `1.0`, `v1.0.0`, `1.0.0-beta`
|
||||||
|
|
||||||
|
### Command Name
|
||||||
|
|
||||||
|
- **Pattern**: `^speckit\.[a-z0-9-]+\.[a-z0-9-]+$`
|
||||||
|
- **Valid**: `speckit.my-ext.hello`, `speckit.tool.cmd`
|
||||||
|
- **Invalid**: `my-ext.hello` (missing prefix), `speckit.hello` (no extension namespace)
|
||||||
|
|
||||||
|
### Command File Path
|
||||||
|
|
||||||
|
- **Must be** relative to extension root
|
||||||
|
- **Valid**: `commands/hello.md`, `commands/subdir/cmd.md`
|
||||||
|
- **Invalid**: `/absolute/path.md`, `../outside.md`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Testing Extensions
|
||||||
|
|
||||||
|
### Manual Testing
|
||||||
|
|
||||||
|
1. **Create test extension**
|
||||||
|
2. **Install locally**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension add --dev /path/to/extension
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Verify installation**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension list
|
||||||
|
```
|
||||||
|
|
||||||
|
4. **Test commands** with your AI agent
|
||||||
|
5. **Check command registration**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ls .claude/commands/speckit.my-ext.*
|
||||||
|
```
|
||||||
|
|
||||||
|
6. **Remove extension**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension remove my-ext
|
||||||
|
```
|
||||||
|
|
||||||
|
### Automated Testing
|
||||||
|
|
||||||
|
Create tests for your extension:
|
||||||
|
|
||||||
|
```python
|
||||||
|
# tests/test_my_extension.py
|
||||||
|
import pytest
|
||||||
|
from pathlib import Path
|
||||||
|
from specify_cli.extensions import ExtensionManifest
|
||||||
|
|
||||||
|
def test_manifest_valid():
|
||||||
|
"""Test extension manifest is valid."""
|
||||||
|
manifest = ExtensionManifest(Path("extension.yml"))
|
||||||
|
assert manifest.id == "my-ext"
|
||||||
|
assert len(manifest.commands) >= 1
|
||||||
|
|
||||||
|
def test_command_files_exist():
|
||||||
|
"""Test all command files exist."""
|
||||||
|
manifest = ExtensionManifest(Path("extension.yml"))
|
||||||
|
for cmd in manifest.commands:
|
||||||
|
cmd_file = Path(cmd["file"])
|
||||||
|
assert cmd_file.exists(), f"Command file not found: {cmd_file}"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Distribution
|
||||||
|
|
||||||
|
### Option 1: GitHub Repository
|
||||||
|
|
||||||
|
1. **Create repository**: `spec-kit-my-ext`
|
||||||
|
2. **Add files**:
|
||||||
|
|
||||||
|
```text
|
||||||
|
spec-kit-my-ext/
|
||||||
|
├── extension.yml
|
||||||
|
├── commands/
|
||||||
|
├── scripts/
|
||||||
|
├── docs/
|
||||||
|
├── README.md
|
||||||
|
├── LICENSE
|
||||||
|
└── CHANGELOG.md
|
||||||
|
```
|
||||||
|
|
||||||
|
3. **Create release**: Tag with version (e.g., `v1.0.0`)
|
||||||
|
4. **Install from repo**:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git clone https://github.com/you/spec-kit-my-ext
|
||||||
|
specify extension add --dev spec-kit-my-ext/
|
||||||
|
```
|
||||||
|
|
||||||
|
### Option 2: ZIP Archive (Future)
|
||||||
|
|
||||||
|
Create ZIP archive and host on GitHub Releases:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
zip -r spec-kit-my-ext-1.0.0.zip extension.yml commands/ scripts/ docs/
|
||||||
|
```
|
||||||
|
|
||||||
|
Users install with:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
specify extension add <extension-name> --from https://github.com/.../spec-kit-my-ext-1.0.0.zip
|
||||||
|
```
|
||||||
|
|
||||||
|
### Option 3: Community Reference Catalog
|
||||||
|
|
||||||
|
Submit to the community catalog for public discovery:
|
||||||
|
|
||||||
|
1. **Create a GitHub release** for your extension
|
||||||
|
2. **File an issue** using the [Extension Submission](https://github.com/github/spec-kit/issues/new?template=extension_submission.yml) template
|
||||||
|
3. **After review**, a maintainer updates the catalog and your extension becomes available:
|
||||||
|
- Users can browse `catalog.community.json` to discover your extension
|
||||||
|
- Users copy the entry to their own `catalog.json`
|
||||||
|
- Users install with: `specify extension add my-ext` (from their catalog)
|
||||||
|
|
||||||
|
See the [Extension Publishing Guide](EXTENSION-PUBLISHING-GUIDE.md) for detailed submission instructions.
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Best Practices
|
||||||
|
|
||||||
|
### Naming Conventions
|
||||||
|
|
||||||
|
- **Extension ID**: Use descriptive, hyphenated names (`jira-integration`, not `ji`)
|
||||||
|
- **Commands**: Use verb-noun pattern (`create-issue`, `sync-status`)
|
||||||
|
- **Config files**: Match extension ID (`jira-config.yml`)
|
||||||
|
|
||||||
|
### Documentation
|
||||||
|
|
||||||
|
- **README.md**: Overview, installation, usage
|
||||||
|
- **CHANGELOG.md**: Version history
|
||||||
|
- **docs/**: Detailed guides
|
||||||
|
- **Command descriptions**: Clear, concise
|
||||||
|
|
||||||
|
### Versioning
|
||||||
|
|
||||||
|
- **Follow SemVer**: `MAJOR.MINOR.PATCH`
|
||||||
|
- **MAJOR**: Breaking changes
|
||||||
|
- **MINOR**: New features
|
||||||
|
- **PATCH**: Bug fixes
|
||||||
|
|
||||||
|
### Security
|
||||||
|
|
||||||
|
- **Never commit secrets**: Use environment variables
|
||||||
|
- **Validate input**: Sanitize user arguments
|
||||||
|
- **Document permissions**: What files/APIs are accessed
|
||||||
|
|
||||||
|
### Compatibility
|
||||||
|
|
||||||
|
- **Specify version range**: Don't require exact version
|
||||||
|
- **Test with multiple versions**: Ensure compatibility
|
||||||
|
- **Graceful degradation**: Handle missing features
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Example Extensions
|
||||||
|
|
||||||
|
### Minimal Extension
|
||||||
|
|
||||||
|
Smallest possible extension:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# extension.yml
|
||||||
|
schema_version: "1.0"
|
||||||
|
extension:
|
||||||
|
id: "minimal"
|
||||||
|
name: "Minimal Extension"
|
||||||
|
version: "1.0.0"
|
||||||
|
description: "Minimal example"
|
||||||
|
requires:
|
||||||
|
speckit_version: ">=0.1.0"
|
||||||
|
provides:
|
||||||
|
commands:
|
||||||
|
- name: "speckit.minimal.hello"
|
||||||
|
file: "commands/hello.md"
|
||||||
|
```
|
||||||
|
|
||||||
|
````markdown
|
||||||
|
<!-- commands/hello.md -->
|
||||||
|
---
|
||||||
|
description: "Hello command"
|
||||||
|
---
|
||||||
|
|
||||||
|
# Hello World
|
||||||
|
|
||||||
|
```bash
|
||||||
|
echo "Hello, $ARGUMENTS!"
|
||||||
|
```
|
||||||
|
````
|
||||||
|
|
||||||
|
### Extension with Config
|
||||||
|
|
||||||
|
Extension using configuration:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# extension.yml
|
||||||
|
# ... metadata ...
|
||||||
|
provides:
|
||||||
|
config:
|
||||||
|
- name: "tool-config.yml"
|
||||||
|
template: "tool-config.template.yml"
|
||||||
|
required: true
|
||||||
|
```
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# tool-config.template.yml
|
||||||
|
api_endpoint: "https://api.example.com"
|
||||||
|
timeout: 30
|
||||||
|
```
|
||||||
|
|
||||||
|
````markdown
|
||||||
|
<!-- commands/use-config.md -->
|
||||||
|
# Use Config
|
||||||
|
|
||||||
|
Load config:
|
||||||
|
```bash
|
||||||
|
config_file=".specify/extensions/tool/tool-config.yml"
|
||||||
|
endpoint=$(yq eval '.api_endpoint' "$config_file")
|
||||||
|
echo "Using endpoint: $endpoint"
|
||||||
|
```
|
||||||
|
````
|
||||||
|
|
||||||
|
### Extension with Hooks
|
||||||
|
|
||||||
|
Extension that runs automatically:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# extension.yml
|
||||||
|
hooks:
|
||||||
|
after_tasks:
|
||||||
|
command: "speckit.auto.analyze"
|
||||||
|
optional: false # Always run
|
||||||
|
description: "Analyze tasks after generation"
|
||||||
|
```
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Troubleshooting
|
||||||
|
|
||||||
|
### Extension won't install
|
||||||
|
|
||||||
|
**Error**: `Invalid extension ID`
|
||||||
|
|
||||||
|
- **Fix**: Use lowercase, alphanumeric + hyphens only
|
||||||
|
|
||||||
|
**Error**: `Extension requires spec-kit >=0.2.0`
|
||||||
|
|
||||||
|
- **Fix**: Update spec-kit with `uv tool install specify-cli --force --from git+https://github.com/github/spec-kit.git`. The bare `specify-cli` package on PyPI is a different, unrelated project — installing it without `--from git+...` will give you a stub CLI that does not include `extension`, `preset`, or other spec-kit commands.
|
||||||
|
|
||||||
|
**Error**: `Command file not found`
|
||||||
|
|
||||||
|
- **Fix**: Ensure command files exist at paths specified in manifest
|
||||||
|
|
||||||
|
### Commands not registered
|
||||||
|
|
||||||
|
**Symptom**: Commands don't appear in AI agent
|
||||||
|
|
||||||
|
**Check**:
|
||||||
|
|
||||||
|
1. `.claude/commands/` directory exists
|
||||||
|
2. Extension installed successfully
|
||||||
|
3. Commands registered in registry:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cat .specify/extensions/.registry
|
||||||
|
```
|
||||||
|
|
||||||
|
**Fix**: Reinstall extension to trigger registration
|
||||||
|
|
||||||
|
### Config not loading
|
||||||
|
|
||||||
|
**Check**:
|
||||||
|
|
||||||
|
1. Config file exists: `.specify/extensions/{ext-id}/{ext-id}-config.yml`
|
||||||
|
2. YAML syntax is valid: `yq eval '.' config.yml`
|
||||||
|
3. Environment variables set correctly
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Getting Help
|
||||||
|
|
||||||
|
- **Issues**: Report bugs at GitHub repository
|
||||||
|
- **Discussions**: Ask questions in GitHub Discussions
|
||||||
|
- **Examples**: See `spec-kit-jira` for full-featured example (Phase B)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Next Steps
|
||||||
|
|
||||||
|
1. **Create your extension** following this guide
|
||||||
|
2. **Test locally** with `--dev` flag
|
||||||
|
3. **Share with community** (GitHub, catalog)
|
||||||
|
4. **Iterate** based on feedback
|
||||||
|
|
||||||
|
Happy extending! 🚀
|
||||||
365
extensions/EXTENSION-PUBLISHING-GUIDE.md
Normal file
365
extensions/EXTENSION-PUBLISHING-GUIDE.md
Normal file
@@ -0,0 +1,365 @@
|
|||||||
|
# Extension Publishing Guide
|
||||||
|
|
||||||
|
This guide explains how to publish your extension to the Spec Kit extension catalog, making it discoverable by `specify extension search`.
|
||||||
|
|
||||||
|
## Table of Contents
|
||||||
|
|
||||||
|
1. [Prerequisites](#prerequisites)
|
||||||
|
2. [Prepare Your Extension](#prepare-your-extension)
|
||||||
|
3. [Submit to Catalog](#submit-to-catalog)
|
||||||
|
4. [Release Workflow](#release-workflow)
|
||||||
|
5. [Best Practices](#best-practices)
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
|
||||||
|
Before publishing an extension, ensure you have:
|
||||||
|
|
||||||
|
1. **Valid Extension**: A working extension with a valid `extension.yml` manifest
|
||||||
|
2. **Git Repository**: Extension hosted on GitHub (or other public git hosting)
|
||||||
|
3. **Documentation**: README.md with installation and usage instructions
|
||||||
|
4. **License**: Open source license file (MIT, Apache 2.0, etc.)
|
||||||
|
5. **Versioning**: Semantic versioning (e.g., 1.0.0)
|
||||||
|
6. **Testing**: Extension tested on real projects
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
## Prepare Your Extension
|
||||||
|
|
||||||
|
### 1. Extension Structure
|
||||||
|
|
||||||
|
Ensure your extension follows the standard structure:
|
||||||
|
|
||||||
|
```text
|
||||||
|
your-extension/
|
||||||
|
├── extension.yml # Required: Extension manifest
|
||||||
|
├── README.md # Required: Documentation
|
||||||
|
├── LICENSE # Required: License file
|
||||||
|
|||||||