@ravshansbox/pi-next-issue 2.7.0 → 2.8.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/README.md +4 -3
- package/package.json +1 -1
- package/skills/create-issue/SKILL.md +10 -4
package/README.md
CHANGED
|
@@ -21,11 +21,12 @@ The footer shows the issue, the stage, the number of tool calls and the time spe
|
|
|
21
21
|
|
|
22
22
|
The package ships the `create-issue` skill. Ask pi to write an issue, or run `/skill:create-issue <problem>`. Pi then:
|
|
23
23
|
|
|
24
|
-
1. restates the problem
|
|
24
|
+
1. restates the problem, reads the code when the problem touches it, and finds the open issues that must be done first;
|
|
25
25
|
2. asks numbered questions until none is open;
|
|
26
|
-
3. shows the title and
|
|
26
|
+
3. shows the title, the body and those blockers, and asks once whether to create the issue and start a run;
|
|
27
27
|
4. runs `gh issue create --body-file` with the body from [`template.md`](skills/create-issue/template.md) and the `status:todo` label;
|
|
28
|
-
5.
|
|
28
|
+
5. links each blocker with `gh issue edit --add-blocked-by`, so the worker waits for it;
|
|
29
|
+
6. calls `next_issue_start` when you asked for a run.
|
|
29
30
|
|
|
30
31
|
Pi does not implement the issue in that session. The worker does the work. The body holds the sections of the [issue format](../next-issue/README.md#issue-format).
|
|
31
32
|
|
package/package.json
CHANGED
|
@@ -8,18 +8,24 @@ description: Turn a problem into a clear GitHub issue that the next-issue worker
|
|
|
8
8
|
Turn the problem of the user into one GitHub issue in the format of `template.md`, next to this file.
|
|
9
9
|
|
|
10
10
|
1. Understand the problem. Restate it in your own words.
|
|
11
|
-
2. Investigate the code when the problem touches it. Read the relevant files and note what you find, with file paths.
|
|
11
|
+
2. Investigate the code when the problem touches it. Read the relevant files and note what you find, with file paths. Run `gh issue list` and note each open issue that must be done first, including the issues you create in the same session.
|
|
12
12
|
3. Ask numbered questions about anything that is unclear: the scope, the expected behaviour, the acceptance criteria. Label options with letters and recommend one. Ask again until no question is open.
|
|
13
13
|
4. Write the body from `template.md` into a temporary file. Keep every heading of the template and its order. Leave `Open questions` empty.
|
|
14
|
-
5. Show the title and the
|
|
14
|
+
5. Show the title, the body and the blockers to the user. Ask once whether to create the issue and start a run: a) create the issue and start a run, b) create the issue only, c) change the draft. Change the draft and show it again until the user picks a or b.
|
|
15
15
|
6. Only after the user picks a or b, create the issue:
|
|
16
16
|
|
|
17
17
|
```bash
|
|
18
18
|
gh issue create --title "<title>" --body-file <file> --label status:todo
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
7.
|
|
22
|
-
|
|
21
|
+
7. Link each blocker:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
gh issue edit <number> --add-blocked-by <blocker>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
8. Tell the user the issue url.
|
|
28
|
+
9. Only when the user picked a, call the `next_issue_start` tool, and tell the user what it reports.
|
|
23
29
|
|
|
24
30
|
Once the issue exists, do not implement it in this session. The next-issue worker does the work. Do not ask about a run a second time.
|
|
25
31
|
|