proagents 1.6.20 → 1.6.21
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/.proagents/custom-commands.yaml +0 -1
- package/.proagents/docs/command-details.md +1 -2
- package/.proagents/getting-started/ai-training-setup.md +0 -1
- package/.proagents/performance/README.md +59 -0
- package/.proagents/performance/bundle-analysis.md +375 -0
- package/.proagents/performance/load-testing.md +563 -0
- package/.proagents/performance/runtime-metrics.md +489 -0
- package/.proagents/performance/web-vitals.md +425 -0
- package/.proagents/proagents.config.yaml +0 -1
- package/.proagents/workflow-modes/entry-modes.md +1 -6
- package/lib/commands/init.js +57 -8
- package/package.json +1 -1
- package/.proagents/api-versioning/README.md +0 -257
- package/.proagents/api-versioning/changelog-template.md +0 -225
- package/.proagents/api-versioning/deprecation-workflow.md +0 -470
- package/.proagents/api-versioning/versioning-strategy.md +0 -291
- package/.proagents/automation/README.md +0 -38
- package/.proagents/automation/ai-behavior-rules.md +0 -339
- package/.proagents/automation/ai-prompt-injection.md +0 -331
- package/.proagents/automation/auto-decisions.md +0 -535
- package/.proagents/automation/decision-defaults.yaml +0 -317
- package/.proagents/cache/README.md +0 -110
- package/.proagents/cache/analysis-metadata.json +0 -76
- package/.proagents/cache/conventions.json +0 -125
- package/.proagents/cache/dependencies.json +0 -85
- package/.proagents/cache/features.json +0 -115
- package/.proagents/cache/patterns.json +0 -105
- package/.proagents/cache/schemas/conventions-schema.json +0 -138
- package/.proagents/cache/schemas/dependencies-schema.json +0 -95
- package/.proagents/cache/schemas/features-schema.json +0 -104
- package/.proagents/cache/schemas/metadata-schema.json +0 -83
- package/.proagents/cache/schemas/patterns-schema.json +0 -136
- package/.proagents/cache/schemas/structure-schema.json +0 -72
- package/.proagents/cache/structure.json +0 -109
- package/.proagents/checklists/README.md +0 -261
- package/.proagents/checklists/code-quality.md +0 -137
- package/.proagents/checklists/code-review.md +0 -148
- package/.proagents/checklists/pr-checklist.md +0 -78
- package/.proagents/checklists/pre-deployment.md +0 -132
- package/.proagents/checklists/pre-implementation.md +0 -80
- package/.proagents/checklists/testing.md +0 -120
- package/.proagents/checkpoints.json +0 -13
- package/.proagents/cicd/README.md +0 -338
- package/.proagents/cicd/azure-devops.md +0 -267
- package/.proagents/cicd/github-actions.md +0 -375
- package/.proagents/cicd/gitlab-ci.md +0 -278
- package/.proagents/cicd/jenkins.md +0 -317
- package/.proagents/collaboration/README.md +0 -143
- package/.proagents/collaboration/roles.md +0 -248
- package/.proagents/collaboration/sessions.md +0 -390
- package/.proagents/collaboration/sync.md +0 -358
- package/.proagents/cost/README.md +0 -48
- package/.proagents/cost/cost-template.md +0 -283
- package/.proagents/cost/estimation-framework.md +0 -287
- package/.proagents/database/README.md +0 -72
- package/.proagents/database/examples/001-create-users.sql +0 -129
- package/.proagents/database/examples/002-add-preferences.sql +0 -94
- package/.proagents/database/examples/003-add-index.sql +0 -105
- package/.proagents/database/examples/004-rename-column.sql +0 -122
- package/.proagents/database/examples/005-add-foreign-key.sql +0 -142
- package/.proagents/database/examples/006-data-migration.sql +0 -196
- package/.proagents/database/examples/007-drop-column.sql +0 -163
- package/.proagents/database/examples/README.md +0 -89
- package/.proagents/database/migration-workflow.md +0 -478
- package/.proagents/database/rollback-scripts.md +0 -487
- package/.proagents/database/safety-checks.md +0 -447
- package/.proagents/git/README.md +0 -68
- package/.proagents/git/branch-strategy.md +0 -164
- package/.proagents/git/commit-conventions.md +0 -241
- package/.proagents/git/pr-workflow.md +0 -286
- package/.proagents/git/rollback-procedures.md +0 -416
- package/.proagents/ide-integration/README.md +0 -124
- package/.proagents/ide-integration/cline-config.md +0 -429
- package/.proagents/ide-integration/continue-config.md +0 -380
- package/.proagents/ide-integration/cursor-rules.md +0 -280
- package/.proagents/ide-integration/github-copilot.md +0 -384
- package/.proagents/ide-integration/windsurf-rules.md +0 -314
- package/.proagents/integrations/README.md +0 -97
- package/.proagents/integrations/pm/README.md +0 -344
- package/.proagents/learning/README.md +0 -136
- package/.proagents/learning/adaptation.md +0 -305
- package/.proagents/learning/data-collection.md +0 -283
- package/.proagents/learning/implementation-guide.md +0 -865
- package/.proagents/learning/reports.md +0 -306
- package/.proagents/mcp/README.md +0 -133
- package/.proagents/mcp/context-providers.md +0 -442
- package/.proagents/mcp/server-config.md +0 -306
- package/.proagents/mcp/tools-definition.md +0 -513
- package/.proagents/pm-integration/README.md +0 -151
- package/.proagents/pm-integration/asana.md +0 -346
- package/.proagents/pm-integration/github-issues.md +0 -308
- package/.proagents/pm-integration/gitlab-issues.md +0 -482
- package/.proagents/pm-integration/jira.md +0 -364
- package/.proagents/pm-integration/linear.md +0 -409
- package/.proagents/pm-integration/notion.md +0 -275
- package/.proagents/pm-integration/sync-config.md +0 -533
- package/.proagents/pm-integration/trello.md +0 -159
- package/.proagents/rules/README.md +0 -179
- package/.proagents/rules/custom-rules-template.yaml +0 -286
- package/.proagents/rules/custom-rules.md +0 -754
- package/.proagents/rules/validation-rules-template.yaml +0 -517
- package/.proagents/runbooks/README.md +0 -219
- package/.proagents/runbooks/dependency-vulnerability.md +0 -505
- package/.proagents/runbooks/incident-response.md +0 -451
- package/.proagents/runbooks/performance-degradation.md +0 -584
- package/.proagents/runbooks/production-debugging.md +0 -489
- package/.proagents/sprints/README.md +0 -58
- package/.proagents/team/README.md +0 -256
- package/.proagents/team/code-ownership.md +0 -306
- package/.proagents/team/communication-templates.md +0 -441
- package/.proagents/team/handoff-protocol.md +0 -380
- package/.proagents/team/ide-setup/README.md +0 -103
- package/.proagents/team/ide-setup/cursor.md +0 -276
- package/.proagents/team/ide-setup/jetbrains.md +0 -330
- package/.proagents/team/ide-setup/neovim.md +0 -640
- package/.proagents/team/ide-setup/vscode.md +0 -348
- package/.proagents/team/onboarding.md +0 -278
- package/.proagents/time-tracking.json +0 -19
- package/.proagents/troubleshooting/README.md +0 -730
- package/.proagents/troubleshooting/ai-issues.md +0 -601
- package/.proagents/troubleshooting/workflow-issues.md +0 -571
|
@@ -1,409 +0,0 @@
|
|
|
1
|
-
# Linear Integration
|
|
2
|
-
|
|
3
|
-
Modern, fast integration with Linear for agile development teams.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Setup
|
|
8
|
-
|
|
9
|
-
### 1. Create API Key
|
|
10
|
-
|
|
11
|
-
1. Go to Linear Settings → API
|
|
12
|
-
2. Click "Create key"
|
|
13
|
-
3. Name it "ProAgents"
|
|
14
|
-
4. Copy the API key
|
|
15
|
-
|
|
16
|
-
### 2. Configure Connection
|
|
17
|
-
|
|
18
|
-
```yaml
|
|
19
|
-
# proagents.config.yaml
|
|
20
|
-
|
|
21
|
-
integrations:
|
|
22
|
-
linear:
|
|
23
|
-
enabled: true
|
|
24
|
-
api_key_env: "LINEAR_API_KEY"
|
|
25
|
-
|
|
26
|
-
# Team settings
|
|
27
|
-
team_id: "TEAM-123" # or team key
|
|
28
|
-
default_project: "Backend"
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
### 3. Set Environment Variable
|
|
32
|
-
|
|
33
|
-
```bash
|
|
34
|
-
export LINEAR_API_KEY="lin_api_xxxxx"
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
### 4. Verify Connection
|
|
38
|
-
|
|
39
|
-
```bash
|
|
40
|
-
proagents pm connect linear
|
|
41
|
-
proagents pm status
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## Configuration
|
|
47
|
-
|
|
48
|
-
```yaml
|
|
49
|
-
integrations:
|
|
50
|
-
linear:
|
|
51
|
-
enabled: true
|
|
52
|
-
api_key_env: "LINEAR_API_KEY"
|
|
53
|
-
|
|
54
|
-
# Team and project
|
|
55
|
-
team_id: "TEAM-123"
|
|
56
|
-
default_project: "Backend"
|
|
57
|
-
|
|
58
|
-
# Issue defaults
|
|
59
|
-
defaults:
|
|
60
|
-
state: "Backlog"
|
|
61
|
-
priority: 2 # 0=No priority, 1=Urgent, 2=High, 3=Medium, 4=Low
|
|
62
|
-
|
|
63
|
-
# Label mapping
|
|
64
|
-
labels:
|
|
65
|
-
feature: "feature"
|
|
66
|
-
bug: "bug"
|
|
67
|
-
refactor: "improvement"
|
|
68
|
-
proagents: "proagents-managed"
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## State Mapping
|
|
74
|
-
|
|
75
|
-
Map ProAgents phases to Linear states:
|
|
76
|
-
|
|
77
|
-
```yaml
|
|
78
|
-
integrations:
|
|
79
|
-
linear:
|
|
80
|
-
state_mapping:
|
|
81
|
-
# ProAgents phase: Linear state
|
|
82
|
-
init: "Backlog"
|
|
83
|
-
analysis: "In Progress"
|
|
84
|
-
requirements: "In Progress"
|
|
85
|
-
design: "In Progress"
|
|
86
|
-
planning: "In Progress"
|
|
87
|
-
implementation: "In Progress"
|
|
88
|
-
testing: "In Review"
|
|
89
|
-
review: "In Review"
|
|
90
|
-
documentation: "In Review"
|
|
91
|
-
deployment: "Done"
|
|
92
|
-
deployed: "Done"
|
|
93
|
-
|
|
94
|
-
# Custom states (if using custom workflow)
|
|
95
|
-
custom_states:
|
|
96
|
-
in_development: "state_uuid_1"
|
|
97
|
-
in_qa: "state_uuid_2"
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
---
|
|
101
|
-
|
|
102
|
-
## Auto-Actions
|
|
103
|
-
|
|
104
|
-
### On Feature Start
|
|
105
|
-
|
|
106
|
-
```yaml
|
|
107
|
-
integrations:
|
|
108
|
-
linear:
|
|
109
|
-
on_feature_start:
|
|
110
|
-
create_issue: true
|
|
111
|
-
|
|
112
|
-
template:
|
|
113
|
-
title: "{{feature_name}}"
|
|
114
|
-
description: |
|
|
115
|
-
## Description
|
|
116
|
-
{{feature_description}}
|
|
117
|
-
|
|
118
|
-
## Acceptance Criteria
|
|
119
|
-
{{acceptance_criteria}}
|
|
120
|
-
|
|
121
|
-
---
|
|
122
|
-
*Managed by ProAgents*
|
|
123
|
-
|
|
124
|
-
labels:
|
|
125
|
-
- "proagents"
|
|
126
|
-
- "{{entry_mode}}"
|
|
127
|
-
|
|
128
|
-
# Assign to current user
|
|
129
|
-
assign_to_me: true
|
|
130
|
-
```
|
|
131
|
-
|
|
132
|
-
### On Phase Change
|
|
133
|
-
|
|
134
|
-
```yaml
|
|
135
|
-
integrations:
|
|
136
|
-
linear:
|
|
137
|
-
on_phase_change:
|
|
138
|
-
update_state: true
|
|
139
|
-
add_comment: true
|
|
140
|
-
|
|
141
|
-
comment_template: |
|
|
142
|
-
**Phase**: {{current_phase}}
|
|
143
|
-
**Progress**: {{progress_percentage}}%
|
|
144
|
-
|
|
145
|
-
{{phase_summary}}
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
### On PR Created
|
|
149
|
-
|
|
150
|
-
```yaml
|
|
151
|
-
integrations:
|
|
152
|
-
linear:
|
|
153
|
-
on_pr_created:
|
|
154
|
-
# Linear auto-links PRs with issue ID in branch name
|
|
155
|
-
add_comment: true
|
|
156
|
-
|
|
157
|
-
comment_template: |
|
|
158
|
-
PR opened: [{{pr_title}}]({{pr_url}})
|
|
159
|
-
```
|
|
160
|
-
|
|
161
|
-
### On Feature Complete
|
|
162
|
-
|
|
163
|
-
```yaml
|
|
164
|
-
integrations:
|
|
165
|
-
linear:
|
|
166
|
-
on_feature_complete:
|
|
167
|
-
complete_issue: true
|
|
168
|
-
add_comment: true
|
|
169
|
-
|
|
170
|
-
comment_template: |
|
|
171
|
-
**Completed**
|
|
172
|
-
|
|
173
|
-
- Duration: {{total_duration}}
|
|
174
|
-
- Test Coverage: {{test_coverage}}%
|
|
175
|
-
- Files Changed: {{files_changed}}
|
|
176
|
-
```
|
|
177
|
-
|
|
178
|
-
---
|
|
179
|
-
|
|
180
|
-
## Cycle Integration
|
|
181
|
-
|
|
182
|
-
Integrate with Linear Cycles (Sprints):
|
|
183
|
-
|
|
184
|
-
```yaml
|
|
185
|
-
integrations:
|
|
186
|
-
linear:
|
|
187
|
-
cycles:
|
|
188
|
-
# Assign to current cycle
|
|
189
|
-
assign_to_current: true
|
|
190
|
-
|
|
191
|
-
# Or specify cycle
|
|
192
|
-
default_cycle: "cycle_uuid"
|
|
193
|
-
|
|
194
|
-
# Create cycle if not exists
|
|
195
|
-
auto_create: false
|
|
196
|
-
```
|
|
197
|
-
|
|
198
|
-
---
|
|
199
|
-
|
|
200
|
-
## Project Integration
|
|
201
|
-
|
|
202
|
-
```yaml
|
|
203
|
-
integrations:
|
|
204
|
-
linear:
|
|
205
|
-
projects:
|
|
206
|
-
# Map feature types to projects
|
|
207
|
-
mapping:
|
|
208
|
-
frontend: "Frontend"
|
|
209
|
-
backend: "Backend"
|
|
210
|
-
mobile: "Mobile"
|
|
211
|
-
infrastructure: "Infrastructure"
|
|
212
|
-
|
|
213
|
-
# Default project
|
|
214
|
-
default: "Backend"
|
|
215
|
-
|
|
216
|
-
# Auto-detect from file paths
|
|
217
|
-
auto_detect:
|
|
218
|
-
enabled: true
|
|
219
|
-
rules:
|
|
220
|
-
- path: "src/web/**"
|
|
221
|
-
project: "Frontend"
|
|
222
|
-
- path: "src/api/**"
|
|
223
|
-
project: "Backend"
|
|
224
|
-
- path: "src/mobile/**"
|
|
225
|
-
project: "Mobile"
|
|
226
|
-
```
|
|
227
|
-
|
|
228
|
-
---
|
|
229
|
-
|
|
230
|
-
## GraphQL Queries
|
|
231
|
-
|
|
232
|
-
Linear uses GraphQL. Custom queries:
|
|
233
|
-
|
|
234
|
-
```yaml
|
|
235
|
-
integrations:
|
|
236
|
-
linear:
|
|
237
|
-
queries:
|
|
238
|
-
# Find my issues
|
|
239
|
-
my_issues: |
|
|
240
|
-
query {
|
|
241
|
-
viewer {
|
|
242
|
-
assignedIssues(first: 50) {
|
|
243
|
-
nodes {
|
|
244
|
-
id
|
|
245
|
-
title
|
|
246
|
-
state { name }
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
# Find team issues
|
|
253
|
-
team_issues: |
|
|
254
|
-
query($teamId: String!) {
|
|
255
|
-
team(id: $teamId) {
|
|
256
|
-
issues(first: 100, filter: { state: { type: { eq: "started" } } }) {
|
|
257
|
-
nodes {
|
|
258
|
-
id
|
|
259
|
-
title
|
|
260
|
-
assignee { name }
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
---
|
|
268
|
-
|
|
269
|
-
## Bi-Directional Sync
|
|
270
|
-
|
|
271
|
-
Linear changes can trigger ProAgents actions:
|
|
272
|
-
|
|
273
|
-
```yaml
|
|
274
|
-
integrations:
|
|
275
|
-
linear:
|
|
276
|
-
bidirectional:
|
|
277
|
-
enabled: true
|
|
278
|
-
|
|
279
|
-
# When issue state changes in Linear
|
|
280
|
-
on_state_change:
|
|
281
|
-
# Update local feature status
|
|
282
|
-
update_feature: true
|
|
283
|
-
|
|
284
|
-
# State to action mapping
|
|
285
|
-
actions:
|
|
286
|
-
"Canceled": "pause_feature"
|
|
287
|
-
"Done": "mark_complete"
|
|
288
|
-
|
|
289
|
-
# When assigned in Linear
|
|
290
|
-
on_assignment:
|
|
291
|
-
notify_assignee: true
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
---
|
|
295
|
-
|
|
296
|
-
## Smart Linking
|
|
297
|
-
|
|
298
|
-
Auto-link issues by branch name:
|
|
299
|
-
|
|
300
|
-
```yaml
|
|
301
|
-
integrations:
|
|
302
|
-
linear:
|
|
303
|
-
smart_linking:
|
|
304
|
-
enabled: true
|
|
305
|
-
|
|
306
|
-
# Branch naming convention
|
|
307
|
-
branch_pattern: "^(?:feature|fix)/([A-Z]+-\\d+)"
|
|
308
|
-
|
|
309
|
-
# Auto-link on branch creation
|
|
310
|
-
auto_link: true
|
|
311
|
-
|
|
312
|
-
# Update issue when linked
|
|
313
|
-
on_link:
|
|
314
|
-
move_to_state: "In Progress"
|
|
315
|
-
add_label: "in-development"
|
|
316
|
-
```
|
|
317
|
-
|
|
318
|
-
---
|
|
319
|
-
|
|
320
|
-
## Webhooks
|
|
321
|
-
|
|
322
|
-
Set up real-time sync:
|
|
323
|
-
|
|
324
|
-
```yaml
|
|
325
|
-
integrations:
|
|
326
|
-
linear:
|
|
327
|
-
webhooks:
|
|
328
|
-
enabled: true
|
|
329
|
-
endpoint: "/webhooks/linear"
|
|
330
|
-
|
|
331
|
-
events:
|
|
332
|
-
- "Issue"
|
|
333
|
-
- "Comment"
|
|
334
|
-
- "IssueLabel"
|
|
335
|
-
|
|
336
|
-
# Webhook secret
|
|
337
|
-
secret_env: "LINEAR_WEBHOOK_SECRET"
|
|
338
|
-
```
|
|
339
|
-
|
|
340
|
-
---
|
|
341
|
-
|
|
342
|
-
## Commands
|
|
343
|
-
|
|
344
|
-
```bash
|
|
345
|
-
# Link to existing issue
|
|
346
|
-
proagents pm link TEAM-123
|
|
347
|
-
|
|
348
|
-
# Create new issue
|
|
349
|
-
proagents pm create --title "Feature name"
|
|
350
|
-
|
|
351
|
-
# Sync current feature
|
|
352
|
-
proagents pm sync
|
|
353
|
-
|
|
354
|
-
# List team issues
|
|
355
|
-
proagents pm list --state "In Progress"
|
|
356
|
-
|
|
357
|
-
# Search issues
|
|
358
|
-
proagents pm search "authentication"
|
|
359
|
-
```
|
|
360
|
-
|
|
361
|
-
---
|
|
362
|
-
|
|
363
|
-
## Example Workflow
|
|
364
|
-
|
|
365
|
-
```
|
|
366
|
-
1. Start feature linked to Linear issue
|
|
367
|
-
proagents feature start --link TEAM-456 "Implement OAuth"
|
|
368
|
-
|
|
369
|
-
2. Linear issue TEAM-456 moves to "In Progress"
|
|
370
|
-
|
|
371
|
-
3. Work through phases
|
|
372
|
-
- Each phase change updates Linear comment
|
|
373
|
-
|
|
374
|
-
4. PR created
|
|
375
|
-
- Linear auto-links PR (branch contains TEAM-456)
|
|
376
|
-
|
|
377
|
-
5. Feature completed
|
|
378
|
-
- TEAM-456 moves to "Done"
|
|
379
|
-
- Summary comment added
|
|
380
|
-
```
|
|
381
|
-
|
|
382
|
-
---
|
|
383
|
-
|
|
384
|
-
## Troubleshooting
|
|
385
|
-
|
|
386
|
-
### Connection Issues
|
|
387
|
-
|
|
388
|
-
```bash
|
|
389
|
-
# Test API connection
|
|
390
|
-
proagents pm test linear
|
|
391
|
-
|
|
392
|
-
# Check team access
|
|
393
|
-
proagents pm teams linear
|
|
394
|
-
```
|
|
395
|
-
|
|
396
|
-
### Common Errors
|
|
397
|
-
|
|
398
|
-
| Error | Solution |
|
|
399
|
-
|-------|----------|
|
|
400
|
-
| Invalid API key | Regenerate API key |
|
|
401
|
-
| Team not found | Check team ID/key |
|
|
402
|
-
| State not found | Verify state names match |
|
|
403
|
-
| Rate limited | Reduce sync frequency |
|
|
404
|
-
|
|
405
|
-
### Debug Mode
|
|
406
|
-
|
|
407
|
-
```bash
|
|
408
|
-
proagents pm sync --debug
|
|
409
|
-
```
|
|
@@ -1,275 +0,0 @@
|
|
|
1
|
-
# Notion Integration
|
|
2
|
-
|
|
3
|
-
Database and documentation integration with Notion.
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Setup
|
|
8
|
-
|
|
9
|
-
### 1. Create Integration
|
|
10
|
-
|
|
11
|
-
1. Go to [Notion Integrations](https://www.notion.so/my-integrations)
|
|
12
|
-
2. Create new integration
|
|
13
|
-
3. Copy the Internal Integration Token
|
|
14
|
-
4. Share your database with the integration
|
|
15
|
-
|
|
16
|
-
### 2. Configure Connection
|
|
17
|
-
|
|
18
|
-
```yaml
|
|
19
|
-
# proagents.config.yaml
|
|
20
|
-
|
|
21
|
-
integrations:
|
|
22
|
-
notion:
|
|
23
|
-
enabled: true
|
|
24
|
-
token_env: "NOTION_TOKEN"
|
|
25
|
-
|
|
26
|
-
# Database settings
|
|
27
|
-
databases:
|
|
28
|
-
features: "database-id-for-features"
|
|
29
|
-
documentation: "database-id-for-docs"
|
|
30
|
-
changelog: "database-id-for-changelog"
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### 3. Set Environment Variable
|
|
34
|
-
|
|
35
|
-
```bash
|
|
36
|
-
export NOTION_TOKEN="secret_xxx..."
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
### 4. Verify Connection
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
proagents pm connect notion
|
|
43
|
-
proagents pm status
|
|
44
|
-
```
|
|
45
|
-
|
|
46
|
-
---
|
|
47
|
-
|
|
48
|
-
## Database Schema
|
|
49
|
-
|
|
50
|
-
### Features Database
|
|
51
|
-
|
|
52
|
-
```yaml
|
|
53
|
-
integrations:
|
|
54
|
-
notion:
|
|
55
|
-
databases:
|
|
56
|
-
features:
|
|
57
|
-
id: "your-database-id"
|
|
58
|
-
|
|
59
|
-
# Property mapping
|
|
60
|
-
properties:
|
|
61
|
-
title: "Name" # Title property
|
|
62
|
-
status: "Status" # Select property
|
|
63
|
-
phase: "Phase" # Select property
|
|
64
|
-
assignee: "Assignee" # Person property
|
|
65
|
-
branch: "Branch" # Text property
|
|
66
|
-
pr_link: "PR" # URL property
|
|
67
|
-
start_date: "Start Date" # Date property
|
|
68
|
-
due_date: "Due Date" # Date property
|
|
69
|
-
tags: "Tags" # Multi-select property
|
|
70
|
-
|
|
71
|
-
# Status options
|
|
72
|
-
status_mapping:
|
|
73
|
-
init: "Not Started"
|
|
74
|
-
analysis: "In Progress"
|
|
75
|
-
implementation: "In Progress"
|
|
76
|
-
testing: "Testing"
|
|
77
|
-
review: "Review"
|
|
78
|
-
deployed: "Done"
|
|
79
|
-
```
|
|
80
|
-
|
|
81
|
-
### Documentation Database
|
|
82
|
-
|
|
83
|
-
```yaml
|
|
84
|
-
integrations:
|
|
85
|
-
notion:
|
|
86
|
-
databases:
|
|
87
|
-
documentation:
|
|
88
|
-
id: "docs-database-id"
|
|
89
|
-
|
|
90
|
-
properties:
|
|
91
|
-
title: "Title"
|
|
92
|
-
type: "Type" # Feature Doc, API Doc, etc.
|
|
93
|
-
feature: "Feature" # Relation to features
|
|
94
|
-
status: "Status"
|
|
95
|
-
last_updated: "Last Updated"
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
---
|
|
99
|
-
|
|
100
|
-
## Auto-Sync Features
|
|
101
|
-
|
|
102
|
-
### On Feature Start
|
|
103
|
-
|
|
104
|
-
```yaml
|
|
105
|
-
integrations:
|
|
106
|
-
notion:
|
|
107
|
-
on_feature_start:
|
|
108
|
-
# Create page in features database
|
|
109
|
-
create_page:
|
|
110
|
-
database: "features"
|
|
111
|
-
properties:
|
|
112
|
-
Name: "{{feature_name}}"
|
|
113
|
-
Status: "In Progress"
|
|
114
|
-
Phase: "Analysis"
|
|
115
|
-
Assignee: "{{user}}"
|
|
116
|
-
"Start Date": "{{today}}"
|
|
117
|
-
Tags: ["proagents", "{{entry_mode}}"]
|
|
118
|
-
|
|
119
|
-
# Create documentation page
|
|
120
|
-
create_doc:
|
|
121
|
-
database: "documentation"
|
|
122
|
-
template: "feature-doc-template"
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
### On Phase Change
|
|
126
|
-
|
|
127
|
-
```yaml
|
|
128
|
-
integrations:
|
|
129
|
-
notion:
|
|
130
|
-
on_phase_change:
|
|
131
|
-
update_page:
|
|
132
|
-
properties:
|
|
133
|
-
Phase: "{{current_phase}}"
|
|
134
|
-
|
|
135
|
-
# Add to page content
|
|
136
|
-
append_block:
|
|
137
|
-
type: "callout"
|
|
138
|
-
content: |
|
|
139
|
-
**Phase Update**: {{previous_phase}} → {{current_phase}}
|
|
140
|
-
{{phase_summary}}
|
|
141
|
-
```
|
|
142
|
-
|
|
143
|
-
### On Feature Complete
|
|
144
|
-
|
|
145
|
-
```yaml
|
|
146
|
-
integrations:
|
|
147
|
-
notion:
|
|
148
|
-
on_feature_complete:
|
|
149
|
-
update_page:
|
|
150
|
-
properties:
|
|
151
|
-
Status: "Done"
|
|
152
|
-
Phase: "Deployed"
|
|
153
|
-
|
|
154
|
-
# Update documentation
|
|
155
|
-
update_doc:
|
|
156
|
-
add_section: "Implementation Details"
|
|
157
|
-
content: "{{implementation_summary}}"
|
|
158
|
-
|
|
159
|
-
# Add to changelog
|
|
160
|
-
add_changelog:
|
|
161
|
-
database: "changelog"
|
|
162
|
-
properties:
|
|
163
|
-
Title: "{{feature_name}} Released"
|
|
164
|
-
Date: "{{today}}"
|
|
165
|
-
Type: "Feature"
|
|
166
|
-
```
|
|
167
|
-
|
|
168
|
-
---
|
|
169
|
-
|
|
170
|
-
## Documentation Sync
|
|
171
|
-
|
|
172
|
-
### Sync Project Docs to Notion
|
|
173
|
-
|
|
174
|
-
```yaml
|
|
175
|
-
integrations:
|
|
176
|
-
notion:
|
|
177
|
-
documentation_sync:
|
|
178
|
-
enabled: true
|
|
179
|
-
|
|
180
|
-
# Sync these docs to Notion
|
|
181
|
-
sync_paths:
|
|
182
|
-
- source: "docs/architecture.md"
|
|
183
|
-
notion_page: "Architecture"
|
|
184
|
-
|
|
185
|
-
- source: "docs/api/*.md"
|
|
186
|
-
notion_database: "documentation"
|
|
187
|
-
type: "API Doc"
|
|
188
|
-
|
|
189
|
-
# Sync frequency
|
|
190
|
-
frequency: "on_change" # or "daily", "manual"
|
|
191
|
-
```
|
|
192
|
-
|
|
193
|
-
### Sync Notion to Local
|
|
194
|
-
|
|
195
|
-
```yaml
|
|
196
|
-
integrations:
|
|
197
|
-
notion:
|
|
198
|
-
documentation_sync:
|
|
199
|
-
# Pull from Notion
|
|
200
|
-
pull:
|
|
201
|
-
enabled: true
|
|
202
|
-
pages:
|
|
203
|
-
- notion_page: "Design Guidelines"
|
|
204
|
-
local_path: "docs/design-guidelines.md"
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
---
|
|
208
|
-
|
|
209
|
-
## Queries and Filters
|
|
210
|
-
|
|
211
|
-
### Query Features
|
|
212
|
-
|
|
213
|
-
```bash
|
|
214
|
-
# List features by status
|
|
215
|
-
proagents pm list --status "In Progress"
|
|
216
|
-
|
|
217
|
-
# Query with filter
|
|
218
|
-
proagents pm query --filter "Phase equals Testing"
|
|
219
|
-
```
|
|
220
|
-
|
|
221
|
-
### Filter Configuration
|
|
222
|
-
|
|
223
|
-
```yaml
|
|
224
|
-
integrations:
|
|
225
|
-
notion:
|
|
226
|
-
queries:
|
|
227
|
-
my_features:
|
|
228
|
-
database: "features"
|
|
229
|
-
filter:
|
|
230
|
-
property: "Assignee"
|
|
231
|
-
people:
|
|
232
|
-
contains: "{{user_id}}"
|
|
233
|
-
|
|
234
|
-
active_features:
|
|
235
|
-
database: "features"
|
|
236
|
-
filter:
|
|
237
|
-
and:
|
|
238
|
-
- property: "Status"
|
|
239
|
-
select:
|
|
240
|
-
does_not_equal: "Done"
|
|
241
|
-
- property: "Tags"
|
|
242
|
-
multi_select:
|
|
243
|
-
contains: "proagents"
|
|
244
|
-
```
|
|
245
|
-
|
|
246
|
-
---
|
|
247
|
-
|
|
248
|
-
## Commands
|
|
249
|
-
|
|
250
|
-
```bash
|
|
251
|
-
# Link to existing page
|
|
252
|
-
proagents pm link --page "page-id"
|
|
253
|
-
|
|
254
|
-
# Create feature page
|
|
255
|
-
proagents pm create --title "Feature name"
|
|
256
|
-
|
|
257
|
-
# Update status
|
|
258
|
-
proagents pm update --status "In Review"
|
|
259
|
-
|
|
260
|
-
# Sync documentation
|
|
261
|
-
proagents pm sync-docs
|
|
262
|
-
|
|
263
|
-
# Query features
|
|
264
|
-
proagents pm query --filter "Status = In Progress"
|
|
265
|
-
```
|
|
266
|
-
|
|
267
|
-
---
|
|
268
|
-
|
|
269
|
-
## Best Practices
|
|
270
|
-
|
|
271
|
-
1. **Use Templates**: Create Notion templates for consistency
|
|
272
|
-
2. **Relations**: Link features to documentation pages
|
|
273
|
-
3. **Views**: Create filtered views for different needs
|
|
274
|
-
4. **Automation**: Use Notion automations alongside ProAgents
|
|
275
|
-
5. **Backup**: Notion changes are tracked, but keep local backups
|