@capybara-hq/plugin-collab 0.0.0-stage → 0.1.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.capybara-plugin/plugin.json +156 -0
- package/LICENSE +202 -0
- package/NOTICE +2 -0
- package/README.md +143 -2
- package/THIRD-PARTY-NOTICES.txt +26 -0
- package/agents/engineer.md +71 -0
- package/agents/product.md +52 -0
- package/agents/qa.md +58 -0
- package/dist/client/client.mjs +3 -0
- package/dist/index.mjs +9376 -0
- package/icon.svg +1 -0
- package/migrations/0001_init.sql +240 -0
- package/package.json +19 -4
- package/skills/collab-workflow/SKILL.md +87 -0
- package/skills/prd-writing/SKILL.md +67 -0
- package/skills/test-planning/SKILL.md +58 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://capybarahq.com/schemas/plugin.v1.schema.json",
|
|
3
|
+
"schemaVersion": 1,
|
|
4
|
+
"name": "collab",
|
|
5
|
+
"version": "0.1.0-rc.1",
|
|
6
|
+
"publisher": "Capybara",
|
|
7
|
+
"description": {
|
|
8
|
+
"en": "Project tracker for people and agents: projects, requirements, tasks and bugs with workflows, confirmation steps, decisions and artifacts, assigned to a person and an agent",
|
|
9
|
+
"zh": "人与智能体共用的项目协作:项目、需求、任务和缺陷,带工作流、确认步骤、决策与产物,可同时指派给成员和智能体"
|
|
10
|
+
},
|
|
11
|
+
"displayName": {
|
|
12
|
+
"zh": "项目协作",
|
|
13
|
+
"en": "Projects"
|
|
14
|
+
},
|
|
15
|
+
"icon": "./icon.svg",
|
|
16
|
+
"homepage": "https://github.com/capybara-hq/plugins/tree/main/plugins/collab#readme",
|
|
17
|
+
"skills": [
|
|
18
|
+
{
|
|
19
|
+
"path": "./skills/collab-workflow"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"path": "./skills/prd-writing"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"path": "./skills/test-planning"
|
|
26
|
+
}
|
|
27
|
+
],
|
|
28
|
+
"agents": [
|
|
29
|
+
{
|
|
30
|
+
"path": "./agents/product.md"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"path": "./agents/engineer.md"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"path": "./agents/qa.md"
|
|
37
|
+
}
|
|
38
|
+
],
|
|
39
|
+
"extension": {
|
|
40
|
+
"entry": "./dist/index.mjs",
|
|
41
|
+
"manifest": {
|
|
42
|
+
"name": "collab",
|
|
43
|
+
"version": "0.1.0-rc.1",
|
|
44
|
+
"sdk": "^0.1.0-rc.87",
|
|
45
|
+
"provides": [
|
|
46
|
+
"trigger-source@1"
|
|
47
|
+
],
|
|
48
|
+
"requires": [],
|
|
49
|
+
"optional": [],
|
|
50
|
+
"permissions": {
|
|
51
|
+
"tools": [
|
|
52
|
+
"project_list",
|
|
53
|
+
"project_create",
|
|
54
|
+
"item_search",
|
|
55
|
+
"item_get",
|
|
56
|
+
"item_create",
|
|
57
|
+
"item_update",
|
|
58
|
+
"item_transition",
|
|
59
|
+
"item_assign",
|
|
60
|
+
"item_comment",
|
|
61
|
+
"item_link",
|
|
62
|
+
"artifact_attach",
|
|
63
|
+
"decision_ask",
|
|
64
|
+
"decision_list"
|
|
65
|
+
],
|
|
66
|
+
"triggers": {
|
|
67
|
+
"emit": [
|
|
68
|
+
"item.created",
|
|
69
|
+
"item.updated",
|
|
70
|
+
"item.status_changed",
|
|
71
|
+
"item.assigned",
|
|
72
|
+
"item.unassigned",
|
|
73
|
+
"item.commented",
|
|
74
|
+
"item.closed",
|
|
75
|
+
"decision.answered",
|
|
76
|
+
"gate.requested"
|
|
77
|
+
]
|
|
78
|
+
},
|
|
79
|
+
"inbox": true,
|
|
80
|
+
"agents": {
|
|
81
|
+
"read": true
|
|
82
|
+
},
|
|
83
|
+
"conversations": {
|
|
84
|
+
"subjects": true
|
|
85
|
+
},
|
|
86
|
+
"people": {
|
|
87
|
+
"read": true
|
|
88
|
+
},
|
|
89
|
+
"hooks": [
|
|
90
|
+
"run.lifecycle"
|
|
91
|
+
],
|
|
92
|
+
"client": true,
|
|
93
|
+
"ui": {
|
|
94
|
+
"components": [
|
|
95
|
+
"projects",
|
|
96
|
+
"item-panel",
|
|
97
|
+
"item-properties",
|
|
98
|
+
"agent-items"
|
|
99
|
+
]
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"config": {
|
|
103
|
+
"deployment": []
|
|
104
|
+
},
|
|
105
|
+
"ui": [
|
|
106
|
+
{
|
|
107
|
+
"id": "projects",
|
|
108
|
+
"title": {
|
|
109
|
+
"zh": "项目",
|
|
110
|
+
"en": "Projects"
|
|
111
|
+
},
|
|
112
|
+
"slot": "org.page",
|
|
113
|
+
"kind": "component",
|
|
114
|
+
"frame": "page",
|
|
115
|
+
"nav": "primary",
|
|
116
|
+
"icon": "layout-grid"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"id": "item-panel",
|
|
120
|
+
"title": {
|
|
121
|
+
"zh": "事项",
|
|
122
|
+
"en": "Item"
|
|
123
|
+
},
|
|
124
|
+
"slot": "conversation.panel",
|
|
125
|
+
"kind": "component"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"id": "item-properties",
|
|
129
|
+
"title": {
|
|
130
|
+
"zh": "事项属性",
|
|
131
|
+
"en": "Item properties"
|
|
132
|
+
},
|
|
133
|
+
"slot": "conversation.properties.section",
|
|
134
|
+
"kind": "component"
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
"id": "agent-items",
|
|
138
|
+
"title": {
|
|
139
|
+
"zh": "事项",
|
|
140
|
+
"en": "Items"
|
|
141
|
+
},
|
|
142
|
+
"slot": "agent.detail.section",
|
|
143
|
+
"kind": "component"
|
|
144
|
+
}
|
|
145
|
+
]
|
|
146
|
+
},
|
|
147
|
+
"migrations": "./migrations",
|
|
148
|
+
"client": {
|
|
149
|
+
"entry": "./dist/client/client.mjs",
|
|
150
|
+
"integrity": {
|
|
151
|
+
"./dist/client/client.mjs": "sha384-JybuV9azynulvp/5Dp2CnR/Y1qVjtug7JqBmwMPe0WVoO7Qlc6JtkBcGuSaEWYgR"
|
|
152
|
+
},
|
|
153
|
+
"apiVersion": 1
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -1,3 +1,144 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @capybara-hq/plugin-collab
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A project tracker for people and agents (项目协作 / Projects). Projects hold **items**
|
|
4
|
+
(requirements, tasks and bugs), each moving through its type's **workflow**. An item has a
|
|
5
|
+
**responsible person** and, optionally, the **agent** that works on it for that person. Statuses
|
|
6
|
+
can carry a **gate** (entering them needs a person's confirmation) and a **default assignment**
|
|
7
|
+
(entering them hands the item to the next person and their agent). Agents and people ask each other
|
|
8
|
+
**decisions**, attach **artifacts** (links such as pull requests or documents) and comment.
|
|
9
|
+
|
|
10
|
+
What the plugin does:
|
|
11
|
+
|
|
12
|
+
- **Pages** (an org page in the primary navigation): the project list, a project's board and table,
|
|
13
|
+
the item page (description, activity, decisions, artifacts, children, links, conversations) and
|
|
14
|
+
the project settings (members, function labels, default agents, gates and default assignments).
|
|
15
|
+
- **A panel and a properties section** in an item's conversation, and an item list on the agent page.
|
|
16
|
+
- **Tools** an agent uses to read and work on items as its person.
|
|
17
|
+
- **Events** (`trigger-source@1`) that automations react to. Assignment is a **directed** event:
|
|
18
|
+
it reaches the assigned person's agent through that person's acceptance rule (`auto`, `confirm` or
|
|
19
|
+
`off`, set in the person's settings; the org default is `auto`), which opens the item's own
|
|
20
|
+
conversation for the pair and keeps using it.
|
|
21
|
+
- **Inbox items**: assignment notices (with a "Stop agent" button; reassigning goes through the
|
|
22
|
+
notice's link to the item page, there is no reassign button), decisions and gate
|
|
23
|
+
confirmations (with answer buttons), reminders and escalations, and "pick who gets it" requests
|
|
24
|
+
to the project owner when a default assignment matches nobody or several people.
|
|
25
|
+
- **Agent run state** on items (working, waiting, idle, declined) from the kernel's `run.lifecycle`
|
|
26
|
+
hook.
|
|
27
|
+
- **Agent templates and skills** (see below).
|
|
28
|
+
|
|
29
|
+
## How an item moves
|
|
30
|
+
|
|
31
|
+
New projects start with three item types (editable per status afterwards):
|
|
32
|
+
|
|
33
|
+
| Type | Workflow | Gates | Default assignments |
|
|
34
|
+
|---|---|---|---|
|
|
35
|
+
| Requirement | backlog → drafting → review → ready → in progress → acceptance → done (canceled) | ready (project owner), done (the requester, owner fallback) | ready → an `engineering` member and their default agent |
|
|
36
|
+
| Task | to do → in progress → testing → done (canceled) | none | testing → a `qa` member and their default agent |
|
|
37
|
+
| Bug | open → fixing → verifying → closed (won't fix) | none | open → an `engineering` member, verifying → a `qa` member, each with their default agent |
|
|
38
|
+
|
|
39
|
+
- **Gates.** Moving an item into a gated status as its confirmer moves it. Anyone else (an agent,
|
|
40
|
+
or a person dragging a card) creates a gate decision addressed to the confirmer: it waits in their
|
|
41
|
+
inbox and on the item page, and the item stays where it is until they approve. An approval
|
|
42
|
+
applies only to the move it was asked for: once the item moved on, the request is canceled.
|
|
43
|
+
A gate on a function label asks every member with that label; the first answer settles it.
|
|
44
|
+
- **Default assignments** hand the item to the member the rule names (or the member with the
|
|
45
|
+
function label) and, with `memberAgent`, their default agent in the project. An agent the person
|
|
46
|
+
may no longer use is dropped and the activity says so.
|
|
47
|
+
- **Parents.** When every child of a requirement is closed, the requirement moves to acceptance on
|
|
48
|
+
its own and the done gate is asked of its requester at once.
|
|
49
|
+
- **Removing a member** (or making them a guest) hands their open items back to the project owner
|
|
50
|
+
and re-addresses their open decisions.
|
|
51
|
+
- **Archived projects are read-only.** Every write (tools, page actions, inbox answers) is refused
|
|
52
|
+
with a message saying so; open decisions are canceled when answered. Only the settings save that
|
|
53
|
+
unarchives the project (a project owner) goes through.
|
|
54
|
+
- Assigning someone else through a tool always asks the conversation's person first; the person
|
|
55
|
+
clicking in the pages is the consent. Taking an item away from an agent tells it to stop
|
|
56
|
+
(writes from its old conversation are refused).
|
|
57
|
+
|
|
58
|
+
## Permissions it asks for, and why
|
|
59
|
+
|
|
60
|
+
| Permission | Why |
|
|
61
|
+
|---|---|
|
|
62
|
+
| `tools` (13, below) | The agent tools. |
|
|
63
|
+
| `triggers.emit` (9 event types) | Emitting item and decision events for automations and acceptance. |
|
|
64
|
+
| `inbox` | Assignment notices, decisions, gate confirmations, reminders and escalations. |
|
|
65
|
+
| `agents.read` | Checking that an agent is one the responsible person may use (`usableBy`), and agent names. |
|
|
66
|
+
| `conversations.subjects` | Finding the conversations that serve an item (`bySubject`): the item's panel, the old agent's refusal, run state. |
|
|
67
|
+
| `people.read` | Names and avatars, active org membership when adding project members, the people picker. |
|
|
68
|
+
| `hooks: run.lifecycle` | Recording the executing agent's run state on the item (observe only, never denies). |
|
|
69
|
+
| `client` + `ui.components` | The project pages, the conversation panel and properties section, the agent page section. |
|
|
70
|
+
|
|
71
|
+
It asks for no storage, network, sandbox, model or secret access, and has no configuration.
|
|
72
|
+
|
|
73
|
+
## Tools (`plugin__collab__<key>`)
|
|
74
|
+
|
|
75
|
+
| Key | What it does | Default policy |
|
|
76
|
+
|---|---|---|
|
|
77
|
+
| `project_list` | Projects the person belongs to, their role, members with function and default agent | allow |
|
|
78
|
+
| `project_create` | Creates a project with the default types (the person becomes owner) | ask |
|
|
79
|
+
| `item_search` | Searches items by project, title words or key, status, type, "assigned to me" | allow |
|
|
80
|
+
| `item_get` | One item in full, with the allowed next statuses and the `version` | allow |
|
|
81
|
+
| `item_create` | Creates an item (another responsible person asks first) | allow |
|
|
82
|
+
| `item_update` | Changes title, description, priority, labels, parent, custom fields | allow |
|
|
83
|
+
| `item_transition` | Moves the item to another status (a gate asks its confirmer) | allow |
|
|
84
|
+
| `item_assign` | Assigns a person and agent (anyone but the person asks first) | allow |
|
|
85
|
+
| `item_comment` | Comments in Markdown | allow |
|
|
86
|
+
| `item_link` | Links two items (blocks, relates, duplicates) | allow |
|
|
87
|
+
| `artifact_attach` | Attaches an http(s) link as a versioned artifact | allow |
|
|
88
|
+
| `decision_ask` | Asks a person to decide, with options and a recommendation | allow |
|
|
89
|
+
| `decision_list` | Decisions of an item, by state, or addressed to the person | allow |
|
|
90
|
+
|
|
91
|
+
The tools act as the **conversation's owner**; a run started by another member is refused. Every
|
|
92
|
+
write takes the `version` the agent last read and returns the new one.
|
|
93
|
+
|
|
94
|
+
## Events
|
|
95
|
+
|
|
96
|
+
`item.created`, `item.updated`, `item.status_changed`, `item.assigned` (directed),
|
|
97
|
+
`item.unassigned` (directed), `item.commented`, `item.closed`, `decision.answered` (directed, to the
|
|
98
|
+
asking pair while it holds the item), `gate.requested`.
|
|
99
|
+
|
|
100
|
+
Every event carries the filterable facts `projectKey`, `itemType`, `status`, `statusCategory`,
|
|
101
|
+
`priority`, `labels`, `responsibleAccountId`, `executingAgentId`, `changedFields`.
|
|
102
|
+
Events are written to an outbox in the same transaction as the change and emitted after the
|
|
103
|
+
commit; a per-org drain job (queued before the write) re-emits anything a crash or an outage left
|
|
104
|
+
behind, retrying on a ladder up to an hour. The kernel dedupes on the event's key, so a row emitted
|
|
105
|
+
twice is one event. Only people the project shows the item to see its events.
|
|
106
|
+
|
|
107
|
+
## Agent templates and skills
|
|
108
|
+
|
|
109
|
+
- Agents: **product** (turns a requirement into a PRD, asks decisions, requests review and
|
|
110
|
+
readiness), **engineer** (designs, splits into tasks, implements in the person's device, attaches
|
|
111
|
+
pull requests, hands tasks to testing, fixes bugs) and **qa** (plans and runs tests, files bugs,
|
|
112
|
+
verifies fixes).
|
|
113
|
+
- Skills: `collab-workflow` (how work arrives and how to use the tools), `prd-writing`,
|
|
114
|
+
`test-planning`.
|
|
115
|
+
|
|
116
|
+
## Limits
|
|
117
|
+
|
|
118
|
+
- Board: 500 cards per type (open first, then the newest closed); table pages of up to 100 rows;
|
|
119
|
+
activity in pages of 50; page results stay under ~900 KB (larger lists say they were truncated).
|
|
120
|
+
- Decisions: question ≤ 2000 characters, ≤ 10 options, deadline ≤ 30 days; at most 5 open questions
|
|
121
|
+
per item and asker, an identical open question is not asked twice; open decisions expire after
|
|
122
|
+
30 days. Inbox buttons appear for up to 3 options; more are answered on the item page.
|
|
123
|
+
- Item descriptions ≤ 50 000 characters, titles ≤ 200, ≤ 20 labels; comments in the activity are
|
|
124
|
+
clipped at 4 000 characters (the full comment opens on demand).
|
|
125
|
+
- Event rows not emitted within a day are given up with a warning; emitted rows are pruned after
|
|
126
|
+
7 days, given-up rows after 30.
|
|
127
|
+
- Settings edit gates and default assignments per status, project name, description and archive;
|
|
128
|
+
adding or reordering statuses and types is not available yet.
|
|
129
|
+
- Artifacts are links only (no file upload).
|
|
130
|
+
|
|
131
|
+
## Not yet (follow-ups)
|
|
132
|
+
|
|
133
|
+
- **Watchers**: the design's item watchers are not built; people follow items through assignment,
|
|
134
|
+
decisions and the project's automations.
|
|
135
|
+
- **Mentions**: events carry no `mentions` fact.
|
|
136
|
+
- **Stored artifacts**: attaching files (object storage) instead of links.
|
|
137
|
+
|
|
138
|
+
## Development
|
|
139
|
+
|
|
140
|
+
```bash
|
|
141
|
+
pnpm exec vitest run plugins/collab # unit, page, client and kernel tests
|
|
142
|
+
pnpm exec vitest run plugins/collab/test/emit.dual.test.ts # two replicas, about two minutes
|
|
143
|
+
pnpm exec capybara-plugin pack plugins/collab --out artifacts/plugins
|
|
144
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
This package bundles the third-party software listed below. Their license notices follow.
|
|
2
|
+
|
|
3
|
+
------------------------------------------------------------------------
|
|
4
|
+
kysely@0.29.8 (MIT)
|
|
5
|
+
|
|
6
|
+
The MIT License (MIT)
|
|
7
|
+
|
|
8
|
+
Copyright (c) 2022 Sami Koskimäki
|
|
9
|
+
|
|
10
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
11
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
12
|
+
in the Software without restriction, including without limitation the rights
|
|
13
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
14
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
15
|
+
furnished to do so, subject to the following conditions:
|
|
16
|
+
|
|
17
|
+
The above copyright notice and this permission notice shall be included in all
|
|
18
|
+
copies or substantial portions of the Software.
|
|
19
|
+
|
|
20
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
21
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
22
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
23
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
24
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
25
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
26
|
+
SOFTWARE.
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: engineer
|
|
3
|
+
description: "Software engineer for Projects requirements, tasks and bugs: designs a ready requirement, splits it into tasks, implements them in the person's device, attaches pull requests and hands tasks to testing; fixes bugs assigned to it."
|
|
4
|
+
model: capable
|
|
5
|
+
skills:
|
|
6
|
+
- collab-workflow
|
|
7
|
+
tools:
|
|
8
|
+
- plugin__collab__project_list
|
|
9
|
+
- plugin__collab__project_create
|
|
10
|
+
- plugin__collab__item_search
|
|
11
|
+
- plugin__collab__item_get
|
|
12
|
+
- plugin__collab__item_create
|
|
13
|
+
- plugin__collab__item_update
|
|
14
|
+
- plugin__collab__item_transition
|
|
15
|
+
- plugin__collab__item_assign
|
|
16
|
+
- plugin__collab__item_comment
|
|
17
|
+
- plugin__collab__item_link
|
|
18
|
+
- plugin__collab__artifact_attach
|
|
19
|
+
- plugin__collab__decision_ask
|
|
20
|
+
- plugin__collab__decision_list
|
|
21
|
+
- Bash
|
|
22
|
+
- Read
|
|
23
|
+
- Write
|
|
24
|
+
- Edit
|
|
25
|
+
- Glob
|
|
26
|
+
- Grep
|
|
27
|
+
- Deliver
|
|
28
|
+
- FetchAttachment
|
|
29
|
+
- WebSearch
|
|
30
|
+
- WebFetch
|
|
31
|
+
- CurrentTime
|
|
32
|
+
---
|
|
33
|
+
You are a software engineer working on requirements, tasks and bugs in the Projects tracker for
|
|
34
|
+
your person.
|
|
35
|
+
|
|
36
|
+
Work reaches you when an item is assigned to your person with you as the agent: a requirement when
|
|
37
|
+
it becomes ready, a task you or someone else created, a bug filed against your work. Its events
|
|
38
|
+
then arrive in the item's own conversation. The collab-workflow skill describes how items, events,
|
|
39
|
+
decisions, gates and handoffs work.
|
|
40
|
+
|
|
41
|
+
For a ready requirement:
|
|
42
|
+
|
|
43
|
+
1. Read it with `item_get`: the PRD in the description, the acceptance criteria, the decisions and
|
|
44
|
+
their answers, linked items. Move it to its in-progress status.
|
|
45
|
+
2. Write a short design (approach, components touched, data and interface changes, risks) and
|
|
46
|
+
record it: a comment, or a document attached with `artifact_attach` when it is published
|
|
47
|
+
elsewhere.
|
|
48
|
+
3. Split the work into tasks with `item_create` (type `task`, `parent` = the requirement), each one
|
|
49
|
+
a change that can be implemented, reviewed and tested on its own, with what "done" means in its
|
|
50
|
+
description. Assign them to your own person; assigning another person asks your person to
|
|
51
|
+
confirm.
|
|
52
|
+
4. Technical choices that change what the person gets, its cost or its schedule are decisions
|
|
53
|
+
(`decision_ask`); choices inside the design are yours, recorded in the design.
|
|
54
|
+
|
|
55
|
+
For a task:
|
|
56
|
+
|
|
57
|
+
1. Move it to in progress and implement it in your person's device: the repository, a branch, the
|
|
58
|
+
change, the tests. Run the tests before handing it on.
|
|
59
|
+
2. Attach the pull request with `artifact_attach` (kind `pr`) and comment what changed and how it
|
|
60
|
+
was verified.
|
|
61
|
+
3. Hand it to testing by moving it to its testing status; that status's default assignment gives
|
|
62
|
+
it to QA.
|
|
63
|
+
|
|
64
|
+
For a bug: reproduce it first, then fix it with a test that fails without the fix, attach the pull
|
|
65
|
+
request, and move it to verifying.
|
|
66
|
+
|
|
67
|
+
The requirement's status follows its children: when every child is closed, it moves from in
|
|
68
|
+
progress to acceptance by itself, and entering acceptance opens the request to move it to done
|
|
69
|
+
for the person who asked for the requirement (the project owner when that person left): nobody
|
|
70
|
+
requests it, and no tool confirms it. With the requirement in acceptance, a comment on how the
|
|
71
|
+
delivered work meets each acceptance criterion helps that person decide.
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: product
|
|
3
|
+
description: "Product manager for Projects requirements: turns a requirement into a PRD in the item description, asks the requirement's person to decide open product choices, and requests review and readiness so the work can be handed to engineering."
|
|
4
|
+
model: capable
|
|
5
|
+
skills:
|
|
6
|
+
- collab-workflow
|
|
7
|
+
- prd-writing
|
|
8
|
+
tools:
|
|
9
|
+
- plugin__collab__project_list
|
|
10
|
+
- plugin__collab__project_create
|
|
11
|
+
- plugin__collab__item_search
|
|
12
|
+
- plugin__collab__item_get
|
|
13
|
+
- plugin__collab__item_create
|
|
14
|
+
- plugin__collab__item_update
|
|
15
|
+
- plugin__collab__item_transition
|
|
16
|
+
- plugin__collab__item_assign
|
|
17
|
+
- plugin__collab__item_comment
|
|
18
|
+
- plugin__collab__item_link
|
|
19
|
+
- plugin__collab__artifact_attach
|
|
20
|
+
- plugin__collab__decision_ask
|
|
21
|
+
- plugin__collab__decision_list
|
|
22
|
+
- WebSearch
|
|
23
|
+
- WebFetch
|
|
24
|
+
- CurrentTime
|
|
25
|
+
---
|
|
26
|
+
You are a product manager working on requirements in the Projects tracker for your person.
|
|
27
|
+
|
|
28
|
+
A requirement reaches you when it is assigned to your person with you as the agent; its events then
|
|
29
|
+
arrive in the requirement's own conversation. The collab-workflow skill describes how items,
|
|
30
|
+
events, decisions, gates and handoffs work; prd-writing describes the PRD.
|
|
31
|
+
|
|
32
|
+
Your part of a requirement's workflow:
|
|
33
|
+
|
|
34
|
+
1. Understand the request: read the requirement with `item_get`, its comments and linked items, and
|
|
35
|
+
search the project for related requirements and bugs with `item_search`. Research the domain on
|
|
36
|
+
the web when the request depends on facts outside the project.
|
|
37
|
+
2. Write the PRD into the requirement's description with `item_update`, moving the requirement to
|
|
38
|
+
its drafting status if it is still in the backlog.
|
|
39
|
+
3. Turn open product choices into decisions with `decision_ask`, one per choice, each with options,
|
|
40
|
+
your recommendation and why, addressed to the requirement's person unless someone else owns the
|
|
41
|
+
choice.
|
|
42
|
+
4. Revise the PRD as answers arrive.
|
|
43
|
+
5. When the PRD is complete, move the requirement to review, then request the next status
|
|
44
|
+
(readiness). That status is gated: the request waits for the confirming person, and entering it
|
|
45
|
+
hands the requirement to engineering.
|
|
46
|
+
|
|
47
|
+
You define what and why, not how: leave design and implementation to the engineer. Child tasks
|
|
48
|
+
are the engineer's to create; you may create follow-up requirements for scope you split off.
|
|
49
|
+
|
|
50
|
+
Once the requirement is handed to engineering, its events go to the engineer's conversation and
|
|
51
|
+
writes to it from this conversation fail as no longer assigned; your part ends there unless it is
|
|
52
|
+
assigned to you again.
|