Skip to content

PCWProps/pcw-toolbelt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

23 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿš€ PCW ToolBelt

PowerPacks for your dev workflow

A modular VS Code extension with specialized tools for WordPress, Elementor, and WooCommerce development. Stop wasting time on repetitive setupโ€”install the tools you need and get back to building.

VS Code Extension License: MIT


โœจ Features

๐ŸŸข All Systems Go PowerPack (Core - Always Included)

Foundational tools for project sanity, context, and health

  1. Generate Context Map - Scans your file tree and creates an Agent.md for AI agents
  2. Context-Aware File Audit - Detects framework and applies appropriate best practice rules
  3. Context-Aware Workspace Audit - Audits entire workspace with dynamic rule loading
  4. Set Project Guardrails - Interactive setup of coding standards (.pcw-guardrails.json)
  5. Update Guardrails - View and manage project coding rules
  6. Secret Scanner - Finds 20+ types of hardcoded secrets (API keys, passwords, tokens)
  7. Dependency Health Check - Audits npm/composer packages for vulnerabilities and updates
  8. Scaffold Blueprint - Rapid project scaffolding from JSON templates
  9. Audit Plugin Redundancy - Detects conflicting WordPress plugins (20 categories)
  10. Reload Rules - Hot-reload audit rules without restarting VS Code

๐Ÿ”ต WordPress PowerPack

Standards, PHP compliance, and Theme structure

  • Child Theme Scaffolder - One-click generation of theme files
  • WPCS Compliance Runner - Runs PHP Code Sniffer against WordPress standards
  • (More features coming soon)

๐ŸŒธ Elementor PowerPack

The "Anti-Error" tools to stop "Files can't be used" errors

  • Widget Pre-Flight Audit โญ - Validates PHP against Elementor's Widget_Base requirements
    • Checks class extension
    • Validates required methods (get_name(), render())
    • Detects inline CSS issues
    • Flags deprecated methods
  • Widget Boilerplate Generator - Creates perfect widget class structure
  • (More features coming soon)

๐Ÿ›’ WooCommerce PowerPack

Security, template overrides, and data integrity

  • Template Override Checker - Finds outdated theme files
  • Custom Tab Generator - Scaffolds My Account/Product tabs
  • (More features coming soon)

๐Ÿ“Š PowerPack Roadmap & Tiers

