@mytechtoday/augment-extensions 0.1.2 → 0.2.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.
- package/augment-extensions/domain-rules/wordpress/README.md +163 -0
- package/augment-extensions/domain-rules/wordpress/module.json +32 -0
- package/augment-extensions/domain-rules/wordpress/rules/coding-standards.md +617 -0
- package/augment-extensions/domain-rules/wordpress/rules/directory-structure.md +270 -0
- package/augment-extensions/domain-rules/wordpress/rules/file-patterns.md +423 -0
- package/augment-extensions/domain-rules/wordpress/rules/gutenberg-blocks.md +493 -0
- package/augment-extensions/domain-rules/wordpress/rules/performance.md +568 -0
- package/augment-extensions/domain-rules/wordpress/rules/plugin-development.md +510 -0
- package/augment-extensions/domain-rules/wordpress/rules/project-detection.md +251 -0
- package/augment-extensions/domain-rules/wordpress/rules/rest-api.md +501 -0
- package/augment-extensions/domain-rules/wordpress/rules/security.md +564 -0
- package/augment-extensions/domain-rules/wordpress/rules/theme-development.md +388 -0
- package/augment-extensions/domain-rules/wordpress/rules/woocommerce.md +441 -0
- package/augment-extensions/domain-rules/wordpress-plugin/README.md +139 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/ajax-plugin.md +1599 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/custom-post-type-plugin.md +1727 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block-plugin.md +428 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/gutenberg-block.md +422 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/mvc-plugin.md +1623 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/object-oriented-plugin.md +1343 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/rest-endpoint.md +734 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/settings-page-plugin.md +1350 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/simple-procedural-plugin.md +503 -0
- package/augment-extensions/domain-rules/wordpress-plugin/examples/singleton-plugin.md +971 -0
- package/augment-extensions/domain-rules/wordpress-plugin/module.json +53 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/activation-hooks.md +770 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/admin-interface.md +874 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/ajax-handlers.md +629 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/asset-management.md +559 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/context-providers.md +709 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/cron-jobs.md +736 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/database-management.md +1057 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/documentation-standards.md +463 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/frontend-functionality.md +478 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/gutenberg-blocks.md +818 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/internationalization.md +416 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/migration.md +667 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/performance-optimization.md +878 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-architecture.md +693 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/plugin-structure.md +352 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/rest-api.md +818 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/scaffolding-workflow.md +624 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/security-best-practices.md +866 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing-patterns.md +1165 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/testing.md +414 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/vscode-integration.md +751 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/woocommerce-integration.md +949 -0
- package/augment-extensions/domain-rules/wordpress-plugin/rules/wordpress-org-submission.md +458 -0
- package/augment-extensions/examples/gutenberg-block-plugin/README.md +101 -0
- package/augment-extensions/examples/gutenberg-block-plugin/examples/testimonial-block.md +428 -0
- package/augment-extensions/examples/gutenberg-block-plugin/module.json +40 -0
- package/augment-extensions/examples/rest-api-plugin/README.md +98 -0
- package/augment-extensions/examples/rest-api-plugin/examples/task-manager-api.md +1299 -0
- package/augment-extensions/examples/rest-api-plugin/module.json +40 -0
- package/augment-extensions/examples/woocommerce-extension/README.md +98 -0
- package/augment-extensions/examples/woocommerce-extension/examples/product-customizer.md +763 -0
- package/augment-extensions/examples/woocommerce-extension/module.json +40 -0
- package/augment-extensions/workflows/wordpress-plugin/README.md +232 -0
- package/augment-extensions/workflows/wordpress-plugin/ai-prompts.md +839 -0
- package/augment-extensions/workflows/wordpress-plugin/bead-decomposition-patterns.md +854 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/complete-plugin-example.md +540 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/custom-post-type-example.md +1083 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/feature-addition-workflow.md +669 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/plugin-creation-workflow.md +597 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/secure-form-handler-example.md +925 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/security-audit-workflow.md +752 -0
- package/augment-extensions/workflows/wordpress-plugin/examples/wordpress-org-submission-workflow.md +773 -0
- package/augment-extensions/workflows/wordpress-plugin/module.json +49 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/best-practices.md +942 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/development-workflow.md +702 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/submission-workflow.md +728 -0
- package/augment-extensions/workflows/wordpress-plugin/rules/testing-workflow.md +775 -0
- package/cli/dist/commands/show.d.ts.map +1 -1
- package/cli/dist/commands/show.js +41 -0
- package/cli/dist/commands/show.js.map +1 -1
- package/modules.md +52 -0
- package/package.json +1 -1
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "woocommerce-extension",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"displayName": "WooCommerce Extension Examples",
|
|
5
|
+
"description": "Complete WooCommerce extension examples with custom product fields, checkout customization, payment gateway, order hooks, and WooCommerce best practices",
|
|
6
|
+
"type": "examples",
|
|
7
|
+
"author": "Augment Extensions",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"augment": {
|
|
10
|
+
"characterCount": 24196,
|
|
11
|
+
"priority": "medium",
|
|
12
|
+
"category": "examples",
|
|
13
|
+
"appliesTo": {
|
|
14
|
+
"filePatterns": [
|
|
15
|
+
"**/*.php",
|
|
16
|
+
"**/includes/woocommerce/**/*.php",
|
|
17
|
+
"**/templates/woocommerce/**/*.php"
|
|
18
|
+
],
|
|
19
|
+
"projectTypes": [
|
|
20
|
+
"wordpress-plugin",
|
|
21
|
+
"woocommerce-extension"
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"installation": {
|
|
26
|
+
"required": false,
|
|
27
|
+
"dependencies": ["woocommerce"]
|
|
28
|
+
},
|
|
29
|
+
"tags": [
|
|
30
|
+
"wordpress",
|
|
31
|
+
"woocommerce",
|
|
32
|
+
"ecommerce",
|
|
33
|
+
"payment-gateway",
|
|
34
|
+
"checkout",
|
|
35
|
+
"products",
|
|
36
|
+
"php",
|
|
37
|
+
"examples"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# WordPress Plugin Development Workflow Module
|
|
2
|
+
|
|
3
|
+
## Overview
|
|
4
|
+
|
|
5
|
+
This module provides complete workflows for WordPress plugin development, optimized for AI-assisted development using Augment Code AI, OpenSpec, and Beads task management.
|
|
6
|
+
|
|
7
|
+
## Key Benefits
|
|
8
|
+
|
|
9
|
+
- **Scaffolding Workflow**: Automated plugin structure creation with proper headers and boilerplate
|
|
10
|
+
- **Development Workflow**: Feature development cycle with testing and validation
|
|
11
|
+
- **Testing Workflow**: PHPUnit setup, integration tests, and WordPress test suite
|
|
12
|
+
- **Submission Workflow**: WordPress.org submission preparation and process
|
|
13
|
+
- **AI-Optimized**: Structured workflows with clear prompts and task breakdowns
|
|
14
|
+
- **Beads Integration**: Task templates for plugin development phases
|
|
15
|
+
|
|
16
|
+
## Installation
|
|
17
|
+
|
|
18
|
+
### With CLI (Future)
|
|
19
|
+
```bash
|
|
20
|
+
augx link workflows/wordpress-plugin
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
### Manual Installation
|
|
24
|
+
Copy the contents of this module to your project's `.augment/` directory or reference it from the Augment Extensions repository.
|
|
25
|
+
|
|
26
|
+
## Directory Structure
|
|
27
|
+
|
|
28
|
+
```
|
|
29
|
+
augment-extensions/workflows/wordpress-plugin/
|
|
30
|
+
├── module.json # Module metadata
|
|
31
|
+
├── README.md # This file
|
|
32
|
+
├── rules/ # Workflow documentation
|
|
33
|
+
│ ├── scaffolding-workflow.md # Plugin creation workflow
|
|
34
|
+
│ ├── development-workflow.md # Feature development cycle
|
|
35
|
+
│ ├── testing-workflow.md # Testing setup and execution
|
|
36
|
+
│ ├── submission-workflow.md # WordPress.org submission
|
|
37
|
+
│ └── best-practices.md # Workflow best practices
|
|
38
|
+
└── examples/ # Workflow examples
|
|
39
|
+
├── plugin-creation-workflow.md # Complete plugin creation example
|
|
40
|
+
├── feature-addition-workflow.md # Adding features to existing plugin
|
|
41
|
+
├── security-audit-workflow.md # Security audit process
|
|
42
|
+
└── wordpress-org-submission-workflow.md # Real submission example
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
## Core Workflows
|
|
46
|
+
|
|
47
|
+
### 1. Scaffolding Workflow
|
|
48
|
+
|
|
49
|
+
**Purpose**: Create new WordPress plugin from scratch
|
|
50
|
+
|
|
51
|
+
**Steps**:
|
|
52
|
+
1. Define plugin requirements (OpenSpec)
|
|
53
|
+
2. Create Beads tasks for implementation
|
|
54
|
+
3. Generate plugin structure
|
|
55
|
+
4. Add plugin header and metadata
|
|
56
|
+
5. Create initial files (main plugin file, readme.txt)
|
|
57
|
+
6. Set up version control
|
|
58
|
+
|
|
59
|
+
**AI Prompt Template**:
|
|
60
|
+
```
|
|
61
|
+
Create a WordPress plugin called [Plugin Name] that [description].
|
|
62
|
+
|
|
63
|
+
Requirements:
|
|
64
|
+
- Plugin slug: [slug]
|
|
65
|
+
- Text domain: [text-domain]
|
|
66
|
+
- Minimum WordPress version: 6.0
|
|
67
|
+
- PHP version: 7.4+
|
|
68
|
+
|
|
69
|
+
Features:
|
|
70
|
+
- [Feature 1]
|
|
71
|
+
- [Feature 2]
|
|
72
|
+
|
|
73
|
+
Use [architecture pattern] architecture.
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### 2. Development Workflow
|
|
77
|
+
|
|
78
|
+
**Purpose**: Add features to existing plugin
|
|
79
|
+
|
|
80
|
+
**Steps**:
|
|
81
|
+
1. Create OpenSpec spec for feature
|
|
82
|
+
2. Break down into Beads tasks
|
|
83
|
+
3. Implement feature with security checks
|
|
84
|
+
4. Add tests
|
|
85
|
+
5. Update documentation
|
|
86
|
+
6. Test in WordPress environment
|
|
87
|
+
|
|
88
|
+
**AI Prompt Template**:
|
|
89
|
+
```
|
|
90
|
+
Add [feature name] to the [plugin name] plugin.
|
|
91
|
+
|
|
92
|
+
Feature requirements:
|
|
93
|
+
- [Requirement 1]
|
|
94
|
+
- [Requirement 2]
|
|
95
|
+
|
|
96
|
+
Security requirements:
|
|
97
|
+
- Nonce verification
|
|
98
|
+
- Capability checks
|
|
99
|
+
- Input sanitization
|
|
100
|
+
- Output escaping
|
|
101
|
+
|
|
102
|
+
Follow the [architecture pattern] pattern used in the plugin.
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### 3. Testing Workflow
|
|
106
|
+
|
|
107
|
+
**Purpose**: Set up and run plugin tests
|
|
108
|
+
|
|
109
|
+
**Steps**:
|
|
110
|
+
1. Install WordPress test suite
|
|
111
|
+
2. Configure PHPUnit
|
|
112
|
+
3. Write unit tests
|
|
113
|
+
4. Write integration tests
|
|
114
|
+
5. Run tests locally
|
|
115
|
+
6. Set up CI/CD (optional)
|
|
116
|
+
|
|
117
|
+
**AI Prompt Template**:
|
|
118
|
+
```
|
|
119
|
+
Set up PHPUnit testing for [plugin name].
|
|
120
|
+
|
|
121
|
+
Test coverage needed:
|
|
122
|
+
- [Feature 1] unit tests
|
|
123
|
+
- [Feature 2] integration tests
|
|
124
|
+
- Security validation tests
|
|
125
|
+
|
|
126
|
+
Use WordPress test suite and mock WordPress functions.
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### 4. Submission Workflow
|
|
130
|
+
|
|
131
|
+
**Purpose**: Prepare plugin for WordPress.org submission
|
|
132
|
+
|
|
133
|
+
**Steps**:
|
|
134
|
+
1. Security audit
|
|
135
|
+
2. Code standards check (WPCS)
|
|
136
|
+
3. Create/update readme.txt
|
|
137
|
+
4. Add screenshots
|
|
138
|
+
5. Test in clean WordPress install
|
|
139
|
+
6. Submit to WordPress.org
|
|
140
|
+
7. Respond to review feedback
|
|
141
|
+
|
|
142
|
+
**AI Prompt Template**:
|
|
143
|
+
```
|
|
144
|
+
Prepare [plugin name] for WordPress.org submission.
|
|
145
|
+
|
|
146
|
+
Checklist:
|
|
147
|
+
- Security audit (nonces, sanitization, escaping)
|
|
148
|
+
- WPCS compliance
|
|
149
|
+
- readme.txt with proper format
|
|
150
|
+
- Screenshots (if applicable)
|
|
151
|
+
- Tested up to WordPress [version]
|
|
152
|
+
|
|
153
|
+
Generate submission-ready package.
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
## Beads Task Breakdown Patterns
|
|
157
|
+
|
|
158
|
+
### Plugin Creation Tasks
|
|
159
|
+
|
|
160
|
+
```bash
|
|
161
|
+
bd create "Create plugin structure" -p 1
|
|
162
|
+
bd create "Add plugin header and metadata" -p 1
|
|
163
|
+
bd create "Create main plugin file" -p 1
|
|
164
|
+
bd create "Create readme.txt" -p 1
|
|
165
|
+
bd create "Set up activation/deactivation hooks" -p 1
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
### Feature Addition Tasks
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
bd create "Create OpenSpec spec for [feature]" -p 1
|
|
172
|
+
bd create "Implement [feature] core logic" -p 1
|
|
173
|
+
bd create "Add security checks (nonces, caps)" -p 1
|
|
174
|
+
bd create "Add tests for [feature]" -p 1
|
|
175
|
+
bd create "Update documentation" -p 2
|
|
176
|
+
```
|
|
177
|
+
|
|
178
|
+
## Usage
|
|
179
|
+
|
|
180
|
+
### For AI Agents
|
|
181
|
+
|
|
182
|
+
When working on WordPress plugin development:
|
|
183
|
+
|
|
184
|
+
1. **Start with scaffolding workflow** for new plugins
|
|
185
|
+
2. **Use development workflow** for adding features
|
|
186
|
+
3. **Apply testing workflow** before releases
|
|
187
|
+
4. **Follow submission workflow** for WordPress.org
|
|
188
|
+
|
|
189
|
+
### Integration with OpenSpec
|
|
190
|
+
|
|
191
|
+
Create specs in `openspec/specs/plugin-features/[feature-name].md` with:
|
|
192
|
+
- Feature requirements
|
|
193
|
+
- Security requirements
|
|
194
|
+
- Performance considerations
|
|
195
|
+
- Testing requirements
|
|
196
|
+
|
|
197
|
+
### Integration with Beads
|
|
198
|
+
|
|
199
|
+
Track all plugin development tasks in Beads with labels:
|
|
200
|
+
- `wordpress`
|
|
201
|
+
- `plugin`
|
|
202
|
+
- `[feature-name]`
|
|
203
|
+
- `security` (for security-related tasks)
|
|
204
|
+
- `testing` (for test tasks)
|
|
205
|
+
|
|
206
|
+
## Character Count
|
|
207
|
+
|
|
208
|
+
**Total**: ~81,445 characters
|
|
209
|
+
|
|
210
|
+
## Contents
|
|
211
|
+
|
|
212
|
+
- **4 Workflow Files**: Complete workflows for plugin development lifecycle
|
|
213
|
+
- `development-workflow.md` - Feature development cycle with security-first approach
|
|
214
|
+
- `testing-workflow.md` - PHPUnit setup, TDD workflow, and CI/CD integration
|
|
215
|
+
- `submission-workflow.md` - WordPress.org submission process and review response
|
|
216
|
+
- `best-practices.md` - Comprehensive best practices for code organization, security, performance, and accessibility
|
|
217
|
+
- **Beads Integration**: Task templates and breakdown patterns
|
|
218
|
+
- **OpenSpec Integration**: Spec templates for plugin features
|
|
219
|
+
- **AI Prompt Templates**: Ready-to-use prompts for each workflow phase
|
|
220
|
+
|
|
221
|
+
## Dependencies
|
|
222
|
+
|
|
223
|
+
- `domain-rules/wordpress-plugin` - WordPress plugin development rules
|
|
224
|
+
|
|
225
|
+
## Version
|
|
226
|
+
|
|
227
|
+
**1.1.0** - Added development, testing, and submission workflows
|
|
228
|
+
|
|
229
|
+
## License
|
|
230
|
+
|
|
231
|
+
MIT
|
|
232
|
+
|