toilahuongg/shopify-agents-kit

explain

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.

First seen Mar 3, 2026

Installation

$ npx skills add toilahuongg/shopify-agents-kit --skill explain

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from toilahuongg/shopify-agents-kit · top by installs.

npx skills add toilahuongg/shopify-agents-kit

Browse all from toilahuongg/shopify-agents-kit

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 10
License LICENSE
Default branch master
Open issues 0
Status Active

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,946 B
  • docs SUMMARY.md 151 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 10 installs

SKILL.md

Explain Code

Provide a clear, thorough explanation of the specified code.

Input

The user will provide one of:

  • A file path: /explain src/auth/jwt.ts
  • A file path with line range: /explain src/auth/jwt.ts:45-80
  • A function/class name: /explain parseToken
  • Just /explain — explain the currently open or most recently discussed file

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?

  • External libraries
  • Internal modules
  • Environment variables
  • Database/API connections

5. Gotchas & Edge Cases

Things that might surprise someone:

  • Non-obvious behavior
  • Edge cases handled (or not handled)
  • Performance considerations
  • Known limitations

6. Usage Example

Show how to use this code:

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

Tone

  • Assume the reader is a competent developer unfamiliar with this specific code
  • Avoid jargon unless defining it
  • Use "this code" not "the code" for clarity
  • Be concise but complete