agentleFS
alanalvestechalanalvestech/hitank/skills/zendesk/SKILL.md

zendesk

Skill38 starsChanged 8 months agoMITView on GitHub

Manage Zendesk tickets, users, organizations and knowledge base via REST API

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

4 rules. 0 are common, 2 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 2

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If the output is OK, proceed to the Flow section.

    line 35
  2. Very specific:

    If the output is SETUP_NEEDED, guide the user step by step.

    line 37
  3. Distinctive:

    If the script outputs an error, the credentials are invalid.

    line 63
  4. Distinctive:

    Ask the user for the subject and description, then confirm: "Do you want to create a ticket with subject 'X'?" Only execute after a "yes".

    line 98

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/zendesk

Connect to the Zendesk REST API to manage tickets, users, organizations and knowledge base articles. Pure Ruby, zero gems — stdlib only.

Structure

scripts/
├── auth.rb           # Basic auth + zendesk_request helper (required by all scripts)
├── check_setup.rb    # Check if credentials exist (outputs OK or SETUP_NEEDED)
├── save_token.rb     # Save and validate subdomain, email, API token
├── tickets.rb        # List tickets (optional --status filter)
├── ticket.rb         # Get ticket details
├── create_ticket.rb  # Create a new ticket
├── update_ticket.rb  # Update ticket status/assignee
├── search.rb         # Search across tickets, users, organizations
├── users.rb          # List users
├── organizations.rb  # List organizations
└── articles.rb       # List knowledge base articles

Setup (check before using)

ruby ~/.claude/skills/zendesk/scripts/check_setup.rb

If the output is OK, proceed to the Flow section.

If the output is SETUP_NEEDED, guide the user step by step. Present ONE step at a time, wait for the user to confirm before moving to the next.

Step 1 — Ask the user for their Zendesk subdomain:

What is your Zendesk subdomain? This is the part before .zendesk.com in your URL.

For example, if your Zendesk is at https://mycompany.zendesk.com, the subdomain is mycompany.

Step 2 — Ask the user for their Zendesk email:

What is the email address you use to log in to Zendesk?

Step 3 — Ask the user to create an API token:

You need a Zendesk API token. Go to Admin Center > Apps and integrations > Zendesk API > Zendesk API Settings and create a new token:

https://YOUR_SUBDOMAIN.zendesk.com/admin/apps-integrations/apis/zendesk-api/settings

Copy the token and paste it here.

Step 4 — When the user provides all three values, save them:

ruby ~/.claude/skills/zendesk/scripts/save_token.rb 'SUBDOMAIN' 'EMAIL' 'API_TOKEN'

If the script outputs an error, the credentials are invalid. Ask the user to double-check and try again.

If setup is not complete, DO NOT proceed to the Flow. Complete all steps first.

Flow

The argument $ARGUMENTS may contain a ticket ID or a search query.

Step 1: List tickets

ruby ~/.claude/skills/zendesk/scripts/tickets.rb

Filter by status:

ruby ~/.claude/skills/zendesk/scripts/tickets.rb --status open
ruby ~/.claude/skills/zendesk/scripts/tickets.rb --status pending
ruby ~/.claude/skills/zendesk/scripts/tickets.rb --status solved

Present the tickets to the user. If $ARGUMENTS matches a ticket ID, skip to Step 2. If it looks like a search query, skip to Search.

Step 2: Show ticket details

ruby ~/.claude/skills/zendesk/scripts/ticket.rb TICKET_ID

Present the ticket info and ask what the user wants to do.

Step 3: Actions

Create a ticket (requires user confirmation):

Ask the user for the subject and description, then confirm: "Do you want to create a ticket with subject 'X'?" Only execute after a "yes".

ruby ~/.claude/skills/zendesk/scripts/create_ticket.rb 'SUBJECT' 'BODY'

Update a ticket (requires user confirmation):

Show current ticket details first, then ask: "Do you want to update ticket #ID?" Only execute after a "yes".

ruby ~/.claude/skills/zendesk/scripts/update_ticket.rb TICKET_ID --status open
ruby ~/.claude/skills/zendesk/scripts/update_ticket.rb TICKET_ID --status pending
ruby ~/.claude/skills/zendesk/scripts/update_ticket.rb TICKET_ID --status solved
ruby ~/.claude/skills/zendesk/scripts/update_ticket.rb TICKET_ID --assignee USER_ID
ruby ~/.claude/skills/zendesk/scripts/update_ticket.rb TICKET_ID --comment 'Internal note text'
ruby ~/.claude/skills/zendesk/scripts/update_ticket.rb TICKET_ID --status solved --comment 'Resolved the issue'

Search across tickets, users and organizations:

ruby ~/.claude/skills/zendesk/scripts/search.rb 'QUERY'

List users:

ruby ~/.claude/skills/zendesk/scripts/users.rb

List organizations:

ruby ~/.claude/skills/zendesk/scripts/organizations.rb

List knowledge base articles:

ruby ~/.claude/skills/zendesk/scripts/articles.rb

Notes

  • Pure Ruby, zero gems — stdlib only (json, net/http, uri, fileutils, base64)
  • Auth via Basic authentication: {email}/token:{api_token} (Base64 encoded)
  • Config files in ~/.config/zendesk/ — subdomain, email, token (outside the repo, never commit)
  • Creating and updating tickets require explicit user confirmation
  • Base URL: https://{subdomain}.zendesk.com/api/v2

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.