myaidev-method 0.2.22 → 0.2.23
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/USER_GUIDE.md +453 -48
- package/bin/cli.js +18 -0
- package/content-rules.example.md +80 -0
- package/dist/mcp/mcp-launcher.js +237 -0
- package/dist/server/.tsbuildinfo +1 -1
- package/dist/server/auth/layers.d.ts +1 -1
- package/dist/server/auth/services/AuthService.d.ts +1 -1
- package/dist/server/auth/services/TokenService.js.map +1 -1
- package/dist/server/auth/services/example.d.ts +5 -5
- package/package.json +16 -16
- package/src/index.js +21 -8
- package/src/lib/update-manager.js +2 -1
- package/src/lib/visual-config-utils.js +321 -295
- package/src/lib/visual-generation-utils.js +1000 -811
- package/src/scripts/configure-wordpress-mcp.js +8 -3
- package/src/scripts/generate-visual-cli.js +365 -235
- package/src/scripts/ping.js +250 -0
- package/src/scripts/wordpress/publish-to-wordpress.js +165 -0
- package/src/server/auth/services/TokenService.ts +1 -1
- package/src/templates/claude/agents/content-rules-setup.md +657 -0
- package/src/templates/claude/agents/content-writer.md +328 -1
- package/src/templates/claude/agents/visual-content-generator.md +182 -4
- package/src/templates/claude/commands/myai-configure.md +1 -1
- package/src/templates/claude/commands/myai-content-rules-setup.md +204 -0
- package/src/templates/codex/commands/myai-content-rules-setup.md +85 -0
- package/src/templates/gemini/commands/myai-content-rules-setup.toml +57 -0
- package/.claude/mcp/sparc-orchestrator-server.js +0 -607
- package/.claude/mcp/wordpress-server.js +0 -1277
- package/src/agents/content-writer-prompt.md +0 -164
- package/src/agents/content-writer.json +0 -70
- package/src/templates/claude/mcp_config.json +0 -74
- package/src/templates/claude/slash_commands.json +0 -166
- package/src/templates/scripts/configure-wordpress-mcp.js +0 -181
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: myai-content-rules-setup
|
|
3
|
+
description: Interactive setup wizard for configuring content generation rules, brand voice, and style guidelines
|
|
4
|
+
usage: /myai-content-rules-setup [options]
|
|
5
|
+
arguments:
|
|
6
|
+
- name: --quick
|
|
7
|
+
description: Run quick setup with only essential questions
|
|
8
|
+
required: false
|
|
9
|
+
- name: --update
|
|
10
|
+
description: Update existing content-rules.md file
|
|
11
|
+
required: false
|
|
12
|
+
- name: --import
|
|
13
|
+
description: Import from existing style guide document
|
|
14
|
+
required: false
|
|
15
|
+
- name: --preview
|
|
16
|
+
description: Preview current content rules
|
|
17
|
+
required: false
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
# Content Rules Setup Command
|
|
21
|
+
|
|
22
|
+
## Purpose
|
|
23
|
+
|
|
24
|
+
Launch an interactive Q&A wizard to create or update your `content-rules.md` file, which controls how the content-writer agent generates content for your brand.
|
|
25
|
+
|
|
26
|
+
## Usage
|
|
27
|
+
|
|
28
|
+
### Full Interactive Setup
|
|
29
|
+
```bash
|
|
30
|
+
/myai-content-rules-setup
|
|
31
|
+
```
|
|
32
|
+
Runs the complete setup wizard with all 29 questions covering:
|
|
33
|
+
- Brand identity & voice
|
|
34
|
+
- Target audience
|
|
35
|
+
- Writing style guidelines
|
|
36
|
+
- Content formatting
|
|
37
|
+
- SEO requirements
|
|
38
|
+
- Topics & boundaries
|
|
39
|
+
- Visual content preferences
|
|
40
|
+
- Prohibited words
|
|
41
|
+
|
|
42
|
+
### Quick Setup Mode
|
|
43
|
+
```bash
|
|
44
|
+
/myai-content-rules-setup --quick
|
|
45
|
+
```
|
|
46
|
+
Asks only 5 essential questions:
|
|
47
|
+
1. Brand name and description
|
|
48
|
+
2. Target audience and expertise level
|
|
49
|
+
3. Voice/tone preference
|
|
50
|
+
4. Main content topics
|
|
51
|
+
5. Words/topics to avoid
|
|
52
|
+
|
|
53
|
+
Uses smart defaults for all other settings.
|
|
54
|
+
|
|
55
|
+
### Update Existing Rules
|
|
56
|
+
```bash
|
|
57
|
+
/myai-content-rules-setup --update
|
|
58
|
+
```
|
|
59
|
+
Reads your existing `content-rules.md` and lets you:
|
|
60
|
+
- Modify specific sections
|
|
61
|
+
- Add new rules
|
|
62
|
+
- Remove outdated rules
|
|
63
|
+
- Keep unchanged sections intact
|
|
64
|
+
|
|
65
|
+
### Import from Style Guide
|
|
66
|
+
```bash
|
|
67
|
+
/myai-content-rules-setup --import path/to/style-guide.pdf
|
|
68
|
+
```
|
|
69
|
+
Analyzes an existing brand style guide and:
|
|
70
|
+
- Extracts brand voice and tone
|
|
71
|
+
- Identifies formatting preferences
|
|
72
|
+
- Pre-fills setup questions
|
|
73
|
+
- Asks for confirmation/adjustments
|
|
74
|
+
|
|
75
|
+
### Preview Current Rules
|
|
76
|
+
```bash
|
|
77
|
+
/myai-content-rules-setup --preview
|
|
78
|
+
```
|
|
79
|
+
Displays a summary of your current content-rules.md settings.
|
|
80
|
+
|
|
81
|
+
## Output
|
|
82
|
+
|
|
83
|
+
Creates or updates `content-rules.md` in your project root:
|
|
84
|
+
|
|
85
|
+
```
|
|
86
|
+
./content-rules.md
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
## Example Session
|
|
90
|
+
|
|
91
|
+
```
|
|
92
|
+
User: /myai-content-rules-setup --quick
|
|
93
|
+
|
|
94
|
+
Agent: 👋 Quick Content Rules Setup
|
|
95
|
+
|
|
96
|
+
I'll ask 5 essential questions to create your content-rules.md.
|
|
97
|
+
|
|
98
|
+
Q1: What is your brand name and what do you do?
|
|
99
|
+
Example: "Acme Auth - We build authentication APIs for developers"
|
|
100
|
+
|
|
101
|
+
User: DevTools Pro - We create productivity tools for software engineers
|
|
102
|
+
|
|
103
|
+
Agent: Q2: Who is your audience and their expertise level?
|
|
104
|
+
a) Beginner developers
|
|
105
|
+
b) Intermediate developers
|
|
106
|
+
c) Senior/advanced developers
|
|
107
|
+
d) Mixed technical levels
|
|
108
|
+
|
|
109
|
+
User: c
|
|
110
|
+
|
|
111
|
+
Agent: Q3: How should your content sound?
|
|
112
|
+
a) Professional & formal
|
|
113
|
+
b) Professional & friendly
|
|
114
|
+
c) Conversational & casual
|
|
115
|
+
d) Technical & direct
|
|
116
|
+
|
|
117
|
+
User: d
|
|
118
|
+
|
|
119
|
+
Agent: Q4: List your 3 main content topics:
|
|
120
|
+
|
|
121
|
+
User: CLI tools, developer workflows, code automation
|
|
122
|
+
|
|
123
|
+
Agent: Q5: Any words or topics to avoid? (or type "none")
|
|
124
|
+
|
|
125
|
+
User: marketing jargon, "game-changing", "revolutionary"
|
|
126
|
+
|
|
127
|
+
Agent: ✅ Creating content-rules.md...
|
|
128
|
+
|
|
129
|
+
📋 Summary:
|
|
130
|
+
- Brand: DevTools Pro
|
|
131
|
+
- Audience: Senior developers
|
|
132
|
+
- Voice: Technical & direct
|
|
133
|
+
- Topics: CLI tools, workflows, automation
|
|
134
|
+
- Banned: marketing jargon, game-changing, revolutionary
|
|
135
|
+
|
|
136
|
+
✅ Generated content-rules.md
|
|
137
|
+
|
|
138
|
+
Your content-writer agent will now use these rules.
|
|
139
|
+
Run /myai-content-rules-setup to access all settings.
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Integration
|
|
143
|
+
|
|
144
|
+
### With content-writer Agent
|
|
145
|
+
The content-writer automatically applies rules from content-rules.md:
|
|
146
|
+
|
|
147
|
+
```bash
|
|
148
|
+
/myai-content-writer "How to build a CLI tool" --word_count 1500
|
|
149
|
+
# Applies your brand voice, style, and formatting rules
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### With visual-content-generator Agent
|
|
153
|
+
Visual preferences are passed to image generation:
|
|
154
|
+
|
|
155
|
+
```bash
|
|
156
|
+
/myai-generate-visual "Developer workflow diagram"
|
|
157
|
+
# Uses your visual style preferences from content-rules.md
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Sections Configured
|
|
161
|
+
|
|
162
|
+
| Section | What It Controls |
|
|
163
|
+
|---------|------------------|
|
|
164
|
+
| Brand Voice | Tone, personality, writing style |
|
|
165
|
+
| Audience | Technical level, goals, pain points |
|
|
166
|
+
| Formatting | Headings, lists, paragraphs, code blocks |
|
|
167
|
+
| SEO | Keywords, meta descriptions, CTAs |
|
|
168
|
+
| Topics | Focus areas, competitor handling |
|
|
169
|
+
| Visuals | Image style, infographic preferences |
|
|
170
|
+
| Prohibited | Banned words and phrases |
|
|
171
|
+
|
|
172
|
+
## Tips
|
|
173
|
+
|
|
174
|
+
1. **Start with --quick**: Get started fast, refine later
|
|
175
|
+
2. **Provide examples**: Real content samples help capture your voice
|
|
176
|
+
3. **Update regularly**: Run --update as your brand evolves
|
|
177
|
+
4. **Team consistency**: Commit content-rules.md to version control
|
|
178
|
+
5. **Test output**: Generate a sample article to verify rules work
|
|
179
|
+
|
|
180
|
+
## Related Commands
|
|
181
|
+
|
|
182
|
+
- `/myai-content-writer` - Generate content using your rules
|
|
183
|
+
- `/myai-generate-visual` - Generate visuals matching your style
|
|
184
|
+
- `/myai-coordinate-content` - Batch content production
|
|
185
|
+
|
|
186
|
+
## Troubleshooting
|
|
187
|
+
|
|
188
|
+
### Rules not being applied?
|
|
189
|
+
1. Verify content-rules.md exists in project root
|
|
190
|
+
2. Check file is valid markdown
|
|
191
|
+
3. Run `/myai-content-rules-setup --preview` to verify
|
|
192
|
+
|
|
193
|
+
### Want to start over?
|
|
194
|
+
```bash
|
|
195
|
+
rm content-rules.md
|
|
196
|
+
/myai-content-rules-setup
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
### Need more customization?
|
|
200
|
+
Run full setup instead of --quick:
|
|
201
|
+
```bash
|
|
202
|
+
/myai-content-rules-setup
|
|
203
|
+
# Accesses all 29 configuration options
|
|
204
|
+
```
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: myai-content-rules-setup
|
|
3
|
+
description: Interactive setup wizard for content generation rules, brand voice, and style guidelines
|
|
4
|
+
usage: myai-content-rules-setup [--quick] [--update] [--preview]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Content Rules Setup Command
|
|
8
|
+
|
|
9
|
+
## Purpose
|
|
10
|
+
|
|
11
|
+
Launch an interactive Q&A wizard to create or update your `content-rules.md` file, which controls how the content-writer generates content for your brand.
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
### Full Interactive Setup
|
|
16
|
+
```bash
|
|
17
|
+
myai-content-rules-setup
|
|
18
|
+
```
|
|
19
|
+
Runs complete setup with all questions covering:
|
|
20
|
+
- Brand identity & voice
|
|
21
|
+
- Target audience
|
|
22
|
+
- Writing style
|
|
23
|
+
- Content formatting
|
|
24
|
+
- SEO requirements
|
|
25
|
+
- Topics & boundaries
|
|
26
|
+
- Visual preferences
|
|
27
|
+
- Prohibited words
|
|
28
|
+
|
|
29
|
+
### Quick Setup (5 Questions)
|
|
30
|
+
```bash
|
|
31
|
+
myai-content-rules-setup --quick
|
|
32
|
+
```
|
|
33
|
+
Essential questions only:
|
|
34
|
+
1. Brand name and description
|
|
35
|
+
2. Target audience and expertise level
|
|
36
|
+
3. Voice/tone preference
|
|
37
|
+
4. Main content topics
|
|
38
|
+
5. Words/topics to avoid
|
|
39
|
+
|
|
40
|
+
### Update Existing Rules
|
|
41
|
+
```bash
|
|
42
|
+
myai-content-rules-setup --update
|
|
43
|
+
```
|
|
44
|
+
Modify specific sections of existing content-rules.md.
|
|
45
|
+
|
|
46
|
+
### Preview Current Rules
|
|
47
|
+
```bash
|
|
48
|
+
myai-content-rules-setup --preview
|
|
49
|
+
```
|
|
50
|
+
Display summary of current content-rules.md settings.
|
|
51
|
+
|
|
52
|
+
## Output
|
|
53
|
+
|
|
54
|
+
Creates or updates `content-rules.md` in your project root.
|
|
55
|
+
|
|
56
|
+
## Integration
|
|
57
|
+
|
|
58
|
+
- **content-writer**: Automatically applies rules from content-rules.md
|
|
59
|
+
- **visual-content-generator**: Uses visual style preferences for image generation
|
|
60
|
+
|
|
61
|
+
## Example Quick Setup
|
|
62
|
+
|
|
63
|
+
```
|
|
64
|
+
Q1: What is your brand name and what do you do?
|
|
65
|
+
> DevTools Pro - Developer productivity tools
|
|
66
|
+
|
|
67
|
+
Q2: Who is your audience? (beginner/intermediate/advanced/mixed)
|
|
68
|
+
> advanced
|
|
69
|
+
|
|
70
|
+
Q3: How should content sound? (formal/friendly/casual/technical)
|
|
71
|
+
> technical
|
|
72
|
+
|
|
73
|
+
Q4: List your 3 main content topics:
|
|
74
|
+
> CLI tools, automation, developer workflows
|
|
75
|
+
|
|
76
|
+
Q5: Words or topics to avoid? (or "none")
|
|
77
|
+
> marketing jargon, buzzwords
|
|
78
|
+
|
|
79
|
+
✅ Generated content-rules.md
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Related Commands
|
|
83
|
+
|
|
84
|
+
- `myai-content-writer` - Generate content using your rules
|
|
85
|
+
- `myai-generate-visual` - Generate visuals matching your style
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# Content Rules Setup Command for Gemini CLI
|
|
2
|
+
# Interactive wizard for configuring content generation rules
|
|
3
|
+
|
|
4
|
+
[command]
|
|
5
|
+
name = "myai-content-rules-setup"
|
|
6
|
+
description = "Interactive setup wizard for content generation rules, brand voice, and style guidelines"
|
|
7
|
+
|
|
8
|
+
[command.usage]
|
|
9
|
+
basic = "Run the command to start the interactive setup"
|
|
10
|
+
quick = "Use --quick flag for essential questions only"
|
|
11
|
+
update = "Use --update flag to modify existing rules"
|
|
12
|
+
|
|
13
|
+
[command.options]
|
|
14
|
+
quick = { description = "Run quick setup with 5 essential questions", type = "boolean", default = false }
|
|
15
|
+
update = { description = "Update existing content-rules.md", type = "boolean", default = false }
|
|
16
|
+
preview = { description = "Preview current rules", type = "boolean", default = false }
|
|
17
|
+
|
|
18
|
+
[command.workflow]
|
|
19
|
+
description = """
|
|
20
|
+
This command guides you through creating a content-rules.md file that controls
|
|
21
|
+
how the content-writer generates content for your brand.
|
|
22
|
+
|
|
23
|
+
## Full Setup Covers:
|
|
24
|
+
1. Brand Identity & Voice (personality, tone, examples)
|
|
25
|
+
2. Target Audience (who, expertise level, goals, pain points)
|
|
26
|
+
3. Writing Style (perspective, sentences, paragraphs, examples)
|
|
27
|
+
4. Content Formatting (headings, lists, code, length)
|
|
28
|
+
5. SEO Requirements (optimization, keywords, CTAs)
|
|
29
|
+
6. Topics & Boundaries (focus areas, avoid topics)
|
|
30
|
+
7. Visual Content Preferences (style, infographics)
|
|
31
|
+
8. Prohibited Words & Phrases
|
|
32
|
+
|
|
33
|
+
## Quick Setup (5 Questions):
|
|
34
|
+
1. Brand name and description
|
|
35
|
+
2. Target audience and level
|
|
36
|
+
3. Voice/tone preference
|
|
37
|
+
4. Main content topics
|
|
38
|
+
5. Words to avoid
|
|
39
|
+
|
|
40
|
+
## Output:
|
|
41
|
+
Creates ./content-rules.md in your project root
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
[command.examples]
|
|
45
|
+
full_setup = "gemini myai-content-rules-setup"
|
|
46
|
+
quick_setup = "gemini myai-content-rules-setup --quick"
|
|
47
|
+
update_rules = "gemini myai-content-rules-setup --update"
|
|
48
|
+
preview = "gemini myai-content-rules-setup --preview"
|
|
49
|
+
|
|
50
|
+
[command.integration]
|
|
51
|
+
content_writer = "content-writer uses rules from content-rules.md automatically"
|
|
52
|
+
visual_generator = "visual-content-generator uses visual style preferences"
|
|
53
|
+
|
|
54
|
+
[command.output]
|
|
55
|
+
file = "content-rules.md"
|
|
56
|
+
location = "Project root directory"
|
|
57
|
+
format = "Markdown with structured sections"
|