explain-plugin

explain-plugin is a command for Cursor from hoshikitsunoda/figma-plugins-vibe-coding-template. It costs 0 tokens per session (401 once invoked), scanned A, original, MIT.

A command that reads a Figma plugin's code and creates a beginner-friendly Markdown report explaining how it works. Markdown is a plain-text document format commonly used for project notes.

In plain words
What is it for?
Use it to learn what the plugin does, understand how its interface communicates with its logic, identify important files, and see which Figma actions it performs.
Why use it?
It makes an unfamiliar plugin easier to understand without requiring the reader to trace every file and message themselves.

Command for Cursor

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/hoshikitsunoda/figma-plugins-vibe-coding-template/explain-plugin
Clone the repo
git clone --depth 1 https://github.com/hoshikitsunoda/figma-plugins-vibe-coding-template

Made for: Cursor.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for explain-plugin

README.md
[![agentmods](https://agentmods.dev/badge/commands/hoshikitsunoda/figma-plugins-vibe-coding-template/explain-plugin.svg)](https://agentmods.dev/commands/hoshikitsunoda/figma-plugins-vibe-coding-template/explain-plugin)
Your own site
<a href="https://agentmods.dev/commands/hoshikitsunoda/figma-plugins-vibe-coding-template/explain-plugin"><img src="https://agentmods.dev/badge/commands/hoshikitsunoda/figma-plugins-vibe-coding-template/explain-plugin.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 401 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00401
Opus 5 $0.00000 $0.00200
Sonnet 5 $0.00000 $0.00080
Haiku 4.5 $0.00000 $0.00040

Measured 4d ago against content hash b9f45f2b2879, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

explain-plugin scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.cursor/commands/explain-plugin.md · 47 lines

What it actually says

Explains how the current plugin works in plain English.

What it does:

  • Reads the codebase and generates a beginner-friendly explanation
  • Describes what the plugin does from a user's perspective
  • Explains the internal flow: plugin → UI → plugin messaging
  • Lists key files and their roles

Usage: /explain_plugin

Output: Generates a markdown report at .cursor/reports/explain-plugin.md

Report format:

  • What this plugin does — 1-2 sentence summary from user's perspective
  • How it works — Plain-English explanation of the flow
  • Key files — What each important file does
  • Message flow — How plugin and UI communicate
  • UI components — What the user sees and interacts with

Steps

  1. Read key files

    • manifest.json — plugin name and configuration
    • src/shared/messages.ts — message types between threads
    • src/plugin/main.ts — plugin logic and handlers
    • src/ui/App.tsx — UI components and interactions
  2. Analyze the plugin

    • What triggers actions? (button clicks, selection changes)
    • What messages are sent between plugin and UI?
    • What does the UI display?
    • What Figma API operations does it perform?
  3. Generate explanation

    • Write in plain English, avoid jargon
    • Use analogies if helpful
    • Focus on "what" and "why", not implementation details
  4. Save report

    • Create .cursor/reports/ directory if it doesn't exist
    • Save to .cursor/reports/explain-plugin.md
    • Tell user where to find the report

Approach: Explain as if to someone who has never seen the code. Focus on user-facing behavior first, then internal mechanics. Keep it concise but complete enough to understand the full picture.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 47 lines · 0 tokens per session scan A b9f45f2b2879

Subscribe to this mod's changes

explain-plugin is a command published in the GitHub repository hoshikitsunoda/figma-plugins-vibe-coding-template (21 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 401 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.