New to Claude Skills? Learn how to install them →

anthropics on GitHub

Complaint Handling

OfficialFree

Streamline customer complaint resolution effectively.

Get this skill

Free · Opens the source repo

What Complaint Handling does

The Complaint Handling skill automates the process of managing customer complaints from start to finish. It integrates with existing ticketing systems like Gmail and HubSpot to pull in relevant customer information, draft appropriate responses, and suggest operational fixes based on complaint patterns. This skill is particularly useful for customer service teams looking to enhance their efficiency and maintain a high standard of communication with clients.

When a complaint is received, the skill first identifies the context by either pulling a thread from Gmail or HubSpot using an optional email or ticket ID. If no ID is provided, the user can paste the complaint text directly. This initial step ensures that the skill has all necessary details about the customer, including their history and the nature of their complaint.

Next, the skill analyzes the customer's background, summarizing their purchase history, prior complaints, and overall value to the business. This context is critical in drafting a response that is tailored to the customer's relationship with the company. The drafted response is then presented to the user for approval, ensuring that no communication is sent without explicit consent.

Finally, the skill suggests operational changes if the complaint aligns with known issues, helping businesses address recurring problems proactively. This end-to-end workflow is designed to improve customer satisfaction while minimizing the workload on support teams.

When to use it

Use this skill when you need to efficiently manage customer complaints and ensure responses are tailored to individual customer histories.

When not to use it

This skill may not be suitable for very complex complaints requiring extensive human intervention or when detailed investigation beyond the provided context is necessary.

What you can build with it

Handling a High-Value Customer Complaint

When a high-value customer submits a complaint, use this skill to gather context and draft a personalized response that acknowledges their loyalty.

Resolving Multiple Complaints

If you notice a pattern of complaints about a specific issue, this skill can help identify and suggest operational fixes to prevent future occurrences.

Streamlining Customer Support Workflows

Integrate this skill into your customer support processes to automate the initial complaint handling, allowing your team to focus on more complex issues.

How to install Complaint Handling

View source

1. Install with the skills CLI

npx skills add anthropics/knowledge-work-plugins/handle-complaint --agent claude-code

2. Or install it manually

Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.

Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs

Inside SKILL.md

Written by anthropics

Run the complaint resolution workflow by chaining two skills. Read the complaint, gather context, draft a response, and suggest a fix so it doesn't happen again.

Parse arguments:

  • EMAIL_OR_TICKET_ID (optional) — Gmail thread ID, HubSpot ticket ID, or "latest" to pull the most recent unresolved complaint. If omitted, ask the owner to paste the complaint text.

Step 1 — Load the complaint (ticket-deflector)

Using the ticket-deflector skill workflow:

  1. If an ID was given: pull the full thread from Gmail or HubSpot.
  2. If "latest": pull the most recent unresolved HubSpot ticket or Gmail thread tagged as complaint/support.
  3. If neither: ask the owner to paste the complaint text directly.
  4. Identify: customer name, order/account info, what they're upset about, what they're asking for.

Step 2 — Pull context

  1. Search HubSpot for the customer's history: past purchases, prior complaints, deal stage, lifetime value.
  2. Search PayPal for relevant transaction: order status, refund history, dispute status.
  3. Summarize: "This is a {new/returning} customer, ${lifetime_value} in purchases, {0/N} prior complaints. Their current issue is {one sentence}."

Step 3 — Draft response (ticket-deflector)

Using the ticket-deflector skill workflow for tone-matched response:

  1. Draft a reply matched to the severity and the customer's history:
    • First-time complainers with high LTV → empathetic, generous
    • Repeat complainers → professional, firm, solution-focused
    • Abusive tone → professional, brief, boundary-setting
  2. Include: acknowledgment, explanation (if known), resolution offer, next step.
  3. Present the draft to the owner. Do NOT send.

Step 4 — Suggest operational fix (customer-pulse)

  1. Check if this complaint matches a known theme (from prior /customer-pulse-check runs or similar complaints in HubSpot).
  2. If it's a pattern: "This is the {Nth} complaint about {issue} this month. Consider: {specific operational change}."
  3. If it's isolated: "This looks like a one-off. No pattern detected."

Connector failures

If Gmail and HubSpot are both unreachable, ask the owner to paste the complaint text — the skill works with manual input. If PayPal is missing, skip transaction lookup and note "PayPal not connected — order status unavailable, working from complaint text only."

Approval gates

  • Never send a response without explicit owner approval. Drafts only.
  • Never issue refunds or credits automatically. Present the option; the owner decides.
  • Never close tickets or resolve disputes without owner confirmation.

Output

Present the customer context summary, the drafted response, and any pattern-based operational suggestion. Ask: "Want to send this response, edit it, or handle it differently?"

Frequently asked questions about Complaint Handling

Similar skills