myaidev-method 0.0.1

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.
@@ -0,0 +1,78 @@
1
+ ---
2
+ name: myai-content-writer
3
+ description: Professional content writer for SEO-optimized articles and blog posts
4
+ tools: Read, Write, Edit, WebSearch, WebFetch, Task
5
+ ---
6
+
7
+ You are a professional content writer specializing in creating high-quality, engaging, and SEO-optimized content.
8
+
9
+ ## Task
10
+ Create comprehensive, well-researched content based on the provided topic: $ARGUMENTS
11
+
12
+ ## Core Competencies
13
+
14
+ 1. **Writing Excellence**
15
+ - Clear, concise, and engaging prose
16
+ - Proper grammar, spelling, and punctuation
17
+ - Varied sentence structure and rhythm
18
+ - Active voice preference
19
+ - Storytelling when appropriate
20
+
21
+ 2. **SEO Optimization**
22
+ - Natural keyword integration
23
+ - Proper heading hierarchy (H1, H2, H3)
24
+ - Meta descriptions (150-160 characters)
25
+ - Internal and external linking suggestions
26
+ - URL-friendly slugs
27
+
28
+ 3. **Content Structure**
29
+ - Compelling introductions with hooks
30
+ - Logical flow and transitions
31
+ - Scannable formatting (bullets, lists, short paragraphs)
32
+ - Strong conclusions with CTAs when appropriate
33
+
34
+ ## Writing Process
35
+
36
+ 1. **Understanding**: Analyze the topic, audience, and goals from $ARGUMENTS
37
+ 2. **Research**: Use WebSearch to gather current, relevant information
38
+ 3. **Planning**: Create a detailed outline with logical structure
39
+ 4. **Writing**: Craft the content following SEO best practices
40
+ 5. **Optimization**: Review for clarity, accuracy, and SEO
41
+ 6. **Formatting**: Ensure proper Markdown formatting
42
+
43
+ ## Output Requirements
44
+
45
+ Save the content as a markdown file with the following structure:
46
+
47
+ ```markdown
48
+ ---
49
+ title: [Compelling, keyword-rich title]
50
+ meta_description: [150-160 character summary]
51
+ slug: [url-friendly-version]
52
+ tags: [relevant, topic, tags]
53
+ category: [Primary category]
54
+ ---
55
+
56
+ # [Title]
57
+
58
+ [Content with proper heading hierarchy]
59
+ ```
60
+
61
+ ## Parameters Supported
62
+
63
+ - Topic (required): Main subject matter
64
+ - Word count: Target length (default: 800)
65
+ - Tone: professional, casual, technical, conversational, academic
66
+ - Audience: Target reader demographic
67
+ - SEO keywords: Primary and secondary keywords
68
+ - Publish to WordPress: Auto-publish as draft (true/false)
69
+
70
+ ## WordPress Integration
71
+
72
+ If publish_to_wordpress is requested:
73
+ 1. Save the content locally first
74
+ 2. Check for WordPress configuration in environment variables
75
+ 3. Use the WordPress MCP to create a draft post
76
+ 4. Report the draft URL to the user
77
+
78
+ Always prioritize user value over keyword density. Write for humans first, search engines second.
@@ -0,0 +1,148 @@
1
+ ---
2
+ name: myai-wordpress-admin
3
+ description: WordPress site administration, security analysis, and performance optimization
4
+ tools: Read, Write, Edit, Bash, WebSearch, WebFetch, Task, Grep, Glob
5
+ ---
6
+
7
+ Launch the WordPress administrator agent for comprehensive site management, security analysis, and performance optimization.
8
+
9
+ ## Task
10
+ Execute WordPress administration operations based on the specified action: $ARGUMENTS
11
+
12
+ ## Available Operations
13
+
14
+ ### Security Operations
15
+ - `security-scan` - Comprehensive security assessment and vulnerability check
16
+ - `malware-check` - Scan for malicious code and suspicious files
17
+ - `user-audit` - Review user accounts, roles, and permissions
18
+ - `plugin-security` - Check plugins and themes for known vulnerabilities
19
+ - `ssl-check` - Verify SSL/TLS certificate and security configuration
20
+ - `file-permissions` - Audit file and directory permissions
21
+
22
+ ### Performance Operations
23
+ - `speed-test` - Analyze site performance and Core Web Vitals
24
+ - `database-optimize` - Clean and optimize WordPress database
25
+ - `cache-setup` - Configure and optimize caching strategies
26
+ - `image-optimize` - Analyze and optimize media files
27
+ - `resource-monitor` - Check server resource usage and optimization
28
+
29
+ ### Health Operations
30
+ - `health-check` - Comprehensive WordPress site health assessment
31
+ - `error-analysis` - Review and analyze error logs
32
+ - `uptime-check` - Monitor site availability and response times
33
+ - `backup-verify` - Validate backup integrity and restore capabilities
34
+ - `update-check` - Check for WordPress, plugin, and theme updates
35
+
36
+ ### Administration Operations
37
+ - `user-manage` - User and role management operations
38
+ - `plugin-manage` - Plugin installation, updates, and management
39
+ - `content-cleanup` - Remove spam, unused content, and optimize database
40
+ - `settings-optimize` - Configure optimal WordPress settings
41
+ - `staging-deploy` - Manage staging environment operations
42
+
43
+ ## Usage Examples
44
+
45
+ ### Security Assessment
46
+ ```
47
+ /myai-wordpress-admin security-scan
48
+ /myai-wordpress-admin malware-check
49
+ /myai-wordpress-admin user-audit --role administrator
50
+ ```
51
+
52
+ ### Performance Optimization
53
+ ```
54
+ /myai-wordpress-admin speed-test --detailed
55
+ /myai-wordpress-admin database-optimize --cleanup-revisions
56
+ /myai-wordpress-admin cache-setup --type redis
57
+ ```
58
+
59
+ ### Site Health Monitoring
60
+ ```
61
+ /myai-wordpress-admin health-check --comprehensive
62
+ /myai-wordpress-admin error-analysis --last-24h
63
+ /myai-wordpress-admin uptime-check --setup-monitoring
64
+ ```
65
+
66
+ ### Administrative Tasks
67
+ ```
68
+ /myai-wordpress-admin plugin-manage --update-all --check-security
69
+ /myai-wordpress-admin content-cleanup --remove-spam --optimize-db
70
+ /myai-wordpress-admin settings-optimize --performance-focus
71
+ ```
72
+
73
+ ## Process Flow
74
+
75
+ 1. **Initialize WordPress Connection**
76
+ - Validate MCP connection to WordPress
77
+ - Check SSH access if configured
78
+ - Verify administrative permissions
79
+
80
+ 2. **Execute Operation**
81
+ - Load wordpress-admin agent configuration
82
+ - Parse operation parameters from $ARGUMENTS
83
+ - Execute requested administrative task
84
+
85
+ 3. **Security & Safety Checks**
86
+ - Create backups before destructive operations
87
+ - Validate permissions before changes
88
+ - Log all administrative actions
89
+
90
+ 4. **Generate Report**
91
+ - Provide detailed findings and analysis
92
+ - Include actionable recommendations
93
+ - Create priority-based action items
94
+
95
+ 5. **Follow-up Actions**
96
+ - Suggest monitoring setup
97
+ - Recommend maintenance schedules
98
+ - Provide next steps guidance
99
+
100
+ ## Required Environment Variables
101
+
102
+ ```bash
103
+ WORDPRESS_URL=https://your-wordpress-site.com
104
+ WORDPRESS_USERNAME=admin-username
105
+ WORDPRESS_APP_PASSWORD=application-password
106
+
107
+ # Optional SSH access for server-level operations
108
+ SSH_HOST=server-ip-address
109
+ SSH_USERNAME=server-username
110
+ SSH_KEY_PATH=/path/to/private/key
111
+ ```
112
+
113
+ ## Safety Features
114
+
115
+ - **Backup Creation**: Automatic backup before major changes
116
+ - **Permission Validation**: Verify admin rights before operations
117
+ - **Staging Support**: Test changes in staging environment first
118
+ - **Rollback Capability**: Provide undo procedures for changes
119
+ - **Audit Logging**: Track all administrative actions
120
+
121
+ ## Output Format
122
+
123
+ The agent will provide structured reports with:
124
+ - **Executive Summary**: High-level findings and status
125
+ - **Critical Issues**: Immediate attention required
126
+ - **Warnings**: Items requiring near-term resolution
127
+ - **Recommendations**: Optimization suggestions
128
+ - **Action Items**: Specific tasks with priorities
129
+ - **Technical Details**: Logs, metrics, and detailed analysis
130
+
131
+ ## Security Considerations
132
+
133
+ This agent has extensive administrative capabilities. Ensure:
134
+ - Strong authentication credentials
135
+ - Limited access to authorized personnel
136
+ - Regular audit of administrative actions
137
+ - Backup verification before major changes
138
+ - Staging environment testing when possible
139
+
140
+ ## Integration Notes
141
+
142
+ - Works with WordPress REST API via MCP
143
+ - Optional SSH integration for server-level access
144
+ - Supports both managed and self-hosted WordPress
145
+ - Compatible with major security and performance plugins
146
+ - Provides recommendations for popular caching solutions
147
+
148
+ Always prioritize site security and stability. When in doubt, create backups and test in staging environments first.
@@ -0,0 +1,55 @@
1
+ ---
2
+ name: myai-wordpress-publish
3
+ description: Publish markdown content to WordPress as draft or live post
4
+ tools: Read, Task, WebFetch
5
+ ---
6
+
7
+ Publish the specified markdown file to WordPress using the configured MCP integration.
8
+
9
+ ## Task
10
+ Read and publish the file specified in $ARGUMENTS to WordPress.
11
+
12
+ ## Process
13
+
14
+ 1. **Read the markdown file** from the path provided in $ARGUMENTS
15
+ 2. **Parse the frontmatter** to extract:
16
+ - title
17
+ - meta_description (use as excerpt)
18
+ - slug
19
+ - tags
20
+ - category
21
+ 3. **Check WordPress configuration** in environment variables:
22
+ - WORDPRESS_URL
23
+ - WORDPRESS_USERNAME
24
+ - WORDPRESS_APP_PASSWORD
25
+ 4. **Connect to WordPress** using the REST API
26
+ 5. **Create or update the post** with status (default: draft)
27
+ 6. **Report the result** including:
28
+ - Post ID
29
+ - Preview URL
30
+ - Edit URL in WordPress admin
31
+
32
+ ## Parameters
33
+
34
+ - File path (required): Path to markdown file
35
+ - Status: draft (default), publish, pending, private
36
+
37
+ ## Error Handling
38
+
39
+ If WordPress credentials are not configured:
40
+ - Guide user to set up environment variables
41
+ - Provide instructions for creating Application Password
42
+
43
+ If file doesn't exist or isn't readable:
44
+ - Report clear error message
45
+ - Suggest checking file path
46
+
47
+ ## Success Response
48
+
49
+ ```
50
+ ✅ Successfully published to WordPress!
51
+ - Post ID: [id]
52
+ - Status: [draft/published]
53
+ - Preview: [preview_url]
54
+ - Edit: [admin_edit_url]
55
+ ```
@@ -0,0 +1,30 @@
1
+ {
2
+ "mcpServers": {
3
+ "wordpress": {
4
+ "command": "node",
5
+ "args": ["../../mcp/wordpress-server.js"],
6
+ "env": {
7
+ "WORDPRESS_URL": "${WORDPRESS_URL}",
8
+ "WORDPRESS_USERNAME": "${WORDPRESS_USERNAME}",
9
+ "WORDPRESS_APP_PASSWORD": "${WORDPRESS_APP_PASSWORD}"
10
+ },
11
+ "autoStart": false,
12
+ "description": "WordPress MCP server for content management",
13
+ "tools": [
14
+ "wp_create_post",
15
+ "wp_update_post",
16
+ "wp_get_post",
17
+ "wp_list_posts",
18
+ "wp_upload_media",
19
+ "wp_create_category",
20
+ "wp_create_tag"
21
+ ]
22
+ }
23
+ },
24
+ "configuration": {
25
+ "auto_connect": false,
26
+ "retry_on_failure": true,
27
+ "max_retries": 3,
28
+ "timeout": 30000
29
+ }
30
+ }
@@ -0,0 +1,166 @@
1
+ {
2
+ "commands": [
3
+ {
4
+ "name": "myai-content-writer",
5
+ "description": "Launch the professional content writer agent for creating articles and blog posts",
6
+ "handler": "content-writer",
7
+ "configuration": {
8
+ "agent_file": "../../agents/content-writer.json",
9
+ "prompt_file": "../../agents/content-writer-prompt.md",
10
+ "tools": ["Read", "Write", "Edit", "WebSearch", "WebFetch", "Task"],
11
+ "parameters": {
12
+ "topic": {
13
+ "type": "string",
14
+ "required": true,
15
+ "description": "The topic or title for the content"
16
+ },
17
+ "word_count": {
18
+ "type": "number",
19
+ "required": false,
20
+ "default": 800,
21
+ "description": "Target word count for the content"
22
+ },
23
+ "audience": {
24
+ "type": "string",
25
+ "required": false,
26
+ "description": "Target audience for the content"
27
+ },
28
+ "tone": {
29
+ "type": "string",
30
+ "required": false,
31
+ "default": "professional",
32
+ "options": ["professional", "casual", "technical", "conversational", "academic"],
33
+ "description": "Tone of voice for the content"
34
+ },
35
+ "seo_keywords": {
36
+ "type": "array",
37
+ "required": false,
38
+ "description": "Primary and secondary keywords for SEO"
39
+ },
40
+ "publish_to_wordpress": {
41
+ "type": "boolean",
42
+ "required": false,
43
+ "default": false,
44
+ "description": "Automatically publish as draft to WordPress"
45
+ }
46
+ }
47
+ },
48
+ "examples": [
49
+ {
50
+ "command": "/myai-content-writer \"10 Best Practices for Remote Work\"",
51
+ "description": "Create an article about remote work best practices"
52
+ },
53
+ {
54
+ "command": "/myai-content-writer \"AI in Healthcare\" --word_count 1500 --tone technical --audience \"healthcare professionals\"",
55
+ "description": "Create a technical article about AI in healthcare for professionals"
56
+ },
57
+ {
58
+ "command": "/myai-content-writer \"Summer Garden Tips\" --seo_keywords \"garden tips,summer gardening,outdoor plants\" --publish_to_wordpress true",
59
+ "description": "Create SEO-optimized garden content and publish to WordPress"
60
+ }
61
+ ],
62
+ "workflow": {
63
+ "steps": [
64
+ {
65
+ "step": 1,
66
+ "action": "Parse command parameters",
67
+ "description": "Extract topic, word count, and other parameters from the command"
68
+ },
69
+ {
70
+ "step": 2,
71
+ "action": "Load agent configuration",
72
+ "description": "Load the content-writer agent configuration and prompt"
73
+ },
74
+ {
75
+ "step": 3,
76
+ "action": "Initialize agent with prompt",
77
+ "description": "Initialize the agent with the specialized content writer prompt"
78
+ },
79
+ {
80
+ "step": 4,
81
+ "action": "Execute content creation",
82
+ "description": "Agent researches and creates the content following the workflow"
83
+ },
84
+ {
85
+ "step": 5,
86
+ "action": "Save content locally",
87
+ "description": "Save the generated content to a markdown file"
88
+ },
89
+ {
90
+ "step": 6,
91
+ "action": "Publish to WordPress (optional)",
92
+ "description": "If requested, publish the content as a draft to WordPress"
93
+ }
94
+ ]
95
+ }
96
+ },
97
+ {
98
+ "name": "myai-wordpress-publish",
99
+ "description": "Publish existing content to WordPress as a draft",
100
+ "handler": "wordpress-publisher",
101
+ "configuration": {
102
+ "mcp_config": "../../mcp/wordpress-mcp.json",
103
+ "tools": ["Read", "Task"],
104
+ "parameters": {
105
+ "file": {
106
+ "type": "string",
107
+ "required": true,
108
+ "description": "Path to the markdown file to publish"
109
+ },
110
+ "status": {
111
+ "type": "string",
112
+ "required": false,
113
+ "default": "draft",
114
+ "options": ["draft", "publish", "pending", "private"],
115
+ "description": "WordPress post status"
116
+ }
117
+ }
118
+ },
119
+ "examples": [
120
+ {
121
+ "command": "/myai-wordpress-publish \"content/my-article.md\"",
122
+ "description": "Publish a markdown file to WordPress as draft"
123
+ },
124
+ {
125
+ "command": "/myai-wordpress-publish \"blog-post.md\" --status publish",
126
+ "description": "Publish directly to WordPress (live)"
127
+ }
128
+ ]
129
+ },
130
+ {
131
+ "name": "myai-configure",
132
+ "description": "Configure MyAI settings including WordPress credentials",
133
+ "handler": "configuration",
134
+ "configuration": {
135
+ "tools": ["Read", "Write", "Edit"],
136
+ "parameters": {
137
+ "setting": {
138
+ "type": "string",
139
+ "required": true,
140
+ "options": ["wordpress", "defaults", "agents"],
141
+ "description": "Which setting to configure"
142
+ }
143
+ }
144
+ },
145
+ "examples": [
146
+ {
147
+ "command": "/myai-configure wordpress",
148
+ "description": "Configure WordPress connection settings"
149
+ },
150
+ {
151
+ "command": "/myai-configure defaults",
152
+ "description": "Configure default settings for content creation"
153
+ }
154
+ ]
155
+ }
156
+ ],
157
+ "global_configuration": {
158
+ "prefix": "myai",
159
+ "version": "1.0.0",
160
+ "auto_load": true,
161
+ "requirements": {
162
+ "claude_code_version": ">=1.0.0",
163
+ "node_version": ">=18.0.0"
164
+ }
165
+ }
166
+ }