myaidev-method 0.2.23 → 0.2.24-2
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/.claude-plugin/plugin.json +251 -0
- package/PLUGIN_ARCHITECTURE.md +276 -0
- package/README.md +204 -0
- package/USER_GUIDE.md +436 -9
- package/bin/cli.js +370 -38
- package/dist/server/.tsbuildinfo +1 -1
- package/extension.json +174 -0
- package/hooks/hooks.json +221 -0
- package/marketplace.json +179 -0
- package/package.json +24 -7
- package/skills/content-verifier/SKILL.md +178 -0
- package/skills/content-writer/SKILL.md +151 -0
- package/skills/coolify-deployer/SKILL.md +207 -0
- package/skills/openstack-manager/SKILL.md +213 -0
- package/skills/security-auditor/SKILL.md +180 -0
- package/skills/security-tester/SKILL.md +171 -0
- package/skills/sparc-architect/SKILL.md +146 -0
- package/skills/sparc-coder/SKILL.md +136 -0
- package/skills/sparc-documenter/SKILL.md +195 -0
- package/skills/sparc-reviewer/SKILL.md +179 -0
- package/skills/sparc-tester/SKILL.md +156 -0
- package/skills/visual-generator/SKILL.md +147 -0
- package/skills/wordpress-publisher/SKILL.md +150 -0
- package/src/config/workflows.js +28 -44
- package/src/lib/ascii-banner.js +214 -0
- package/src/lib/config-manager.js +470 -0
- package/src/lib/content-coordinator.js +2562 -0
- package/src/lib/content-generator.js +427 -0
- package/src/lib/html-conversion-utils.js +843 -0
- package/src/lib/installation-detector.js +266 -0
- package/src/lib/seo-optimizer.js +515 -0
- package/src/lib/visual-config-utils.js +1 -1
- package/src/lib/visual-generation-utils.js +34 -14
- package/src/lib/wordpress-client.js +633 -0
- package/src/lib/workflow-installer.js +3 -3
- package/src/scripts/generate-visual-cli.js +39 -10
- package/src/scripts/html-conversion-cli.js +526 -0
- package/src/scripts/init/configure.js +436 -0
- package/src/scripts/init/install.js +460 -0
- package/src/scripts/ping.js +0 -1
- package/src/scripts/utils/file-utils.js +404 -0
- package/src/scripts/utils/logger.js +300 -0
- package/src/scripts/utils/write-content.js +293 -0
- package/src/templates/claude/agents/content-production-coordinator.md +689 -15
- package/src/templates/claude/agents/visual-content-generator.md +129 -4
- package/src/templates/claude/commands/myai-content-enrichment.md +227 -0
- package/src/templates/claude/commands/myai-content-writer.md +48 -37
- package/src/templates/claude/commands/myai-convert-html.md +186 -0
- package/src/templates/claude/commands/myai-coordinate-content.md +347 -11
- package/src/templates/diagrams/architecture.d2 +52 -0
- package/src/templates/diagrams/flowchart.d2 +42 -0
- package/src/templates/diagrams/sequence.d2 +47 -0
- package/src/templates/docs/content-creation-guide.md +164 -0
- package/src/templates/docs/deployment-guide.md +336 -0
- package/src/templates/docs/visual-generation-guide.md +248 -0
- package/src/templates/docs/wordpress-publishing-guide.md +208 -0
- package/src/templates/infographics/comparison-table.html +347 -0
- package/src/templates/infographics/data-chart.html +268 -0
- package/src/templates/infographics/process-flow.html +365 -0
- /package/src/scripts/{wordpress-health-check.js → wordpress/wordpress-health-check.js} +0 -0
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: content-verifier
|
|
3
|
+
description: Verify content uniqueness and quality before publishing
|
|
4
|
+
argument-hint: [file.md] [--strict]
|
|
5
|
+
allowed-tools: [Read, Write, Edit, Bash, WebSearch, WebFetch, Grep, Glob]
|
|
6
|
+
user-invocable: true
|
|
7
|
+
category: content
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
platforms: [claude-code, gemini-cli, codex-cli]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Content Verifier Skill
|
|
13
|
+
|
|
14
|
+
Verify that content is unique, high-quality, and ready for publishing. Detect AI-generated patterns and ensure proprietary value.
|
|
15
|
+
|
|
16
|
+
## Capabilities
|
|
17
|
+
|
|
18
|
+
- Knowledge redundancy assessment
|
|
19
|
+
- AI-generated content detection
|
|
20
|
+
- Plagiarism checking
|
|
21
|
+
- Quality scoring
|
|
22
|
+
- Publishing readiness evaluation
|
|
23
|
+
- Improvement recommendations
|
|
24
|
+
|
|
25
|
+
## Verification Criteria
|
|
26
|
+
|
|
27
|
+
| Criteria | Description |
|
|
28
|
+
|----------|-------------|
|
|
29
|
+
| **Uniqueness** | Not duplicating existing knowledge |
|
|
30
|
+
| **Originality** | Contains proprietary insights |
|
|
31
|
+
| **Quality** | Well-written, accurate, valuable |
|
|
32
|
+
| **Structure** | Proper formatting and organization |
|
|
33
|
+
| **SEO** | Optimized for search engines |
|
|
34
|
+
| **Completeness** | Covers topic adequately |
|
|
35
|
+
|
|
36
|
+
## Redundancy Scores
|
|
37
|
+
|
|
38
|
+
| Score | Meaning | Action |
|
|
39
|
+
|-------|---------|--------|
|
|
40
|
+
| **High** | Content widely available | Do not publish |
|
|
41
|
+
| **Medium** | Some overlap exists | Consider improvements |
|
|
42
|
+
| **Low** | Mostly unique | Minor revisions |
|
|
43
|
+
| **Minimal** | Highly original | Ready to publish |
|
|
44
|
+
|
|
45
|
+
## Process
|
|
46
|
+
|
|
47
|
+
1. **Content Analysis**
|
|
48
|
+
- Parse content structure
|
|
49
|
+
- Extract key claims and information
|
|
50
|
+
- Identify topic and keywords
|
|
51
|
+
|
|
52
|
+
2. **Uniqueness Check**
|
|
53
|
+
- Search for similar content online
|
|
54
|
+
- Compare with existing knowledge bases
|
|
55
|
+
- Assess overlap percentage
|
|
56
|
+
|
|
57
|
+
3. **Quality Assessment**
|
|
58
|
+
- Evaluate writing quality
|
|
59
|
+
- Check factual accuracy
|
|
60
|
+
- Assess value to readers
|
|
61
|
+
|
|
62
|
+
4. **AI Detection**
|
|
63
|
+
- Identify AI-generated patterns
|
|
64
|
+
- Check for characteristic phrases
|
|
65
|
+
- Evaluate originality markers
|
|
66
|
+
|
|
67
|
+
5. **Report Generation**
|
|
68
|
+
- Summarize findings
|
|
69
|
+
- Provide recommendations
|
|
70
|
+
- Assign publishing readiness score
|
|
71
|
+
|
|
72
|
+
## Parameters
|
|
73
|
+
|
|
74
|
+
| Parameter | Description | Default |
|
|
75
|
+
|-----------|-------------|---------|
|
|
76
|
+
| `file` | Content file to verify | Required |
|
|
77
|
+
| `--strict` | Enable strict checking | false |
|
|
78
|
+
| `--output` | Report output path | stdout |
|
|
79
|
+
| `--format` | json, markdown | markdown |
|
|
80
|
+
| `--threshold` | Minimum uniqueness score | 70 |
|
|
81
|
+
|
|
82
|
+
## Example Usage
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
# Verify single article
|
|
86
|
+
/myaidev-method:content-verifier "./content/my-article.md"
|
|
87
|
+
|
|
88
|
+
# Strict verification
|
|
89
|
+
/myaidev-method:content-verifier "./content/my-article.md" --strict
|
|
90
|
+
|
|
91
|
+
# Verify multiple files
|
|
92
|
+
/myaidev-method:content-verifier "./content/" --threshold=80
|
|
93
|
+
|
|
94
|
+
# JSON output for automation
|
|
95
|
+
/myaidev-method:content-verifier "./content/article.md" --format=json
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Verification Report
|
|
99
|
+
|
|
100
|
+
```markdown
|
|
101
|
+
# Content Verification Report
|
|
102
|
+
|
|
103
|
+
## Summary
|
|
104
|
+
- **File**: my-article.md
|
|
105
|
+
- **Topic**: [Detected topic]
|
|
106
|
+
- **Word Count**: [Number]
|
|
107
|
+
- **Verification Date**: [Date]
|
|
108
|
+
|
|
109
|
+
## Scores
|
|
110
|
+
| Metric | Score | Status |
|
|
111
|
+
|--------|-------|--------|
|
|
112
|
+
| Uniqueness | 85% | ✅ Pass |
|
|
113
|
+
| Quality | 78% | ⚠️ Needs work |
|
|
114
|
+
| SEO | 92% | ✅ Pass |
|
|
115
|
+
| Completeness | 88% | ✅ Pass |
|
|
116
|
+
|
|
117
|
+
## Knowledge Redundancy
|
|
118
|
+
**Score**: Low ✅
|
|
119
|
+
|
|
120
|
+
**Analysis**:
|
|
121
|
+
- Unique insights: 12 identified
|
|
122
|
+
- Similar content found: 3 articles
|
|
123
|
+
- Overlap areas: [List]
|
|
124
|
+
|
|
125
|
+
## AI Detection
|
|
126
|
+
**Assessment**: Mixed
|
|
127
|
+
|
|
128
|
+
**Indicators Found**:
|
|
129
|
+
- [Pattern 1]: Moderate confidence
|
|
130
|
+
- [Pattern 2]: Low confidence
|
|
131
|
+
|
|
132
|
+
**Recommendation**: Add more personal examples
|
|
133
|
+
|
|
134
|
+
## Quality Issues
|
|
135
|
+
1. **[Issue]**: [Description]
|
|
136
|
+
- Location: [Section]
|
|
137
|
+
- Fix: [Recommendation]
|
|
138
|
+
|
|
139
|
+
## Publishing Recommendation
|
|
140
|
+
**Status**: ✅ Ready with minor revisions
|
|
141
|
+
|
|
142
|
+
**Required Changes**:
|
|
143
|
+
1. [Change 1]
|
|
144
|
+
2. [Change 2]
|
|
145
|
+
|
|
146
|
+
**Optional Improvements**:
|
|
147
|
+
1. [Improvement 1]
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Integration
|
|
151
|
+
|
|
152
|
+
- Used by `/myaidev-method:coordinate-content` workflow
|
|
153
|
+
- Works with `/myaidev-method:content-writer` for improvements
|
|
154
|
+
- Gates content before `/myaidev-method:wordpress-publisher`
|
|
155
|
+
|
|
156
|
+
## Detection Patterns
|
|
157
|
+
|
|
158
|
+
### AI-Generated Indicators
|
|
159
|
+
- Overly formal language
|
|
160
|
+
- Lack of specific examples
|
|
161
|
+
- Generic transitions
|
|
162
|
+
- Perfect structure without variance
|
|
163
|
+
- Missing personal voice
|
|
164
|
+
|
|
165
|
+
### Quality Markers
|
|
166
|
+
- Original examples and case studies
|
|
167
|
+
- Personal experiences or insights
|
|
168
|
+
- Specific data and statistics
|
|
169
|
+
- Unique perspectives
|
|
170
|
+
- Authentic voice
|
|
171
|
+
|
|
172
|
+
## Best Practices
|
|
173
|
+
|
|
174
|
+
1. **Verify Before Publishing**: Always check content quality
|
|
175
|
+
2. **Add Value**: Ensure content provides unique insights
|
|
176
|
+
3. **Be Authentic**: Include personal experience and voice
|
|
177
|
+
4. **Cite Sources**: Reference original research
|
|
178
|
+
5. **Iterate**: Use feedback to improve content
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: content-writer
|
|
3
|
+
description: Professional SEO-optimized content creation with customizable tone, structure, and publishing integration
|
|
4
|
+
argument-hint: [topic] [--word-count=1500] [--tone=professional] [--with-images]
|
|
5
|
+
allowed-tools: [Read, Write, Edit, WebSearch, WebFetch, Task, Bash]
|
|
6
|
+
user-invocable: true
|
|
7
|
+
category: content
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
platforms: [claude-code, gemini-cli, codex-cli]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Content Writer Skill
|
|
13
|
+
|
|
14
|
+
You are a professional content writer specializing in creating high-quality, engaging, and SEO-optimized content with optional AI-generated visual content.
|
|
15
|
+
|
|
16
|
+
## Capabilities
|
|
17
|
+
|
|
18
|
+
- Blog posts, tutorials, how-to guides, listicles
|
|
19
|
+
- Technical documentation and API guides
|
|
20
|
+
- SEO optimization with keyword density analysis
|
|
21
|
+
- Multiple tone options: professional, conversational, technical, academic
|
|
22
|
+
- Front matter generation for static sites and CMS platforms
|
|
23
|
+
- Direct publishing to WordPress, PayloadCMS, Docusaurus, Mintlify, Astro
|
|
24
|
+
- AI-powered visual content generation (hero images, diagrams, infographics)
|
|
25
|
+
|
|
26
|
+
## Core Competencies
|
|
27
|
+
|
|
28
|
+
### Writing Excellence
|
|
29
|
+
- Clear, concise, and engaging prose
|
|
30
|
+
- Proper grammar, spelling, and punctuation
|
|
31
|
+
- Varied sentence structure and rhythm
|
|
32
|
+
- Active voice preference
|
|
33
|
+
- Storytelling when appropriate
|
|
34
|
+
|
|
35
|
+
### SEO Optimization
|
|
36
|
+
- Natural keyword integration
|
|
37
|
+
- Proper heading hierarchy (H1, H2, H3)
|
|
38
|
+
- Meta descriptions (150-160 characters)
|
|
39
|
+
- Internal and external linking suggestions
|
|
40
|
+
- URL-friendly slugs
|
|
41
|
+
- Alt text recommendations for images
|
|
42
|
+
|
|
43
|
+
### Content Structure
|
|
44
|
+
- Compelling introductions with hooks
|
|
45
|
+
- Logical flow and transitions
|
|
46
|
+
- Scannable formatting (bullets, lists, short paragraphs)
|
|
47
|
+
- Strong conclusions with CTAs when appropriate
|
|
48
|
+
- Pull quotes and highlights for emphasis
|
|
49
|
+
|
|
50
|
+
## Content Type Templates
|
|
51
|
+
|
|
52
|
+
| Type | Description | Typical Length |
|
|
53
|
+
|------|-------------|----------------|
|
|
54
|
+
| `blog-post` | Standard SEO-optimized article | 1500-2500 words |
|
|
55
|
+
| `technical-tutorial` | Step-by-step implementation guide | 2000-3500 words |
|
|
56
|
+
| `api-documentation` | API reference documentation | 1000-2000 words |
|
|
57
|
+
| `architecture-guide` | System design documentation | 2500-4000 words |
|
|
58
|
+
| `listicle` | List-based article | 1200-2000 words |
|
|
59
|
+
| `comparison-guide` | Side-by-side analysis | 1500-2500 words |
|
|
60
|
+
| `how-to-guide` | Practical implementation guide | 1500-2500 words |
|
|
61
|
+
| `case-study` | Customer success story | 1200-2000 words |
|
|
62
|
+
|
|
63
|
+
## Custom Content Rules
|
|
64
|
+
|
|
65
|
+
The content-writer skill supports custom content generation rules via a `content-rules.md` file in your project root. If this file exists, the skill will incorporate your custom guidelines into the content generation process.
|
|
66
|
+
|
|
67
|
+
## Process
|
|
68
|
+
|
|
69
|
+
1. **Understanding**: Analyze the topic, audience, and goals
|
|
70
|
+
2. **Research**: Use WebSearch to gather current, relevant information
|
|
71
|
+
3. **Planning**: Create a detailed outline with logical structure
|
|
72
|
+
4. **Visual Strategy**: Plan visual content if --with-images is enabled
|
|
73
|
+
5. **Writing**: Craft the content following SEO best practices
|
|
74
|
+
6. **Optimization**: Review for clarity, accuracy, and SEO
|
|
75
|
+
7. **Formatting**: Ensure proper Markdown formatting with frontmatter
|
|
76
|
+
|
|
77
|
+
## Output Format
|
|
78
|
+
|
|
79
|
+
```markdown
|
|
80
|
+
---
|
|
81
|
+
title: [Compelling, keyword-rich title]
|
|
82
|
+
meta_description: [150-160 character summary]
|
|
83
|
+
slug: [url-friendly-version]
|
|
84
|
+
tags: [relevant, topic, tags]
|
|
85
|
+
category: [Primary category]
|
|
86
|
+
keywords:
|
|
87
|
+
primary: [main keyword]
|
|
88
|
+
secondary: [supporting, keywords]
|
|
89
|
+
word_count: [number]
|
|
90
|
+
reading_time: [X minutes]
|
|
91
|
+
---
|
|
92
|
+
|
|
93
|
+
# [Title]
|
|
94
|
+
|
|
95
|
+
[Content with proper markdown formatting]
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
## Parameters
|
|
99
|
+
|
|
100
|
+
| Parameter | Description | Default |
|
|
101
|
+
|-----------|-------------|---------|
|
|
102
|
+
| `topic` | Main subject matter | Required |
|
|
103
|
+
| `--word-count` | Target length | 800 |
|
|
104
|
+
| `--tone` | professional, casual, technical, conversational, academic | professional |
|
|
105
|
+
| `--audience` | Target reader demographic | general |
|
|
106
|
+
| `--keywords` | Primary and secondary keywords | auto-detected |
|
|
107
|
+
| `--type` | Content type template | blog-post |
|
|
108
|
+
| `--with-images` | Generate AI-powered visual content | false |
|
|
109
|
+
| `--service` | Image generation service (gemini, imagen, dalle) | gemini |
|
|
110
|
+
| `--publish-wordpress` | Auto-publish as draft | false |
|
|
111
|
+
|
|
112
|
+
## Integration
|
|
113
|
+
|
|
114
|
+
- Works with `/myaidev-method:wordpress-publisher` for direct publishing
|
|
115
|
+
- Works with `/myaidev-method:visual-generator` for image generation
|
|
116
|
+
- Supports content-rules.md for brand voice customization
|
|
117
|
+
- Integrates with proprietary content verification
|
|
118
|
+
|
|
119
|
+
## Example Usage
|
|
120
|
+
|
|
121
|
+
```bash
|
|
122
|
+
# Basic article creation
|
|
123
|
+
/myaidev-method:content-writer "Best Practices for API Design"
|
|
124
|
+
|
|
125
|
+
# Full-featured with images
|
|
126
|
+
/myaidev-method:content-writer "Microservices Architecture" --word-count=2000 --tone=technical --with-images
|
|
127
|
+
|
|
128
|
+
# With WordPress publishing
|
|
129
|
+
/myaidev-method:content-writer "Getting Started Guide" --publish-wordpress
|
|
130
|
+
|
|
131
|
+
# Legacy command (also works)
|
|
132
|
+
/myai-content-writer "Introduction to Docker"
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
## Quality Checklist
|
|
136
|
+
|
|
137
|
+
Before finalizing any content:
|
|
138
|
+
- [ ] Title is compelling and includes primary keyword
|
|
139
|
+
- [ ] Introduction hooks the reader within first 2 sentences
|
|
140
|
+
- [ ] Content thoroughly addresses user intent
|
|
141
|
+
- [ ] All facts are accurate and verifiable
|
|
142
|
+
- [ ] Proper heading hierarchy is maintained
|
|
143
|
+
- [ ] Content is scannable with varied formatting
|
|
144
|
+
- [ ] Keywords are naturally integrated
|
|
145
|
+
- [ ] Meta description summarizes content effectively
|
|
146
|
+
- [ ] Conclusion provides value and next steps
|
|
147
|
+
- [ ] No spelling or grammar errors
|
|
148
|
+
- [ ] Tone is consistent throughout
|
|
149
|
+
- [ ] Content is original and adds unique value
|
|
150
|
+
|
|
151
|
+
Remember: Quality content builds trust, authority, and engagement. Every piece should serve the reader while achieving business objectives.
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: coolify-deployer
|
|
3
|
+
description: Deploy applications to Coolify PaaS with automated configuration
|
|
4
|
+
argument-hint: [app-path] [--env=production]
|
|
5
|
+
allowed-tools: [Read, Write, Bash, Task]
|
|
6
|
+
user-invocable: true
|
|
7
|
+
category: deployment
|
|
8
|
+
version: 1.0.0
|
|
9
|
+
platforms: [claude-code, gemini-cli, codex-cli]
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
# Coolify Deployer Skill
|
|
13
|
+
|
|
14
|
+
Deploy applications to Coolify self-hosted PaaS with automated configuration, environment management, and deployment automation.
|
|
15
|
+
|
|
16
|
+
## Capabilities
|
|
17
|
+
|
|
18
|
+
- Application deployment to Coolify
|
|
19
|
+
- Environment variable management
|
|
20
|
+
- Database provisioning
|
|
21
|
+
- SSL certificate management
|
|
22
|
+
- Domain configuration
|
|
23
|
+
- Deployment status monitoring
|
|
24
|
+
- Rollback support
|
|
25
|
+
|
|
26
|
+
## Prerequisites
|
|
27
|
+
|
|
28
|
+
Configure Coolify credentials:
|
|
29
|
+
|
|
30
|
+
```bash
|
|
31
|
+
/myai-configure coolify
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
Or set environment variables:
|
|
35
|
+
```
|
|
36
|
+
COOLIFY_API_KEY=your_api_key
|
|
37
|
+
COOLIFY_URL=https://coolify.yourdomain.com
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
## Deployment Types
|
|
41
|
+
|
|
42
|
+
| Type | Description |
|
|
43
|
+
|------|-------------|
|
|
44
|
+
| **Docker** | Deploy from Dockerfile |
|
|
45
|
+
| **Docker Compose** | Multi-container apps |
|
|
46
|
+
| **Git** | Deploy from repository |
|
|
47
|
+
| **Static** | Static site deployment |
|
|
48
|
+
| **Database** | PostgreSQL, MySQL, MongoDB, Redis |
|
|
49
|
+
|
|
50
|
+
## Process
|
|
51
|
+
|
|
52
|
+
1. **Configuration**
|
|
53
|
+
- Detect application type
|
|
54
|
+
- Parse existing configuration
|
|
55
|
+
- Generate Coolify-compatible config
|
|
56
|
+
|
|
57
|
+
2. **Environment Setup**
|
|
58
|
+
- Create/select project
|
|
59
|
+
- Configure environment variables
|
|
60
|
+
- Set up domains and SSL
|
|
61
|
+
|
|
62
|
+
3. **Deployment**
|
|
63
|
+
- Push to Coolify
|
|
64
|
+
- Monitor build process
|
|
65
|
+
- Verify deployment
|
|
66
|
+
|
|
67
|
+
4. **Verification**
|
|
68
|
+
- Health check
|
|
69
|
+
- DNS verification
|
|
70
|
+
- SSL validation
|
|
71
|
+
|
|
72
|
+
## Parameters
|
|
73
|
+
|
|
74
|
+
| Parameter | Description | Default |
|
|
75
|
+
|-----------|-------------|---------|
|
|
76
|
+
| `app-path` | Path to application | ./ |
|
|
77
|
+
| `--env` | Environment (dev, staging, prod) | production |
|
|
78
|
+
| `--project` | Coolify project name | auto |
|
|
79
|
+
| `--domain` | Custom domain | none |
|
|
80
|
+
| `--ssl` | Enable SSL | true |
|
|
81
|
+
| `--db` | Provision database type | none |
|
|
82
|
+
|
|
83
|
+
## Example Usage
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# Deploy current directory
|
|
87
|
+
/myaidev-method:coolify-deploy
|
|
88
|
+
|
|
89
|
+
# Deploy to staging
|
|
90
|
+
/myaidev-method:coolify-deploy --env=staging
|
|
91
|
+
|
|
92
|
+
# Deploy with custom domain
|
|
93
|
+
/myaidev-method:coolify-deploy --domain=app.example.com
|
|
94
|
+
|
|
95
|
+
# Deploy with database
|
|
96
|
+
/myaidev-method:coolify-deploy --db=postgresql
|
|
97
|
+
|
|
98
|
+
# Deploy specific path
|
|
99
|
+
/myaidev-method:coolify-deploy ./apps/api --env=production
|
|
100
|
+
|
|
101
|
+
# Legacy command
|
|
102
|
+
/myai-coolify-deploy
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
## Configuration File
|
|
106
|
+
|
|
107
|
+
Create `coolify.json` in project root:
|
|
108
|
+
|
|
109
|
+
```json
|
|
110
|
+
{
|
|
111
|
+
"name": "my-app",
|
|
112
|
+
"type": "docker",
|
|
113
|
+
"domain": "app.example.com",
|
|
114
|
+
"ssl": true,
|
|
115
|
+
"env": {
|
|
116
|
+
"NODE_ENV": "production",
|
|
117
|
+
"DATABASE_URL": "${DB_URL}"
|
|
118
|
+
},
|
|
119
|
+
"healthCheck": {
|
|
120
|
+
"path": "/health",
|
|
121
|
+
"interval": 30
|
|
122
|
+
},
|
|
123
|
+
"resources": {
|
|
124
|
+
"memory": "512Mi",
|
|
125
|
+
"cpu": "0.5"
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
## Environment Variables
|
|
131
|
+
|
|
132
|
+
Variables are managed per environment:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
# Set for production
|
|
136
|
+
coolify env set --env=production API_KEY=xxx
|
|
137
|
+
|
|
138
|
+
# Copy from local .env
|
|
139
|
+
coolify env import --env=staging .env.staging
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
## Database Provisioning
|
|
143
|
+
|
|
144
|
+
Supported databases with auto-configuration:
|
|
145
|
+
|
|
146
|
+
| Database | Connection String |
|
|
147
|
+
|----------|-------------------|
|
|
148
|
+
| PostgreSQL | `postgresql://...` |
|
|
149
|
+
| MySQL | `mysql://...` |
|
|
150
|
+
| MongoDB | `mongodb://...` |
|
|
151
|
+
| Redis | `redis://...` |
|
|
152
|
+
|
|
153
|
+
## Deployment Output
|
|
154
|
+
|
|
155
|
+
```markdown
|
|
156
|
+
# Deployment Summary
|
|
157
|
+
|
|
158
|
+
## Application
|
|
159
|
+
- **Name**: my-app
|
|
160
|
+
- **Environment**: production
|
|
161
|
+
- **Status**: ✅ Deployed
|
|
162
|
+
|
|
163
|
+
## Endpoints
|
|
164
|
+
- **URL**: https://app.example.com
|
|
165
|
+
- **Health**: https://app.example.com/health
|
|
166
|
+
|
|
167
|
+
## Resources
|
|
168
|
+
- **Memory**: 512Mi
|
|
169
|
+
- **CPU**: 0.5 cores
|
|
170
|
+
- **Replicas**: 2
|
|
171
|
+
|
|
172
|
+
## Build Info
|
|
173
|
+
- **Duration**: 2m 34s
|
|
174
|
+
- **Image**: my-app:abc123
|
|
175
|
+
- **Size**: 234MB
|
|
176
|
+
|
|
177
|
+
## Next Steps
|
|
178
|
+
1. Verify application at URL
|
|
179
|
+
2. Check logs: `coolify logs my-app`
|
|
180
|
+
3. Set up monitoring
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
## Integration
|
|
184
|
+
|
|
185
|
+
- Works with git workflows for CI/CD
|
|
186
|
+
- Supports environment promotion (dev → staging → prod)
|
|
187
|
+
- Integrates with monitoring and logging
|
|
188
|
+
|
|
189
|
+
## Rollback
|
|
190
|
+
|
|
191
|
+
```bash
|
|
192
|
+
# Rollback to previous version
|
|
193
|
+
/myaidev-method:coolify-deploy --rollback
|
|
194
|
+
|
|
195
|
+
# Rollback to specific version
|
|
196
|
+
/myaidev-method:coolify-deploy --rollback=v1.2.3
|
|
197
|
+
```
|
|
198
|
+
|
|
199
|
+
## Troubleshooting
|
|
200
|
+
|
|
201
|
+
| Issue | Solution |
|
|
202
|
+
|-------|----------|
|
|
203
|
+
| Build failed | Check Dockerfile and logs |
|
|
204
|
+
| Domain not resolving | Verify DNS configuration |
|
|
205
|
+
| SSL error | Check domain ownership |
|
|
206
|
+
| Health check failing | Verify health endpoint |
|
|
207
|
+
| Out of memory | Increase resource limits |
|