@henryqw/pi-prompt-creator 0.1.0 → 0.1.2

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 CHANGED
@@ -1,13 +1,13 @@
1
1
  # `@henryqw/pi-prompt-creator`
2
2
 
3
- Turn repeated requests or corrections in the current conversation into one reusable prompt candidate.
3
+ Turn repeated requests or corrections in the current conversation into a reviewed global Pi prompt.
4
4
 
5
- You decide whether to show, refine, and save it.
5
+ Nothing is shown or saved until you choose it.
6
6
 
7
7
  ## Why
8
8
 
9
- - **Created for**: Pi users who repeat requests or corrections and want a reusable prompt.
10
- - **Advantage**: It isolates drafting in a tool-free child and saves only after explicit review.
9
+ - **Created for**: Pi users who notice the same instruction or correction returning in one conversation.
10
+ - **Advantage**: A tool-free child drafts one candidate, while Main and the user control review and saving.
11
11
 
12
12
  ## Install
13
13
 
@@ -18,10 +18,25 @@ pi install npm:@henryqw/pi-prompt-creator
18
18
 
19
19
  Run `/task-models` before analysis. Assign a model to `fast`, or override `pi-prompt-creator/draft`.
20
20
 
21
+ ## With
22
+
23
+ [`@henryqw/pi-task-models`](https://pi.henry.wang/extensions/pi-task-models) is required for the isolated draft model route.
24
+
21
25
  ## Use
22
26
 
23
27
  Run `/promptor` in the interactive TUI.
24
28
 
29
+ ### First prompt
30
+
31
+ After a repeated request or correction appears in the conversation:
32
+
33
+ 1. Choose `Analyze now`. Wait for the `Prompt ready — /promptor` widget.
34
+ 2. Run `/promptor` again and choose `Show candidate`.
35
+ 3. Ask Main to refine it and return only the complete Final Prompt Draft.
36
+ 4. Run `/promptor`, choose `Save latest Main draft`, and enter a lowercase kebab-case name.
37
+
38
+ The prompt is created at `~/.pi/agent/prompts/<name>.md`, then Pi reloads its resources.
39
+
25
40
  The menu adapts to the current state:
26
41
 
27
42
  | Item | Action |
@@ -1,5 +1,5 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <svg viewBox="0 0 960 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="prompt-lifecycle-title prompt-lifecycle-desc">
2
+ <svg width="960" height="600" viewBox="0 0 960 600" xmlns="http://www.w3.org/2000/svg" role="img" aria-labelledby="prompt-lifecycle-title prompt-lifecycle-desc">
3
3
  <title id="prompt-lifecycle-title">From conversation to saved prompt</title>
4
4
  <desc id="prompt-lifecycle-desc">Data flow showing current conversation signals becoming a passive prompt candidate, then a reviewed Markdown prompt saved only after explicit approval.</desc>
5
5
  <defs>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@henryqw/pi-prompt-creator",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Turn current Pi conversation signals into user-approved prompt templates.",
5
5
  "keywords": [
6
6
  "pi-package",
@@ -46,7 +46,7 @@
46
46
  },
47
47
  "dependencies": {
48
48
  "@henryqw/pi-config-store": "^0.1.0",
49
- "@henryqw/pi-subagent": "^11.0.1",
49
+ "@henryqw/pi-subagent": "^12.0.0",
50
50
  "@henryqw/pi-task-models": "^4.0.0"
51
51
  }
52
52
  }