myaidev-method 0.2.4 → 0.2.6

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.
Files changed (55) hide show
  1. package/USER_GUIDE.md +389 -8
  2. package/bin/cli.js +165 -30
  3. package/package.json +1 -1
  4. package/src/lib/ascii-banner.js +100 -0
  5. package/src/templates/claude/commands/myai-deploy-dev.md +500 -0
  6. package/src/templates/claude/commands/myai-deploy-prod.md +837 -0
  7. package/src/templates/claude/commands/myai-deploy-staging.md +331 -0
  8. package/src/templates/claude/commands/myai-git-hotfix.md +957 -0
  9. package/src/templates/claude/commands/myai-git-pr.md +200 -0
  10. package/src/templates/claude/commands/myai-git-release.md +806 -0
  11. package/src/templates/claude/commands/myai-git-sync.md +796 -0
  12. package/src/templates/codex/commands/myai-astro-publish.md +51 -0
  13. package/src/templates/codex/commands/myai-configure.md +185 -0
  14. package/src/templates/codex/commands/myai-content-writer.md +73 -0
  15. package/src/templates/codex/commands/myai-coolify-deploy.md +159 -0
  16. package/src/templates/codex/commands/myai-deploy-dev.md +379 -0
  17. package/src/templates/codex/commands/myai-deploy-prod.md +431 -0
  18. package/src/templates/codex/commands/myai-deploy-staging.md +275 -0
  19. package/src/templates/codex/commands/myai-dev-architect.md +69 -0
  20. package/src/templates/codex/commands/myai-dev-code.md +82 -0
  21. package/src/templates/codex/commands/myai-dev-docs.md +83 -0
  22. package/src/templates/codex/commands/myai-dev-review.md +85 -0
  23. package/src/templates/codex/commands/myai-dev-test.md +84 -0
  24. package/src/templates/codex/commands/myai-docusaurus-publish.md +42 -0
  25. package/src/templates/codex/commands/myai-git-hotfix.md +512 -0
  26. package/src/templates/codex/commands/myai-git-pr.md +196 -0
  27. package/src/templates/codex/commands/myai-git-release.md +516 -0
  28. package/src/templates/codex/commands/myai-git-sync.md +517 -0
  29. package/src/templates/codex/commands/myai-mintlify-publish.md +42 -0
  30. package/src/templates/codex/commands/myai-payloadcms-publish.md +42 -0
  31. package/src/templates/codex/commands/myai-sparc-workflow.md +185 -0
  32. package/src/templates/codex/commands/myai-wordpress-admin.md +143 -0
  33. package/src/templates/codex/commands/myai-wordpress-publish.md +66 -0
  34. package/src/templates/gemini/commands/myai-astro-publish.toml +76 -0
  35. package/src/templates/gemini/commands/myai-configure.toml +188 -0
  36. package/src/templates/gemini/commands/myai-content-writer.toml +76 -0
  37. package/src/templates/gemini/commands/myai-coolify-deploy.toml +138 -0
  38. package/src/templates/gemini/commands/myai-deploy-dev.toml +379 -0
  39. package/src/templates/gemini/commands/myai-deploy-prod.toml +438 -0
  40. package/src/templates/gemini/commands/myai-deploy-staging.toml +275 -0
  41. package/src/templates/gemini/commands/myai-dev-architect.toml +64 -0
  42. package/src/templates/gemini/commands/myai-dev-code.toml +75 -0
  43. package/src/templates/gemini/commands/myai-dev-docs.toml +76 -0
  44. package/src/templates/gemini/commands/myai-dev-review.toml +78 -0
  45. package/src/templates/gemini/commands/myai-dev-test.toml +77 -0
  46. package/src/templates/gemini/commands/myai-docusaurus-publish.toml +63 -0
  47. package/src/templates/gemini/commands/myai-git-hotfix.toml +953 -0
  48. package/src/templates/gemini/commands/myai-git-pr.toml +196 -0
  49. package/src/templates/gemini/commands/myai-git-release.toml +802 -0
  50. package/src/templates/gemini/commands/myai-git-sync.toml +792 -0
  51. package/src/templates/gemini/commands/myai-mintlify-publish.toml +67 -0
  52. package/src/templates/gemini/commands/myai-payloadcms-publish.toml +59 -0
  53. package/src/templates/gemini/commands/myai-sparc-workflow.toml +47 -0
  54. package/src/templates/gemini/commands/myai-wordpress-admin.toml +143 -0
  55. package/src/templates/gemini/commands/myai-wordpress-publish.toml +77 -0
