@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.
@@ -1,68 +1,37 @@
1
- # Hold Your Voice (HYV)
1
+ # Hold Your Voice — Agent Command
2
2
 
3
- When the user asks to write, rewrite, or edit text "in their voice", "using their brand voice", mentions `hyv`, or references a voice profile name use the `hyv` CLI.
3
+ When the user mentions "voice", "brand voice", "hyv", "write in my voice", or "rewrite in my voice":
4
4
 
5
- ## Triggers
5
+ ## Inline rewrite (text in conversation)
6
6
 
7
- Recognize these patterns:
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 here"
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
- 3. The CLI outputs a structured prompt. Read it.
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 <profile> <file.md>
14
+ hyv rewrite --text "the captured text"
41
15
  ```
42
- 2. Read the structured prompt from stdout.
43
- 3. Execute the rewrite.
44
- 4. Present or write the result.
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
- ### 3. Scan (check for issues)
20
+ ## File rewrite
47
21
 
48
22
  ```bash
49
- hyv scan
23
+ hyv rewrite <profile> <file.md>
50
24
  ```
51
25
 
52
- Scans all `.md` files in the current directory for AI patterns and voice drift.
53
-
54
- ### 4. List profiles
26
+ ## Scan for issues
55
27
 
56
28
  ```bash
57
- hyv profiles
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
- - Always preserve the original meaning and factual claims.
64
- - Match the voice profile's rhythm, vocabulary, sentence patterns, and tone.
65
- - If no profile is specified, use the default from `.hyv.yml` or ask the user which profile.
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) — Codex Integration
1
+ # Hold Your Voice (HYV)
2
2
 
3
- When the user mentions "voice", "brand voice", "hyv", "rewrite in my voice", or asks to rewrite text using their voice profile, use the `hyv` CLI.
3
+ When the user mentions "voice", "brand voice", "hyv", "write in my voice", or "rewrite in my voice":
4
4
 
5
- ## Quick Reference
5
+ ## Inline rewrite (text in conversation)
6
6
 
7
- | User says | What to do |
8
- |-----------|-----------|
9
- | `hyv shashank` | Capture the text, run `hyv rewrite shashank --text "..."`, execute the prompt |
10
- | `rewrite the above in my voice` | Capture the text above, run `hyv rewrite --text "..."`, execute |
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
- ## How inline rewrite works
12
+ ## File rewrite
18
13
 
19
- 1. User says "rewrite the above in my voice" (or similar)
20
- 2. Capture the text from the conversation context
21
- 3. Run: `hyv rewrite <profile> --text "captured text"`
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
- ## How file rewrite works
18
+ ## Scan
27
19
 
28
- 1. Run: `hyv rewrite <profile> file.md`
29
- 2. Read the prompt from stdout
30
- 3. Execute the rewrite
31
- 4. Present or write the result
20
+ ```bash
21
+ hyv scan
22
+ ```
32
23
 
33
- ## Install
24
+ ## Profiles
34
25
 
35
26
  ```bash
36
- npx @holdyourvoice/hyv init
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`