Explain

From toilahuongg/Shopify-Agents-Kit · View interactive version

Explain is an AI agent skill from the GitHub repository toilahuongg/Shopify-Agents-Kit. Explain code in detail - what it does, how it works, and why. Use when you need to understand unfamiliar code or explain code to others.

How to use this skill

Skill file

Explain Code

Provide a clear, thorough explanation of the specified code.

Input

The user will provide one of:

Explanation Structure

1. Overview (2-3 sentences)

What does this code do at a high level? What problem does it solve?

2. Key Components

Break down the major parts:

## Function: functionName

**Purpose:** One sentence description

**Parameters:**
- `param1` (type) — what it's for
- `param2` (type) — what it's for

**Returns:** What and when

**Side effects:** Any mutations, API calls, state changes

3. Control Flow

Explain the execution path:

  1. First, it does X
  2. Then checks Y
  3. If Y is true, Z happens
  4. Otherwise, W happens

Use a simple flowchart for complex logic:

Input -> Validate -> Transform -> Output
              |
           Error -> Log -> Return null

4. Dependencies

What does this code depend on?

5. Gotchas & Edge Cases

Things that might surprise someone:

6. Usage Example

Show how to use this code:

// Example usage
const result = functionName(arg1, arg2);

Tone

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.