You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix --base flag, duplicate docs, and silent base branch failures
- Apply --base flag override after baseBranch is determined from PR metadata or git symbolic-ref
- Consolidate duplicate Skills and Cursor Skills doc sections into single Skills section
- Verify base branch exists before diffing; try origin/branch fallback and exit with clear error if not found
Copy file name to clipboardExpand all lines: docs/agent-setup.md
+20-62Lines changed: 20 additions & 62 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,17 +30,19 @@ Execute a planning document and iteratively refine the implementation until it p
30
30
31
31
## Skills
32
32
33
-
Skills are defined in `.cursor/skills/` and are automatically invoked by Cursor when relevant. They can also be referenced from commands via `@.cursor/skills/<name>/SKILL.md`.
33
+
Skills are defined in `.cursor/skills/` and provide reusable workflows that commands and other skills can invoke. They are automatically invoked by Cursor when relevant and can also be referenced from commands via `@.cursor/skills/<name>/SKILL.md`.
34
34
35
35
### debug-edge
36
36
37
37
Compile, launch, and debug the Edge wallet app on an iOS simulator.
38
38
39
39
**Prerequisites**: Xcode, working directory `edge-react-gui`, MCP servers `xcodebuild` and `mobile-mcp`
40
40
41
-
**Workflow**: Install deps → Clean iOS → Prepare iOS → Start Metro → Build and launch → Login if needed
41
+
**Workflow**: Install deps → Clean iOS build artifacts → Prepare iOS → Clean Xcode build → Start Metro bundler → Build and launch app → Log into test account if needed
42
42
43
-
**Tip**: For plugin repo debugging (edge-core-js, edge-currency-accountbased, edge-exchange-plugins, edge-currency-plugins), use `log.warn()` instead of `console.log` to see output in Metro logs.
43
+
**Tip**: For plugin repo debugging (edge-core-js, edge-currency-accountbased, edge-exchange-plugins, edge-currency-plugins), use `log.warn()` instead of `console.log` to see output in Metro logs. Enable the corresponding `DEBUG_*` flag in `env.json` and run `yarn start` in the plugin repo for hot-reload.
44
+
45
+
---
44
46
45
47
### fix-code
46
48
@@ -52,46 +54,6 @@ Implement fixes from a plan document by editing code.
52
54
53
55
**Constraints**: Does not commit or push. Leaves changes unstaged for user review.
54
56
55
-
### fix-pr
56
-
57
-
Address reviewer comments on a GitHub pull request.
58
-
59
-
**Usage**: Provide a GitHub PR URL or number.
60
-
61
-
**Workflow**: Collect reviewer comments → Create fix plan → Pause for user iteration → Implement fixes with fixup commits → Push with `--force-with-lease`
62
-
63
-
**Constraints**: Does not auto-squash. Leaves fixup commits visible for reviewer.
64
-
65
-
### package-deps
66
-
67
-
Package local dependency repos and link them to edge-react-gui for testing.
68
-
69
-
**Usage**: Specify dependency repos to package.
70
-
71
-
**Workflow**: `npm pack` → Rename with UTC timestamp → Copy to edge-react-gui → Update `package.json` reference
72
-
73
-
### review-code
74
-
75
-
Review code changes for quality and convention compliance.
76
-
77
-
**Usage**: Provide a GitHub PR URL, PR number, local branch name, or "current branch".
78
-
79
-
**Workflow**: Checkout code → Get diff → Launch review subagents (`review-react`, `review-errors`, `review-state`, etc.) → Compile findings → Save to `/tmp` → For PRs: submit inline comments via GitHub MCP
80
-
81
-
---
82
-
83
-
## Cursor Skills
84
-
85
-
Skills are defined in `.cursor/skills/` and provide reusable workflows that commands and other skills can invoke. They are also surfaced to the agent automatically and can be triggered directly.
86
-
87
-
### review-code
88
-
89
-
Review code changes for quality and convention compliance. Supports both GitHub pull requests and local branches.
90
-
91
-
**Usage**: Provide a GitHub PR URL, PR number, local branch name, or "current branch".
92
-
93
-
**Workflow**: Checkout code → Detect fork vs internal branch → Get diff → Launch review subagents in parallel (`review-react`, `review-errors`, `review-state`, `review-async`, `review-cleaners`, `review-code-quality`, `review-comments`, `review-strings`, `review-tests`, `review-pr`, `review-servers`, `review-repo`) → Compile findings into Critical Issues / Warnings / Suggestions → Save review to `/tmp` → For PRs: submit inline comments via GitHub
94
-
95
57
---
96
58
97
59
### fix-pr
@@ -106,41 +68,37 @@ Address reviewer comments on a GitHub pull request.
106
68
107
69
---
108
70
109
-
### fix-code
71
+
### gh-review
110
72
111
-
Implement fixes from a plan document by editing code.
73
+
Orchestrate an interactive GitHub PR review session using the `gh` CLI.
112
74
113
-
**Usage**: Provide a plan document path (typically generated by `fix-pr` or `review-code`).
75
+
**Prerequisites**: `gh` CLI installed and authenticated
114
76
115
-
**Workflow**: Parse plan → Edit files → Run `yarn precommit` → Present summary
77
+
**Usage**: Provide a PR reference (URL, number, or "current PR") and comment instructions.
116
78
117
-
**Constraints**: Does not commit or push. Leaves changes unstaged for user review.
79
+
**Workflow**: Start or resume a pending review → Add inline comments interactively (single-line or multi-line) via GraphQL API → Present summary of all comments → Submit only after explicit user confirmation as APPROVE, COMMENT, or REQUEST_CHANGES
118
80
119
-
---
81
+
**Key detail**: Uses GraphQL `addPullRequestReviewThread` for incremental comments because the REST API returns 422 when a pending review already exists.
120
82
121
-
### debug-edge
83
+
---
122
84
123
-
Compile, launch, and debug the Edge wallet app on an iOS simulator.
85
+
### package-deps
124
86
125
-
**Prerequisites**: Xcode, working directory `edge-react-gui`, MCP servers `xcodebuild` and `mobile-mcp`
87
+
Package local dependency repos and link them to edge-react-gui for testing.
126
88
127
-
**Workflow**: Install deps → Clean iOS build artifacts → Prepare iOS → Clean Xcode build → Start Metro bundler → Build and launch app → Log into test account if needed
89
+
**Usage**: Specify dependency repos to package.
128
90
129
-
**Tip**: For plugin repo debugging (edge-core-js, edge-currency-accountbased, edge-exchange-plugins, edge-currency-plugins), use `log.warn()` instead of `console.log` to see output in Metro logs. Enable the corresponding `DEBUG_*` flag in `env.json`and run `yarn start` in the plugin repo for hot-reload.
91
+
**Workflow**: `npm pack` → Rename with UTC timestamp → Copy to edge-react-gui → Update `package.json`reference
130
92
131
93
---
132
94
133
-
### gh-review
134
-
135
-
Orchestrate an interactive GitHub PR review session using the `gh` CLI.
136
-
137
-
**Prerequisites**: `gh` CLI installed and authenticated
95
+
### review-code
138
96
139
-
**Usage**: Provide a PR reference (URL, number, or "current PR") and comment instructions.
97
+
Review code changes for quality and convention compliance. Supports both GitHub pull requests and local branches.
140
98
141
-
**Workflow**: Start or resume a pending review → Add inline comments interactively (single-line or multi-line) via GraphQL API → Present summary of all comments → Submit only after explicit user confirmation as APPROVE, COMMENT, or REQUEST_CHANGES
99
+
**Usage**: Provide a GitHub PR URL, PR number, local branch name, or "current branch".
142
100
143
-
**Key detail**: Uses GraphQL `addPullRequestReviewThread` for incremental comments because the REST API returns 422 when a pending review already exists.
101
+
**Workflow**: Checkout code → Detect fork vs internal branch → Get diff → Launch review subagents in parallel (`review-react`, `review-errors`, `review-state`, `review-async`, `review-cleaners`, `review-code-quality`, `review-comments`, `review-strings`, `review-tests`, `review-pr`, `review-servers`, `review-repo`) → Compile findings into Critical Issues / Warnings / Suggestions → Save review to `/tmp` → For PRs: submit inline comments via GitHub
0 commit comments