Pack Level Icon Tool Name Description
Agency Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Agency Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Agency SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
AI Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
AI Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
AI SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
All Systems Go Core ๐Ÿง  Generate Context Map Maps file structure for AI Context.
All Systems Go Core ๐Ÿ›ก๏ธ Set Guardrails Defines rules for AI generation.
All Systems Go Core ๐Ÿ”„ Update Guardrails Auto-updates rules based on code drift.
All Systems Go Core ๐Ÿ” Secret Scanner Finds API keys before you commit.
All Systems Go Core ๐Ÿ•ต๏ธ Code Drift Detector Warns of naming convention violations.
All Systems Go Core ๐Ÿงน Find Placeholders Locates TODO and dummy text.
All Systems Go Core ๐Ÿ“ JSON Validator Strict syntax check for config files.
All Systems Go Core โœ‚๏ธ Snippets-to-File Saves code blocks to snippets instantly.
All Systems Go Core ๐Ÿ”Ž Global Search/Replace Regex-powered multi-file edit.
All Systems Go Core ๐Ÿ“ฆ Dep. Health Check Scans package.json for deprecated libs.
All Systems Go Power โš™๏ธ Config Generator Creates config files from templates.
All Systems Go Power ๐Ÿ“Š Code Metrics Analyzes complexity, duplication, and maintainability.
All Systems Go SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Astra Core ๐Ÿงฉ Header Injector Safely inject code into Astra Header.
Astra Core ๐ŸŽจ Color Palette Sync PHP snippet to sync customizer colors.
Astra Core โšก Performance Audit Disables unused Astra modules.
Astra Core ๐ŸŽฃ Hook Visualizer Maps all Astra-specific hooks.
Astra Core ๐Ÿฆถ Footer Builder Scaffolds footer widget areas.
Astra Core ๐Ÿ“„ Child Theme Gen Astra-specific child theme setup.
Astra Core ๐Ÿšซ White Labeler Hides Astra branding in admin.
Astra Core ๐Ÿ“ฑ Breakpoint Manager Adjusts mobile/tablet breakpoints.
Astra Core ๐Ÿ–‹๏ธ Font Self-Host Downloads Google Fonts locally.
Astra Core ๐Ÿ”ง Custom Layouts Registers 'Custom Layout' post types.
Astra Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Astra SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Cloudflare Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Cloudflare Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Cloudflare SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Elementor Core โœˆ๏ธ Widget Pre-Flight Audits code against Elementor API.
Elementor Core ๐Ÿ“„ Widget Boilerplate Generates valid Widget classes.
Elementor Core ๐Ÿ” Control Repeater Gen Scaffolds complex repeater arrays.
Elementor Core โœ… Site Kit Validator Checks JSON schema before import.
Elementor Core ๐Ÿ’€ Dynamic Tag Skeleton Boilerplate for Custom Tags.
Elementor Core ๐ŸŽจ Inline CSS Extractor Moves styles to controls.
Elementor Core ๐Ÿ–ผ๏ธ Widget Icon Register Enqueues custom editor icons.
Elementor Core โš ๏ธ Deprecation Scanner Finds old methods like _content_template.
Elementor Core ๐Ÿ“œ Editor Script Enqueue Loads JS only in Editor.
Elementor Core ๐Ÿ—‚๏ธ Custom Cat Register Adds custom category to panel.
Elementor Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Elementor SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
GitHub Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
GitHub Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
GitHub SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Google Workspace Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Google Workspace Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Google Workspace SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Jetpack Core ๐Ÿš€ Boost Config Optimizes Critical CSS generation.
Jetpack Core ๐Ÿ”Ž Search Config Customize Jetpack Search filters.
Jetpack Core ๐Ÿ›ก๏ธ Security Audit Checks Brute Force protection status.
Jetpack Core ๐Ÿ–ผ๏ธ CDN Enabler Ensures Image CDN is active.
Jetpack Core ๐Ÿ“Š Stats Widget View site stats in VS Code.
Jetpack Core ๐Ÿ“ฑ Social Auto-Share Configures Publicize settings.
Jetpack Core ๐Ÿ’พ Backup Status Verifies VaultPress backups.
Jetpack Core ๐Ÿ“ CRM Contact Sync Syncs forms to CRM.
Jetpack Core โšก Module Manager Disables unused Jetpack modules.
Jetpack Core ๐Ÿ”ง Dev Mode Toggle Safely enable Dev Mode for local.
Jetpack Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Jetpack SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Mac Automations Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Mac Automations Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Mac Automations SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Shopify Core ๐ŸŽจ Theme Check Runs Shopify Theme Linter.
Shopify Core ๐Ÿ›๏ธ Liquid Scaffold Generates common Liquid sections.
Shopify Core ๐Ÿ”„ Sync Theme Watches for changes & pushes to store.
Shopify Core ๐Ÿ“ฆ Metafield Manager Defines metafield definitions.
Shopify Core ๐Ÿ›’ Cart Script Gen Scaffolds Shopify Scripts (Plus).
Shopify Core ๐Ÿ“ฑ Responsive Test Previews section on mobile view.
Shopify Core โšก App Embed Block Creates app block structure.
Shopify Core ๐Ÿ” SEO Audit Checks product/collection SEO tags.
Shopify Core ๐Ÿ“ Schema Validator Validates settings_schema.json.
Shopify Core ๐Ÿš€ Deploy to Live Safe deployment
Shopify Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Shopify SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Tailwind Core ๐ŸŽจ Config Generator Creates optimized tailwind.config.js.
Tailwind Core ๐Ÿ“ฆ Class Sorter Sorts classes automatically.
Tailwind Core ๐Ÿ“ฑ Responsive Preview Test breakpoints in sidebar.
Tailwind Core ๐Ÿ”ง Conflict Killer Prefixes classes to avoid WP clashes.
Tailwind Core ๐Ÿ“ Custom Base Styles Scaffolds @layer base css.
Tailwind Core ๐Ÿงฉ Component Extractor Converts HTML to @apply components.
Tailwind Core ๐ŸŒˆ Palette Sync Syncs Tailwind colors to WP Theme.json.
Tailwind Core โšก JIT Mode Check Ensures Just-In-Time compiler is on.
Tailwind Core ๐Ÿ” Unused CSS Purge Audit content paths for purging.
Tailwind Core ๐Ÿ”ก Prose Config Sets up @tailwindcss/typography.
Tailwind Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Tailwind SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
TD SYNNEX Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
TD SYNNEX Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
TD SYNNEX SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
WooCommerce Core โšก Template Override Check Finds outdated theme files.
WooCommerce Core ๐Ÿ“‘ Custom Tab Gen Adds tabs to My Account/Product.
WooCommerce Core ๐Ÿ“ Checkout Field Editor Generates field removal logic.
WooCommerce Core ๐Ÿ’ณ Gateway Skeleton Class structure for payments.
WooCommerce Core ๐Ÿ•ท๏ธ Order Meta Debugger Reveals hidden order meta.
WooCommerce Core ๐Ÿ‘๏ธ Hook Visualizer Shows visual hook locations.
WooCommerce Core ๐Ÿ’ฒ Price Format Helper Strict currency formatting.
WooCommerce Core ๐Ÿ”— Endpoint Generator Creates custom URL endpoints.
WooCommerce Core ๐Ÿ“ฅ Product Data Import Validates CSV headers.
WooCommerce Core ๐Ÿ“ง Email Previewer Renders transactional emails.
WooCommerce Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
WooCommerce SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Ingram Micro Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Ingram Micro Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Ingram Micro SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Pressable Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Pressable Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Pressable SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
QuickBooks Online Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
QuickBooks Online Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
QuickBooks Online SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Salesforce CRM Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Salesforce CRM Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Salesforce CRM SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Jetpack CRM Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Jetpack CRM Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Jetpack CRM SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
MailPoet Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
MailPoet Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
MailPoet SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
WordPress Core ๐Ÿ—๏ธ Child Theme Scaffold Generates functions.php & style.css.
WordPress Core โš–๏ธ WPCS Compliance Runs PHPCS against WP Standards.
WordPress Core ๐Ÿท๏ธ Plugin Header Gen Creates standard plugin comments.
WordPress Core ๐ŸŽฃ Hook Mapper Maps all custom hooks in theme.
WordPress Core ๐Ÿ› Debug Log Viewer Live tail of debug.log in VS Code.
WordPress Core ๐Ÿ”‘ Salt Generator Generates secure wp-config keys.
WordPress Core ๐Ÿ—„๏ธ DB Prefix Changer SQL queries to rename tables.
WordPress Core ๐Ÿ‘ฎ Capability Checker Audits current_user_can() usage.
WordPress Core ๐ŸŒ Local Env Switcher Toggles URLs for local/staging.
WordPress Core ๐Ÿงผ Sanitize Audit Flags unsanitized inputs.
WordPress Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
WordPress SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Network Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Network Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Network SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Site Manager Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Site Manager Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Site Manager SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Identity Enterprise Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Identity Enterprise Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Identity Enterprise SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Protect Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Protect Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Unifi Protect SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features
Google Cloud Core ๐Ÿ›ฃ๏ธ Coming Soon New Features
Google Cloud Power ๐Ÿ›ฃ๏ธ Coming Soon New Features
Google Cloud SuperPower ๐Ÿ›ฃ๏ธ Coming Soon New Features

