Agent skill
product-recall-manager
Manages a complete product recall workflow in WooCommerce. Identifies products by model/metadata, deactivates them (draft/private/hidden), creates a Google Forms recall form, finds affected customers from orders, and sends personalized notification emails with the form link.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/data/product-recall-manager
SKILL.md
Product Recall Manager
Execute a complete product recall process for a specified product model in WooCommerce.
Core Workflow
- Identify Target Products: Search for products matching the specified model or containing recall metadata (
recall_status: need_recall). - Deactivate Products: Set identified products to
draftstatus andhiddencatalog visibility. Do NOT delete them. - Create Recall Form: Generate a Google Form using the provided template (
recall_form_template.json). The form must collect customer and product details for the recall process. - Find Affected Customers: Query all historical WooCommerce orders that contain the recalled product(s).
- Notify Customers: Send a personalized recall email to each unique customer using the template (
recall_email_template.md), inserting their specific details and the Google Form link. - Generate Report: Create a
recall_report.jsonfile containing the generated Google Form's ID and URL.
Required Input from User
You must ask the user to specify the product model or identification criteria to initiate the recall. If not provided, examine existing products for metadata clues (e.g., recall_status: need_recall).
Key Instructions & Logic
1. Product Identification & Deactivation
- Use
woocommerce-woo_products_listto browse store products. - Filter products by:
- Name/SKU containing the target model string (e.g., "X1").
- Metadata containing
recall_status: need_recallorrecall_reason.
- Once identified, use
woocommerce-woo_products_batch_updateto setstatus: "draft"andcatalog_visibility: "hidden"for all target products. Provide a summary of affected products (IDs, Names, SKUs).
2. Google Forms Creation
- Create Form: Use
google_forms-create_formwith only thetitleparameter. The description cannot be set during creation. - Add Questions: Use the
recall_form_template.jsonas a reference. Add questions sequentially using the appropriategoogle_forms-add_*_questionfunctions:google_forms-add_text_questionfor text, email, date fields.google_forms-add_multiple_choice_questionfor choice fields.- Ensure
requiredfield settings from the template are applied.
- Form URL: The
responderUrifrom the creation response is the public form link to include in emails.
3. Customer Identification & Notification
- For each recalled product ID, use
woocommerce-woo_orders_listwith theproductfilter to find all containing orders. - Deduplicate Customers: Compile a unique list of customers by their email address (
billing.email). Aggregate their order numbers and purchased product details. - Personalize & Send Email:
- Load the
recall_email_template.md. - For each customer, populate the template placeholders (
[Customer Name],[Product Model],[Product ID],[Order Number],[Purchase Date],[Google Forms Link]). - Use
emails-send_emailto send. The subject should be clear, e.g., "Product Recall Notice - [Product Model]".
- Load the
4. Final Reporting
- Use
filesystem-write_fileto createrecall_report.jsonwith the structure:
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?