gh-plugin

gh-plugin is a command for Claude Code from synaptiai/synapti-marketplace. It costs 0 tokens per session (1,420 once invoked), scanned A, original, Apache-2.0.

A command that checks whether coding-agent plugins have the required files and valid configuration before a commit.

In plain words
What is it for?
Use it to validate one named plugin or all plugins, review pass/fail results, and choose whether to fix, ignore, or cancel when issues are found.
Why use it?
It finds structural or configuration problems before they are committed to the plugin marketplace.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: names the AskUserQuestion tool.

Good fit Use it to validate one named plugin or all plugins, review pass/fail results, and choose whether to fix, ignore, or cancel when issues are found.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/synaptiai/synapti-marketplace/gh-plugin
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.

Clone the repo
git clone --depth 1 https://github.com/synaptiai/synapti-marketplace

Made for: Claude Code.

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 gh-plugin

README.md
[![agentmods](https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-plugin.svg)](https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-plugin)
Your own site
<a href="https://agentmods.dev/commands/synaptiai/synapti-marketplace/gh-plugin"><img src="https://agentmods.dev/badge/commands/synaptiai/synapti-marketplace/gh-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 1,420 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00000 $0.01420
Opus 5 $0.00000 $0.00710
Sonnet 5 $0.00000 $0.00284
Haiku 4.5 $0.00000 $0.00142

Measured 7d ago against content hash 067d212b36be, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

gh-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 7d 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.

.claude/commands/gh-plugin.md · 204 lines

How it starts

The opening of the file, as written. The whole thing — 204 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Validate Plugin: $ARGUMENTS

Validate plugin structure and configuration before committing changes.

Tool Usage: This workflow uses the AskUserQuestion tool to clarify which plugins to validate and determine how to handle validation issues.

Arguments

  • $ARGUMENTS: Plugin name (optional)
    • If provided, validates the specified plugin
    • If omitted, validates all plugins in the marketplace

Process

  1. Identify plugins to validate:

    # List all plugins
    ls -d plugins/*/
    

    If multiple plugins exist and no argument provided, use the AskUserQuestion tool:

    • Option 1: "Validate all plugins"
    • Option 2: "Validate specific plugin: [name]" (for each plugin)
  2. For each plugin, run validation checks (see checklist below)

  3. Report results with clear pass/fail status for each check

  4. If issues found, use the AskUserQuestion tool to determine action:

    • Option 1: "Fix these issues automatically" (if auto-fixable)
    • Option 2: "Show me how to fix manually"
    • Option 3: "Ignore and continue" (for non-critical issues)
    • Option 4: "Cancel validation"

Validation Checklist

1. Plugin Structure

Verify required directories and files exist:

# Required: plugin.json
ls plugins/{name}/.claude-plugin/plugin.json

# Required: README.md
ls plugins/{name}/README.md

# At least one of these must exist:
ls plugins/{name}/agents/    # Agent definitions
ls plugins/{name}/commands/  # User-facing commands
ls plugins/{name}/skills/    # Skill implementations

Pass criteria: plugin.json + README.md + at least one content directory

2. Plugin.json Validation

Read and validate plugins/{name}/.claude-plugin/plugin.json:

Required fields:

  • name - Plugin identifier (string, non-empty)
  • version - Semantic version (string, format: X.Y.Z)
  • description - Plugin description (string, non-empty)

Optional but recommended:

  • author - Author information (object with name)
  • license - License identifier (string, e.g., "Apache-2.0")
  • keywords - Search keywords (array of strings)
  • repository - GitHub repository URL

Read the full file on GitHub · 204 lines

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. 7d ago First seen · 204 lines · 0 tokens per session scan A 067d212b36be

Subscribe to this mod's changes

gh-plugin is a command published in the GitHub repository synaptiai/synapti-marketplace (6 stars, last pushed 1mo ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 1,420 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-31.

Related

Other commands, from other repositories