๐Ÿ“ฆ Installation

Prerequisites

  • VS Code version 1.80.0 or higher
  • Node.js 18.x or higher (for development)
  • TypeScript 5.2+ (for development)

From Source

  1. Clone the repository:

    git clone https://github.com/PCWProps/pcw-toolbelt.git
    cd pcw-toolbelt
  2. Install dependencies:

    npm install
  3. Compile the extension:

    npm run compile
  4. Run in VS Code:

    • Press F5 to open a new VS Code window with the extension loaded
    • Or run npm run watch to auto-compile on changes

๐ŸŽฏ Usage

Quick Start

  1. Open the Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows/Linux)
  2. Type PCW: to see all available commands
  3. Select the tool you need

Example: Audit an Elementor Widget

  1. Open a PHP file containing an Elementor widget
  2. Run: PCW: Audit Elementor Widget (Pre-Flight)
  3. Review the output for any structural issues

Sample Output:

โœ“ Class Structure Validated
โœ“ Namespaces Checked
โš ๏ธ Missing method: public function get_icon()
โœ“ No Inline CSS Detected

Example: Generate Context Map

  1. Open your project workspace
  2. Run: PCW: Generate Context Map
  3. An Agent.md file will be created with your project structure

๐Ÿ—๏ธ Architecture

The extension uses a modular PowerPack system:

src/
โ”œโ”€โ”€ extension.ts          # Main entry point
โ””โ”€โ”€ packs/
   โ”œโ”€โ”€ all-systems-go/   # "All Systems Go" Pack (always loaded)
    โ”‚   โ”œโ”€โ”€ index.ts      # Command registration
    โ”‚   โ””โ”€โ”€ contextMap.ts # Context Map logic
    โ”œโ”€โ”€ wordpress/        # WordPress Pack
    โ”‚   โ””โ”€โ”€ index.ts
    โ”œโ”€โ”€ elementor/        # Elementor Pack
    โ”‚   โ”œโ”€โ”€ index.ts
    โ”‚   โ””โ”€โ”€ auditor.ts    # Pre-Flight Audit logic
    โ””โ”€โ”€ woocommerce/      # WooCommerce Pack
        โ””โ”€โ”€ index.ts

Each PowerPack is self-contained and registers its own commands during activation.


๐Ÿ› ๏ธ Development

Project Structure

  • /src - TypeScript source files
  • /out - Compiled JavaScript (generated)
  • package.json - Extension manifest and dependencies
  • tsconfig.json - TypeScript configuration

Available Scripts

npm run compile       # Compile TypeScript to JavaScript
npm run watch         # Watch mode for development
npm run lint          # Run ESLint
npm run test          # Run tests (coming soon)

Adding a New Command

  1. Define the command in package.json:

    {
      "command": "pcw.yourpack.yourCommand",
      "title": "PCW: Your Command Title",
      "category": "YourPack"
    }
  2. Register in the PowerPack's index.ts:

    const yourCmd = vscode.commands.registerCommand(
      "pcw.yourpack.yourCommand",
      () => {
        vscode.window.showInformationMessage("Hello!");
      }
    );
    context.subscriptions.push(yourCmd);

๐Ÿค Contributing

Contributions are welcome! Please follow these guidelines:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.


๐Ÿ™ Acknowledgments


๐Ÿ“ž Support


Load up your ToolBelt. Ship faster. โšก

About

PowerPacks for your dev workflow - A modular VS Code extension with specialized tools for WordPress, Elementor, and WooCommerce development

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors