@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,163 @@
|
|
|
1
|
+
# WordPress Development Module
|
|
2
|
+
|
|
3
|
+
Comprehensive WordPress development guidelines for AI-assisted development with Augment Code.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This module provides complete WordPress development standards, workflows, and best practices optimized for AI-assisted development in VS Code. It covers themes, plugins, Gutenberg blocks, WooCommerce, REST API, security, and performance.
|
|
8
|
+
|
|
9
|
+
## Key Benefits
|
|
10
|
+
|
|
11
|
+
- **Project Detection**: Automatically identifies WordPress projects (themes, plugins, full installations)
|
|
12
|
+
- **Security-First**: Built-in security guidelines following WordPress best practices
|
|
13
|
+
- **Modern WordPress**: Full Site Editing (FSE), block themes, Gutenberg blocks
|
|
14
|
+
- **Performance Optimized**: Caching, query optimization, and performance best practices
|
|
15
|
+
- **AI-Optimized**: Prompt templates and bead decomposition patterns for common tasks
|
|
16
|
+
- **VS Code Integration**: File associations, task suggestions, and context providers
|
|
17
|
+
|
|
18
|
+
## Installation
|
|
19
|
+
|
|
20
|
+
### With CLI (Recommended)
|
|
21
|
+
|
|
22
|
+
```bash
|
|
23
|
+
augx link domain-rules/wordpress
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
### Manual Installation
|
|
27
|
+
|
|
28
|
+
Copy the contents of this module to your project's `.augment/` directory.
|
|
29
|
+
|
|
30
|
+
## Directory Structure
|
|
31
|
+
|
|
32
|
+
```
|
|
33
|
+
wordpress/
|
|
34
|
+
├── module.json # Module metadata
|
|
35
|
+
├── README.md # This file
|
|
36
|
+
├── rules/ # Detailed guidelines
|
|
37
|
+
│ ├── project-detection.md
|
|
38
|
+
│ ├── directory-structure.md
|
|
39
|
+
│ ├── file-patterns.md
|
|
40
|
+
│ ├── theme-development.md
|
|
41
|
+
│ ├── plugin-development.md
|
|
42
|
+
│ ├── gutenberg-blocks.md
|
|
43
|
+
│ ├── woocommerce.md
|
|
44
|
+
│ ├── rest-api.md
|
|
45
|
+
│ ├── security.md
|
|
46
|
+
│ ├── coding-standards.md
|
|
47
|
+
│ ├── performance.md
|
|
48
|
+
│ ├── ai-prompts.md
|
|
49
|
+
│ ├── testing.md
|
|
50
|
+
│ ├── migration.md
|
|
51
|
+
│ ├── vscode-integration.md
|
|
52
|
+
│ └── context-providers.md
|
|
53
|
+
├── examples/ # Code examples
|
|
54
|
+
│ ├── custom-post-type.md
|
|
55
|
+
│ ├── secure-form-handler.md
|
|
56
|
+
│ ├── gutenberg-block.md
|
|
57
|
+
│ └── rest-endpoint.md
|
|
58
|
+
└── patterns/ # Bead decomposition patterns
|
|
59
|
+
└── bead-patterns.md
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
## Core Workflows
|
|
63
|
+
|
|
64
|
+
### Theme Development
|
|
65
|
+
- Create new block themes
|
|
66
|
+
- Convert classic themes to block themes
|
|
67
|
+
- Template hierarchy and customization
|
|
68
|
+
- Theme.json configuration
|
|
69
|
+
- Asset enqueuing
|
|
70
|
+
|
|
71
|
+
### Plugin Development
|
|
72
|
+
- Custom plugin scaffolding
|
|
73
|
+
- Custom post types and taxonomies
|
|
74
|
+
- Admin menus and settings pages
|
|
75
|
+
- Activation/deactivation hooks
|
|
76
|
+
- Security and sanitization
|
|
77
|
+
|
|
78
|
+
### Gutenberg Blocks
|
|
79
|
+
- Block initialization with @wordpress/create-block
|
|
80
|
+
- Block.json metadata configuration
|
|
81
|
+
- Edit and save components
|
|
82
|
+
- Block styles and variations
|
|
83
|
+
- Server-side rendering
|
|
84
|
+
|
|
85
|
+
### WooCommerce
|
|
86
|
+
- Template overrides
|
|
87
|
+
- Custom product fields
|
|
88
|
+
- Checkout customization
|
|
89
|
+
- Payment gateway integration
|
|
90
|
+
- Email templates
|
|
91
|
+
|
|
92
|
+
### REST API
|
|
93
|
+
- Custom endpoint registration
|
|
94
|
+
- Permission callbacks
|
|
95
|
+
- Input sanitization and validation
|
|
96
|
+
- JSON response formatting
|
|
97
|
+
- Authentication
|
|
98
|
+
|
|
99
|
+
### Security
|
|
100
|
+
- Input sanitization (sanitize_text_field, sanitize_email)
|
|
101
|
+
- Output escaping (esc_html, esc_attr, esc_url)
|
|
102
|
+
- Nonce verification
|
|
103
|
+
- Capability checks
|
|
104
|
+
- Prepared statements for database queries
|
|
105
|
+
|
|
106
|
+
### Performance
|
|
107
|
+
- Object caching with transients
|
|
108
|
+
- Database query optimization
|
|
109
|
+
- Lazy loading
|
|
110
|
+
- Asset minification
|
|
111
|
+
- CDN integration
|
|
112
|
+
|
|
113
|
+
## Character Count
|
|
114
|
+
|
|
115
|
+
~0 characters (will be calculated after all files are created)
|
|
116
|
+
|
|
117
|
+
## Contents
|
|
118
|
+
|
|
119
|
+
### Rules (16 files)
|
|
120
|
+
- Project detection and identification
|
|
121
|
+
- Directory structure patterns
|
|
122
|
+
- File patterns and conventions
|
|
123
|
+
- Theme development workflows
|
|
124
|
+
- Plugin development workflows
|
|
125
|
+
- Gutenberg block development
|
|
126
|
+
- WooCommerce customization
|
|
127
|
+
- REST API extensions
|
|
128
|
+
- Security hardening
|
|
129
|
+
- Coding standards (WPCS)
|
|
130
|
+
- Performance optimization
|
|
131
|
+
- AI prompt templates
|
|
132
|
+
- Testing guidelines
|
|
133
|
+
- Migration workflows
|
|
134
|
+
- VS Code integration
|
|
135
|
+
- Context providers
|
|
136
|
+
|
|
137
|
+
### Examples (4 files)
|
|
138
|
+
- Custom post type implementation
|
|
139
|
+
- Secure form handler
|
|
140
|
+
- Gutenberg block
|
|
141
|
+
- REST API endpoint
|
|
142
|
+
|
|
143
|
+
### Patterns (1 file)
|
|
144
|
+
- Bead decomposition patterns for WordPress tasks
|
|
145
|
+
|
|
146
|
+
## Usage
|
|
147
|
+
|
|
148
|
+
Once linked, the module provides:
|
|
149
|
+
|
|
150
|
+
1. **Automatic Detection**: WordPress projects are automatically detected
|
|
151
|
+
2. **Context-Aware Assistance**: AI understands WordPress file structure and conventions
|
|
152
|
+
3. **Security Enforcement**: Critical safety rules prevent common vulnerabilities
|
|
153
|
+
4. **Workflow Guidance**: Step-by-step workflows for common tasks
|
|
154
|
+
5. **Code Examples**: Ready-to-use code snippets following best practices
|
|
155
|
+
|
|
156
|
+
## Version
|
|
157
|
+
|
|
158
|
+
1.0.0
|
|
159
|
+
|
|
160
|
+
## License
|
|
161
|
+
|
|
162
|
+
MIT
|
|
163
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "wordpress-development",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"displayName": "WordPress Development Standards",
|
|
5
|
+
"description": "Comprehensive WordPress development guidelines including themes, plugins, blocks, and best practices",
|
|
6
|
+
"type": "domain-rules",
|
|
7
|
+
"author": "Augment Extensions",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"augment": {
|
|
10
|
+
"characterCount": 0,
|
|
11
|
+
"priority": "high",
|
|
12
|
+
"category": "domain-rules"
|
|
13
|
+
},
|
|
14
|
+
"installation": {
|
|
15
|
+
"required": false,
|
|
16
|
+
"dependencies": []
|
|
17
|
+
},
|
|
18
|
+
"tags": [
|
|
19
|
+
"wordpress",
|
|
20
|
+
"php",
|
|
21
|
+
"cms",
|
|
22
|
+
"gutenberg",
|
|
23
|
+
"woocommerce",
|
|
24
|
+
"theme-development",
|
|
25
|
+
"plugin-development",
|
|
26
|
+
"blocks",
|
|
27
|
+
"rest-api",
|
|
28
|
+
"security",
|
|
29
|
+
"performance"
|
|
30
|
+
]
|
|
31
|
+
}
|
|
32
|
+
|