@holdyourvoice/hyv 0.1.1 → 0.3.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/agents/claude-code.md +17 -48
- package/agents/codex.md +24 -26
- package/dist/index.js +116 -47
- package/package.json +1 -1
package/agents/claude-code.md
CHANGED
|
@@ -1,68 +1,37 @@
|
|
|
1
|
-
# Hold Your Voice
|
|
1
|
+
# Hold Your Voice — Agent Command
|
|
2
2
|
|
|
3
|
-
When the user
|
|
3
|
+
When the user mentions "voice", "brand voice", "hyv", "write in my voice", or "rewrite in my voice":
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Inline rewrite (text in conversation)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- `hyv shashank` or `hyv <name>` — rewrite using the named voice profile
|
|
9
|
-
- `write this in my voice` / `rewrite in my voice` — use the default profile
|
|
10
|
-
- `rewrite the above in my voice` — rewrite the text above the user's message
|
|
11
|
-
- `rewrite this paragraph in my voice` — rewrite selected/referenced text
|
|
12
|
-
- `check my voice` / `scan my voice` / `voice check` — run `hyv scan`
|
|
13
|
-
- `voice status` / `hyv status` — show account status
|
|
14
|
-
|
|
15
|
-
## Workflows
|
|
16
|
-
|
|
17
|
-
### 1. Inline rewrite (text in conversation)
|
|
18
|
-
|
|
19
|
-
When the user says "rewrite the above in my voice" or "rewrite this in my voice" and the text is in the conversation (not a file):
|
|
20
|
-
|
|
21
|
-
1. Capture the text the user wants rewritten (the previous message, a code block, a paragraph, etc.)
|
|
7
|
+
1. Capture the text the user wants rewritten (previous message, code block, paragraph, etc.)
|
|
22
8
|
2. Run:
|
|
23
9
|
```bash
|
|
24
|
-
hyv rewrite <profile> --text "the captured text
|
|
25
|
-
```
|
|
26
|
-
Or pipe it:
|
|
27
|
-
```bash
|
|
28
|
-
printf '%s' "the captured text" | hyv rewrite <profile>
|
|
10
|
+
hyv rewrite <profile> --text "the captured text"
|
|
29
11
|
```
|
|
30
|
-
|
|
31
|
-
4. Execute the rewrite following the prompt's instructions.
|
|
32
|
-
5. Present the rewritten text to the user.
|
|
33
|
-
|
|
34
|
-
### 2. File rewrite
|
|
35
|
-
|
|
36
|
-
When the user references a file:
|
|
37
|
-
|
|
38
|
-
1. Run:
|
|
12
|
+
Or if no profile mentioned, use the default:
|
|
39
13
|
```bash
|
|
40
|
-
hyv rewrite
|
|
14
|
+
hyv rewrite --text "the captured text"
|
|
41
15
|
```
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
16
|
+
3. Read the structured prompt from stdout
|
|
17
|
+
4. Execute the rewrite following the prompt's instructions
|
|
18
|
+
5. Present the rewritten text directly in the conversation
|
|
45
19
|
|
|
46
|
-
|
|
20
|
+
## File rewrite
|
|
47
21
|
|
|
48
22
|
```bash
|
|
49
|
-
hyv
|
|
23
|
+
hyv rewrite <profile> <file.md>
|
|
50
24
|
```
|
|
51
25
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
### 4. List profiles
|
|
26
|
+
## Scan for issues
|
|
55
27
|
|
|
56
28
|
```bash
|
|
57
|
-
hyv
|
|
29
|
+
hyv scan
|
|
58
30
|
```
|
|
59
31
|
|
|
60
32
|
## Rules
|
|
61
33
|
|
|
62
34
|
- The CLI never calls an LLM. It generates prompts. **You** execute the rewrite.
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
- If
|
|
66
|
-
- If the CLI isn't installed, tell the user: `npx @holdyourvoice/hyv init`
|
|
67
|
-
- When rewriting inline text, always use `--text` or pipe via stdin. Never save to a temp file.
|
|
68
|
-
- Present the rewritten text directly in the conversation. Don't save to a file unless asked.
|
|
35
|
+
- Preserve original meaning. Match the voice profile's rhythm, vocabulary, patterns.
|
|
36
|
+
- If no profile specified, check `.hyv.yml` or ask the user.
|
|
37
|
+
- If CLI not installed: `npx @holdyourvoice/hyv init`
|
package/agents/codex.md
CHANGED
|
@@ -1,37 +1,35 @@
|
|
|
1
|
-
# Hold Your Voice (HYV)
|
|
1
|
+
# Hold Your Voice (HYV)
|
|
2
2
|
|
|
3
|
-
When the user mentions "voice", "brand voice", "hyv", "
|
|
3
|
+
When the user mentions "voice", "brand voice", "hyv", "write in my voice", or "rewrite in my voice":
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Inline rewrite (text in conversation)
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
| `write this in my voice` | Capture the referenced text, run `hyv rewrite --text "..."`, execute |
|
|
12
|
-
| `rewrite draft.md in my voice` | Run `hyv rewrite <profile> draft.md`, execute the prompt |
|
|
13
|
-
| `check my voice` | Run `hyv scan` |
|
|
14
|
-
| `voice profiles` | Run `hyv profiles` |
|
|
15
|
-
| `voice status` | Run `hyv status` |
|
|
7
|
+
1. Capture the text the user wants rewritten
|
|
8
|
+
2. Run: `hyv rewrite <profile> --text "captured text"`
|
|
9
|
+
3. Read the structured prompt from stdout
|
|
10
|
+
4. Execute the rewrite and present it
|
|
16
11
|
|
|
17
|
-
##
|
|
12
|
+
## File rewrite
|
|
18
13
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
4. Read the structured prompt from stdout
|
|
23
|
-
5. Execute the rewrite — match the voice profile's patterns, rhythm, vocabulary
|
|
24
|
-
6. Present the rewritten text directly in the conversation
|
|
14
|
+
```bash
|
|
15
|
+
hyv rewrite <profile> file.md
|
|
16
|
+
```
|
|
25
17
|
|
|
26
|
-
##
|
|
18
|
+
## Scan
|
|
27
19
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
4. Present or write the result
|
|
20
|
+
```bash
|
|
21
|
+
hyv scan
|
|
22
|
+
```
|
|
32
23
|
|
|
33
|
-
##
|
|
24
|
+
## Profiles
|
|
34
25
|
|
|
35
26
|
```bash
|
|
36
|
-
|
|
27
|
+
hyv profiles
|
|
37
28
|
```
|
|
29
|
+
|
|
30
|
+
## Rules
|
|
31
|
+
|
|
32
|
+
- CLI generates prompts. You execute the rewrite.
|
|
33
|
+
- Preserve meaning. Match the voice profile.
|
|
34
|
+
- If no profile: check `.hyv.yml` or ask user.
|
|
35
|
+
- If not installed: `npx @holdyourvoice/hyv init`
|