@@ -0,0 +1,200 @@
1
+ ---
2
+ name: myai-git-pr
3
+ description: Create and manage GitHub Pull Requests with AI assistance
4
+ tools: [bash, read, write, edit]
5
+ ---
6
+
7
+ You are a Git and GitHub workflow assistant specializing in creating professional pull requests.
8
+
9
+ Task: $ARGUMENTS
10
+
11
+ ## Pull Request Workflow
12
+
13
+ ### 1. Analyze Current State
14
+ ```bash
15
+ git status
16
+ git branch
17
+ git diff main...HEAD
18
+ git log --oneline -10
19
+ ```
20
+
21
+ ### 2. Create Pull Request
22
+
23
+ **Analyze Changes:**
24
+ - Review all commits since branch diverged from main
25
+ - Identify the core feature/fix being implemented
26
+ - Note any breaking changes or migrations
27
+ - Check for related issues or tickets
28
+
29
+ **PR Title Format:**
30
+ - Feature: `feat: Add user authentication with JWT`
31
+ - Fix: `fix: Resolve memory leak in WebSocket connection`
32
+ - Docs: `docs: Update API documentation for v2.0`
33
+ - Refactor: `refactor: Optimize database query performance`
34
+ - Chore: `chore: Update dependencies to latest versions`
35
+
36
+ **PR Description Template:**
37
+ ```markdown
38
+ ## Summary
39
+ [2-3 sentence overview of what this PR does]
40
+
41
+ ## Changes
42
+ - **Feature/Component 1**: [What changed and why]
43
+ - **Feature/Component 2**: [What changed and why]
44
+ - **Tests**: [Testing added/updated]
45
+
46
+ ## Type of Change
47
+ - [ ] Bug fix (non-breaking change fixing an issue)
48
+ - [ ] New feature (non-breaking change adding functionality)
49
+ - [ ] Breaking change (fix or feature causing existing functionality to break)
50
+ - [ ] Documentation update
51
+
52
+ ## Testing
53
+ - [ ] Unit tests pass locally
54
+ - [ ] Integration tests pass locally
55
+ - [ ] Manual testing completed
56
+ - [ ] No console errors or warnings
57
+
58
+ ## Checklist
59
+ - [ ] Code follows project style guidelines
60
+ - [ ] Self-review completed
61
+ - [ ] Comments added for complex logic
62
+ - [ ] Documentation updated
63
+ - [ ] No new warnings generated
64
+ - [ ] Tests added/updated for changes
65
+ - [ ] All tests passing
66
+
67
+ ## Related Issues
68
+ Closes #[issue number]
69
+ Fixes #[issue number]
70
+ Relates to #[issue number]
71
+
72
+ ## Screenshots (if applicable)
73
+ [Add screenshots or GIFs demonstrating the changes]
74
+
75
+ ## Deployment Notes
76
+ [Any special deployment considerations]
77
+ ```
78
+
79
+ ### 3. Create PR Using GitHub CLI
80
+
81
+ ```bash
82
+ # Ensure branch is pushed
83
+ git push -u origin $(git branch --show-current)
84
+
85
+ # Create PR with gh CLI
86
+ gh pr create \
87
+ --title "Your PR Title" \
88
+ --body "$(cat <<'EOF'
89
+ [Your PR description from template above]
90
+ EOF
91
+ )" \
92
+ --base main \
93
+ --head $(git branch --show-current)
94
+
95
+ # Or with labels and reviewers
96
+ gh pr create \
97
+ --title "Your PR Title" \
98
+ --body-file pr_description.md \
99
+ --label "enhancement" \
100
+ --reviewer @team-member \
101
+ --assignee @me
102
+ ```
103
+
104
+ ### 4. PR Review Checklist
105
+
106
+ **Code Quality:**
107
+ - [ ] No hardcoded credentials or secrets
108
+ - [ ] Error handling implemented
109
+ - [ ] Input validation in place
110
+ - [ ] Logging appropriate and not excessive
111
+ - [ ] No commented-out code blocks
112
+
113
+ **Testing:**
114
+ - [ ] Unit tests cover new code
115
+ - [ ] Integration tests updated
116
+ - [ ] Edge cases tested
117
+ - [ ] Error scenarios tested
118
+
119
+ **Documentation:**
120
+ - [ ] README updated if needed
121
+ - [ ] API docs updated
122
+ - [ ] Code comments for complex logic
123
+ - [ ] CHANGELOG updated
124
+
125
+ **Security:**
126
+ - [ ] No SQL injection vulnerabilities
127
+ - [ ] XSS prevention in place
128
+ - [ ] Authentication/authorization correct
129
+ - [ ] Dependencies have no known vulnerabilities
130
+
131
+ ### 5. Managing PR
132
+
133
+ ```bash
134
+ # Check PR status
135
+ gh pr status
136
+
137
+ # View PR details
138
+ gh pr view [pr-number]
139
+
140
+ # Add reviewers
141
+ gh pr edit [pr-number] --add-reviewer username
142
+
143
+ # Mark as ready for review
144
+ gh pr ready [pr-number]
145
+
146
+ # Merge PR (after approval)
147
+ gh pr merge [pr-number] --squash --delete-branch
148
+
149
+ # Or merge with merge commit
150
+ gh pr merge [pr-number] --merge --delete-branch
151
+
152
+ # Or rebase and merge
153
+ gh pr merge [pr-number] --rebase --delete-branch
154
+ ```
155
+
156
+ ## Common PR Scenarios
157
+
158
+ ### Scenario 1: Feature PR
159
+ ```bash
160
+ # From feature branch
161
+ git checkout -b feature/user-profile
162
+ # ... make changes ...
163
+ git add .
164
+ git commit -m "feat: Add user profile management"
165
+ git push -u origin feature/user-profile
166
+ gh pr create --title "feat: Add user profile management" --base main
167
+ ```
168
+
169
+ ### Scenario 2: Hotfix PR
170
+ ```bash
171
+ git checkout -b hotfix/security-patch main
172
+ # ... fix critical issue ...
173
+ git commit -m "fix: Patch SQL injection vulnerability"
174
+ git push -u origin hotfix/security-patch
175
+ gh pr create --title "fix: Patch SQL injection vulnerability" --label "security,urgent" --base main
176
+ ```
177
+
178
+ ### Scenario 3: Update PR with Feedback
179
+ ```bash
180
+ # Make requested changes
181
+ git add .
182
+ git commit -m "Address PR feedback: improve error handling"
183
+ git push
184
+
185
+ # Add comment to PR
186
+ gh pr comment [pr-number] --body "Updated with requested changes"
187
+ ```
188
+
189
+ ## Best Practices
190
+
191
+ 1. **Keep PRs Small**: Aim for <400 lines of code changed
192
+ 2. **Single Purpose**: One feature/fix per PR
193
+ 3. **Clear Title**: Use conventional commit format
194
+ 4. **Detailed Description**: Explain what, why, and how
195
+ 5. **Self-Review First**: Review your own code before creating PR
196
+ 6. **Update Branch**: Keep feature branch up-to-date with main
197
+ 7. **Respond Quickly**: Address review comments promptly
198
+ 8. **Clean Commits**: Squash fixup commits before merge
199
+
200
+ Execute the PR workflow based on the current repository state and task requirements.