plugin

plugin is a command for Claude Code from fatihkan/badi. It costs 0 tokens per session (778 once invoked), scanned A, original, MIT.

A plugin-management command that installs, removes, and lists extensions for the Badi system. It accepts plugin sources such as Git repositories, npm packages, or local folders and checks their manifest file.

In plain words
What is it for?
Use it to add an extension, remove one by name, or see which extensions are installed.
Why use it?
It removes the need to manually download files and edit configuration when managing extensions. It also stops installation when the required plugin description is missing.

Command for Claude Code

Written for Claude Code: Claude Code plugin machinery. Also seen: reads .claude/ paths.

Part of the badi plugin — 81 skills, 86 commands, 30 agents, 7 hooks shipped together

Good fit Use it to add an extension, remove one by name, or see…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/fatihkan/badi/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/fatihkan/badi

Made for: Claude Code.

Or install badi, the plugin that ships this one along with the rest of its 81 skills, 86 commands, 30 agents, 7 hooks.

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 plugin

README.md
[![agentmods](https://agentmods.dev/badge/commands/fatihkan/badi/plugin.svg)](https://agentmods.dev/commands/fatihkan/badi/plugin)
Your own site
<a href="https://agentmods.dev/commands/fatihkan/badi/plugin"><img src="https://agentmods.dev/badge/commands/fatihkan/badi/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 778 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.00778
Opus 5 $0.00000 $0.00389
Sonnet 5 $0.00000 $0.00156
Haiku 4.5 $0.00000 $0.00078

Measured today against content hash 8179601bc907, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

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 today.

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/plugin.md · 116 lines

How it starts

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

Plugin management command. Installs, removes, and lists plugins in the Badi system.

Required Tools

  • Bash (git clone, npm install, file copy)
  • Read (manifest files, current configuration)
  • Write (configuration updates, file creation)
  • ...

Subcommands

This command has three subcommands:

  • install <source> - Install a new plugin
  • remove <name> - Remove a plugin
  • list - List installed plugins

If the user did not specify a subcommand, ask which one they want.


Subcommand: install

Step 1: Source Type Detection

  • If a git URL (ends with .git or contains github.com): git source
  • If an npm package name: npm source
  • If a local directory path: local source
  • ...

Step 2: Download the Plugin

For a git source:

  • git clone [URL] into a temporary directory
  • Check the badi-plugin.json manifest file
  • If there is no manifest, ERROR and stop

For an npm source:

  • Download the package with npm pack [package]
  • Extract into a temporary directory
  • Check the badi-plugin.json manifest file

For a local source:

  • Verify badi-plugin.json exists in the given directory

Step 3: Read and Validate the Manifest

Read and validate badi-plugin.json:

[abridged]

Required fields: name, version ERROR and stop on an invalid manifest.

Step 4: Conflict Check

  • Check whether a plugin with the same name is installed
  • Verify added commands do not collide with existing commands
  • Check agent name collisions
  • ...

Step 5: Copy the Files

  • Create the .claude/plugins/[plugin-name]/ directory
  • Copy the manifest file
  • Copy agent files under .claude/agents/
  • ...

Step 6: Index Update

  • Add the new commands to command-index.md with a [Plugin] tag
  • Example format: | /plugin-command | Description [Plugin: plugin-name] |
  • Add new hook references to settings.json (if needed)

Step 7: Install Verification

  • Verify all files copied successfully
  • Suggest running /doctor
  • Show an install summary

Read the full file on GitHub · 116 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. today First seen · 116 lines · 0 tokens per session scan A 8179601bc907

Subscribe to this mod's changes

plugin is a command published in the GitHub repository fatihkan/badi (7 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 778 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-09-06.