[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-cc6d16d6-618c-42be-955a-931f08efd203":3,"$fuK0P8UGpHIB1P6_gFkGxeer0J30UBkXBiE1dX6v7BAk":43},{"id":4,"title":5,"description":6,"categoryId":7,"moduleId":8,"tags":9,"prompt":10,"icon":11,"source":12,"sourceUrl":13,"authorId":14,"authorName":15,"isPublic":16,"stars":17,"runs":18,"createdAt":19,"updatedAt":19,"module":20,"category":27,"packages":34},"cc6d16d6-618c-42be-955a-931f08efd203","wordpress-woocommerce-development","WooCommerce店铺开发工作流程，涵盖店铺设置、支付集成、运输配置、定制和WordPress 7.0功能：AI连接器、DataViews和协作工具。","cat_prod_document","mod_productivity","sickn33,productivity","---\nname: wordpress-woocommerce-development\ndescription: \"WooCommerce store development workflow covering store setup, payment integration, shipping configuration, customization, and WordPress 7.0 features: AI connectors, DataViews, and collaboration tools.\"\ncategory: granular-workflow-bundle\nrisk: safe\nsource: personal\ndate_added: \"2026-02-27\"\n---\n\n# WordPress WooCommerce Development Workflow\n\n## Overview\n\nSpecialized workflow for building WooCommerce stores including setup, payment gateway integration, shipping configuration, custom product types, store optimization, and WordPress 7.0 enhancements.\n\n## WordPress 7.0 + WooCommerce Features\n\n1. **AI Integration**\n   - Auto-generate product descriptions\n   - AI-powered customer service responses\n   - Product summary generation\n   - Marketing copy assistance\n\n2. **DataViews for Orders**\n   - Modern order management interfaces\n   - Enhanced filtering and sorting\n   - Activity layout for order history\n\n3. **Real-Time Collaboration**\n   - Collaborative order editing\n   - Team notes and communication\n   - Live inventory updates\n\n4. **Admin Refresh**\n   - Consistent WooCommerce admin styling\n   - View transitions between screens\n\n5. **Abilities API**\n   - AI-powered order processing\n   - Automated inventory management\n   - Smart shipping recommendations\n\n## When to Use This Workflow\n\nUse this workflow when:\n- Setting up WooCommerce stores\n- Integrating payment gateways\n- Configuring shipping methods\n- Creating custom product types\n- Building subscription products\n- Implementing AI-powered features (WP 7.0)\n\n## Workflow Phases\n\n### Phase 1: Store Setup\n\n#### Skills to Invoke\n- `app-builder` - Project scaffolding\n- `wordpress-penetration-testing` - WordPress patterns\n\n#### Actions\n1. Install WooCommerce\n2. Run setup wizard\n3. Configure store settings\n4. Set up tax rules\n5. Configure currency\n6. Test with WordPress 7.0 admin\n\n#### WordPress 7.0 + WooCommerce Setup\n```php\n\u002F\u002F Minimum requirements for WP 7.0 + WooCommerce\n\u002F\u002F Add to wp-config.php for collaboration settings\ndefine('WP_COLLABORATION_MAX_USERS', 10);\n\n\u002F\u002F AI features are enabled by installing a provider plugin\n\u002F\u002F Install OpenAI, Anthropic, or Gemini connector from WordPress.org\n\u002F\u002F Then configure via Settings > Connectors in admin panel\n```\n\n#### Copy-Paste Prompts\n```\nUse @app-builder to set up WooCommerce store\n```\n\n### Phase 2: Product Configuration\n\n#### Skills to Invoke\n- `wordpress-penetration-testing` - WooCommerce patterns\n\n#### Actions\n1. Create product categories\n2. Add product attributes\n3. Configure product types\n4. Set up variable products\n5. Add product images\n\n#### AI-Powered Product Descriptions (WP 7.0)\n```php\n\u002F\u002F Auto-generate product descriptions with AI\nadd_action('woocommerce_new_product', 'generate_ai_description', 10, 2);\n\nfunction generate_ai_product_description($product_id, $product) {\n    if ($product->get_description()) {\n        return; \u002F\u002F Skip if description exists\n    }\n    \n    \u002F\u002F Check if AI client is available\n    if (!function_exists('wp_ai_client_prompt')) {\n        return;\n    }\n    \n    $title = $product->get_name();\n    $short_description = $product->get_short_description();\n    \n    $prompt = sprintf(\n        'Write a compelling WooCommerce product description for \"%s\" that highlights key features and benefits. Make it SEO-friendly and persuasive.',\n        $title\n    );\n    \n    if ($short_description) {\n        $prompt .= \"\\n\\nShort description: \" . $short_description;\n    }\n    \n    $result = wp_ai_client_prompt($prompt);\n    \n    if (is_wp_error($result)) {\n        return;\n    }\n    \n    \u002F\u002F Use temperature for consistent output\n    $result->using_temperature(0.3);\n    $description = $result->generate_text();\n    \n    if ($description && !is_wp_error($description)) {\n        $product->set_description($description);\n        $product->save();\n    }\n}\n```\n\n#### Copy-Paste Prompts\n```\nUse @wordpress-penetration-testing to configure WooCommerce products\n```\n\n### Phase 3: Payment Integration\n\n#### Skills to Invoke\n- `payment-integration` - Payment processing\n- `stripe-integration` - Stripe\n- `paypal-integration` - PayPal\n\n#### Actions\n1. Choose payment gateways\n2. Configure Stripe\n3. Set up PayPal\n4. Add offline payments\n5. Test payment flows\n\n#### WordPress 7.0 AI for Payments\n```php\n\u002F\u002F AI-powered fraud detection\n\u002F\u002F Note: This is a demonstration - implement proper fraud detection with multiple signals\n\n\u002F\u002F Use AI to analyze order for fraud indicators\nfunction ai_check_order_fraud($order_id) {\n    \u002F\u002F Check if AI client is available\n    if (!function_exists('wp_ai_client_prompt')) {\n        return false; \u002F\u002F Default to no suspicion if AI unavailable\n    }\n    \n    $order = wc_get_order($order_id);\n    if (!$order) {\n        return false;\n    }\n    \n    $prompt = sprintf(\n        'Analyze this order for potential fraud. Order total: $%s. Shipping address: %s, %s. Billing: %s. Is this suspicious? Return only \"suspicious\" or \"clean\" without explanation.',\n        $order->get_total(),\n        $order->get_shipping_address_1(),\n        $order->get_shipping_city(),\n        $order->get_billing_email()\n    );\n    \n    $result = wp_ai_client_prompt($prompt);\n    \n    if (is_wp_error($result)) {\n        return false;\n    }\n    \n    $result->using_temperature(0.1); \u002F\u002F Low temp for consistent classification\n    $analysis = $result->generate_text();\n    \n    return (strpos($analysis, 'suspicious') !== false);\n}\n```\n\n#### Copy-Paste Prompts\n```\nUse @stripe-integration to integrate Stripe payments\n```\n\n```\nUse @paypal-integration to integrate PayPal\n```\n\n### Phase 4: Shipping Configuration\n\n#### Skills to Invoke\n- `wordpress-penetration-testing` - WooCommerce shipping\n\n#### Actions\n1. Set up shipping zones\n2. Configure shipping methods\n3. Add flat rate shipping\n4. Set up free shipping\n5. Integrate carriers\n\n#### AI Shipping Recommendations (WP 7.0)\n```php\n\u002F\u002F AI-powered shipping recommendations\nadd_action('woocommerce_after_checkout_form', 'ai_shipping_recommendations');\n\nfunction ai_shipping_recommendations($checkout) {\n    \u002F\u002F Check if AI client is available\n    if (!function_exists('wp_ai_client_prompt')) {\n        return;\n    }\n    \n    $cart = WC()->cart;\n    if ($cart->is_empty() || !$cart->get_cart_contents_weight()) {\n        return;\n    }\n    \n    $prompt = sprintf(\n        'Based on this cart (total weight: %d kg, destination: %s), recommend the best shipping method from: free shipping (orders over $100), flat rate ($9.99), or express ($24.99). Consider delivery time and cost efficiency. Respond with just the recommended method name.',\n        $cart->get_cart_contents_weight(),\n        WC()->customer->get_shipping_country()\n    );\n    \n    $result = wp_ai_client_prompt($prompt);\n    \n    if (is_wp_error($result)) {\n        return;\n    }\n    \n    $result->using_temperature(0.1); \u002F\u002F Low temp for consistent recommendation\n    $recommendation = $result->generate_text();\n    \n    if (strpos($recommendation, 'express') !== false) {\n        wc_add_notice(esc_html__('AI Recommendation: Consider Express shipping for faster delivery!', 'woocommerce'), 'info');\n    }\n}\n```\n\n#### Copy-Paste Prompts\n```\nUse @wordpress-penetration-testing to configure shipping\n```\n\n### Phase 5: Store Customization\n\n#### Skills to Invoke\n- `frontend-developer` - Store customization\n- `frontend-design` - Store design\n\n#### Actions\n1. Customize product pages\n2. Modify cart page\n3. Style checkout flow\n4. Create custom templates\n5. Add custom fields\n\n#### WordPress 7.0 Template Customization\n```php\n\u002F\u002F Custom product template with WP 7.0 blocks\nadd_action('woocommerce_after_main_content', 'add_product_ai_chat');\n\nfunction add_product_ai_chat() {\n    if (!is_product()) return;\n    \n    global $product;\n    ?>\n    \u003Cdiv class=\"product-ai-assistant\">\n        \u003Ch3>AI Shopping Assistant\u003C\u002Fh3>\n        \u003Cbutton id=\"ai-chat-toggle\" type=\"button\">Ask about this product\u003C\u002Fbutton>\n        \u003Cdiv id=\"ai-chat-panel\" style=\"display:none;\">\n            \u003Cdiv id=\"ai-chat-messages\">\u003C\u002Fdiv>\n            \u003Cinput type=\"text\" id=\"ai-chat-input\" placeholder=\"Ask about sizing, materials, etc.\">\n        \u003C\u002Fdiv>\n    \u003C\u002Fdiv>\n    \u003Cscript>\n    document.getElementById('ai-chat-toggle').addEventListener('click', function() {\n        const panel = document.getElementById('ai-chat-panel');\n        panel.style.display = panel.style.display === 'none' ? 'block' : 'none';\n    });\n    \u003C\u002Fscript>\n    \u003C?php\n}\n\n\u002F\u002F AI-powered product Q&A\nadd_action('wp_ajax_ai_product_question', 'handle_ai_product_question');\nadd_action('wp_ajax_nopriv_ai_product_question', 'handle_ai_product_question');\n\nfunction handle_ai_product_question() {\n    \u002F\u002F Verify nonce for security\n    if (!check_ajax_referer('ai_product_question_nonce', 'nonce', false)) {\n        wp_send_json_error(['message' => 'Security check failed']);\n    }\n    \n    $question = isset($_POST['question']) ? sanitize_text_field($_POST['question']) : '';\n    $product_id = isset($_POST['product_id']) ? intval($_POST['product_id']) : 0;\n    \n    if (empty($question) || empty($product_id)) {\n        wp_send_json_error(['message' => 'Missing required fields']);\n    }\n    \n    $product = wc_get_product($product_id);\n    if (!$product) {\n        wp_send_json_error(['message' => 'Product not found']);\n    }\n    \n    \u002F\u002F Check if AI client is available\n    if (!function_exists('wp_ai_client_prompt')) {\n        wp_send_json_error(['message' => 'AI service unavailable']);\n    }\n    \n    $prompt = sprintf(\n        'Customer question about \"%s\": %s\\n\\nProduct details:\n- Price: $%s\n- SKU: %s\n- Stock: %s\n\nAnswer helpfully, accurately, and concisely:',\n        $product->get_name(),\n        $question,\n        $product->get_price(),\n        $product->get_sku(),\n        $product->get_stock_status()\n    );\n    \n    $result = wp_ai_client_prompt($prompt);\n    \n    if (is_wp_error($result)) {\n        wp_send_json_error(['message' => $result->get_error_message()]);\n    }\n    \n    $result->using_temperature(0.4); \u002F\u002F Slightly higher for more varied responses\n    $answer = $result->generate_text();\n    \n    if (is_wp_error($answer)) {\n        wp_send_json_error(['message' => 'Failed to generate response']);\n    }\n    \n    wp_send_json_success(['answer' => $answer]);\n}\n```\n\n#### Copy-Paste Prompts\n```\nUse @frontend-developer to customize WooCommerce templates\n```\n\n### Phase 6: Extensions\n\n#### Skills to Invoke\n- `wordpress-penetration-testing` - WooCommerce extensions\n\n#### Actions\n1. Install required extensions\n2. Configure subscriptions\n3. Set up bookings\n4. Add memberships\n5. Integrate marketplace\n\n#### Abilities API for WooCommerce (WP 7.0)\n```php\n\u002F\u002F Register ability categories first\nadd_action('wp_abilities_api_categories_init', function() {\n    wp_register_ability_category('ecommerce', [\n        'label' => __('E-Commerce', 'woocommerce'),\n        'description' => __('WooCommerce store management and operations', 'woocommerce'),\n    ]);\n});\n\n\u002F\u002F Register abilities\nadd_action('wp_abilities_api_init', function() {\n    \u002F\u002F Register ability to update inventory\n    wp_register_ability('woocommerce\u002Fupdate-inventory', [\n        'label' => __('Update Inventory', 'woocommerce'),\n        'description' => __('Update product stock quantity', 'woocommerce'),\n        'category' => 'ecommerce',\n        'input_schema' => [\n            'type' => 'object',\n            'properties' => [\n                'product_id' => ['type' => 'integer', 'description' => 'Product ID to update'],\n                'quantity' => ['type' => 'integer', 'description' => 'New stock quantity']\n            ],\n            'required' => ['product_id', 'quantity']\n        ],\n        'output_schema' => [\n            'type' => 'object',\n            'properties' => [\n                'success' => ['type' => 'boolean'],\n                'new_quantity' => ['type' => 'integer']\n            ]\n        ],\n        'execute_callback' => 'woocommerce_update_inventory_handler',\n        'permission_callback' => function() {\n            return current_user_can('manage_woocommerce');\n        }\n    ]);\n    \n    \u002F\u002F Register ability to process orders\n    wp_register_ability('woocommerce\u002Fprocess-order', [\n        'label' => __('Process Order', 'woocommerce'),\n        'description' => __('Mark order as processing and trigger fulfillment', 'woocommerce'),\n        'category' => 'ecommerce',\n        'input_schema' => [\n            'type' => 'object',\n            'properties' => [\n                'order_id' => ['type' => 'integer', 'description' => 'Order ID to process']\n            ],\n            'required' => ['order_id']\n        ],\n        'output_schema' => [\n            'type' => 'object',\n            'properties' => [\n                'success' => ['type' => 'boolean'],\n                'status' => ['type' => 'string']\n            ]\n        ],\n        'execute_callback' => 'woocommerce_process_order_handler',\n        'permission_callback' => function() {\n            return current_user_can('manage_woocommerce');\n        }\n    ]);\n});\n\n\u002F\u002F Handler for inventory update\nfunction woocommerce_update_inventory_handler($input) {\n    $product_id = isset($input['product_id']) ? absint($input['product_id']) : 0;\n    $quantity = isset($input['quantity']) ? absint($input['quantity']) : 0;\n    \n    $product = wc_get_product($product_id);\n    if (!$product) {\n        return new WP_Error('invalid_product', 'Product not found');\n    }\n    \n    \u002F\u002F Update stock\n    wc_update_product_stock($product, $quantity);\n    \n    return [\n        'success' => true,\n        'new_quantity' => $product->get_stock_quantity()\n    ];\n}\n\n\u002F\u002F Handler for order processing\nfunction woocommerce_process_order_handler($input) {\n    $order_id = isset($input['order_id']) ? absint($input['order_id']) : 0;\n    \n    $order = wc_get_order($order_id);\n    if (!$order) {\n        return new WP_Error('invalid_order', 'Order not found');\n    }\n    \n    $order->update_status('processing');\n    \n    return [\n        'success' => true,\n        'status' => 'processing'\n    ];\n}\n```\n\n#### Copy-Paste Prompts\n```\nUse @wordpress-penetration-testing to configure WooCommerce extensions\n```\n\n### Phase 7: Optimization\n\n#### Skills to Invoke\n- `web-performance-optimization` - Performance\n- `database-optimizer` - Database optimization\n\n#### Actions\n1. Optimize product images\n2. Enable caching\n3. Optimize database\n4. Configure CDN\n5. Set up lazy loading\n\n#### WordPress 7.0 Performance\n- Client-side media processing\n- Font Library enabled\n- Responsive grid block\n- View transitions for perceived performance\n\n#### Copy-Paste Prompts\n```\nUse @web-performance-optimization to optimize WooCommerce store\n```\n\n### Phase 8: Testing\n\n#### Skills to Invoke\n- `playwright-skill` - E2E testing\n- `test-automator` - Test automation\n\n#### Actions\n1. Test checkout flow\n2. Verify payment processing\n3. Test email notifications\n4. Check mobile experience\n5. Performance testing\n\n#### WordPress 7.0 Testing\n- Test with new admin interface\n- Verify AI features work\n- Test DataViews for orders\n- Verify collaboration features\n\n#### AI-Powered Store Testing\n```php\n\u002F\u002F Automated AI testing for fraud detection during checkout\nadd_action('woocommerce_after_checkout_validation', 'ai_validate_order', 20);\n\nfunction ai_validate_order($fields, $errors) {\n    \u002F\u002F Skip if AI is not available\n    if (!function_exists('wp_ai_client_prompt')) {\n        return;\n    }\n    \n    \u002F\u002F Skip for logged-in users (assumed trusted)\n    if (is_user_logged_in()) {\n        return;\n    }\n    \n    $order_data = [\n        'email' => isset($fields['billing_email']) ? $fields['billing_email'] : '',\n        'phone' => isset($fields['billing_phone']) ? $fields['billing_phone'] : '',\n        'address' => isset($fields['billing_address_1']) ? $fields['billing_address_1'] : '',\n    ];\n    \n    \u002F\u002F Skip if insufficient data\n    if (empty($order_data['email'])) {\n        return;\n    }\n    \n    $prompt = sprintf(\n        'This is a checkout validation. Check if these details seem legitimate: email=%s, phone=%s, address=%s. Return only \"valid\" or \"suspicious\" without additional text.',\n        sanitize_email($order_data['email']),\n        sanitize_text_field($order_data['phone']),\n        sanitize_text_field($order_data['address'])\n    );\n    \n    $result = wp_ai_client_prompt($prompt);\n    \n    if (is_wp_error($result)) {\n        \u002F\u002F Don't block checkout on AI errors\n        return;\n    }\n    \n    $result->using_temperature(0.1); \u002F\u002F Low temp for consistent classification\n    $response = $result->generate_text();\n    \n    if (is_wp_error($response)) {\n        return;\n    }\n    \n    if (strpos($response, 'suspicious') !== false) {\n        $errors->add('validation', __('Additional verification may be needed for this order. We will contact you if needed.', 'woocommerce'));\n    }\n}\n```\n\n#### Copy-Paste Prompts\n```\nUse @playwright-skill to test WooCommerce checkout flow\n```\n\n## WooCommerce + WordPress 7.0 AI Use Cases\n\n1. **Product Descriptions**\n   - Auto-generate from product attributes\n   - Translate descriptions\n   - SEO optimization\n\n2. **Customer Service**\n   - AI chatbot for common questions\n   - Order status lookup\n   - Return processing\n\n3. **Inventory Management**\n   - Demand forecasting\n   - Low stock alerts\n   - Reorder recommendations\n\n4. **Marketing**\n   - Personalized emails\n   - Product recommendations\n   - Abandoned cart recovery\n\n5. **Order Processing**\n   - Fraud detection\n   - Shipping optimization\n   - Invoice generation\n\n## Quality Gates\n\n- [ ] Products displaying correctly\n- [ ] Checkout flow working\n- [ ] Payments processing\n- [ ] Shipping calculating\n- [ ] Emails sending\n- [ ] Mobile responsive\n- [ ] AI features tested (WP 7.0)\n- [ ] DataViews working (WP 7.0)\n\n## Related Workflow Bundles\n\n- `wordpress` - WordPress development\n- `wordpress-theme-development` - Theme development\n- `wordpress-plugin-development` - Plugin development\n- `payment-integration` - Payment processing\n\n## Limitations\n- Use this skill only when the task clearly matches the scope described above.\n- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.\n- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.\n","","imported","https:\u002F\u002Fgithub.com\u002Fsickn33\u002Fantigravity-awesome-skills","user_system_seed","SkillOPIC",true,85,1204,"2026-05-16 13:47:34",{"id":8,"name":21,"slug":22,"icon":23,"description":24,"sort":25,"createdAt":26},"效率工具","productivity","mdi-lightning-bolt-outline","文档处理、数据分析、自动化工作流",4,"2026-05-16 12:53:40",{"id":7,"name":28,"slug":29,"icon":30,"description":31,"moduleId":8,"sort":32,"skillCount":33,"createdAt":26},"文档处理","document","mdi-file-document-outline","PDF\u002FWord\u002FExcel\u002FPPT 处理",1,23,[35],{"id":36,"skillId":4,"version":37,"fileName":38,"fileSize":39,"filePath":40,"fileHash":41,"manifest":42,"createdAt":19},"98aa31fc-3d30-468c-9abf-e69e1f7154e8","1.0.0","wordpress-woocommerce-development.zip",5401,"uploads\u002Fskills\u002Fcc6d16d6-618c-42be-955a-931f08efd203\u002Fwordpress-woocommerce-development.zip","22e8428acf916131149d669dac69ac87519ff9a6fafa353910e3367e9a6ac2aa","[{\"path\":\"SKILL.md\",\"isDirectory\":false,\"size\":18205}]",{"code":44,"message":45,"data":46},200,"success",{"items":47,"stats":48,"page":51},[],{"averageRating":49,"totalRatings":49,"ratingCounts":50},0,[49,49,49,49,49],{"limit":52,"offset":49,"hasMore":53,"nextOffset":52,"ratedOnly":16},15,false]