@sentry/junior-linear 0.18.0
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/LICENSE +201 -0
- package/README.md +32 -0
- package/package.json +13 -0
- package/plugin.yaml +10 -0
- package/skills/linear/SKILL.md +65 -0
- package/skills/linear/references/api-surface.md +74 -0
- package/skills/linear/references/common-use-cases.md +70 -0
- package/skills/linear/references/issue-writing.md +46 -0
- package/skills/linear/references/troubleshooting-workarounds.md +19 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright [yyyy] [name of copyright owner]
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# @sentry/junior-linear
|
|
2
|
+
|
|
3
|
+
`@sentry/junior-linear` adds Linear issue workflows to Junior through Linear's hosted MCP server.
|
|
4
|
+
|
|
5
|
+
Install it alongside `@sentry/junior`:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm add @sentry/junior @sentry/junior-linear
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Then register the plugin package in `juniorNitro(...)`:
|
|
12
|
+
|
|
13
|
+
```ts title="nitro.config.ts"
|
|
14
|
+
juniorNitro({
|
|
15
|
+
pluginPackages: ["@sentry/junior-linear"],
|
|
16
|
+
});
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
This package does not require a shared `LINEAR_API_KEY` or a custom OAuth app for the default setup. Each user connects their own Linear account the first time Junior calls a Linear MCP tool. Junior sends the authorization link privately and resumes the same Slack thread automatically after the user authorizes.
|
|
20
|
+
|
|
21
|
+
The package is designed for ticket-centric work: finding issues, creating issues, updating fields, adding comments, and moving work through the normal Linear workflow without leaving Slack.
|
|
22
|
+
|
|
23
|
+
Optional: set channel defaults when a Slack thread usually routes work to the same Linear destination:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
jr-rpc config set linear.team Platform
|
|
27
|
+
jr-rpc config set linear.project "Cross-team reliability"
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
These defaults are only fallbacks. If the user names a different team or project in the request, Junior should follow the explicit request instead.
|
|
31
|
+
|
|
32
|
+
Full setup guide: https://junior.sentry.dev/extend/linear-plugin/
|
package/package.json
ADDED
package/plugin.yaml
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: linear
|
|
3
|
+
description: Manage Linear issues through Linear's hosted MCP server. Use when users ask to create a Linear ticket, update a Linear issue, add a Linear comment, move work between states, assign work, or look up Linear issue, team, or project details from Slack context.
|
|
4
|
+
uses-config: linear.team linear.project
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Linear Operations
|
|
8
|
+
|
|
9
|
+
Use this skill for Linear issue workflows in the harness.
|
|
10
|
+
|
|
11
|
+
## Reference loading
|
|
12
|
+
|
|
13
|
+
Load references conditionally based on the request:
|
|
14
|
+
|
|
15
|
+
| Need | Read |
|
|
16
|
+
| ------------------------------------------------ | -------------------------------------------------------------------------------------- |
|
|
17
|
+
| Any Linear operation | [references/api-surface.md](references/api-surface.md) |
|
|
18
|
+
| Create, update, comment, assign, or state change | [references/common-use-cases.md](references/common-use-cases.md), [references/issue-writing.md](references/issue-writing.md) |
|
|
19
|
+
| Auth issues, ambiguity, or tool failures | [references/troubleshooting-workarounds.md](references/troubleshooting-workarounds.md) |
|
|
20
|
+
|
|
21
|
+
## Workflow
|
|
22
|
+
|
|
23
|
+
1. Resolve the operation and target:
|
|
24
|
+
|
|
25
|
+
- Determine whether the request is read-only inspection, issue creation, comment, field update, assignment, or state transition.
|
|
26
|
+
- Prefer explicit issue identifiers, issue URLs, project names, team names, or assignees when the user provides them.
|
|
27
|
+
- When the user did not specify a destination, treat `linear.team` and `linear.project` conversation config as optional defaults. Explicit user input always wins over config.
|
|
28
|
+
- Only set or change `linear.team` and `linear.project` when the user explicitly asks to store a default for this conversation or channel.
|
|
29
|
+
- For issue creation, resolve the target team before drafting because every Linear issue belongs to a single team.
|
|
30
|
+
- If `linear.project` is configured, use it as the default project only when the request does not name a different project and the project fits the current task.
|
|
31
|
+
- If the request refers to an existing Linear item indirectly, inspect the current thread context for the previously mentioned issue key or URL before asking the user to restate it.
|
|
32
|
+
- Ask one concise follow-up only when a write is blocked after considering both explicit user input and any configured defaults, such as multiple plausible teams, no clear target issue, or no valid team for a new issue.
|
|
33
|
+
|
|
34
|
+
2. Use the active Linear MCP tools:
|
|
35
|
+
|
|
36
|
+
- `loadSkill` returns `available_tools` for this skill, including the exact `tool_name` values and input schemas exposed in this turn.
|
|
37
|
+
- Call those exact tool names directly. Use `searchTools` only if you need to rediscover or filter the active Linear tools later in the turn.
|
|
38
|
+
- Prefer a short read/search step before mutating when you need to confirm the existing issue, team, project, or workflow state.
|
|
39
|
+
- For create/update operations, classify the work as a `bug`, `feature`, or `task` and shape the title/body accordingly.
|
|
40
|
+
- For issue creation, ground the ticket in the actual engineering problem:
|
|
41
|
+
- summarize the problem, impact, and expected outcome from the Slack thread
|
|
42
|
+
- preserve relevant URLs already present in the conversation, such as Sentry, GitHub, docs, or reproduction links
|
|
43
|
+
- translate Slack-specific phrasing into product or engineering language
|
|
44
|
+
- remove usernames, channel names, slash commands, and session chatter unless the user explicitly wants them preserved
|
|
45
|
+
- When setting optional fields, stay literal:
|
|
46
|
+
- use the team's actual workflow states instead of assuming generic names like `Todo` or `In Progress`
|
|
47
|
+
- use only Linear's standard priority levels: `low`, `medium`, `high`, `urgent`
|
|
48
|
+
- set project, labels, cycle, estimate, or assignee only when the user asked for them or the thread makes them clear
|
|
49
|
+
- For updates, prefer partial changes over full rewrites. Fetch current issue state first if the mutation could overwrite structured fields or duplicate an existing comment.
|
|
50
|
+
- Check for duplicates silently before creating a new issue when the request appears related to existing work.
|
|
51
|
+
- When the thread clearly indicates the work originated in Slack, mention that succinctly in the Linear ticket or comment if it improves provenance, but do not paste large thread transcripts.
|
|
52
|
+
|
|
53
|
+
3. Report the result:
|
|
54
|
+
|
|
55
|
+
- Return the canonical Linear issue URL or key and summarize what changed.
|
|
56
|
+
- Report issue type when you created a new issue and it materially clarifies the outcome.
|
|
57
|
+
- Keep routine tool chatter silent. Do not narrate each MCP search or mutation step.
|
|
58
|
+
|
|
59
|
+
## Guardrails
|
|
60
|
+
|
|
61
|
+
- Reuse or update an existing Linear issue when it is clearly the same work instead of creating a duplicate.
|
|
62
|
+
- Do not present guesses as facts. If the thread leaves an important detail uncertain, label it as an assumption in the Linear content.
|
|
63
|
+
- Prefer concise, durable ticket text over verbatim Slack quotes or long transcript dumps.
|
|
64
|
+
- Do not invent team-specific workflow names, labels, or estimate values without first confirming they exist.
|
|
65
|
+
- If Linear authorization is required, let the MCP OAuth flow pause and resume the thread automatically instead of asking the user to handle credentials manually.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# API Surface
|
|
2
|
+
|
|
3
|
+
Use this reference for any Linear operation.
|
|
4
|
+
|
|
5
|
+
## Runtime contract
|
|
6
|
+
|
|
7
|
+
- `loadSkill` returns `available_tools` for this skill, including the exact Linear MCP `tool_name` values exposed in the current turn.
|
|
8
|
+
- Call those exact `tool_name` values directly.
|
|
9
|
+
- Use `searchTools` only when you need to rediscover or filter the active Linear tools later in the same turn.
|
|
10
|
+
- Do not hardcode raw Linear MCP tool names in advance. Tool discovery is part of the workflow.
|
|
11
|
+
- Return the canonical Linear issue key or URL after successful writes.
|
|
12
|
+
|
|
13
|
+
## Provider capabilities
|
|
14
|
+
|
|
15
|
+
Linear's hosted MCP server is intended for authenticated remote MCP access to Linear data.
|
|
16
|
+
The current public docs describe support for finding, creating, and updating objects such as issues, projects, and comments.
|
|
17
|
+
|
|
18
|
+
## Linear issue model constraints
|
|
19
|
+
|
|
20
|
+
- Every issue belongs to exactly one team.
|
|
21
|
+
- A new issue requires a title and a status; all other properties are optional.
|
|
22
|
+
- Workflow states are team-specific. The common default order is `Backlog > Todo > In Progress > Done > Canceled`, but teams can customize names and ordering.
|
|
23
|
+
- Priority is optional and limited to `low`, `medium`, `high`, or `urgent`.
|
|
24
|
+
- Labels can be workspace-scoped or team-scoped.
|
|
25
|
+
- Estimates are optional and team-configured.
|
|
26
|
+
|
|
27
|
+
## Operation patterns
|
|
28
|
+
|
|
29
|
+
| Intent | Minimum tool pattern |
|
|
30
|
+
| -------------------- | ---------------------------------------------------------------------------------------------------------------- |
|
|
31
|
+
| Inspect an issue | Resolve the issue by key, URL, or search query, then fetch current state before answering. |
|
|
32
|
+
| Create an issue | Confirm the team first, then create the issue with grounded title/body content and only the optional fields you can justify. |
|
|
33
|
+
| Update fields | Fetch current issue state first, then mutate only the requested fields. |
|
|
34
|
+
| Add a comment | Resolve the exact issue first, then add a concise comment with durable links and next steps. |
|
|
35
|
+
| Move state or assign | Read the current issue and team workflow first when state, workflow, or assignee ambiguity could cause the wrong mutation. |
|
|
36
|
+
| Check for duplicates | Search for an existing matching issue before opening a new one when the request appears related to ongoing work. |
|
|
37
|
+
|
|
38
|
+
## Config helpers
|
|
39
|
+
|
|
40
|
+
Use these commands only when the user explicitly asks to inspect or store Linear defaults for the current conversation/channel.
|
|
41
|
+
|
|
42
|
+
Resolve team default:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
jr-rpc config get linear.team
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Set team default:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
jr-rpc config set linear.team Platform
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Resolve project default:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
jr-rpc config get linear.project
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Set project default:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
jr-rpc config set linear.project "Cross-team reliability"
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
## Content expectations
|
|
67
|
+
|
|
68
|
+
- Translate Slack-thread wording into stable product or engineering language.
|
|
69
|
+
- Preserve material links already present in the conversation, such as Sentry, GitHub, docs, repro, or dashboard URLs.
|
|
70
|
+
- If the active MCP tool exposes structured link attachments, prefer those over burying important URLs only inside the prose body.
|
|
71
|
+
- Keep provenance concise. Mention Slack origin only when it helps future readers understand why the issue exists.
|
|
72
|
+
- Treat team, status, labels, estimate, cycle, and project as structured properties, not prose-only body content, when the MCP tool exposes them and the values are actually known.
|
|
73
|
+
- Prefer partial updates over full rewrites.
|
|
74
|
+
- Label assumptions clearly when the thread leaves important details uncertain.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
# Common Use Cases
|
|
2
|
+
|
|
3
|
+
Use these patterns to shape concrete Linear requests.
|
|
4
|
+
|
|
5
|
+
## 1. Create a bug from a Slack incident thread
|
|
6
|
+
|
|
7
|
+
- Summarize the broken behavior, impact, and expected behavior.
|
|
8
|
+
- Resolve the right team before creating because Linear issues cannot be created without one.
|
|
9
|
+
- If the thread does not name a destination, use `linear.team` and `linear.project` channel defaults before asking a follow-up.
|
|
10
|
+
- Preserve relevant Sentry, GitHub, replay, trace, or dashboard links from the thread.
|
|
11
|
+
- Use a durable title that describes the engineering problem rather than the Slack conversation.
|
|
12
|
+
|
|
13
|
+
## 2. Create a follow-up task from a debugging thread
|
|
14
|
+
|
|
15
|
+
- Convert the thread into a scoped task when the work is cleanup, hardening, docs, or instrumentation rather than a production bug.
|
|
16
|
+
- Keep the body focused on the desired outcome and concrete next step.
|
|
17
|
+
- Set project, cycle, or assignee only when the destination is already clear from the thread.
|
|
18
|
+
|
|
19
|
+
## 3. Search for an existing issue before opening a new one
|
|
20
|
+
|
|
21
|
+
- Search by issue key when present.
|
|
22
|
+
- Otherwise search by the core problem statement, feature name, or affected subsystem.
|
|
23
|
+
- Reuse the existing issue when the work is clearly the same and add context there instead of creating a duplicate.
|
|
24
|
+
|
|
25
|
+
## 4. Add a comment with new evidence
|
|
26
|
+
|
|
27
|
+
- Attach fresh context such as a repro step, stack trace summary, rollout note, or supporting URL.
|
|
28
|
+
- Avoid repeating the entire thread when a short comment plus links is enough.
|
|
29
|
+
|
|
30
|
+
## 5. Move work through the workflow
|
|
31
|
+
|
|
32
|
+
- Resolve the current issue first.
|
|
33
|
+
- Read the team's actual workflow states first if the requested move uses category language like `started`, `done`, or `canceled` rather than an exact state name.
|
|
34
|
+
- Update state only after confirming the target issue and intended transition.
|
|
35
|
+
- Mention the reason for the transition when it is not obvious from the issue history.
|
|
36
|
+
|
|
37
|
+
## 6. Reassign work or change ownership
|
|
38
|
+
|
|
39
|
+
- Resolve the issue and confirm the target assignee when names are ambiguous.
|
|
40
|
+
- Keep the mutation small. Do not rewrite unrelated fields.
|
|
41
|
+
- Preserve the current project, labels, and workflow state unless the user asked to change them too.
|
|
42
|
+
|
|
43
|
+
## 7. Tighten an existing issue description
|
|
44
|
+
|
|
45
|
+
- Fetch the current issue before editing.
|
|
46
|
+
- Preserve existing accepted context, then add missing impact, reproduction, or expected outcome details from the thread.
|
|
47
|
+
- Avoid overwriting structured content unless the user explicitly asks for a rewrite.
|
|
48
|
+
|
|
49
|
+
## 8. Create a ticket with Slack provenance but not Slack noise
|
|
50
|
+
|
|
51
|
+
- Mention that the work originated from a Slack discussion only when that context helps future readers.
|
|
52
|
+
- Strip usernames, channel references, slash commands, and conversational filler unless the user explicitly wants them preserved.
|
|
53
|
+
|
|
54
|
+
## 9. Set priority, labels, or estimate from thread context
|
|
55
|
+
|
|
56
|
+
- Use only Linear's standard priority levels: `low`, `medium`, `high`, `urgent`.
|
|
57
|
+
- Reuse existing labels when the thread makes the intended label clear; do not invent lookalike labels casually.
|
|
58
|
+
- Set an estimate only when the value is explicit or already established in the team context, since estimate scales are team-configured.
|
|
59
|
+
|
|
60
|
+
## 10. Mark work as a duplicate
|
|
61
|
+
|
|
62
|
+
- Search for the canonical destination issue first.
|
|
63
|
+
- If the MCP tool supports duplicate relationships directly, use that instead of only posting a comment.
|
|
64
|
+
- If the workflow exposes a dedicated duplicate status, prefer it; otherwise expect duplicate handling to land in the team's canceled category.
|
|
65
|
+
|
|
66
|
+
## 11. When a user asks to set channel defaults for a Linear-heavy Slack thread
|
|
67
|
+
|
|
68
|
+
- Use `jr-rpc config set linear.team <team name or key>` when the user explicitly asks to store a team default and the channel consistently routes new work to the same team.
|
|
69
|
+
- Use `jr-rpc config set linear.project <project name>` when the user explicitly asks to store a project default and the channel mostly tracks one project.
|
|
70
|
+
- Treat both defaults as optional. Explicit user input wins whenever a request names a different team or project.
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# Issue Writing
|
|
2
|
+
|
|
3
|
+
Use this reference when creating a new Linear issue or substantially improving an existing one.
|
|
4
|
+
|
|
5
|
+
## Classify the work item
|
|
6
|
+
|
|
7
|
+
Infer the issue shape before drafting:
|
|
8
|
+
|
|
9
|
+
| Type | Use when | Default structure |
|
|
10
|
+
| ---- | -------- | ----------------- |
|
|
11
|
+
| `bug` | Broken behavior, regressions, failures, incidents, or user-visible defects | Summary, impact, reproduction or evidence, expected behavior |
|
|
12
|
+
| `feature` | Net-new capability, product expansion, or workflow improvement | Summary, current gap, desired outcome, tradeoffs or recommendation |
|
|
13
|
+
| `task` | Cleanup, instrumentation, docs, maintenance, follow-up, or operational work | Summary, background, scope, next step |
|
|
14
|
+
|
|
15
|
+
Default to `task` when the request does not clearly describe a defect or a net-new capability.
|
|
16
|
+
|
|
17
|
+
## Drafting rules
|
|
18
|
+
|
|
19
|
+
- Use a durable title that describes the engineering or product problem, not the Slack conversation.
|
|
20
|
+
- Keep the opening summary short and information-dense.
|
|
21
|
+
- Generalize Slack context: remove usernames, channel names, slash commands, and session chatter unless the user explicitly wants them preserved.
|
|
22
|
+
- Preserve material evidence already present in the thread, especially Sentry, GitHub, replay, trace, dashboard, or docs URLs.
|
|
23
|
+
- Include code snippets, stack traces, or exact commands only when they materially improve the future implementer's understanding.
|
|
24
|
+
- Keep body structure problem-specific. Use headings like `Current behavior`, `Impact`, `Reproduction`, `Expected behavior`, `Scope`, or `Recommendation` only when they help.
|
|
25
|
+
|
|
26
|
+
## Linear-specific field guidance
|
|
27
|
+
|
|
28
|
+
- Every new issue must belong to a single team. Resolve that before creating the issue.
|
|
29
|
+
- If the request clearly maps to a known team template and the active MCP tools expose template-based creation, prefer the template so the team's default properties are applied consistently.
|
|
30
|
+
- Set optional fields such as project, priority, labels, cycle, estimate, assignee, or status only when the user asked for them, the thread gives clear evidence, or the team's workflow makes the choice obvious.
|
|
31
|
+
- Do not invent a custom status name. If you need a non-default status, read the team's actual workflow states first.
|
|
32
|
+
- Priority should stay within Linear's standard levels: `low`, `medium`, `high`, `urgent`.
|
|
33
|
+
- Estimates are team-configured. Only set one when the thread provides a clear value or the team context already makes the estimate scale unambiguous.
|
|
34
|
+
- Labels may be workspace- or team-scoped. Reuse an existing matching label when possible instead of introducing near-duplicates.
|
|
35
|
+
- If the tool exposes structured link attachments, attach the important URLs there and keep the prose body focused on interpretation rather than raw link dumping.
|
|
36
|
+
|
|
37
|
+
## Duplicate handling
|
|
38
|
+
|
|
39
|
+
- Search silently before creating a new issue when the request appears related to existing work.
|
|
40
|
+
- If a clear duplicate exists, prefer updating or commenting on the existing issue instead of creating a new one.
|
|
41
|
+
- If the user explicitly wants a separate tracking issue anyway, state the relationship clearly in the new issue.
|
|
42
|
+
|
|
43
|
+
## Result reporting
|
|
44
|
+
|
|
45
|
+
- Report only the final, durable result: issue key, canonical URL, and what changed.
|
|
46
|
+
- Keep routine drafting, search, and mutation steps silent unless they materially affect the outcome.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Troubleshooting and Workarounds
|
|
2
|
+
|
|
3
|
+
Use this reference when Linear MCP work fails or the request is ambiguous.
|
|
4
|
+
|
|
5
|
+
| Symptom | Likely cause | Response |
|
|
6
|
+
| --------------------------------------------------------- | ------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- |
|
|
7
|
+
| No Linear tools are available after loading the skill | The skill was not loaded or the provider tools were not activated for the turn | Load the skill first and use the returned `available_tools`; use `searchTools` only if you need to rediscover them later in the turn. |
|
|
8
|
+
| Linear asks for authorization | The user has not connected Linear MCP access yet | Let the MCP OAuth flow pause and resume automatically; do not ask the user to paste credentials manually. |
|
|
9
|
+
| Authorization completes but the write still fails | The connected Linear account lacks access to the target team, project, or issue | Retry only after confirming the target is visible to the user; otherwise explain the concrete access blocker. |
|
|
10
|
+
| Creating a new issue is blocked | No team was resolved for the issue | Ask for the team only when it is not already clear from the thread, project context, or existing issue references. |
|
|
11
|
+
| Search returns too many matches | The request lacks a specific issue key, team, project, or title phrase | Narrow the search with the most specific identifier present in the thread, then ask one concise follow-up only if ambiguity remains. |
|
|
12
|
+
| The request might create a duplicate issue | Similar work already exists in Linear | Search before creating; if a clear match exists, update or comment on that issue instead of opening a new one. |
|
|
13
|
+
| A mutation could overwrite good structured content | The request asks for broad edits without showing current issue state | Fetch the current issue first and prefer partial updates over full body rewrites. |
|
|
14
|
+
| A requested status name does not exist | Workflow states are team-specific | Read the team's actual states and map the user's intent to a real state instead of inventing one. |
|
|
15
|
+
| Priority or estimate is unclear | Linear uses constrained priorities and team-configured estimate scales | Use only `low`, `medium`, `high`, or `urgent`; avoid setting an estimate unless the value is explicit or the team scale is already known. |
|
|
16
|
+
| The draft issue reads like Slack chat instead of a ticket | The content copied conversational phrasing directly from the thread | Rewrite into product or engineering language, preserve only material links, and remove usernames, channel names, and slash-command noise. |
|
|
17
|
+
| A comment or update repeats existing context | The thread already includes the same evidence in the issue history | Fetch current issue state first, then add only the new evidence or decision. |
|
|
18
|
+
| The team or project is unclear | The Slack request does not say where the issue belongs | Inspect thread context for earlier mentions, then ask one direct question only if the write is still blocked. |
|
|
19
|
+
| The result lacks a durable handoff | The reply reports success without the canonical issue reference | Return the Linear issue key or URL and summarize the exact change that was made. |
|