pi-graphite 0.3.2 → 0.3.4
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/package.json +1 -1
- package/skills/graphite/SKILL.md +23 -12
package/package.json
CHANGED
package/skills/graphite/SKILL.md
CHANGED
|
@@ -22,11 +22,14 @@ Use this skill whenever the user wants to:
|
|
|
22
22
|
|
|
23
23
|
Do not use it for:
|
|
24
24
|
|
|
25
|
-
- editing PR titles / bodies / labels / reviewers metadata
|
|
26
|
-
|
|
27
|
-
-
|
|
28
|
-
|
|
29
|
-
expose stack surgery
|
|
25
|
+
- editing PR titles / bodies / labels / reviewers metadata — prefer a
|
|
26
|
+
dedicated `gh` tool/extension; see the `gh` rule below
|
|
27
|
+
- reading PR review comments or CI status — same
|
|
28
|
+
- rewriting history beyond create/amend (split / fold / move / squash /
|
|
29
|
+
reorder). The extension does not expose stack surgery. Do not invoke
|
|
30
|
+
`gt` directly from bash for these — those subcommands prompt
|
|
31
|
+
interactively (base selectors, hunk pickers, editors) and will hang.
|
|
32
|
+
Ask the user to run them manually in their own terminal.
|
|
30
33
|
|
|
31
34
|
## Tools
|
|
32
35
|
|
|
@@ -66,7 +69,7 @@ graphite_submit_stack apply=true (push, with confirmRemote=true)
|
|
|
66
69
|
When a `gt` command halts on conflict:
|
|
67
70
|
|
|
68
71
|
```
|
|
69
|
-
resolve files in editor → git add <
|
|
72
|
+
resolve files in editor → git add -- <paths> → graphite_recover action="continue"
|
|
70
73
|
```
|
|
71
74
|
|
|
72
75
|
Never run `git rebase --continue` after a Graphite-initiated rebase; use
|
|
@@ -180,7 +183,11 @@ If `gt sync` halts on conflict, use the conflict recipe below.
|
|
|
180
183
|
|
|
181
184
|
1. Read the failing tool's `--- stderr ---` and `hints` block.
|
|
182
185
|
2. Resolve markers in the listed files.
|
|
183
|
-
3.
|
|
186
|
+
3. Stage the resolved files from bash. Always use `git add --` followed
|
|
187
|
+
by the file paths so a path that starts with `-` cannot be parsed as a
|
|
188
|
+
git flag (e.g. `git add -- path/with-dash`). Use `git add -A` only if
|
|
189
|
+
the user explicitly wants to stage everything. Never run
|
|
190
|
+
`git add --interactive` or `git add -p`.
|
|
184
191
|
4. `graphite_recover({ cwd, action: "continue" })`.
|
|
185
192
|
5. If you want to bail entirely: `graphite_recover({ cwd, action: "abort" })`.
|
|
186
193
|
|
|
@@ -193,9 +200,11 @@ graphite_recover({ cwd, action: "undo" })
|
|
|
193
200
|
## Rules
|
|
194
201
|
|
|
195
202
|
- **Submit stacks, not branches.** `graphite_submit_stack` always passes
|
|
196
|
-
`--stack`.
|
|
197
|
-
to push only one branch,
|
|
198
|
-
|
|
203
|
+
`--stack`. There is no safe single-branch submit path in this extension.
|
|
204
|
+
If the user truly needs to push only one branch, ask them to run
|
|
205
|
+
`gt submit --branch=<name>` themselves in their own terminal — do not
|
|
206
|
+
invoke it from bash, because `gt submit` defaults to interactive prompts
|
|
207
|
+
and an editor for PR metadata.
|
|
199
208
|
- **Use `graphite_setup` only for preconditions.** Initialize missing repos
|
|
200
209
|
or track existing Git branches. Do not use it for daily branch creation;
|
|
201
210
|
use `graphite_change action="create"` instead.
|
|
@@ -212,7 +221,9 @@ graphite_recover({ cwd, action: "undo" })
|
|
|
212
221
|
- **Never use `git rebase --continue` after a gt command.** Use
|
|
213
222
|
`graphite_recover action="continue"`.
|
|
214
223
|
- **This extension wraps gt only.** For PR body/title edits, review
|
|
215
|
-
comments, check runs, etc.,
|
|
216
|
-
|
|
224
|
+
comments, check runs, etc., use a dedicated `gh` tool/extension if
|
|
225
|
+
available. If you must shell out to `gh` from bash, pass fully explicit
|
|
226
|
+
non-interactive arguments only — never `gh auth login`, `--web`, or any
|
|
227
|
+
command that opens a browser, editor, or prompt.
|
|
217
228
|
- **No interactive editor / browser / hunk picker.** All paths are
|
|
218
229
|
non-interactive; pass explicit messages.
|