@holdyourvoice/hyv 0.1.0 → 0.2.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 +19 -38
- package/agents/codex.md +26 -16
- package/dist/index.js +116 -46
- package/package.json +1 -1
package/agents/claude-code.md
CHANGED
|
@@ -1,56 +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
|
-
|
|
9
|
-
- `write this in my voice` / `rewrite in my voice` — use the default profile
|
|
10
|
-
- `check my voice` / `scan my voice` / `voice check` — run `hyv scan`
|
|
11
|
-
- `voice status` / `hyv status` — show account status
|
|
12
|
-
|
|
13
|
-
## Workflow
|
|
14
|
-
|
|
15
|
-
### To rewrite text in a user's voice:
|
|
16
|
-
|
|
17
|
-
1. If there's a draft file, run:
|
|
7
|
+
1. Capture the text the user wants rewritten (previous message, code block, paragraph, etc.)
|
|
8
|
+
2. Run:
|
|
18
9
|
```bash
|
|
19
|
-
hyv rewrite <profile>
|
|
10
|
+
hyv rewrite <profile> --text "the captured text"
|
|
20
11
|
```
|
|
21
|
-
|
|
12
|
+
Or if no profile mentioned, use the default:
|
|
22
13
|
```bash
|
|
23
|
-
|
|
14
|
+
hyv rewrite --text "the captured text"
|
|
24
15
|
```
|
|
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
|
|
25
19
|
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
3. Execute the rewrite following the prompt's instructions. The prompt contains:
|
|
29
|
-
- The voice profile (keywords, tone, anchors, never-list)
|
|
30
|
-
- Issues found in the draft
|
|
31
|
-
- The draft text
|
|
32
|
-
- Rewrite rules
|
|
33
|
-
|
|
34
|
-
4. Present the rewritten text to the user.
|
|
35
|
-
|
|
36
|
-
### To check writing for issues:
|
|
20
|
+
## File rewrite
|
|
37
21
|
|
|
38
22
|
```bash
|
|
39
|
-
hyv
|
|
23
|
+
hyv rewrite <profile> <file.md>
|
|
40
24
|
```
|
|
41
25
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
### To list available profiles:
|
|
26
|
+
## Scan for issues
|
|
45
27
|
|
|
46
28
|
```bash
|
|
47
|
-
hyv
|
|
29
|
+
hyv scan
|
|
48
30
|
```
|
|
49
31
|
|
|
50
32
|
## Rules
|
|
51
33
|
|
|
52
|
-
- The CLI never calls an LLM. It generates prompts. You execute
|
|
53
|
-
-
|
|
54
|
-
-
|
|
55
|
-
- If
|
|
56
|
-
- If the CLI isn't installed, tell the user to run `npx @holdyourvoice/hyv init`.
|
|
34
|
+
- The CLI never calls an LLM. It generates prompts. **You** execute the rewrite.
|
|
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,25 +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
|
-
| `check my voice` | `hyv scan` |
|
|
12
|
-
| `voice profiles` | `hyv profiles` |
|
|
13
|
-
| `voice status` | `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
|
|
14
11
|
|
|
15
|
-
##
|
|
12
|
+
## File rewrite
|
|
16
13
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
14
|
+
```bash
|
|
15
|
+
hyv rewrite <profile> file.md
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Scan
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
hyv scan
|
|
22
|
+
```
|
|
20
23
|
|
|
21
|
-
##
|
|
24
|
+
## Profiles
|
|
22
25
|
|
|
23
26
|
```bash
|
|
24
|
-
|
|
27
|
+
hyv profiles
|
|
25
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`
|